Mock Version: 6.5 Mock Version: 6.5 Mock Version: 6.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-lapp.spec'], chrootPath='/var/lib/mock/f45-build-42897-796/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=995gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bg_xd2ok:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bg_xd2ok:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'f533dffda3084f56a90381f7aecef0d2', '-D', '/var/lib/mock/f45-build-42897-796/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bg_xd2ok:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-lapp.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1784246400 Wrote: /builddir/build/SRPMS/rust-lapp-0.3.1-2.fc45.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-lapp.spec'], chrootPath='/var/lib/mock/f45-build-42897-796/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=995gid=135user='mockbuild'unshare_net=TrueraiseExc=FalseprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bg_xd2ok:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bg_xd2ok:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '985a11eceb8d48c7ae1312452c91ee67', '-D', '/var/lib/mock/f45-build-42897-796/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bg_xd2ok:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-lapp.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1784246400 Executing(mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.RyprDH Creating(rpmbuild.env): /builddir/build/BUILD/rust-lapp-0.3.1-build/rpmbuild.env RPM_SOURCE_DIR="/builddir/build/SOURCES" RPM_BUILD_DIR="/builddir/build/BUILD/rust-lapp-0.3.1-build" RPM_OPT_FLAGS="-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" RPM_LD_FLAGS="-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes " RPM_ARCH="riscv64" RPM_OS="linux" RPM_BUILD_NCPUS="8" RPM_SPECPARTS_DIR="/builddir/build/BUILD/rust-lapp-0.3.1-build/SPECPARTS" export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS RPM_SPECPARTS_DIR RPM_LD_FLAGS RPM_DOC_DIR="/usr/share/doc" export RPM_DOC_DIR RPM_PACKAGE_NAME="rust-lapp" RPM_PACKAGE_VERSION="0.3.1" RPM_PACKAGE_RELEASE="2.fc45" export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE LANG=C.UTF-8 export LANG unset CDPATH DISPLAY ||: unset DEBUGINFOD_URLS ||: unset RPM_CONFIG_DIR ||: RPM_BUILD_ROOT="/builddir/build/BUILD/rust-lapp-0.3.1-build/BUILDROOT" export RPM_BUILD_ROOT PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/lib64/pkgconfig:/usr/share/pkgconfig" export PKG_CONFIG_PATH CONFIG_SITE=${CONFIG_SITE:-NONE} export CONFIG_SITE Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.6uw3W2 + umask 022 + cd /builddir/build/BUILD/rust-lapp-0.3.1-build + cd /builddir/build/BUILD/rust-lapp-0.3.1-build + rm -rf lapp-0.3.1 + /usr/bin/rpmuncompress -x /builddir/build/SOURCES/lapp-0.3.1.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd lapp-0.3.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + set -euo pipefail + /usr/bin/mkdir -p target/rpm + /usr/bin/ln -s rpm target/release + /usr/bin/rm -rf .cargo/ + /usr/bin/mkdir -p .cargo + cat + cat + /usr/bin/rm -f Cargo.lock + /usr/bin/rm -f Cargo.toml.orig + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.6AESeD + umask 022 + cd /builddir/build/BUILD/rust-lapp-0.3.1-build + cd lapp-0.3.1 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires --with-check + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/rust-lapp-0.3.1-2.fc45.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-lapp.spec'], chrootPath='/var/lib/mock/f45-build-42897-796/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=995gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bg_xd2ok:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bg_xd2ok:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'a680938349794aeeac4fcc05f069272f', '-D', '/var/lib/mock/f45-build-42897-796/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bg_xd2ok:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-lapp.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1784246400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.4AopWc + umask 022 + cd /builddir/build/BUILD/rust-lapp-0.3.1-build + cd lapp-0.3.1 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires --with-check + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.qZz8iw + umask 022 + cd /builddir/build/BUILD/rust-lapp-0.3.1-build + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd lapp-0.3.1 + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' /usr/bin/cargo build -j8 -Z avoid-dev-deps --profile rpm warning: no edition set: defaulting to the 2015 edition while the latest is 2024 Compiling lapp v0.3.1 (/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1) Running `/usr/bin/rustc --crate-name lapp --edition=2015 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=afc058653692cea5 -C extra-filename=-bd5893a22c7d273b --out-dir /builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps -L dependency=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` warning: unnecessary trailing semicolon --> src/lib.rs:332:10 | 332 | }; | ^ help: remove this semicolon | = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default warning: trait objects without an explicit `dyn` are deprecated --> src/flag.rs:16:33 | 16 | pub constraint: Option Result >>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default help: if this is a dyn-compatible trait, use `dyn` | 16 | pub constraint: Option Result >>, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/lib.rs:514:63 | 514 | pub fn get_infile_result(&self, name: &str) -> Result> { | ^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is a dyn-compatible trait, use `dyn` | 514 | pub fn get_infile_result(&self, name: &str) -> Result> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/lib.rs:519:64 | 519 | pub fn get_outfile_result(&self, name: &str) -> Result> { | ^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is a dyn-compatible trait, use `dyn` | 519 | pub fn get_outfile_result(&self, name: &str) -> Result> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/lib.rs:566:49 | 566 | pub fn get_infile(&self, name: &str) -> Box { | ^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is a dyn-compatible trait, use `dyn` | 566 | pub fn get_infile(&self, name: &str) -> Box { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/lib.rs:571:50 | 571 | pub fn get_outfile(&self, name: &str) -> Box { | ^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is a dyn-compatible trait, use `dyn` | 571 | pub fn get_outfile(&self, name: &str) -> Box { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/types.rs:186:43 | 186 | pub fn as_infile(&self) -> Result> { | ^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is a dyn-compatible trait, use `dyn` | 186 | pub fn as_infile(&self) -> Result> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/types.rs:199:44 | 199 | pub fn as_outfile(&self) -> Result> { | ^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is a dyn-compatible trait, use `dyn` | 199 | pub fn as_outfile(&self) -> Result> { | +++ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/types.rs:115:92 | 115 | Err(e) => Ok(Value::Error(format!("can't convert '{}' to integer - {}",s,e.description()))) | ^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/types.rs:120:90 | 120 | Err(e) => Ok(Value::Error(format!("can't convert '{}' to float - {}",s,e.description()))) | ^^^^^^^^^^^ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/types.rs:192:84 | 192 | Err(e) => error(format!("can't open '{}' for reading: {}",s, e.description())) | ^^^^^^^^^^^ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/types.rs:205:84 | 205 | Err(e) => error(format!("can't open '{}' for writing: {}",s, e.description())) | ^^^^^^^^^^^ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/lib.rs:111:25 | 111 | self.quit(e.description()); | ^^^^^^^^^^^ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/lib.rs:156:25 | 156 | self.quit(e.description()); | ^^^^^^^^^^^ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/lib.rs:164:60 | 164 | return error(format!("{}\nat line: '{}'",e.description(),line)); | ^^^^^^^^^^^ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/lib.rs:438:35 | 438 | Err(e) => self.quit(e.description()) | ^^^^^^^^^^^ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/lib.rs:472:52 | 472 | Err(e) => self.bad_flag(name,e.description()) | ^^^^^^^^^^^ warning: hiding a lifetime that's named elsewhere is confusing --> src/lib.rs:74:34 | 74 | pub fn new(text: &'a str) -> Args { | -- ^^^^ the same lifetime is hidden here | | | the lifetime is named here | = help: the same lifetime is referred to in inconsistent ways, making the signature confusing = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default help: consistently use `'a` | 74 | pub fn new(text: &'a str) -> Args<'a> { | ++++ warning: panic message is not a string literal --> src/lib.rs:101:20 | 101 | panic!(text); | ^^^^ | = note: for more information, see = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 = note: for more information, see = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default help: add a "{}" format string to `Display` the message | 101 | panic!("{}", text); | +++++ warning: hiding a lifetime that's elided elsewhere is confusing --> src/lib.rs:674:22 | 674 | pub fn parse_args(s: &str) -> Args { | ^^^^ ^^^^ the same lifetime is hidden here | | | the lifetime is elided here | = help: the same lifetime is referred to in inconsistent ways, making the signature confusing help: use `'_` for type paths | 674 | pub fn parse_args(s: &str) -> Args<'_> { | ++++ warning: `lapp` (lib) generated 20 warnings (run `cargo fix --lib -p lapp` to apply 10 suggestions) Running `/usr/bin/rustc --crate-name lapp_gen --edition=2015 src/bin/lapp-gen.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=bfc7da85aa49100b -C extra-filename=-873bc0da8a37bba9 --out-dir /builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps -L dependency=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps --extern lapp=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps/liblapp-bd5893a22c7d273b.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Finished `rpm` profile [optimized + debuginfo] target(s) in 9.13s + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Nldr07 + umask 022 + cd /builddir/build/BUILD/rust-lapp-0.3.1-build + '[' /builddir/build/BUILD/rust-lapp-0.3.1-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/rust-lapp-0.3.1-build/BUILDROOT ++ dirname /builddir/build/BUILD/rust-lapp-0.3.1-build/BUILDROOT + mkdir -p /builddir/build/BUILD/rust-lapp-0.3.1-build + mkdir /builddir/build/BUILD/rust-lapp-0.3.1-build/BUILDROOT + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd lapp-0.3.1 + set -euo pipefail ++ /usr/bin/cargo2rpm --path Cargo.toml is-lib + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' ++ /usr/bin/cargo2rpm --path Cargo.toml name + CRATE_NAME=lapp ++ /usr/bin/cargo2rpm --path Cargo.toml version + CRATE_VERSION=0.3.1 + REG_DIR=/builddir/build/BUILD/rust-lapp-0.3.1-build/BUILDROOT/usr/share/cargo/registry/lapp-0.3.1 + /usr/bin/mkdir -p /builddir/build/BUILD/rust-lapp-0.3.1-build/BUILDROOT/usr/share/cargo/registry/lapp-0.3.1 + /usr/bin/awk -i inplace -v INPLACE_SUFFIX=.deps '/^\[((.+\.)?((dev|build)-)?dependencies|features)/{f=1;next} /^\[/{f=0}; !f' Cargo.toml + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' /usr/bin/cargo package -l + grep -w -E -v 'Cargo.(lock|toml.orig)' + xargs -d '\n' /usr/bin/cp --parents -a -t /builddir/build/BUILD/rust-lapp-0.3.1-build/BUILDROOT/usr/share/cargo/registry/lapp-0.3.1 warning: no (git) VCS found for `/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1` + /usr/bin/mv Cargo.toml.deps Cargo.toml + /usr/bin/cp -a Cargo.toml /builddir/build/BUILD/rust-lapp-0.3.1-build/BUILDROOT/usr/share/cargo/registry/lapp-0.3.1/Cargo.toml + /usr/bin/rm -f /builddir/build/BUILD/rust-lapp-0.3.1-build/BUILDROOT/usr/share/cargo/registry/lapp-0.3.1/Cargo.toml.deps + echo '{"files":{},"package":""}' ++ /usr/bin/cargo2rpm --path Cargo.toml is-bin + '[' 1 -eq 1 ']' + '[' 0 -eq 1 ']' + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + COMPRESS='gzip -9 -n' + COMPRESS_EXT=.gz + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-rpm-in-distinfo + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-det --brp -j8 /builddir/build/BUILD/rust-lapp-0.3.1-build/BUILDROOT Scanned 9 directories and 17 files, processed 0 inodes, 0 modified (0 replaced + 0 rewritten), 0 unsupported format, 0 errors + /usr/bin/linkdupes --brp /builddir/build/BUILD/rust-lapp-0.3.1-build/BUILDROOT/usr Scanned 8 directories and 17 files, considered 17 files, read 0 files, linked 0 files, 0 errors sum of sizes of linked files: 0 bytes Reading /builddir/build/BUILD/rust-lapp-0.3.1-build/SPECPARTS/rpm-debuginfo.specpart Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.ZkKnzN + umask 022 + cd /builddir/build/BUILD/rust-lapp-0.3.1-build + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd lapp-0.3.1 + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' /usr/bin/cargo test -j8 -Z avoid-dev-deps --profile rpm --no-fail-fast warning: no edition set: defaulting to the 2015 edition while the latest is 2024 warning: unnecessary trailing semicolon --> src/lib.rs:332:10 | 332 | }; | ^ help: remove this semicolon | = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default warning: trait objects without an explicit `dyn` are deprecated --> src/flag.rs:16:33 | 16 | pub constraint: Option Result >>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default help: if this is a dyn-compatible trait, use `dyn` | 16 | pub constraint: Option Result >>, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/lib.rs:514:63 | 514 | pub fn get_infile_result(&self, name: &str) -> Result> { | ^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is a dyn-compatible trait, use `dyn` | 514 | pub fn get_infile_result(&self, name: &str) -> Result> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/lib.rs:519:64 | 519 | pub fn get_outfile_result(&self, name: &str) -> Result> { | ^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is a dyn-compatible trait, use `dyn` | 519 | pub fn get_outfile_result(&self, name: &str) -> Result> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/lib.rs:566:49 | 566 | pub fn get_infile(&self, name: &str) -> Box { | ^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is a dyn-compatible trait, use `dyn` | 566 | pub fn get_infile(&self, name: &str) -> Box { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/lib.rs:571:50 | 571 | pub fn get_outfile(&self, name: &str) -> Box { | ^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is a dyn-compatible trait, use `dyn` | 571 | pub fn get_outfile(&self, name: &str) -> Box { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/types.rs:186:43 | 186 | pub fn as_infile(&self) -> Result> { | ^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is a dyn-compatible trait, use `dyn` | 186 | pub fn as_infile(&self) -> Result> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/types.rs:199:44 | 199 | pub fn as_outfile(&self) -> Result> { | ^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: if this is a dyn-compatible trait, use `dyn` | 199 | pub fn as_outfile(&self) -> Result> { | +++ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/types.rs:115:92 | 115 | Err(e) => Ok(Value::Error(format!("can't convert '{}' to integer - {}",s,e.description()))) | ^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/types.rs:120:90 | 120 | Err(e) => Ok(Value::Error(format!("can't convert '{}' to float - {}",s,e.description()))) | ^^^^^^^^^^^ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/types.rs:192:84 | 192 | Err(e) => error(format!("can't open '{}' for reading: {}",s, e.description())) | ^^^^^^^^^^^ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/types.rs:205:84 | 205 | Err(e) => error(format!("can't open '{}' for writing: {}",s, e.description())) | ^^^^^^^^^^^ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/lib.rs:111:25 | 111 | self.quit(e.description()); | ^^^^^^^^^^^ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/lib.rs:156:25 | 156 | self.quit(e.description()); | ^^^^^^^^^^^ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/lib.rs:164:60 | 164 | return error(format!("{}\nat line: '{}'",e.description(),line)); | ^^^^^^^^^^^ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/lib.rs:438:35 | 438 | Err(e) => self.quit(e.description()) | ^^^^^^^^^^^ warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/lib.rs:472:52 | 472 | Err(e) => self.bad_flag(name,e.description()) | ^^^^^^^^^^^ warning: hiding a lifetime that's named elsewhere is confusing --> src/lib.rs:74:34 | 74 | pub fn new(text: &'a str) -> Args { | -- ^^^^ the same lifetime is hidden here | | | the lifetime is named here | = help: the same lifetime is referred to in inconsistent ways, making the signature confusing = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default help: consistently use `'a` | 74 | pub fn new(text: &'a str) -> Args<'a> { | ++++ warning: panic message is not a string literal --> src/lib.rs:101:20 | 101 | panic!(text); | ^^^^ | = note: for more information, see = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 = note: for more information, see = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default help: add a "{}" format string to `Display` the message | 101 | panic!("{}", text); | +++++ warning: hiding a lifetime that's elided elsewhere is confusing --> src/lib.rs:674:22 | 674 | pub fn parse_args(s: &str) -> Args { | ^^^^ ^^^^ the same lifetime is hidden here | | | the lifetime is elided here | = help: the same lifetime is referred to in inconsistent ways, making the signature confusing help: use `'_` for type paths | 674 | pub fn parse_args(s: &str) -> Args<'_> { | ++++ warning: `lapp` (lib) generated 20 warnings (run `cargo fix --lib -p lapp` to apply 10 suggestions) Compiling lapp v0.3.1 (/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1) Running `/usr/bin/rustc --crate-name lapp_gen --edition=2015 src/bin/lapp-gen.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=e9205aa49cccb6e5 -C extra-filename=-5f907bcb385bc3cb --out-dir /builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps -L dependency=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps --extern lapp=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps/liblapp-bd5893a22c7d273b.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name simple_test --edition=2015 examples/simple-test.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=144b0a5a14f1d72f -C extra-filename=-2c6ae80645f04d9e --out-dir /builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/examples -L dependency=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps --extern lapp=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps/liblapp-bd5893a22c7d273b.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name basic --edition=2015 examples/basic.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=046fe907eeac79c5 -C extra-filename=-505ff9cf14886b74 --out-dir /builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/examples -L dependency=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps --extern lapp=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps/liblapp-bd5893a22c7d273b.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name lines --edition=2015 examples/lines.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=b449c551beeaaf57 -C extra-filename=-3f3ba73d7fa2c5f9 --out-dir /builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/examples -L dependency=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps --extern lapp=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps/liblapp-bd5893a22c7d273b.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name range --edition=2015 examples/range.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=ad00cefde983a5c9 -C extra-filename=-c0e7d77a9c7bf140 --out-dir /builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/examples -L dependency=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps --extern lapp=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps/liblapp-bd5893a22c7d273b.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name lapp --edition=2015 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=8411caf6c0ca8cd4 -C extra-filename=-b8f9e1f8663fdac9 --out-dir /builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps -L dependency=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` warning: trait objects without an explicit `dyn` are deprecated --> examples/basic.rs:6:27 | 6 | fn run() -> Result<(),Box> { | ^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default help: if this is a dyn-compatible trait, use `dyn` | 6 | fn run() -> Result<(),Box> { | +++ warning: fields `verbose`, `file`, and `help` are never read --> examples/test.lapp.inc:11:2 | 9 | struct Args { | ---- fields in this struct 10 | lines: i32, 11 | verbose: bool, | ^^^^^^^ 12 | file: String, | ^^^^ 13 | help: bool, | ^^^^ | = note: `Args` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() --> src/lib.rs:789:26 | 789 | r.err().unwrap().description().to_string() | ^^^^^^^^^^^ warning: `lapp` (example "lines") generated 1 warning warning: `lapp` (example "basic") generated 1 warning (run `cargo fix --example "basic" -p lapp` to apply 1 suggestion) warning: `lapp` (lib test) generated 21 warnings (20 duplicates) Finished `rpm` profile [optimized + debuginfo] target(s) in 7.34s Running `/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps/lapp-b8f9e1f8663fdac9` running 7 tests test tests::test_custom ... ok test tests::test_errors_result ... ok test tests::test_simple_array_flag ... ok test tests::test_simple_bool_flags ... ok test tests::test_simple_just_out ... ok test tests::test_simple_multiple_flags ... ok test tests::test_simple_multiple_positional_args ... ok test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running `/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps/lapp_gen-5f907bcb385bc3cb` running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests lapp Running `/usr/bin/rustdoc --edition=2015 --crate-type lib --color auto --crate-name lapp --test src/lib.rs --test-run-directory /builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1 --extern lapp=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps/liblapp-bd5893a22c7d273b.rlib -L dependency=/builddir/build/BUILD/rust-lapp-0.3.1-build/lapp-0.3.1/target/rpm/deps -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' --error-format human` warning: unnecessary trailing semicolon --> src/lib.rs:332:10 | 332 | }; | ^ help: remove this semicolon | = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default warning: 1 warning emitted running 1 test test src/lib.rs - (line 5) ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.60s + RPM_EC=0 ++ jobs -p + exit 0 Processing files: rust-lapp-devel-0.3.1-2.fc45.noarch warning: File listed twice: /usr/share/cargo/registry/lapp-0.3.1/LICENSE.txt warning: File listed twice: /usr/share/cargo/registry/lapp-0.3.1/readme.md Provides: crate(lapp) = 0.3.1 purl(pkg:cargo/lapp@0.3.1) rust-lapp-devel = 0.3.1-2.fc45 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: cargo Processing files: rust-lapp+default-devel-0.3.1-2.fc45.noarch Provides: crate(lapp/default) = 0.3.1 rust-lapp+default-devel = 0.3.1-2.fc45 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: cargo crate(lapp) = 0.3.1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILD/rust-lapp-0.3.1-build/BUILDROOT Wrote: /builddir/build/SRPMS/rust-lapp-0.3.1-2.fc45.src.rpm Wrote: /builddir/build/RPMS/rust-lapp+default-devel-0.3.1-2.fc45.noarch.rpm Wrote: /builddir/build/RPMS/rust-lapp-devel-0.3.1-2.fc45.noarch.rpm RPM build warnings: File listed twice: /usr/share/cargo/registry/lapp-0.3.1/LICENSE.txt File listed twice: /usr/share/cargo/registry/lapp-0.3.1/readme.md Child return code was: 0