Mock Version: 1.3.4 Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/rust.spec'], nspawn_args=[]shell=Falseuid=996env={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/module-rust-toolset-rhel8-8000020190802012158-d8f95439-build-25522-2077/root'gid=135user='mockbuild'timeout=86400logger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/rust.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: i686 Building for target i686 Wrote: /builddir/build/SRPMS/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/rust.spec'], nspawn_args=[]shell=Falseuid=996env={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/module-rust-toolset-rhel8-8000020190802012158-d8f95439-build-25522-2077/root'gid=135user='mockbuild'timeout=86400logger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/rust.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: i686 Building for target i686 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.BlJZtU + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rustc-1.35.0-src + /usr/bin/xz -dc /builddir/build/SOURCES/rustc-1.35.0-src.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd rustc-1.35.0-src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #1 (rust-pr57840-llvm7-debuginfo-variants.patch): + echo 'Patch #1 (rust-pr57840-llvm7-debuginfo-variants.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 -R patching file src/librustc_codegen_llvm/debuginfo/metadata.rs Hunk #1 succeeded at 1238 (offset 74 lines). Patch #2 (0001-Limit-internalization-in-LLVM-8-ThinLTO.patch): + echo 'Patch #2 (0001-Limit-internalization-in-LLVM-8-ThinLTO.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/rustllvm/PassWrapper.cpp Patch #3 (rust-pr61085-fix-ICE-with-incorrect-turbofish.patch): + echo 'Patch #3 (rust-pr61085-fix-ICE-with-incorrect-turbofish.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/librustc_typeck/check/mod.rs patching file src/test/run-pass/issue-60989.rs patching file src/test/compile-fail/issue-60989.rs (renamed from src/test/run-pass/issue-60989.rs) patching file src/librustc_typeck/check/mod.rs patching file src/test/compile-fail/issue-60989.rs patching file src/test/ui/issue-60989.rs patching file src/test/ui/issue-60989.stderr + echo 'Patch #4 (0001-bump-bootstrap-fix-compiletest-wrt.-exclude_should_p.patch):' Patch #4 (0001-bump-bootstrap-fix-compiletest-wrt.-exclude_should_p.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/tools/compiletest/src/main.rs Hunk #1 succeeded at 522 (offset -1 lines). + sed -i.try-py3 -e '/try python2.7/i try /usr/libexec/platform-python "$@"' ./configure + rm -rf src/llvm-project/ + rm -rf src/llvm-emscripten/ + cp -a vendor/backtrace-sys/src/libbacktrace/LICENSE vendor/backtrace-sys/src/libbacktrace/LICENSE-libbacktrace + find vendor -name .cargo-checksum.json -exec sed -i.uncheck -e 's/"files":{[^}]*}/"files":{ }/' '{}' + + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Z7UFs5 + umask 022 + cd /builddir/build/BUILD + cd rustc-1.35.0-src + export RUSTFLAGS=-Clink-arg=-Wl,-z,relro,-z,now + RUSTFLAGS=-Clink-arg=-Wl,-z,relro,-z,now + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=x86-64 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=x86-64 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=x86-64 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=x86-64 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./vendor/lzma-sys/xz-5.2.3/build-aux/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./vendor/lzma-sys/xz-5.2.3/build-aux/config.guess ++ basename ./vendor/lzma-sys/xz-5.2.3/build-aux/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./vendor/lzma-sys/xz-5.2.3/build-aux/config.guess '/usr/lib/rpm/redhat/config.guess' -> './vendor/lzma-sys/xz-5.2.3/build-aux/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./vendor/lzma-sys/xz-5.2.3/build-aux/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./vendor/lzma-sys/xz-5.2.3/build-aux/config.sub ++ basename ./vendor/lzma-sys/xz-5.2.3/build-aux/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./vendor/lzma-sys/xz-5.2.3/build-aux/config.sub '/usr/lib/rpm/redhat/config.sub' -> './vendor/lzma-sys/xz-5.2.3/build-aux/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./vendor/jemalloc-sys/jemalloc/build-aux/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./vendor/jemalloc-sys/jemalloc/build-aux/config.guess ++ basename ./vendor/jemalloc-sys/jemalloc/build-aux/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./vendor/jemalloc-sys/jemalloc/build-aux/config.guess '/usr/lib/rpm/redhat/config.guess' -> './vendor/jemalloc-sys/jemalloc/build-aux/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./vendor/jemalloc-sys/jemalloc/build-aux/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./vendor/jemalloc-sys/jemalloc/build-aux/config.sub ++ basename ./vendor/jemalloc-sys/jemalloc/build-aux/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./vendor/jemalloc-sys/jemalloc/build-aux/config.sub '/usr/lib/rpm/redhat/config.sub' -> './vendor/jemalloc-sys/jemalloc/build-aux/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./vendor/backtrace-sys/src/libbacktrace/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./vendor/backtrace-sys/src/libbacktrace/config.guess ++ basename ./vendor/backtrace-sys/src/libbacktrace/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./vendor/backtrace-sys/src/libbacktrace/config.guess '/usr/lib/rpm/redhat/config.guess' -> './vendor/backtrace-sys/src/libbacktrace/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./vendor/backtrace-sys/src/libbacktrace/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./vendor/backtrace-sys/src/libbacktrace/config.sub ++ basename ./vendor/backtrace-sys/src/libbacktrace/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./vendor/backtrace-sys/src/libbacktrace/config.sub '/usr/lib/rpm/redhat/config.sub' -> './vendor/backtrace-sys/src/libbacktrace/config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./vendor/lzma-sys/xz-5.2.3/build-aux/ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./vendor/backtrace-sys/src/libbacktrace/ltmain.sh + ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-option-checking --libdir=/usr/lib --build=i686-unknown-linux-gnu --host=i686-unknown-linux-gnu --target=i686-unknown-linux-gnu --local-rust-root=/usr --llvm-root=/usr --enable-llvm-link-shared --disable-rpath --enable-debuginfo --enable-debuginfo-only-std --disable-debuginfo-tools --disable-debuginfo-lines --enable-extended --enable-vendor --enable-verbose-tests --set rust.codegen-units-std=1 --release-channel=stable configure: processing command line configure: configure: build.build := i686-unknown-linux-gnu configure: build.host := ['i686-unknown-linux-gnu'] configure: install.prefix := /usr configure: install.bindir := /usr/bin configure: install.sysconfdir := /etc configure: install.datadir := /usr/share configure: install.libdir := /usr/lib configure: install.localstatedir := /var configure: install.mandir := /usr/share/man configure: install.infodir := /usr/share/info configure: build.target := ['i686-unknown-linux-gnu'] configure: build.rustc := /usr/bin/rustc configure: build.cargo := /usr/bin/cargo configure: target.i686-unknown-linux-gnu.llvm-config := /usr/bin/llvm-config configure: llvm.link-shared := True configure: rust.rpath := False configure: rust.debuginfo := True configure: rust.debuginfo-only-std := True configure: rust.debuginfo-tools := False configure: rust.debuginfo-lines := False configure: build.extended := True configure: build.vendor := True configure: rust.verbose-tests := True configure: rust.codegen-units-std := 1 configure: rust.channel := stable configure: build.configure-args := ['--build=i686-redhat-linux-gnu', '--host=i686 ... configure: configure: writing `config.toml` in current directory configure: configure: run `python /builddir/build/BUILD/rustc-1.35.0-src/x.py --help` configure: + /usr/libexec/platform-python ./x.py build Compiling proc-macro2 v0.4.24 Compiling unicode-xid v0.1.0 Compiling ryu v0.2.7 Compiling libc v0.2.51 Compiling serde v1.0.82 Compiling itoa v0.4.3 Compiling cc v1.0.28 Compiling fixedbitset v0.1.9 Compiling cfg-if v0.1.6 Compiling ordermap v0.3.5 Compiling getopts v0.2.17 Compiling lazy_static v0.2.11 Compiling build_helper v0.1.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/build_helper) Compiling petgraph v0.4.13 Compiling num_cpus v1.8.0 Compiling time v0.1.40 Compiling filetime v0.2.4 Compiling quote v0.6.10 Compiling cmake v0.1.33 Compiling syn v0.15.22 Compiling serde_derive v1.0.81 Compiling serde_json v1.0.33 Compiling toml v0.4.10 Compiling bootstrap v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/bootstrap) Finished dev [unoptimized] target(s) in 46.03s Building stage0 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Compiling cc v1.0.28 Compiling libc v0.2.51 Compiling core v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libcore) Compiling unwind v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libunwind) Compiling compiler_builtins v0.1.9 Compiling backtrace-sys v0.1.27 Compiling std v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libstd) Compiling rustc-std-workspace-core v1.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rustc-std-workspace-core) Compiling alloc v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/liballoc) Compiling panic_abort v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libpanic_abort) Compiling rustc-demangle v0.1.10 Compiling panic_unwind v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libpanic_unwind) Finished release [optimized] target(s) in 1m 03s Copying stage0 std from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Compiling term v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libterm) Compiling getopts v0.2.17 Compiling proc_macro v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libproc_macro) Compiling test v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libtest) Finished release [optimized] target(s) in 33.66s Copying stage0 test from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Compiling semver-parser v0.7.0 Compiling libc v0.2.51 Compiling cfg-if v0.1.6 Compiling nodrop v0.1.12 Compiling memoffset v0.2.1 Compiling rand_core v0.3.0 Compiling scopeguard v0.3.3 Compiling lazy_static v1.2.0 Compiling void v1.0.2 Compiling rustc-rayon-core v0.1.2 Compiling stable_deref_trait v1.1.0 Compiling rustc-rayon v0.1.2 Compiling proc-macro2 v0.4.24 Compiling byteorder v1.2.7 Compiling either v1.5.0 Compiling unicode-width v0.1.5 Compiling bitflags v1.0.4 Compiling graphviz v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libgraphviz) Compiling unicode-xid v0.1.0 Compiling cc v1.0.28 Compiling crc32fast v1.1.2 Compiling scoped-tls v1.0.0 Compiling rustc_target v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_target) Compiling syntax v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libsyntax) Compiling lazy_static v0.2.11 Compiling termcolor v1.0.4 Compiling rustc-demangle v0.1.10 Compiling datafrog v2.0.1 Compiling rustc v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc) Compiling remove_dir_all v0.5.1 Compiling rustc_fs_util v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_fs_util) Compiling fmt_macros v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libfmt_macros) Compiling rustc_metadata v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_metadata) Compiling rustc_incremental v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_incremental) Compiling rustc-serialize v0.3.24 Compiling quick-error v1.2.2 Compiling rustc_driver v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_driver) Compiling crossbeam-utils v0.2.2 Compiling log v0.4.6 Compiling arrayvec v0.4.7 Compiling unreachable v1.0.0 Compiling owning_ref v0.3.3 Compiling log_settings v0.1.2 Compiling humantime v1.2.0 Compiling chalk-macros v0.1.0 Compiling smallvec v0.6.7 Compiling itertools v0.8.0 Compiling lock_api v0.1.3 Compiling rand_hc v0.1.0 Compiling rand_xorshift v0.1.0 Compiling rand_isaac v0.1.1 Compiling rustc-hash v1.0.1 Compiling ena v0.13.0 Compiling rustc_cratesio_shim v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_cratesio_shim) Compiling serialize v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libserialize) Compiling crossbeam-epoch v0.3.1 Compiling polonius-engine v0.6.2 Compiling chalk-engine v0.9.0 Compiling rustc_apfloat v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_apfloat) Compiling semver v0.9.0 Compiling crossbeam-deque v0.2.0 Compiling num_cpus v1.8.0 Compiling jobserver v0.1.13 Compiling atty v0.2.11 Compiling memmap v0.6.2 Compiling env_logger v0.5.13 Compiling rustc_version v0.2.3 Compiling rand_pcg v0.1.1 Compiling rand_chacha v0.1.0 Compiling rand v0.6.1 Compiling parking_lot_core v0.4.0 Compiling quote v0.6.10 Compiling syn v0.15.22 Compiling tempfile v3.0.5 Compiling backtrace-sys v0.1.27 Compiling miniz-sys v0.1.11 Compiling rls-span v0.4.1 Compiling parking_lot v0.7.1 Compiling rls-data v0.18.2 Compiling rustc_data_structures v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_data_structures) Compiling flate2 v1.0.6 Compiling backtrace v0.3.11 Compiling arena v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libarena) Compiling syntax_pos v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libsyntax_pos) Compiling rustc_errors v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_errors) Compiling synstructure v0.10.1 Compiling rustc_macros v0.1.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_macros) Compiling syntax_ext v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libsyntax_ext) Compiling rustc_typeck v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_typeck) Compiling rustc_mir v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_mir) Compiling rustc_lint v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_lint) Compiling rustc_traits v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_traits) Compiling rustc_allocator v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_allocator) Compiling rustc_plugin v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_plugin) Compiling rustc_resolve v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_resolve) Compiling rustc_privacy v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_privacy) Compiling rustc_codegen_utils v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_codegen_utils) Compiling rustc_borrowck v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_borrowck) Compiling rustc_passes v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_passes) Compiling rustc_interface v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_interface) Compiling rustc_save_analysis v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_save_analysis) Compiling rustc_codegen_ssa v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_codegen_ssa) Compiling rustc-main v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/rustc) Finished release [optimized] target(s) in 7m 32s Copying stage0 rustc from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Compiling libc v0.2.51 Compiling build_helper v0.1.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/build_helper) Compiling cc v1.0.28 Compiling rustc_codegen_llvm v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_codegen_llvm) Compiling rustc-demangle v0.1.10 Compiling memmap v0.6.2 Compiling num_cpus v1.8.0 Compiling rustc_llvm v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_llvm) Finished release [optimized] target(s) in 1m 00s Assembling stage1 compiler (i686-unknown-linux-gnu) Building stage1 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Compiling cc v1.0.28 Compiling libc v0.2.51 Compiling core v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libcore) Compiling unwind v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libunwind) Compiling compiler_builtins v0.1.9 Compiling backtrace-sys v0.1.27 Compiling std v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libstd) Compiling rustc-std-workspace-core v1.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rustc-std-workspace-core) Compiling alloc v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/liballoc) Compiling rustc-demangle v0.1.10 Compiling panic_abort v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libpanic_abort) Compiling panic_unwind v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libpanic_unwind) Finished release [optimized] target(s) in 1m 11s Copying stage1 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Compiling term v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libterm) Compiling proc_macro v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libproc_macro) Compiling getopts v0.2.17 Compiling test v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libtest) Finished release [optimized] target(s) in 34.03s Copying stage1 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Compiling semver-parser v0.7.0 Compiling libc v0.2.51 Compiling nodrop v0.1.12 Compiling cfg-if v0.1.6 Compiling rand_core v0.3.0 Compiling scopeguard v0.3.3 Compiling memoffset v0.2.1 Compiling lazy_static v1.2.0 Compiling void v1.0.2 Compiling rustc-rayon-core v0.1.2 Compiling stable_deref_trait v1.1.0 Compiling rustc-rayon v0.1.2 Compiling either v1.5.0 Compiling proc-macro2 v0.4.24 Compiling bitflags v1.0.4 Compiling unicode-width v0.1.5 Compiling byteorder v1.2.7 Compiling graphviz v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libgraphviz) Compiling unicode-xid v0.1.0 Compiling cc v1.0.28 Compiling rustc_target v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_target) Compiling crc32fast v1.1.2 Compiling scoped-tls v1.0.0 Compiling termcolor v1.0.4 Compiling syntax v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libsyntax) Compiling lazy_static v0.2.11 Compiling rustc v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc) Compiling remove_dir_all v0.5.1 Compiling datafrog v2.0.1 Compiling rustc-demangle v0.1.10 Compiling rustc_fs_util v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_fs_util) Compiling fmt_macros v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libfmt_macros) Compiling rustc_metadata v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_metadata) Compiling rustc_incremental v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_incremental) Compiling rustc-serialize v0.3.24 Compiling quick-error v1.2.2 Compiling rustc_driver v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_driver) Compiling crossbeam-utils v0.2.2 Compiling log v0.4.6 Compiling arrayvec v0.4.7 Compiling unreachable v1.0.0 Compiling owning_ref v0.3.3 Compiling log_settings v0.1.2 Compiling chalk-macros v0.1.0 Compiling humantime v1.2.0 Compiling smallvec v0.6.7 Compiling itertools v0.8.0 Compiling lock_api v0.1.3 Compiling rand_isaac v0.1.1 Compiling rand_xorshift v0.1.0 Compiling rand_hc v0.1.0 Compiling rustc-hash v1.0.1 Compiling ena v0.13.0 Compiling rustc_cratesio_shim v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_cratesio_shim) Compiling serialize v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libserialize) Compiling crossbeam-epoch v0.3.1 Compiling polonius-engine v0.6.2 Compiling chalk-engine v0.9.0 Compiling rustc_apfloat v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_apfloat) Compiling semver v0.9.0 Compiling crossbeam-deque v0.2.0 Compiling rustc_version v0.2.3 Compiling num_cpus v1.8.0 Compiling jobserver v0.1.13 Compiling atty v0.2.11 Compiling memmap v0.6.2 Compiling env_logger v0.5.13 Compiling rand_pcg v0.1.1 Compiling rand_chacha v0.1.0 Compiling rand v0.6.1 Compiling parking_lot_core v0.4.0 Compiling quote v0.6.10 Compiling syn v0.15.22 Compiling miniz-sys v0.1.11 Compiling backtrace-sys v0.1.27 Compiling tempfile v3.0.5 Compiling rls-span v0.4.1 Compiling parking_lot v0.7.1 Compiling rls-data v0.18.2 Compiling rustc_data_structures v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_data_structures) Compiling flate2 v1.0.6 Compiling backtrace v0.3.11 Compiling arena v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libarena) Compiling syntax_pos v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libsyntax_pos) Compiling rustc_errors v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_errors) Compiling synstructure v0.10.1 Compiling rustc_macros v0.1.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_macros) Compiling syntax_ext v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libsyntax_ext) Compiling rustc_mir v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_mir) Compiling rustc_typeck v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_typeck) Compiling rustc_lint v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_lint) Compiling rustc_allocator v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_allocator) Compiling rustc_traits v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_traits) Compiling rustc_resolve v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_resolve) Compiling rustc_plugin v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_plugin) Compiling rustc_privacy v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_privacy) Compiling rustc_borrowck v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_borrowck) Compiling rustc_passes v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_passes) Compiling rustc_codegen_utils v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_codegen_utils) Compiling rustc_interface v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_interface) Compiling rustc_save_analysis v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_save_analysis) Compiling rustc_codegen_ssa v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_codegen_ssa) Compiling rustc-main v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/rustc) Finished release [optimized] target(s) in 7m 40s Copying stage1 rustc from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Compiling libc v0.2.51 Compiling cc v1.0.28 Compiling build_helper v0.1.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/build_helper) Compiling rustc_codegen_llvm v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_codegen_llvm) Compiling rustc-demangle v0.1.10 Compiling memmap v0.6.2 Compiling num_cpus v1.8.0 Compiling rustc_llvm v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustc_llvm) Finished release [optimized] target(s) in 1m 01s Assembling stage2 compiler (i686-unknown-linux-gnu) Uplifting stage1 std (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Uplifting stage1 test (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Uplifting stage1 rustc (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 rustc from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage2 tool cargo (i686-unknown-linux-gnu) Compiling proc-macro2 v0.4.24 Compiling unicode-xid v0.1.0 Compiling serde v1.0.82 Compiling semver-parser v0.7.0 Compiling libc v0.2.51 Compiling cc v1.0.28 Compiling pkg-config v0.3.14 Compiling version_check v0.1.5 Compiling rand_core v0.3.0 Compiling void v1.0.2 Compiling cfg-if v0.1.6 Compiling matches v0.1.8 Compiling stable_deref_trait v1.1.0 Compiling ucd-util v0.1.3 Compiling unicode-normalization v0.1.7 Compiling lazy_static v1.2.0 Compiling failure_derive v0.1.5 Compiling regex v1.1.0 Compiling scopeguard v0.3.3 Compiling ryu v0.2.7 Compiling nodrop v0.1.12 Compiling rustc-demangle v0.1.10 Compiling byteorder v1.2.7 Compiling percent-encoding v1.0.1 Compiling typenum v1.10.0 Compiling memoffset v0.2.1 Compiling crc32fast v1.1.2 Compiling foreign-types-shared v0.1.1 Compiling utf8-ranges v1.0.2 Compiling openssl v0.10.16 Compiling same-file v1.0.4 Compiling unicode-width v0.1.5 Compiling itoa v0.4.3 Compiling openssl-probe v0.1.2 Compiling fnv v1.0.6 Compiling quick-error v1.2.2 Compiling bitflags v1.0.4 Compiling remove_dir_all v0.5.1 Compiling hex v0.3.2 Compiling termcolor v1.0.4 Compiling strsim v0.7.0 Compiling ansi_term v0.11.0 Compiling vec_map v0.8.1 Compiling home v0.3.3 Compiling bytesize v1.0.0 Compiling shell-escape v0.1.4 Compiling lazycell v1.2.1 Compiling glob v0.3.0 Compiling crossbeam-utils v0.6.2 Compiling log v0.4.6 Compiling unicode-bidi v0.3.4 Compiling foreign-types v0.3.2 Compiling unreachable v1.0.0 Compiling owning_ref v0.3.3 Compiling arrayvec v0.4.7 Compiling thread_local v0.3.6 Compiling humantime v1.2.0 Compiling textwrap v0.10.0 Compiling walkdir v2.2.7 Compiling smallvec v0.6.7 Compiling rand_xorshift v0.1.0 Compiling rand_hc v0.1.0 Compiling rand_isaac v0.1.1 Compiling regex-syntax v0.6.4 Compiling lock_api v0.1.3 Compiling memchr v2.1.1 Compiling crossbeam-epoch v0.7.0 Compiling iovec v0.1.2 Compiling socket2 v0.3.8 Compiling filetime v0.2.4 Compiling atty v0.2.11 Compiling fs2 v0.4.3 Compiling num_cpus v1.8.0 Compiling jobserver v0.1.13 Compiling clap v2.32.0 Compiling bytes v0.4.11 Compiling tar v0.4.20 Compiling aho-corasick v0.6.9 Compiling http v0.1.16 Compiling quote v0.6.10 Compiling libnghttp2-sys v0.1.1 Compiling openssl-sys v0.9.40 Compiling libz-sys v1.0.25 Compiling curl-sys v0.4.15 Compiling backtrace-sys v0.1.27 Compiling libssh2-sys v0.2.11 Compiling libgit2-sys v0.7.11 Compiling miniz-sys v0.1.11 Compiling syn v0.15.22 Compiling idna v0.1.5 Compiling flate2 v1.0.6 Compiling backtrace v0.3.11 Compiling curl v0.4.19 Compiling crypto-hash v0.3.1 Compiling serde_derive v1.0.81 Compiling synstructure v0.10.1 Compiling globset v0.4.2 Compiling env_logger v0.6.0 Compiling failure v0.1.5 Compiling opener v0.3.2 Compiling url v1.7.2 Compiling semver v0.9.0 Compiling serde_json v1.0.33 Compiling toml v0.5.0 Compiling serde_ignored v0.0.4 Compiling url_serde v0.2.0 Compiling rustc_version v0.2.3 Compiling rand_pcg v0.1.1 Compiling rand_chacha v0.1.0 Compiling rand v0.6.1 Compiling parking_lot_core v0.4.0 Compiling im-rc v12.3.0 Compiling rustfix v0.4.4 Compiling crates-io v0.24.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/cargo/src/crates-io) Compiling tempfile v3.0.5 Compiling parking_lot v0.7.1 Compiling crossbeam-channel v0.3.4 Compiling rustc-workspace-hack v1.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rustc-workspace-hack) Compiling ignore v0.4.6 Compiling git2 v0.8.0 Compiling git2-curl v0.9.0 Compiling cargo v0.36.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/cargo) Finished release [optimized] target(s) in 2m 24s Building stage2 tool clippy-driver (i686-unknown-linux-gnu) Compiling rustc-demangle v0.1.10 Compiling matches v0.1.8 Compiling cfg-if v0.1.6 Compiling unicode-normalization v0.1.7 Compiling pulldown-cmark v0.2.0 Compiling itoa v0.4.3 Compiling void v1.0.2 Compiling lazy_static v1.2.0 Compiling percent-encoding v1.0.1 Compiling either v1.5.0 Compiling ucd-util v0.1.3 Compiling bitflags v1.0.4 Compiling rustc_tools_util v0.1.1 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/clippy/rustc_tools_util) Compiling getopts v0.2.17 Compiling utf8-ranges v1.0.2 Compiling quine-mc_cluskey v0.2.4 Compiling if_chain v0.1.3 Compiling libc v0.2.51 Compiling ryu v0.2.7 Compiling regex v1.1.0 Compiling backtrace-sys v0.1.27 Compiling memchr v2.1.1 Compiling error-chain v0.12.0 Compiling toml v0.4.10 Compiling unicode-bidi v0.3.4 Compiling unreachable v1.0.0 Compiling thread_local v0.3.6 Compiling itertools v0.8.0 Compiling smallvec v0.6.7 Compiling regex-syntax v0.6.4 Compiling cargo_metadata v0.7.1 Compiling serde_json v1.0.33 Compiling clippy v0.0.212 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/clippy) Compiling aho-corasick v0.6.9 Compiling backtrace v0.3.11 Compiling idna v0.1.5 Compiling clippy_lints v0.0.212 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/clippy/clippy_lints) Compiling url v1.7.2 Finished release [optimized] target(s) in 1m 47s Building stage2 tool rls (i686-unknown-linux-gnu) Compiling rustc-rayon-core v0.1.2 Compiling rustc-rayon v0.1.2 Compiling rustc-ap-graphviz v407.0.0 Compiling scoped-tls v1.0.0 Compiling rustc-ap-rustc_target v407.0.0 Compiling num-traits v0.2.6 Compiling num-derive v0.2.3 Compiling rustc-ap-syntax v407.0.0 Compiling rustc-serialize v0.3.24 Compiling rayon-core v1.4.0 Compiling rustfmt-nightly v1.2.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rustfmt) Compiling rustc_tools_util v0.1.1 Compiling unicode-segmentation v1.2.1 Compiling bytecount v0.5.1 Compiling unicode_categories v0.1.1 Compiling json v0.11.13 Compiling diff v0.1.11 Compiling futures v0.1.21 Compiling rls-rustc v0.6.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rls/rls-rustc) Compiling ordslice v0.3.0 Compiling rls-blacklist v0.1.3 Compiling crossbeam-utils v0.2.2 Compiling rustc-hash v1.0.1 Compiling term v0.5.1 Compiling fst v0.3.0 Compiling itertools v0.7.8 Compiling rustc-ap-rustc_cratesio_shim v407.0.0 Compiling ena v0.11.0 Compiling rustc-ap-serialize v407.0.0 Compiling rand v0.4.3 Compiling dirs v1.0.4 Compiling derive_more v0.13.0 Compiling derive-new v0.5.6 Compiling crossbeam-epoch v0.3.1 Compiling rls v1.35.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rls) Compiling heck v0.3.0 Compiling crossbeam-deque v0.2.0 Compiling rayon v1.0.1 Compiling jsonrpc-core v10.0.1 Compiling rustc-ap-rustc_data_structures v407.0.0 Compiling rls-span v0.4.1 Compiling rls-data v0.18.2 Compiling rls-vfs v0.7.0 Compiling lsp-types v0.55.4 Compiling rustc-ap-arena v407.0.0 Compiling rustc-ap-syntax_pos v407.0.0 Compiling rls-analysis v0.16.12 Compiling rustc-ap-rustc_errors v407.0.0 Compiling racer v2.1.21 Finished release [optimized] target(s) in 2m 22s Building rustdoc for stage2 (i686-unknown-linux-gnu) Compiling semver-parser v0.7.0 Compiling libc v0.2.51 Compiling void v1.0.2 Compiling rand_core v0.3.0 Compiling stable_deref_trait v1.1.0 Compiling scopeguard v0.3.3 Compiling pulldown-cmark v0.1.2 Compiling remove_dir_all v0.5.1 Compiling cfg-if v0.1.6 Compiling bitflags v0.9.1 Compiling macro-utils v0.1.2 Compiling minifier v0.0.29 Compiling unreachable v1.0.0 Compiling owning_ref v0.3.3 Compiling smallvec v0.6.7 Compiling lock_api v0.1.3 Compiling rand_isaac v0.1.1 Compiling rand_xorshift v0.1.0 Compiling rand_hc v0.1.0 Compiling semver v0.9.0 Compiling rustc_version v0.2.3 Compiling rand_chacha v0.1.0 Compiling rand_pcg v0.1.1 Compiling rand v0.6.1 Compiling parking_lot_core v0.4.0 Compiling tempfile v3.0.5 Compiling parking_lot v0.7.1 Compiling rustdoc v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustdoc) Compiling rustdoc-tool v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rustdoc) Finished release [optimized] target(s) in 1m 21s Building stage2 tool rustfmt (i686-unknown-linux-gnu) Compiling rustfmt-nightly v1.2.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rustfmt) Finished release [optimized] target(s) in 6.25s Building stage2 tool miri (i686-unknown-linux-gnu) Compiling num-traits v0.2.6 Compiling num-integer v0.1.39 Compiling time v0.1.40 Compiling directories v1.0.2 Compiling failure v0.1.5 Compiling rustc_version v0.2.3 Compiling cargo_metadata v0.6.2 Compiling chrono v0.4.6 Compiling vergen v3.0.4 Compiling miri v0.1.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/miri) Finished release [optimized] target(s) in 50.24s Build completed successfully in 0:30:17 + /usr/libexec/platform-python ./x.py doc Finished dev [unoptimized] target(s) in 0.25s Building stage0 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Copying stage0 std from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.23s Copying stage0 test from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.28s Copying stage0 rustc from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Finished release [optimized] target(s) in 0.23s Assembling stage1 compiler (i686-unknown-linux-gnu) Building stage1 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Copying stage1 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.23s Copying stage1 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.28s Copying stage1 rustc from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Finished release [optimized] target(s) in 0.23s Assembling stage2 compiler (i686-unknown-linux-gnu) Uplifting stage1 std (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Generating unstable book md files (i686-unknown-linux-gnu) Building stage0 tool unstable-book-gen (i686-unknown-linux-gnu) Compiling proc-macro2 v0.4.24 Compiling unicode-xid v0.1.0 Compiling serde v1.0.82 Compiling ryu v0.2.7 Compiling itoa v0.4.3 Compiling num-traits v0.2.6 Compiling quote v0.6.10 Compiling syn v0.15.22 Compiling serde_json v1.0.33 Compiling serde_derive v1.0.81 Compiling tidy v0.1.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/tidy) Compiling unstable-book-gen v0.1.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/unstable-book-gen) Finished release [optimized] target(s) in 39.09s Building stage0 tool rustbook (i686-unknown-linux-gnu) Compiling libc v0.2.51 Compiling siphasher v0.2.2 Compiling semver-parser v0.7.0 Compiling string_cache_shared v0.3.0 Compiling cc v1.0.28 Compiling void v1.0.2 Compiling itoa v0.4.3 Compiling version_check v0.1.5 Compiling ucd-trie v0.1.1 Compiling mac v0.1.1 Compiling num-traits v0.2.6 Compiling cfg-if v0.1.6 Compiling utf-8 v0.7.2 Compiling maplit v1.0.1 Compiling matches v0.1.8 Compiling lazy_static v1.2.0 Compiling precomputed-hash v0.1.1 Compiling rustc-demangle v0.1.10 Compiling unicode-xid v0.0.4 Compiling num-integer v0.1.39 Compiling regex v0.2.11 Compiling ucd-util v0.1.3 Compiling unicode-normalization v0.1.7 Compiling unicode-segmentation v1.2.1 Compiling rand_core v0.3.0 Compiling quote v0.3.15 Compiling regex v1.1.0 Compiling unicode-width v0.1.5 Compiling utf8-ranges v1.0.2 Compiling same-file v1.0.4 Compiling quick-error v1.2.2 Compiling pulldown-cmark v0.1.2 Compiling pest v1.0.6 Compiling percent-encoding v1.0.1 Compiling is-match v0.1.0 Compiling either v1.5.0 Compiling bitflags v0.9.1 Compiling termcolor v1.0.4 Compiling vec_map v0.8.1 Compiling strum v0.11.0 Compiling remove_dir_all v0.5.1 Compiling bitflags v1.0.4 Compiling strsim v0.7.0 Compiling ansi_term v0.11.0 Compiling getopts v0.2.17 Compiling open v1.2.1 Compiling shlex v0.1.1 Compiling ryu v0.2.7 Compiling serde v1.0.82 Compiling log v0.4.6 Compiling unicode-bidi v0.3.4 Compiling unreachable v1.0.0 Compiling thread_local v0.3.6 Compiling textwrap v0.10.0 Compiling humantime v1.2.0 Compiling synom v0.11.3 Compiling itertools v0.7.8 Compiling walkdir v2.2.7 Compiling phf_shared v0.7.22 Compiling regex-syntax v0.6.4 Compiling regex-syntax v0.5.6 Compiling rand_isaac v0.1.1 Compiling rand_xorshift v0.1.0 Compiling rand_hc v0.1.0 Compiling heck v0.3.0 Compiling toml v0.4.10 Compiling syn v0.15.22 Compiling semver v0.9.0 Compiling memchr v2.1.1 Compiling new_debug_unreachable v1.0.1 Compiling pest v2.1.0 Compiling phf v0.7.22 Compiling syn v0.11.11 Compiling futf v0.1.4 Compiling atty v0.2.11 Compiling time v0.1.40 Compiling tendril v0.4.0 Compiling rand v0.4.3 Compiling rustc_version v0.2.3 Compiling clap v2.32.0 Compiling aho-corasick v0.6.9 Compiling rand_chacha v0.1.0 Compiling rand_pcg v0.1.1 Compiling rand v0.6.1 Compiling phf_generator v0.7.22 Compiling string_cache_codegen v0.4.2 Compiling phf_codegen v0.7.22 Compiling pest_meta v2.1.0 Compiling chrono v0.4.6 Compiling string_cache v0.7.3 Compiling pest_derive v1.0.8 Compiling tempfile v3.0.5 Compiling backtrace-sys v0.1.27 Compiling idna v0.1.5 Compiling backtrace v0.3.11 Compiling error-chain v0.11.0 Compiling error-chain v0.12.0 Compiling mdbook v0.1.7 Compiling serde_json v1.0.33 Compiling toml-query v0.7.0 Compiling env_logger v0.5.13 Compiling handlebars v0.32.4 Compiling toml-query v0.6.0 Compiling serde_derive v1.0.81 Compiling html5ever v0.22.5 Compiling pest_generator v2.1.0 Compiling strum_macros v0.11.0 Compiling url v1.7.2 Compiling pest_derive v2.1.0 Compiling handlebars v1.1.0 Compiling markup5ever v0.7.2 Compiling elasticlunr-rs v2.3.4 Compiling ammonia v1.1.0 Compiling mdbook v0.2.3 Compiling rustbook v0.1.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rustbook) Finished release [optimized] target(s) in 1m 36s Rustbook (i686-unknown-linux-gnu) - unstable-book Rustbook (i686-unknown-linux-gnu) - book Rustbook (i686-unknown-linux-gnu) - book/first-edition Rustbook (i686-unknown-linux-gnu) - book/second-edition Rustbook (i686-unknown-linux-gnu) - book/2018-edition Documenting standalone (i686-unknown-linux-gnu) Building rustdoc for stage2 (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Documenting book redirect pages (i686-unknown-linux-gnu) Documenting stage2 std (i686-unknown-linux-gnu) Building rustdoc for stage1 (i686-unknown-linux-gnu) Compiling semver-parser v0.7.0 Compiling libc v0.2.51 Compiling void v1.0.2 Compiling rand_core v0.3.0 Compiling stable_deref_trait v1.1.0 Compiling scopeguard v0.3.3 Compiling pulldown-cmark v0.1.2 Compiling cfg-if v0.1.6 Compiling macro-utils v0.1.2 Compiling bitflags v0.9.1 Compiling remove_dir_all v0.5.1 Compiling minifier v0.0.29 Compiling owning_ref v0.3.3 Compiling unreachable v1.0.0 Compiling smallvec v0.6.7 Compiling lock_api v0.1.3 Compiling rand_hc v0.1.0 Compiling rand_isaac v0.1.1 Compiling rand_xorshift v0.1.0 Compiling semver v0.9.0 Compiling rustc_version v0.2.3 Compiling rand_chacha v0.1.0 Compiling rand_pcg v0.1.1 Compiling rand v0.6.1 Compiling parking_lot_core v0.4.0 Compiling tempfile v3.0.5 Compiling parking_lot v0.7.1 Compiling rustdoc v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustdoc) Compiling rustdoc-tool v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rustdoc) Finished release [optimized] target(s) in 1m 22s Checking core v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libcore) Checking rustc-std-workspace-core v1.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rustc-std-workspace-core) Checking compiler_builtins v0.1.9 Documenting alloc v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/liballoc) warning: `[Global]` cannot be resolved, ignoring it... --> src/liballoc/boxed.rs:7:56 | 7 | //! For non-zero-sized values, a [`Box`] will use the [`Global`] allocator for | ^^^^^^^^ cannot be resolved, ignoring | note: lint level defined here --> src/liballoc/lib.rs:68:9 | 68| #![warn(intra_doc_link_resolution_failure)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]` warning: `[Global]` cannot be resolved, ignoring it... --> src/liballoc/boxed.rs:9:37 | 9 | //! raw pointer allocated with the [`Global`] allocator, given that the | ^^^^^^^^ cannot be resolved, ignoring | = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]` warning: `[Layout]` cannot be resolved, ignoring it... --> src/liballoc/boxed.rs:10:6 | 10 | //! [`Layout`] used with the allocator is correct for the type. More precisely, | ^^^^^^^^ cannot be resolved, ignoring | = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]` warning: `[Global]` cannot be resolved, ignoring it... --> src/liballoc/boxed.rs:11:57 | 11 | //! a `value: *mut T` that has been allocated with the [`Global`] allocator | ^^^^^^^^ cannot be resolved, ignoring | = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]` warning: `[Global]` cannot be resolved, ignoring it... --> src/liballoc/boxed.rs:15:6 | 15 | //! [`Global`] allocator with `Layout::for_value(&*value)`. | ^^^^^^^^ cannot be resolved, ignoring | = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]` Finished release [optimized] target(s) in 28.83s Documenting core v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libcore) Finished release [optimized] target(s) in 18.52s Checking libc v0.2.51 Compiling std v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libstd) Checking alloc v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/liballoc) Checking rustc-demangle v0.1.10 Checking unwind v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libunwind) Checking panic_abort v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libpanic_abort) Checking backtrace-sys v0.1.27 Checking panic_unwind v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libpanic_unwind) Documenting std v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libstd) Finished release [optimized] target(s) in 19.25s Documenting stage2 test (i686-unknown-linux-gnu) Checking term v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libterm) Checking getopts v0.2.17 Checking proc_macro v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libproc_macro) Documenting test v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libtest) Finished release [optimized] target(s) in 5.58s Documenting stage2 whitelisted compiler (i686-unknown-linux-gnu) Documenting proc_macro v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/libproc_macro) Finished release [optimized] target(s) in 3.13s Documenting stage2 compiler (i686-unknown-linux-gnu) skipping - compiler/librustdoc docs disabled Documenting stage2 rustdoc (i686-unknown-linux-gnu) skipping - compiler/librustdoc docs disabled Documenting error index (i686-unknown-linux-gnu) Uplifting stage1 test (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Uplifting stage1 rustc (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 rustc from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage2 tool error_index_generator (i686-unknown-linux-gnu) Compiling scopeguard v0.3.3 Compiling pulldown-cmark v0.1.2 Compiling bitflags v0.9.1 Compiling macro-utils v0.1.2 Compiling semver v0.9.0 Compiling smallvec v0.6.7 Compiling minifier v0.0.29 Compiling lock_api v0.1.3 Compiling rustc_version v0.2.3 Compiling rand_chacha v0.1.0 Compiling rand_pcg v0.1.1 Compiling rand v0.6.1 Compiling parking_lot_core v0.4.0 Compiling tempfile v3.0.5 Compiling parking_lot v0.7.1 Compiling rustdoc v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/librustdoc) Compiling error_index_generator v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/error_index_generator) Finished release [optimized] target(s) in 1m 07s Rustbook (i686-unknown-linux-gnu) - nomicon Rustbook (i686-unknown-linux-gnu) - reference Rustbook (i686-unknown-linux-gnu) - rustdoc Rustbook (i686-unknown-linux-gnu) - rust-by-example Rustbook (i686-unknown-linux-gnu) - rustc Cargo Book (i686-unknown-linux-gnu) - cargo Rustbook (i686-unknown-linux-gnu) - embedded-book Rustbook (i686-unknown-linux-gnu) - edition-guide Build completed successfully in 0:06:13 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.smLJ19 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386 ++ dirname /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386 + cd rustc-1.35.0-src + export RUSTFLAGS=-Clink-arg=-Wl,-z,relro,-z,now + RUSTFLAGS=-Clink-arg=-Wl,-z,relro,-z,now + DESTDIR=/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386 + /usr/libexec/platform-python ./x.py install Finished dev [unoptimized] target(s) in 0.24s Dist docs (i686-unknown-linux-gnu) Building stage0 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Copying stage0 std from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.23s Copying stage0 test from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.28s Copying stage0 rustc from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Finished release [optimized] target(s) in 0.23s Assembling stage1 compiler (i686-unknown-linux-gnu) Building stage1 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Copying stage1 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.22s Copying stage1 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.28s Copying stage1 rustc from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Finished release [optimized] target(s) in 0.23s Assembling stage2 compiler (i686-unknown-linux-gnu) Uplifting stage1 std (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Generating unstable book md files (i686-unknown-linux-gnu) Building stage0 tool unstable-book-gen (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.23s Building stage0 tool rustbook (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.29s Rustbook (i686-unknown-linux-gnu) - unstable-book Documenting standalone (i686-unknown-linux-gnu) Building rustdoc for stage2 (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Documenting book redirect pages (i686-unknown-linux-gnu) Documenting stage2 std (i686-unknown-linux-gnu) Building rustdoc for stage1 (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Finished release [optimized] target(s) in 0.43s Finished release [optimized] target(s) in 0.44s Finished release [optimized] target(s) in 0.44s Documenting stage2 test (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.42s Documenting stage2 whitelisted compiler (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.43s Documenting stage2 compiler (i686-unknown-linux-gnu) skipping - compiler/librustdoc docs disabled Documenting stage2 rustdoc (i686-unknown-linux-gnu) skipping - compiler/librustdoc docs disabled Documenting error index (i686-unknown-linux-gnu) Uplifting stage1 test (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Uplifting stage1 rustc (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 rustc from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage2 tool error_index_generator (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Cargo Book (i686-unknown-linux-gnu) - cargo Building stage0 tool fabricate (i686-unknown-linux-gnu) Compiling nodrop v0.1.12 Compiling memoffset v0.2.1 Compiling pkg-config v0.3.14 Compiling scopeguard v0.3.3 Compiling crc32fast v1.1.2 Compiling rayon-core v1.4.0 Compiling yaml-rust v0.3.5 Compiling crossbeam-utils v0.2.2 Compiling miniz-sys v0.1.11 Compiling filetime v0.2.4 Compiling num_cpus v1.8.0 Compiling rand v0.4.3 Compiling xattr v0.2.2 Compiling arrayvec v0.4.7 Compiling tar v0.4.20 Compiling crossbeam-epoch v0.3.1 Compiling crossbeam-deque v0.2.0 Compiling flate2 v1.0.6 Compiling lzma-sys v0.1.10 Compiling rayon v1.0.1 Compiling clap v2.32.0 Compiling xz2 v0.1.5 Compiling installer v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rust-installer) warning: use of deprecated item 'std::error::Error::cause': replaced by Error::source, which can support downcasting | ::: <::error_chain::error_chain::error_chain_processing macros>:1:1 | 1 | ( | __- | |__| | || 2 | || ( { } , $ b : tt , $ c : tt , $ d : tt ) types $ content : tt $ ( $ tail : tt 3 | || ) * ) => { 4 | || error_chain_processing ! { ( $ content , $ b , $ c , $ d ) $ ( $ tail ) * } } ... || 12 | || error_chain_processing ! { ( $ a , $ b , $ content , $ d ) $ ( $ tail ) * } } | || --------------------------------------------------------------------------- in this macro invocation (#3) ... || 18 | || impl_error_chain_processed ! { | ____||__- 19 | | || types $ a links $ b foreign_links $ c errors $ d } } ; | | || - - | | ||___________________________________________________|___| | | |____________________________________________________|___in this expansion of `error_chain_processing!` (#2) | |_________________________________________________________| in this expansion of `error_chain_processing!` (#3) | in this macro invocation (#4) --> <::error_chain::error_chain::impl_error_chain_processed macros>:91:40 | 1 | ( types { } $ ( $ rest : tt ) * ) => { | ____- | |____| | ||____| | ||| 2 | ||| impl_error_chain_processed ! { | |||____- 3 | |||| types { Error , ErrorKind , ResultExt , Result ; } $ ( $ rest ) * } } ; ( | ||||______________________________________________________________________- in this macro invocation (#5) 4 | ||| types { ... ||| 7 | / ||| impl_error_chain_processed ! { 8 | | ||| types { $ error_name , $ error_kind_name , $ result_ext_name ; } $ ( $ rest ) 9 | | ||| * } /// Convenient wrapper around `std::Result`. | |_|||______- in this macro invocation (#6) ... ||| 91 | ||| ( ref foreign_err ) => { foreign_err . cause ( ) } ) * _ => None } } } } } | ||| ^^^^^ ... ||| 154 | ||| move || { $ crate :: ChainedError :: from_kind ( callback ( ) . into ( ) ) } 155 | ||| ) } } } ; | ||| - | |||____________| | ||_____________in this expansion of `impl_error_chain_processed!` (#4) | |______________in this expansion of `impl_error_chain_processed!` (#5) | in this expansion of `impl_error_chain_processed!` (#6) | ::: <::error_chain::error_chain::error_chain macros>:1:1 | 1 | / ( $ ( $ block_name : ident { $ ( $ block_content : tt ) * } ) * ) => { 2 | | error_chain_processing ! { | ______|_- 3 | | | ( { } , { } , { } , { } ) $ ( $ block_name { $ ( $ block_content ) * } ) * 4 | | | } } ; | | |_-___- in this expansion of `error_chain!` (#1) | |________| | in this macro invocation (#2) | ::: src/tools/rust-installer/src/lib.rs:21:5 | 21 | / error_chain!{ 22 | | foreign_links { 23 | | Io(::std::io::Error); 24 | | StripPrefix(::std::path::StripPrefixError); 25 | | WalkDir(::walkdir::Error); 26 | | } 27 | | } | |____________- in this macro invocation (#1) | = note: #[warn(deprecated)] on by default warning: use of deprecated item 'std::error::Error::cause': replaced by Error::source, which can support downcasting | ::: <::error_chain::error_chain::error_chain_processing macros>:1:1 | 1 | ( | __- | |__| | || 2 | || ( { } , $ b : tt , $ c : tt , $ d : tt ) types $ content : tt $ ( $ tail : tt 3 | || ) * ) => { 4 | || error_chain_processing ! { ( $ content , $ b , $ c , $ d ) $ ( $ tail ) * } } ... || 12 | || error_chain_processing ! { ( $ a , $ b , $ content , $ d ) $ ( $ tail ) * } } | || --------------------------------------------------------------------------- in this macro invocation (#3) ... || 18 | || impl_error_chain_processed ! { | ____||__- 19 | | || types $ a links $ b foreign_links $ c errors $ d } } ; | | || - - | | ||___________________________________________________|___| | | |____________________________________________________|___in this expansion of `error_chain_processing!` (#2) | |_________________________________________________________| in this expansion of `error_chain_processing!` (#3) | in this macro invocation (#4) --> <::error_chain::error_chain::impl_error_chain_processed macros>:91:40 | 1 | ( types { } $ ( $ rest : tt ) * ) => { | ____- | |____| | ||____| | ||| 2 | ||| impl_error_chain_processed ! { | |||____- 3 | |||| types { Error , ErrorKind , ResultExt , Result ; } $ ( $ rest ) * } } ; ( | ||||______________________________________________________________________- in this macro invocation (#5) 4 | ||| types { ... ||| 7 | / ||| impl_error_chain_processed ! { 8 | | ||| types { $ error_name , $ error_kind_name , $ result_ext_name ; } $ ( $ rest ) 9 | | ||| * } /// Convenient wrapper around `std::Result`. | |_|||______- in this macro invocation (#6) ... ||| 91 | ||| ( ref foreign_err ) => { foreign_err . cause ( ) } ) * _ => None } } } } } | ||| ^^^^^ ... ||| 154 | ||| move || { $ crate :: ChainedError :: from_kind ( callback ( ) . into ( ) ) } 155 | ||| ) } } } ; | ||| - | |||____________| | ||_____________in this expansion of `impl_error_chain_processed!` (#4) | |______________in this expansion of `impl_error_chain_processed!` (#5) | in this expansion of `impl_error_chain_processed!` (#6) | ::: <::error_chain::error_chain::error_chain macros>:1:1 | 1 | / ( $ ( $ block_name : ident { $ ( $ block_content : tt ) * } ) * ) => { 2 | | error_chain_processing ! { | ______|_- 3 | | | ( { } , { } , { } , { } ) $ ( $ block_name { $ ( $ block_content ) * } ) * 4 | | | } } ; | | |_-___- in this expansion of `error_chain!` (#1) | |________| | in this macro invocation (#2) | ::: src/tools/rust-installer/src/lib.rs:21:5 | 21 | / error_chain!{ 22 | | foreign_links { 23 | | Io(::std::io::Error); 24 | | StripPrefix(::std::path::StripPrefixError); 25 | | WalkDir(::walkdir::Error); 26 | | } 27 | | } | |____________- in this macro invocation (#1) Finished release [optimized] target(s) in 22.01s Install docs stage2 (Some("i686-unknown-linux-gnu")) install: creating uninstall script at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/uninstall.sh install: installing component 'rust-docs' Rust documentation is installed. Dist std stage2 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Install std stage2 (Some("i686-unknown-linux-gnu")) install: creating uninstall script at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/uninstall.sh install: installing component 'rust-std-i686-unknown-linux-gnu' std is standing at the ready. Dist cargo stage2 (i686-unknown-linux-gnu) Building stage2 tool cargo (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.29s Install cargo stage2 (Some("i686-unknown-linux-gnu")) install: creating uninstall script at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/uninstall.sh install: installing component 'cargo' Rust is ready to roll. Dist RLS stage2 (i686-unknown-linux-gnu) Building stage2 tool clippy-driver (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.27s Building stage2 tool rls (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.34s Install rls stage2 (Some("i686-unknown-linux-gnu")) install: creating uninstall script at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/uninstall.sh install: installing component 'rls-preview' install: backing up existing file at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE-APACHE install: backing up existing file at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/README.md install: backing up existing file at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE-MIT RLS ready to serve. Dist Rustfmt stage2 (i686-unknown-linux-gnu) Building stage2 tool rustfmt (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.29s Building stage2 tool cargo-fmt (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.28s Install rustfmt stage2 (Some("i686-unknown-linux-gnu")) install: creating uninstall script at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/uninstall.sh install: installing component 'rustfmt-preview' install: backing up existing file at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE-APACHE install: backing up existing file at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/README.md install: backing up existing file at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE-MIT rustfmt ready to fmt. Dist clippy stage2 (i686-unknown-linux-gnu) Building stage2 tool cargo-clippy (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.27s Install clippy stage2 (Some("i686-unknown-linux-gnu")) install: creating uninstall script at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/uninstall.sh install: installing component 'clippy-preview' install: backing up existing file at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE-APACHE install: backing up existing file at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/README.md install: backing up existing file at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE-MIT clippy ready to serve. Dist miri stage2 (i686-unknown-linux-gnu) Building stage2 tool miri (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.26s Building stage2 tool cargo-miri (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.26s Install miri stage2 (Some("i686-unknown-linux-gnu")) install: creating uninstall script at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/uninstall.sh install: installing component 'miri-preview' install: backing up existing file at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE-APACHE install: backing up existing file at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/README.md install: backing up existing file at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE-MIT miri ready to serve. Dist analysis image_src: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage1-std/i686-unknown-linux-gnu/release/deps/save-analysis", dst: "/builddir/build/BUILD/rustc-1.35.0-src/build/tmp/dist/rust-analysis-1.35.0-i686-unknown-linux-gnu-image/lib/rustlib/i686-unknown-linux-gnu/analysis" Install analysis stage2 (Some("i686-unknown-linux-gnu")) install: creating uninstall script at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/uninstall.sh install: installing component 'rust-analysis-i686-unknown-linux-gnu' save analysis saved. Dist src Install src stage2 (None) install: creating uninstall script at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/uninstall.sh install: installing component 'rust-src' Awesome Source. Dist rustc stage2 (i686-unknown-linux-gnu) Install rustc stage2 (Some("i686-unknown-linux-gnu")) install: creating uninstall script at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/uninstall.sh install: installing component 'rustc' install: backing up existing file at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE-APACHE install: backing up existing file at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/README.md install: backing up existing file at /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE-MIT Rust is ready to roll. Build completed successfully in 0:05:19 + find /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib -maxdepth 1 -type f -name '*.so' -exec chmod -v +x '{}' + mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libgraphviz-89f0ed355ce8ca1c.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_macros-a66b9872f2b7490a.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_driver-a93616382a707c76.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_target-dcb2d0867ab12791.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_plugin-fc82009d062015ea.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libserialize-d88ca88a763b050e.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_mir-e1610fbb543355b7.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_errors-096876a0b0709f19.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_typeck-2fbcd401705917d6.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_resolve-e6394410c4b31de1.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_cratesio_shim-5450ba3ba091e8a1.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc-2684a8a7d66319de.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_codegen_ssa-ae1b04adaff1330b.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_passes-9eebf2d07c1ac21b.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_allocator-8f8702c730b8ea4b.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_fs_util-8c07c42d691cad7f.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libterm-c31031be1b451ae2.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libsyntax-76a563c2641575f3.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_data_structures-2d4e221acacfecb4.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_interface-0b6ec00055c4aacb.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_lint-096ac21d14ec81c9.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libsyntax_pos-45213b8742ddf2fa.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_privacy-da2d4b22a0fc8cb5.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libstd-5c450fec7662f1f2.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_incremental-5f598ac5d81fee8e.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_traits-3075759a2bcb3c0d.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libsyntax_ext-24c5f4a2e220ce2b.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_borrowck-bfcfdcc4b931f68b.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libarena-8fc96444c77cd6c0.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_metadata-b91865a0da903b3a.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_codegen_utils-97d7b453effdc809.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libfmt_macros-edfd827aac6baf69.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_save_analysis-d0d9f3113c840878.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) mode of '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libtest-027149a50a7732ce.so' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x) + cd /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib + find ../../../../lib -maxdepth 1 -name '*.so' + read lib + cmp ../../../../lib/libgraphviz-89f0ed355ce8ca1c.so libgraphviz-89f0ed355ce8ca1c.so + ln -v -f -s -t . ../../../../lib/libgraphviz-89f0ed355ce8ca1c.so './libgraphviz-89f0ed355ce8ca1c.so' -> '../../../../lib/libgraphviz-89f0ed355ce8ca1c.so' + read lib + cmp ../../../../lib/librustc_macros-a66b9872f2b7490a.so librustc_macros-a66b9872f2b7490a.so + ln -v -f -s -t . ../../../../lib/librustc_macros-a66b9872f2b7490a.so './librustc_macros-a66b9872f2b7490a.so' -> '../../../../lib/librustc_macros-a66b9872f2b7490a.so' + read lib + cmp ../../../../lib/librustc_driver-a93616382a707c76.so librustc_driver-a93616382a707c76.so + ln -v -f -s -t . ../../../../lib/librustc_driver-a93616382a707c76.so './librustc_driver-a93616382a707c76.so' -> '../../../../lib/librustc_driver-a93616382a707c76.so' + read lib + cmp ../../../../lib/librustc_target-dcb2d0867ab12791.so librustc_target-dcb2d0867ab12791.so + ln -v -f -s -t . ../../../../lib/librustc_target-dcb2d0867ab12791.so './librustc_target-dcb2d0867ab12791.so' -> '../../../../lib/librustc_target-dcb2d0867ab12791.so' + read lib + cmp ../../../../lib/librustc_plugin-fc82009d062015ea.so librustc_plugin-fc82009d062015ea.so + ln -v -f -s -t . ../../../../lib/librustc_plugin-fc82009d062015ea.so './librustc_plugin-fc82009d062015ea.so' -> '../../../../lib/librustc_plugin-fc82009d062015ea.so' + read lib + cmp ../../../../lib/libserialize-d88ca88a763b050e.so libserialize-d88ca88a763b050e.so + ln -v -f -s -t . ../../../../lib/libserialize-d88ca88a763b050e.so './libserialize-d88ca88a763b050e.so' -> '../../../../lib/libserialize-d88ca88a763b050e.so' + read lib + cmp ../../../../lib/librustc_mir-e1610fbb543355b7.so librustc_mir-e1610fbb543355b7.so + ln -v -f -s -t . ../../../../lib/librustc_mir-e1610fbb543355b7.so './librustc_mir-e1610fbb543355b7.so' -> '../../../../lib/librustc_mir-e1610fbb543355b7.so' + read lib + cmp ../../../../lib/librustc_errors-096876a0b0709f19.so librustc_errors-096876a0b0709f19.so + ln -v -f -s -t . ../../../../lib/librustc_errors-096876a0b0709f19.so './librustc_errors-096876a0b0709f19.so' -> '../../../../lib/librustc_errors-096876a0b0709f19.so' + read lib + cmp ../../../../lib/librustc_typeck-2fbcd401705917d6.so librustc_typeck-2fbcd401705917d6.so + ln -v -f -s -t . ../../../../lib/librustc_typeck-2fbcd401705917d6.so './librustc_typeck-2fbcd401705917d6.so' -> '../../../../lib/librustc_typeck-2fbcd401705917d6.so' + read lib + cmp ../../../../lib/librustc_resolve-e6394410c4b31de1.so librustc_resolve-e6394410c4b31de1.so + ln -v -f -s -t . ../../../../lib/librustc_resolve-e6394410c4b31de1.so './librustc_resolve-e6394410c4b31de1.so' -> '../../../../lib/librustc_resolve-e6394410c4b31de1.so' + read lib + cmp ../../../../lib/librustc_cratesio_shim-5450ba3ba091e8a1.so librustc_cratesio_shim-5450ba3ba091e8a1.so + ln -v -f -s -t . ../../../../lib/librustc_cratesio_shim-5450ba3ba091e8a1.so './librustc_cratesio_shim-5450ba3ba091e8a1.so' -> '../../../../lib/librustc_cratesio_shim-5450ba3ba091e8a1.so' + read lib + cmp ../../../../lib/librustc-2684a8a7d66319de.so librustc-2684a8a7d66319de.so + ln -v -f -s -t . ../../../../lib/librustc-2684a8a7d66319de.so './librustc-2684a8a7d66319de.so' -> '../../../../lib/librustc-2684a8a7d66319de.so' + read lib + cmp ../../../../lib/librustc_codegen_ssa-ae1b04adaff1330b.so librustc_codegen_ssa-ae1b04adaff1330b.so + ln -v -f -s -t . ../../../../lib/librustc_codegen_ssa-ae1b04adaff1330b.so './librustc_codegen_ssa-ae1b04adaff1330b.so' -> '../../../../lib/librustc_codegen_ssa-ae1b04adaff1330b.so' + read lib + cmp ../../../../lib/librustc_passes-9eebf2d07c1ac21b.so librustc_passes-9eebf2d07c1ac21b.so + ln -v -f -s -t . ../../../../lib/librustc_passes-9eebf2d07c1ac21b.so './librustc_passes-9eebf2d07c1ac21b.so' -> '../../../../lib/librustc_passes-9eebf2d07c1ac21b.so' + read lib + cmp ../../../../lib/librustc_allocator-8f8702c730b8ea4b.so librustc_allocator-8f8702c730b8ea4b.so + ln -v -f -s -t . ../../../../lib/librustc_allocator-8f8702c730b8ea4b.so './librustc_allocator-8f8702c730b8ea4b.so' -> '../../../../lib/librustc_allocator-8f8702c730b8ea4b.so' + read lib + cmp ../../../../lib/librustc_fs_util-8c07c42d691cad7f.so librustc_fs_util-8c07c42d691cad7f.so + ln -v -f -s -t . ../../../../lib/librustc_fs_util-8c07c42d691cad7f.so './librustc_fs_util-8c07c42d691cad7f.so' -> '../../../../lib/librustc_fs_util-8c07c42d691cad7f.so' + read lib + cmp ../../../../lib/libterm-c31031be1b451ae2.so libterm-c31031be1b451ae2.so + ln -v -f -s -t . ../../../../lib/libterm-c31031be1b451ae2.so './libterm-c31031be1b451ae2.so' -> '../../../../lib/libterm-c31031be1b451ae2.so' + read lib + cmp ../../../../lib/libsyntax-76a563c2641575f3.so libsyntax-76a563c2641575f3.so + ln -v -f -s -t . ../../../../lib/libsyntax-76a563c2641575f3.so './libsyntax-76a563c2641575f3.so' -> '../../../../lib/libsyntax-76a563c2641575f3.so' + read lib + cmp ../../../../lib/librustc_data_structures-2d4e221acacfecb4.so librustc_data_structures-2d4e221acacfecb4.so + ln -v -f -s -t . ../../../../lib/librustc_data_structures-2d4e221acacfecb4.so './librustc_data_structures-2d4e221acacfecb4.so' -> '../../../../lib/librustc_data_structures-2d4e221acacfecb4.so' + read lib + cmp ../../../../lib/librustc_interface-0b6ec00055c4aacb.so librustc_interface-0b6ec00055c4aacb.so + ln -v -f -s -t . ../../../../lib/librustc_interface-0b6ec00055c4aacb.so './librustc_interface-0b6ec00055c4aacb.so' -> '../../../../lib/librustc_interface-0b6ec00055c4aacb.so' + read lib + cmp ../../../../lib/librustc_lint-096ac21d14ec81c9.so librustc_lint-096ac21d14ec81c9.so + ln -v -f -s -t . ../../../../lib/librustc_lint-096ac21d14ec81c9.so './librustc_lint-096ac21d14ec81c9.so' -> '../../../../lib/librustc_lint-096ac21d14ec81c9.so' + read lib + cmp ../../../../lib/libsyntax_pos-45213b8742ddf2fa.so libsyntax_pos-45213b8742ddf2fa.so + ln -v -f -s -t . ../../../../lib/libsyntax_pos-45213b8742ddf2fa.so './libsyntax_pos-45213b8742ddf2fa.so' -> '../../../../lib/libsyntax_pos-45213b8742ddf2fa.so' + read lib + cmp ../../../../lib/librustc_privacy-da2d4b22a0fc8cb5.so librustc_privacy-da2d4b22a0fc8cb5.so + ln -v -f -s -t . ../../../../lib/librustc_privacy-da2d4b22a0fc8cb5.so './librustc_privacy-da2d4b22a0fc8cb5.so' -> '../../../../lib/librustc_privacy-da2d4b22a0fc8cb5.so' + read lib + cmp ../../../../lib/libstd-5c450fec7662f1f2.so libstd-5c450fec7662f1f2.so + ln -v -f -s -t . ../../../../lib/libstd-5c450fec7662f1f2.so './libstd-5c450fec7662f1f2.so' -> '../../../../lib/libstd-5c450fec7662f1f2.so' + read lib + cmp ../../../../lib/librustc_incremental-5f598ac5d81fee8e.so librustc_incremental-5f598ac5d81fee8e.so + ln -v -f -s -t . ../../../../lib/librustc_incremental-5f598ac5d81fee8e.so './librustc_incremental-5f598ac5d81fee8e.so' -> '../../../../lib/librustc_incremental-5f598ac5d81fee8e.so' + read lib + cmp ../../../../lib/librustc_traits-3075759a2bcb3c0d.so librustc_traits-3075759a2bcb3c0d.so + ln -v -f -s -t . ../../../../lib/librustc_traits-3075759a2bcb3c0d.so './librustc_traits-3075759a2bcb3c0d.so' -> '../../../../lib/librustc_traits-3075759a2bcb3c0d.so' + read lib + cmp ../../../../lib/libsyntax_ext-24c5f4a2e220ce2b.so libsyntax_ext-24c5f4a2e220ce2b.so + ln -v -f -s -t . ../../../../lib/libsyntax_ext-24c5f4a2e220ce2b.so './libsyntax_ext-24c5f4a2e220ce2b.so' -> '../../../../lib/libsyntax_ext-24c5f4a2e220ce2b.so' + read lib + cmp ../../../../lib/librustc_borrowck-bfcfdcc4b931f68b.so librustc_borrowck-bfcfdcc4b931f68b.so + ln -v -f -s -t . ../../../../lib/librustc_borrowck-bfcfdcc4b931f68b.so './librustc_borrowck-bfcfdcc4b931f68b.so' -> '../../../../lib/librustc_borrowck-bfcfdcc4b931f68b.so' + read lib + cmp ../../../../lib/libarena-8fc96444c77cd6c0.so libarena-8fc96444c77cd6c0.so + ln -v -f -s -t . ../../../../lib/libarena-8fc96444c77cd6c0.so './libarena-8fc96444c77cd6c0.so' -> '../../../../lib/libarena-8fc96444c77cd6c0.so' + read lib + cmp ../../../../lib/librustc_metadata-b91865a0da903b3a.so librustc_metadata-b91865a0da903b3a.so + ln -v -f -s -t . ../../../../lib/librustc_metadata-b91865a0da903b3a.so './librustc_metadata-b91865a0da903b3a.so' -> '../../../../lib/librustc_metadata-b91865a0da903b3a.so' + read lib + cmp ../../../../lib/librustc_codegen_utils-97d7b453effdc809.so librustc_codegen_utils-97d7b453effdc809.so + ln -v -f -s -t . ../../../../lib/librustc_codegen_utils-97d7b453effdc809.so './librustc_codegen_utils-97d7b453effdc809.so' -> '../../../../lib/librustc_codegen_utils-97d7b453effdc809.so' + read lib + cmp ../../../../lib/libfmt_macros-edfd827aac6baf69.so libfmt_macros-edfd827aac6baf69.so + ln -v -f -s -t . ../../../../lib/libfmt_macros-edfd827aac6baf69.so './libfmt_macros-edfd827aac6baf69.so' -> '../../../../lib/libfmt_macros-edfd827aac6baf69.so' + read lib + cmp ../../../../lib/librustc_save_analysis-d0d9f3113c840878.so librustc_save_analysis-d0d9f3113c840878.so + ln -v -f -s -t . ../../../../lib/librustc_save_analysis-d0d9f3113c840878.so './librustc_save_analysis-d0d9f3113c840878.so' -> '../../../../lib/librustc_save_analysis-d0d9f3113c840878.so' + read lib + cmp ../../../../lib/libtest-027149a50a7732ce.so libtest-027149a50a7732ce.so + ln -v -f -s -t . ../../../../lib/libtest-027149a50a7732ce.so './libtest-027149a50a7732ce.so' -> '../../../../lib/libtest-027149a50a7732ce.so' + read lib + find /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib -maxdepth 1 -type f -exec rm -v '{}' + removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/manifest-miri-preview' removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/manifest-rust-std-i686-unknown-linux-gnu' removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/manifest-rustfmt-preview' removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/manifest-cargo' removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/manifest-rust-analysis-i686-unknown-linux-gnu' removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/manifest-rust-docs' removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/install.log' removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/manifest-rust-src' removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/manifest-rustc' removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/components' removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/uninstall.sh' removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/manifest-rls-preview' removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/manifest-clippy-preview' removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/rust-installer-version' + find /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib -type f -name '*.orig' -exec rm -v '{}' + + find /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/src -type f -name '*.py' -exec rm -v '{}' + removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/src/rust/src/libcore/unicode/unicode.py' removed '/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/src/rust/src/libcore/unicode/printable.py' + rm -f /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/README.md + rm -f /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/COPYRIGHT + rm -f /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE + rm -f /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE-APACHE + rm -f /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE-MIT + rm -f /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE-THIRD-PARTY + rm -f /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE-APACHE.old /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/LICENSE-MIT.old /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/README.md.old + find /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/html -empty -delete + find /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust/html -type f -exec chmod -x '{}' + + mkdir -p /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/cargo/registry + mkdir -p /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/cargo + ln -sT ../rust/html/cargo/ /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/cargo/html + /usr/lib/rpm/find-debuginfo.sh -j40 --strict-build-id -m -i --build-id-seed 1.35.0-2.module_el8.0.0+177+7ed049b5 --unique-debug-suffix -1.35.0-2.module_el8.0.0+177+7ed049b5.i386 --unique-debug-src-base rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 --keep-section .rustc -S debugsourcefiles.list /builddir/build/BUILD/rustc-1.35.0-src extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libgraphviz-89f0ed355ce8ca1c.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_target-dcb2d0867ab12791.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_plugin-fc82009d062015ea.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_driver-a93616382a707c76.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_macros-a66b9872f2b7490a.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libserialize-d88ca88a763b050e.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_mir-e1610fbb543355b7.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_errors-096876a0b0709f19.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc-2684a8a7d66319de.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_resolve-e6394410c4b31de1.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_typeck-2fbcd401705917d6.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_codegen_ssa-ae1b04adaff1330b.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_cratesio_shim-5450ba3ba091e8a1.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_allocator-8f8702c730b8ea4b.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_passes-9eebf2d07c1ac21b.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_fs_util-8c07c42d691cad7f.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libsyntax-76a563c2641575f3.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libterm-c31031be1b451ae2.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_interface-0b6ec00055c4aacb.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_data_structures-2d4e221acacfecb4.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_lint-096ac21d14ec81c9.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_incremental-5f598ac5d81fee8e.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_privacy-da2d4b22a0fc8cb5.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libsyntax_pos-45213b8742ddf2fa.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libarena-8fc96444c77cd6c0.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libstd-5c450fec7662f1f2.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_borrowck-bfcfdcc4b931f68b.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_metadata-b91865a0da903b3a.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_save_analysis-d0d9f3113c840878.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libfmt_macros-edfd827aac6baf69.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_codegen_utils-97d7b453effdc809.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libsyntax_ext-24c5f4a2e220ce2b.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_traits-3075759a2bcb3c0d.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/bin/rustc extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/bin/miri extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/bin/cargo-miri extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libtest-027149a50a7732ce.so extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/bin/rls extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/bin/cargo gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libarena-8fc96444c77cd6c0.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libgraphviz-89f0ed355ce8ca1c.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_allocator-8f8702c730b8ea4b.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/bin/rustc gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libfmt_macros-edfd827aac6baf69.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_fs_util-8c07c42d691cad7f.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_plugin-fc82009d062015ea.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_errors-096876a0b0709f19.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libsyntax_pos-45213b8742ddf2fa.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_data_structures-2d4e221acacfecb4.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_borrowck-bfcfdcc4b931f68b.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_lint-096ac21d14ec81c9.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_resolve-e6394410c4b31de1.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_privacy-da2d4b22a0fc8cb5.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_codegen_utils-97d7b453effdc809.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libsyntax_ext-24c5f4a2e220ce2b.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_codegen_ssa-ae1b04adaff1330b.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_traits-3075759a2bcb3c0d.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_passes-9eebf2d07c1ac21b.so gdb-add-index: [Was there no debuginfo? Was there already an index?] extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/bin/cargo-fmt extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/bin/cargo-clippy gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/libsyntax-76a563c2641575f3.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_metadata-b91865a0da903b3a.so gdb-add-index: [Was there no debuginfo? Was there already an index?] gdb-add-index: No index was created for /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/librustc_typeck-2fbcd401705917d6.so gdb-add-index: [Was there no debuginfo? Was there already an index?] extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/bin/rustdoc extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/bin/clippy-driver extracting debug info from /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/bin/rustfmt /usr/lib/rpm/sepdebugcrcfix: Updated 23 CRC32s, 22 CRC32s did match. cpio: <::alloc::macros::format macros>: Cannot stat: No such file or directory cpio: <::alloc::macros::vec macros>: Cannot stat: No such file or directory cpio: <::bitflags::__bitflags macros>: Cannot stat: No such file or directory cpio: <::bitflags::__impl_bitflags macros>: Cannot stat: No such file or directory cpio: <::core::macros::assert_eq macros>: Cannot stat: No such file or directory cpio: <::core::macros::panic macros>: Cannot stat: No such file or directory cpio: <::core::macros::write macros>: Cannot stat: No such file or directory cpio: <::log::macros::log macros>: Cannot stat: No such file or directory cpio: <::rustc_data_structures::box_region::declare_box_region_type macros>: Cannot stat: No such file or directory cpio: <::rustc_data_structures::indexed_vec::newtype_index macros>: Cannot stat: No such file or directory cpio: <::smallvec::smallvec macros>: Cannot stat: No such file or directory cpio: <::std::macros::eprintln macros>: Cannot stat: No such file or directory cpio: <::std::macros::panic macros>: Cannot stat: No such file or directory cpio: <::std::thread::local::__thread_local_inner macros>: Cannot stat: No such file or directory cpio: <::syntax::visit::walk_list macros>: Cannot stat: No such file or directory cpio: vendor/getopts/<::core::macros::assert_eq macros>: Cannot stat: No such file or directory cpio: vendor/getopts/<::core::macros::panic macros>: Cannot stat: No such file or directory cpio: vendor/minifier/<::core::macros::assert_eq macros>: Cannot stat: No such file or directory cpio: vendor/minifier/<::core::macros::panic macros>: Cannot stat: No such file or directory cpio: vendor/parking_lot/<::std::thread::local::__thread_local_inner macros>: Cannot stat: No such file or directory cpio: vendor/parking_lot_core/<::core::macros::panic macros>: Cannot stat: No such file or directory cpio: vendor/parking_lot_core/<::std::macros::panic macros>: Cannot stat: No such file or directory cpio: vendor/parking_lot_core/<::std::thread::local::__thread_local_inner macros>: Cannot stat: No such file or directory cpio: vendor/pulldown-cmark-0.1.2/<::bitflags::__impl_bitflags macros>: Cannot stat: No such file or directory cpio: vendor/pulldown-cmark-0.1.2/<::bitflags::bitflags macros>: Cannot stat: No such file or directory cpio: vendor/pulldown-cmark-0.1.2/<::core::macros::assert_eq macros>: Cannot stat: No such file or directory cpio: vendor/pulldown-cmark-0.1.2/<::core::macros::panic macros>: Cannot stat: No such file or directory cpio: vendor/rand/<::core::macros::assert_eq macros>: Cannot stat: No such file or directory cpio: vendor/rand/<::std::thread::local::__thread_local_inner macros>: Cannot stat: No such file or directory cpio: vendor/rand_chacha/<::core::macros::assert_eq macros>: Cannot stat: No such file or directory cpio: vendor/rand_chacha/<::std::macros::panic macros>: Cannot stat: No such file or directory cpio: vendor/rand_pcg/<::core::macros::assert_eq macros>: Cannot stat: No such file or directory cpio: vendor/rand_xorshift/<::core::macros::assert_eq macros>: Cannot stat: No such file or directory 32738 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace_sys-82017dddea4f8188.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace_sys-82017dddea4f8188.rlib(backtrace_sys-82017dddea4f8188.backtrace_sys.d20wnj03-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace_sys-6783af35cfb640dc.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace_sys-6783af35cfb640dc.rlib(backtrace_sys-6783af35cfb640dc.backtrace_sys.bbs0qfbl-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_chacha-2399fd839e458d6a.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_chacha-2399fd839e458d6a.rlib(rand_chacha-2399fd839e458d6a.rand_chacha.7788lm7w-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_chacha-2399fd839e458d6a.rlib(rand_chacha-2399fd839e458d6a.rand_chacha.7788lm7w-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_chacha-2399fd839e458d6a.rlib(rand_chacha-2399fd839e458d6a.rand_chacha.7788lm7w-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_chacha-2399fd839e458d6a.rlib(rand_chacha-2399fd839e458d6a.rand_chacha.7788lm7w-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_chacha-2399fd839e458d6a.rlib(rand_chacha-2399fd839e458d6a.rand_chacha.7788lm7w-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_chacha-2399fd839e458d6a.rlib(rand_chacha-2399fd839e458d6a.rand_chacha.7788lm7w-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_chacha-2399fd839e458d6a.rlib(rand_chacha-2399fd839e458d6a.rand_chacha.7788lm7w-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_chacha-2399fd839e458d6a.rlib(rand_chacha-2399fd839e458d6a.rand_chacha.7788lm7w-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_chacha-2399fd839e458d6a.rlib(rand_chacha-2399fd839e458d6a.rand_chacha.7788lm7w-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_chacha-2399fd839e458d6a.rlib(rand_chacha-2399fd839e458d6a.rand_chacha.7788lm7w-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libunwind-532468a5f8a08902.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libunwind-532468a5f8a08902.rlib(unwind-532468a5f8a08902.unwind.d49kavkm-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libowning_ref-e557adc7bdbbfa73.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libowning_ref-e557adc7bdbbfa73.rlib(owning_ref-e557adc7bdbbfa73.owning_ref.c91jcb97-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog-f506caf9a8383ba8.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog-f506caf9a8383ba8.rlib(log-f506caf9a8383ba8.log.89ebflc3-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog-f506caf9a8383ba8.rlib(log-f506caf9a8383ba8.log.89ebflc3-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog-f506caf9a8383ba8.rlib(log-f506caf9a8383ba8.log.89ebflc3-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog-f506caf9a8383ba8.rlib(log-f506caf9a8383ba8.log.89ebflc3-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog-f506caf9a8383ba8.rlib(log-f506caf9a8383ba8.log.89ebflc3-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog-f506caf9a8383ba8.rlib(log-f506caf9a8383ba8.log.89ebflc3-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog-f506caf9a8383ba8.rlib(log-f506caf9a8383ba8.log.89ebflc3-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog-f506caf9a8383ba8.rlib(log-f506caf9a8383ba8.log.89ebflc3-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog-f506caf9a8383ba8.rlib(log-f506caf9a8383ba8.log.89ebflc3-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-21b0960b85867722.rlib(rand-21b0960b85867722.rand.9ezui54w-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_apfloat-b86f6d5465a96960.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_apfloat-b86f6d5465a96960.rlib(rustc_apfloat-b86f6d5465a96960.rustc_apfloat.7p6xh92n-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_apfloat-b86f6d5465a96960.rlib(rustc_apfloat-b86f6d5465a96960.rustc_apfloat.7p6xh92n-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_apfloat-b86f6d5465a96960.rlib(rustc_apfloat-b86f6d5465a96960.rustc_apfloat.7p6xh92n-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_apfloat-b86f6d5465a96960.rlib(rustc_apfloat-b86f6d5465a96960.rustc_apfloat.7p6xh92n-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_apfloat-b86f6d5465a96960.rlib(rustc_apfloat-b86f6d5465a96960.rustc_apfloat.7p6xh92n-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_apfloat-b86f6d5465a96960.rlib(rustc_apfloat-b86f6d5465a96960.rustc_apfloat.7p6xh92n-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_apfloat-b86f6d5465a96960.rlib(rustc_apfloat-b86f6d5465a96960.rustc_apfloat.7p6xh92n-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_apfloat-b86f6d5465a96960.rlib(rustc_apfloat-b86f6d5465a96960.rustc_apfloat.7p6xh92n-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_apfloat-b86f6d5465a96960.rlib(rustc_apfloat-b86f6d5465a96960.rustc_apfloat.7p6xh92n-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_apfloat-b86f6d5465a96960.rlib(rustc_apfloat-b86f6d5465a96960.rustc_apfloat.7p6xh92n-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_apfloat-b86f6d5465a96960.rlib(rustc_apfloat-b86f6d5465a96960.rustc_apfloat.7p6xh92n-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_apfloat-b86f6d5465a96960.rlib(rustc_apfloat-b86f6d5465a96960.rustc_apfloat.7p6xh92n-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_apfloat-b86f6d5465a96960.rlib(rustc_apfloat-b86f6d5465a96960.rustc_apfloat.7p6xh92n-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_apfloat-b86f6d5465a96960.rlib(rustc_apfloat-b86f6d5465a96960.rustc_apfloat.7p6xh92n-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblazy_static-1c625b5710dd4323.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblazy_static-1c625b5710dd4323.rlib(lazy_static-1c625b5710dd4323.lazy_static.e2vmvojn-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpanic_abort-12021314d354028a.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpanic_abort-12021314d354028a.rlib(panic_abort-12021314d354028a.panic_abort.f53cl8at-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_epoch-42fd8ba634de7cbe.rlib(crossbeam_epoch-42fd8ba634de7cbe.crossbeam_epoch.d897yevz-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcompiler_builtins-82d1f879c2d9cea5.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcompiler_builtins-82d1f879c2d9cea5.rlib(compiler_builtins-82d1f879c2d9cea5.compiler_builtins.d5fhkr53-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(chalk_engine-b0b218b2011b4614.chalk_engine.2y3y8m20-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(chalk_engine-b0b218b2011b4614.chalk_engine.2y3y8m20-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(chalk_engine-b0b218b2011b4614.chalk_engine.2y3y8m20-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(chalk_engine-b0b218b2011b4614.chalk_engine.2y3y8m20-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(chalk_engine-b0b218b2011b4614.chalk_engine.2y3y8m20-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(chalk_engine-b0b218b2011b4614.chalk_engine.2y3y8m20-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(chalk_engine-b0b218b2011b4614.chalk_engine.2y3y8m20-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(chalk_engine-b0b218b2011b4614.chalk_engine.2y3y8m20-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(chalk_engine-b0b218b2011b4614.chalk_engine.2y3y8m20-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(chalk_engine-b0b218b2011b4614.chalk_engine.2y3y8m20-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(chalk_engine-b0b218b2011b4614.chalk_engine.2y3y8m20-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(chalk_engine-b0b218b2011b4614.chalk_engine.2y3y8m20-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(chalk_engine-b0b218b2011b4614.chalk_engine.2y3y8m20-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(chalk_engine-b0b218b2011b4614.chalk_engine.2y3y8m20-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_engine-b0b218b2011b4614.rlib(chalk_engine-b0b218b2011b4614.chalk_engine.2y3y8m20-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libmemoffset-41f62366418105e1.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libmemoffset-41f62366418105e1.rlib(memoffset-41f62366418105e1.memoffset.ew2u1qto-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libvoid-6f34058e28b69e41.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libvoid-6f34058e28b69e41.rlib(void-6f34058e28b69e41.void.9w52ozex-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libquick_error-6f826fcf3e94f2c1.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libquick_error-6f826fcf3e94f2c1.rlib(quick_error-6f826fcf3e94f2c1.quick_error.7fsfmfff-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot_core-704ca3b004e81c07.rlib(parking_lot_core-704ca3b004e81c07.parking_lot_core.2ud3nyzb-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcore-717c5051b9bd6cd0.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcore-717c5051b9bd6cd0.rlib(core-717c5051b9bd6cd0.core.3ikmdgby-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_pcg-125dd4d9a56424b5.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_pcg-125dd4d9a56424b5.rlib(rand_pcg-125dd4d9a56424b5.rand_pcg.1er57r5g-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_pcg-125dd4d9a56424b5.rlib(rand_pcg-125dd4d9a56424b5.rand_pcg.1er57r5g-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_pcg-125dd4d9a56424b5.rlib(rand_pcg-125dd4d9a56424b5.rand_pcg.1er57r5g-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_pcg-125dd4d9a56424b5.rlib(rand_pcg-125dd4d9a56424b5.rand_pcg.1er57r5g-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_utils-d6ac4ae2cc6dcaec.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_utils-d6ac4ae2cc6dcaec.rlib(crossbeam_utils-d6ac4ae2cc6dcaec.crossbeam_utils.39tyb4fj-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_utils-d6ac4ae2cc6dcaec.rlib(crossbeam_utils-d6ac4ae2cc6dcaec.crossbeam_utils.39tyb4fj-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_utils-d6ac4ae2cc6dcaec.rlib(crossbeam_utils-d6ac4ae2cc6dcaec.crossbeam_utils.39tyb4fj-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_utils-d6ac4ae2cc6dcaec.rlib(crossbeam_utils-d6ac4ae2cc6dcaec.crossbeam_utils.39tyb4fj-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_utils-d6ac4ae2cc6dcaec.rlib(crossbeam_utils-d6ac4ae2cc6dcaec.crossbeam_utils.39tyb4fj-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_utils-d6ac4ae2cc6dcaec.rlib(crossbeam_utils-d6ac4ae2cc6dcaec.crossbeam_utils.39tyb4fj-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_utils-d6ac4ae2cc6dcaec.rlib(crossbeam_utils-d6ac4ae2cc6dcaec.crossbeam_utils.39tyb4fj-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_utils-d6ac4ae2cc6dcaec.rlib(crossbeam_utils-d6ac4ae2cc6dcaec.crossbeam_utils.39tyb4fj-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_utils-d6ac4ae2cc6dcaec.rlib(crossbeam_utils-d6ac4ae2cc6dcaec.crossbeam_utils.39tyb4fj-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_xorshift-7b22fbb295d56e5e.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_xorshift-7b22fbb295d56e5e.rlib(rand_xorshift-7b22fbb295d56e5e.rand_xorshift.clkjl940-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_xorshift-7b22fbb295d56e5e.rlib(rand_xorshift-7b22fbb295d56e5e.rand_xorshift.clkjl940-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_xorshift-7b22fbb295d56e5e.rlib(rand_xorshift-7b22fbb295d56e5e.rand_xorshift.clkjl940-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_xorshift-7b22fbb295d56e5e.rlib(rand_xorshift-7b22fbb295d56e5e.rand_xorshift.clkjl940-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_xorshift-7b22fbb295d56e5e.rlib(rand_xorshift-7b22fbb295d56e5e.rand_xorshift.clkjl940-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_demangle-9ccfc675b0ff78e0.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_demangle-9ccfc675b0ff78e0.rlib(rustc_demangle-9ccfc675b0ff78e0.rustc_demangle.drm10xxj-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_demangle-9ccfc675b0ff78e0.rlib(rustc_demangle-9ccfc675b0ff78e0.rustc_demangle.drm10xxj-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_demangle-9ccfc675b0ff78e0.rlib(rustc_demangle-9ccfc675b0ff78e0.rustc_demangle.drm10xxj-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_demangle-9ccfc675b0ff78e0.rlib(rustc_demangle-9ccfc675b0ff78e0.rustc_demangle.drm10xxj-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_demangle-9ccfc675b0ff78e0.rlib(rustc_demangle-9ccfc675b0ff78e0.rustc_demangle.drm10xxj-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_demangle-9ccfc675b0ff78e0.rlib(rustc_demangle-9ccfc675b0ff78e0.rustc_demangle.drm10xxj-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_demangle-9ccfc675b0ff78e0.rlib(rustc_demangle-9ccfc675b0ff78e0.rustc_demangle.drm10xxj-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_demangle-9ccfc675b0ff78e0.rlib(rustc_demangle-9ccfc675b0ff78e0.rustc_demangle.drm10xxj-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_demangle-9ccfc675b0ff78e0.rlib(rustc_demangle-9ccfc675b0ff78e0.rustc_demangle.drm10xxj-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnum_cpus-af7564e608507920.rlib(num_cpus-af7564e608507920.num_cpus.exv5tgme-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libunicode_width-58a37be755790397.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libunicode_width-58a37be755790397.rlib(unicode_width-58a37be755790397.unicode_width.3a3acl4q-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libserialize-d88ca88a763b050e.rlib(serialize-d88ca88a763b050e.serialize.3uh12zhd-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_std_workspace_core-e4403913fe7d8da9.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_std_workspace_core-e4403913fe7d8da9.rlib(rustc_std_workspace_core-e4403913fe7d8da9.rustc_std_workspace_core.bs5nls6z-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libterm-c31031be1b451ae2.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libterm-c31031be1b451ae2.rlib(term-c31031be1b451ae2.term.a2dln26p-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libflate2-0395ef351c01e81f.rlib(flate2-0395ef351c01e81f.flate2.84m5g5p9-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_data-f8bcc26a0c689931.rlib(rls_data-f8bcc26a0c689931.rls_data.bp8v74hb-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libdatafrog-032ef95c8927e514.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libdatafrog-032ef95c8927e514.rlib(datafrog-032ef95c8927e514.datafrog.4aljk2ng-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libdatafrog-032ef95c8927e514.rlib(datafrog-032ef95c8927e514.datafrog.4aljk2ng-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libdatafrog-032ef95c8927e514.rlib(datafrog-032ef95c8927e514.datafrog.4aljk2ng-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libdatafrog-032ef95c8927e514.rlib(datafrog-032ef95c8927e514.datafrog.4aljk2ng-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libdatafrog-032ef95c8927e514.rlib(datafrog-032ef95c8927e514.datafrog.4aljk2ng-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon_core-5eff82af19f6a226.rlib(rustc_rayon_core-5eff82af19f6a226.rustc_rayon_core.msch1k07-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbitflags-127b3a2d71949dc1.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbitflags-127b3a2d71949dc1.rlib(bitflags-127b3a2d71949dc1.bitflags.5iq4yk1t-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libscoped_tls-6ac81a4eac46f8b0.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libscoped_tls-6ac81a4eac46f8b0.rlib(scoped_tls-6ac81a4eac46f8b0.scoped_tls.aipap0zl-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libscoped_tls-6ac81a4eac46f8b0.rlib(scoped_tls-6ac81a4eac46f8b0.scoped_tls.aipap0zl-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libscoped_tls-6ac81a4eac46f8b0.rlib(scoped_tls-6ac81a4eac46f8b0.scoped_tls.aipap0zl-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libscoped_tls-6ac81a4eac46f8b0.rlib(scoped_tls-6ac81a4eac46f8b0.scoped_tls.aipap0zl-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libscoped_tls-6ac81a4eac46f8b0.rlib(scoped_tls-6ac81a4eac46f8b0.scoped_tls.aipap0zl-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_deque-fd4f37c642150a1a.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrossbeam_deque-fd4f37c642150a1a.rlib(crossbeam_deque-fd4f37c642150a1a.crossbeam_deque.7emegxnv-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_isaac-bf875392fbbf540f.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_isaac-bf875392fbbf540f.rlib(rand_isaac-bf875392fbbf540f.rand_isaac.3y37vhqb-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_isaac-bf875392fbbf540f.rlib(rand_isaac-bf875392fbbf540f.rand_isaac.3y37vhqb-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_isaac-bf875392fbbf540f.rlib(rand_isaac-bf875392fbbf540f.rand_isaac.3y37vhqb-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_isaac-bf875392fbbf540f.rlib(rand_isaac-bf875392fbbf540f.rand_isaac.3y37vhqb-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_isaac-bf875392fbbf540f.rlib(rand_isaac-bf875392fbbf540f.rand_isaac.3y37vhqb-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_isaac-bf875392fbbf540f.rlib(rand_isaac-bf875392fbbf540f.rand_isaac.3y37vhqb-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_isaac-bf875392fbbf540f.rlib(rand_isaac-bf875392fbbf540f.rand_isaac.3y37vhqb-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_isaac-bf875392fbbf540f.rlib(rand_isaac-bf875392fbbf540f.rand_isaac.3y37vhqb-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_isaac-bf875392fbbf540f.rlib(rand_isaac-bf875392fbbf540f.rand_isaac.3y37vhqb-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_isaac-bf875392fbbf540f.rlib(rand_isaac-bf875392fbbf540f.rand_isaac.3y37vhqb-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libscopeguard-7fd64a8dcbaf7a3f.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libscopeguard-7fd64a8dcbaf7a3f.rlib(scopeguard-7fd64a8dcbaf7a3f.scopeguard.c0dilg6d-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liballoc-290cbbc25875459c.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liballoc-290cbbc25875459c.rlib(alloc-290cbbc25875459c.alloc.bb6u0781-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libsmallvec-392562f6535ef84e.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libsmallvec-392562f6535ef84e.rlib(smallvec-392562f6535ef84e.smallvec.5qpx30t7-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnodrop-030148f73eb7ed72.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libnodrop-030148f73eb7ed72.rlib(nodrop-030148f73eb7ed72.nodrop.5hci0f9z-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrc32fast-a2e85ad64c7c1316.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrc32fast-a2e85ad64c7c1316.rlib(crc32fast-a2e85ad64c7c1316.crc32fast.1sl9czry-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrc32fast-a2e85ad64c7c1316.rlib(crc32fast-a2e85ad64c7c1316.crc32fast.1sl9czry-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrc32fast-a2e85ad64c7c1316.rlib(crc32fast-a2e85ad64c7c1316.crc32fast.1sl9czry-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrc32fast-a2e85ad64c7c1316.rlib(crc32fast-a2e85ad64c7c1316.crc32fast.1sl9czry-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrc32fast-a2e85ad64c7c1316.rlib(crc32fast-a2e85ad64c7c1316.crc32fast.1sl9czry-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrc32fast-a2e85ad64c7c1316.rlib(crc32fast-a2e85ad64c7c1316.crc32fast.1sl9czry-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcrc32fast-a2e85ad64c7c1316.rlib(crc32fast-a2e85ad64c7c1316.crc32fast.1sl9czry-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libgetopts-ab2ef8be74b3f676.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libgetopts-ab2ef8be74b3f676.rlib(getopts-ab2ef8be74b3f676.getopts.cda7f4ds-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcc-06c9d44a2db7061b.rlib(cc-06c9d44a2db7061b.cc.6uenhuv3-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rls_span-cb10710d24eda154.rls_span.15x28ra3-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rls_span-cb10710d24eda154.rls_span.15x28ra3-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rls_span-cb10710d24eda154.rls_span.15x28ra3-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rls_span-cb10710d24eda154.rls_span.15x28ra3-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rls_span-cb10710d24eda154.rls_span.15x28ra3-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rls_span-cb10710d24eda154.rls_span.15x28ra3-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rls_span-cb10710d24eda154.rls_span.15x28ra3-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rls_span-cb10710d24eda154.rls_span.15x28ra3-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rls_span-cb10710d24eda154.rls_span.15x28ra3-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rls_span-cb10710d24eda154.rls_span.15x28ra3-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rls_span-cb10710d24eda154.rls_span.15x28ra3-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rls_span-cb10710d24eda154.rls_span.15x28ra3-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rls_span-cb10710d24eda154.rls_span.15x28ra3-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rls_span-cb10710d24eda154.rls_span.15x28ra3-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librls_span-cb10710d24eda154.rlib(rls_span-cb10710d24eda154.rls_span.15x28ra3-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblibc-6a8e57fb0102a51a.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblibc-6a8e57fb0102a51a.rlib(libc-6a8e57fb0102a51a.libc.dyd2nylm-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblibc-6a8e57fb0102a51a.rlib(libc-6a8e57fb0102a51a.libc.dyd2nylm-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblibc-6a8e57fb0102a51a.rlib(libc-6a8e57fb0102a51a.libc.dyd2nylm-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblibc-6a8e57fb0102a51a.rlib(libc-6a8e57fb0102a51a.libc.dyd2nylm-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblibc-6a8e57fb0102a51a.rlib(libc-6a8e57fb0102a51a.libc.dyd2nylm-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblibc-6a8e57fb0102a51a.rlib(libc-6a8e57fb0102a51a.libc.dyd2nylm-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblibc-6a8e57fb0102a51a.rlib(libc-6a8e57fb0102a51a.libc.dyd2nylm-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblibc-6a8e57fb0102a51a.rlib(libc-6a8e57fb0102a51a.libc.dyd2nylm-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbacktrace-8ba0626341ca078b.rlib(backtrace-8ba0626341ca078b.backtrace.d21qsldn-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_serialize-f9d5afe302750367.rlib(rustc_serialize-f9d5afe302750367.rustc_serialize.8ycld0cm-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libmemmap-619ea92ae8664894.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libmemmap-619ea92ae8664894.rlib(memmap-619ea92ae8664894.memmap.89l4lscx-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libmemmap-619ea92ae8664894.rlib(memmap-619ea92ae8664894.memmap.89l4lscx-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libmemmap-619ea92ae8664894.rlib(memmap-619ea92ae8664894.memmap.89l4lscx-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libmemmap-619ea92ae8664894.rlib(memmap-619ea92ae8664894.memmap.89l4lscx-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libmemmap-619ea92ae8664894.rlib(memmap-619ea92ae8664894.memmap.89l4lscx-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libmemmap-619ea92ae8664894.rlib(memmap-619ea92ae8664894.memmap.89l4lscx-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libmemmap-619ea92ae8664894.rlib(memmap-619ea92ae8664894.memmap.89l4lscx-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libhumantime-42d3cbdb73cd13a0.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libhumantime-42d3cbdb73cd13a0.rlib(humantime-42d3cbdb73cd13a0.humantime.4f5eb5se-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libhumantime-42d3cbdb73cd13a0.rlib(humantime-42d3cbdb73cd13a0.humantime.4f5eb5se-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libhumantime-42d3cbdb73cd13a0.rlib(humantime-42d3cbdb73cd13a0.humantime.4f5eb5se-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libhumantime-42d3cbdb73cd13a0.rlib(humantime-42d3cbdb73cd13a0.humantime.4f5eb5se-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libhumantime-42d3cbdb73cd13a0.rlib(humantime-42d3cbdb73cd13a0.humantime.4f5eb5se-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libhumantime-42d3cbdb73cd13a0.rlib(humantime-42d3cbdb73cd13a0.humantime.4f5eb5se-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libhumantime-42d3cbdb73cd13a0.rlib(humantime-42d3cbdb73cd13a0.humantime.4f5eb5se-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libhumantime-42d3cbdb73cd13a0.rlib(humantime-42d3cbdb73cd13a0.humantime.4f5eb5se-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libhumantime-42d3cbdb73cd13a0.rlib(humantime-42d3cbdb73cd13a0.humantime.4f5eb5se-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libhumantime-42d3cbdb73cd13a0.rlib(humantime-42d3cbdb73cd13a0.humantime.4f5eb5se-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libhumantime-42d3cbdb73cd13a0.rlib(humantime-42d3cbdb73cd13a0.humantime.4f5eb5se-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libhumantime-42d3cbdb73cd13a0.rlib(humantime-42d3cbdb73cd13a0.humantime.4f5eb5se-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot-d63deacce0f8e47d.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot-d63deacce0f8e47d.rlib(parking_lot-d63deacce0f8e47d.parking_lot.e2ledlt2-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot-d63deacce0f8e47d.rlib(parking_lot-d63deacce0f8e47d.parking_lot.e2ledlt2-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot-d63deacce0f8e47d.rlib(parking_lot-d63deacce0f8e47d.parking_lot.e2ledlt2-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot-d63deacce0f8e47d.rlib(parking_lot-d63deacce0f8e47d.parking_lot.e2ledlt2-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot-d63deacce0f8e47d.rlib(parking_lot-d63deacce0f8e47d.parking_lot.e2ledlt2-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot-d63deacce0f8e47d.rlib(parking_lot-d63deacce0f8e47d.parking_lot.e2ledlt2-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot-d63deacce0f8e47d.rlib(parking_lot-d63deacce0f8e47d.parking_lot.e2ledlt2-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot-d63deacce0f8e47d.rlib(parking_lot-d63deacce0f8e47d.parking_lot.e2ledlt2-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot-d63deacce0f8e47d.rlib(parking_lot-d63deacce0f8e47d.parking_lot.e2ledlt2-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot-d63deacce0f8e47d.rlib(parking_lot-d63deacce0f8e47d.parking_lot.e2ledlt2-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot-d63deacce0f8e47d.rlib(parking_lot-d63deacce0f8e47d.parking_lot.e2ledlt2-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot-d63deacce0f8e47d.rlib(parking_lot-d63deacce0f8e47d.parking_lot.e2ledlt2-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot-d63deacce0f8e47d.rlib(parking_lot-d63deacce0f8e47d.parking_lot.e2ledlt2-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libparking_lot-d63deacce0f8e47d.rlib(parking_lot-d63deacce0f8e47d.parking_lot.e2ledlt2-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpolonius_engine-2d412892e586c659.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpolonius_engine-2d412892e586c659.rlib(polonius_engine-2d412892e586c659.polonius_engine.8am8mo8w-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpolonius_engine-2d412892e586c659.rlib(polonius_engine-2d412892e586c659.polonius_engine.8am8mo8w-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpolonius_engine-2d412892e586c659.rlib(polonius_engine-2d412892e586c659.polonius_engine.8am8mo8w-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpolonius_engine-2d412892e586c659.rlib(polonius_engine-2d412892e586c659.polonius_engine.8am8mo8w-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpolonius_engine-2d412892e586c659.rlib(polonius_engine-2d412892e586c659.polonius_engine.8am8mo8w-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpolonius_engine-2d412892e586c659.rlib(polonius_engine-2d412892e586c659.polonius_engine.8am8mo8w-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpolonius_engine-2d412892e586c659.rlib(polonius_engine-2d412892e586c659.polonius_engine.8am8mo8w-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpolonius_engine-2d412892e586c659.rlib(polonius_engine-2d412892e586c659.polonius_engine.8am8mo8w-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpolonius_engine-2d412892e586c659.rlib(polonius_engine-2d412892e586c659.polonius_engine.8am8mo8w-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpolonius_engine-2d412892e586c659.rlib(polonius_engine-2d412892e586c659.polonius_engine.8am8mo8w-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_demangle-173dde0c1af0c61a.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_demangle-173dde0c1af0c61a.rlib(rustc_demangle-173dde0c1af0c61a.rustc_demangle.c0itgv0f-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_core-9f6d041e149b7f18.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_core-9f6d041e149b7f18.rlib(rand_core-9f6d041e149b7f18.rand_core.bpccc4vu-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_core-9f6d041e149b7f18.rlib(rand_core-9f6d041e149b7f18.rand_core.bpccc4vu-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_core-9f6d041e149b7f18.rlib(rand_core-9f6d041e149b7f18.rand_core.bpccc4vu-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_core-9f6d041e149b7f18.rlib(rand_core-9f6d041e149b7f18.rand_core.bpccc4vu-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_core-9f6d041e149b7f18.rlib(rand_core-9f6d041e149b7f18.rand_core.bpccc4vu-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_core-9f6d041e149b7f18.rlib(rand_core-9f6d041e149b7f18.rand_core.bpccc4vu-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_core-9f6d041e149b7f18.rlib(rand_core-9f6d041e149b7f18.rand_core.bpccc4vu-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_core-9f6d041e149b7f18.rlib(rand_core-9f6d041e149b7f18.rand_core.bpccc4vu-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_core-9f6d041e149b7f18.rlib(rand_core-9f6d041e149b7f18.rand_core.bpccc4vu-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_core-9f6d041e149b7f18.rlib(rand_core-9f6d041e149b7f18.rand_core.bpccc4vu-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpanic_unwind-abdad49aa920c326.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpanic_unwind-abdad49aa920c326.rlib(panic_unwind-abdad49aa920c326.panic_unwind.2kp95wem-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libunreachable-7c17e5546a04b8b4.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libunreachable-7c17e5546a04b8b4.rlib(unreachable-7c17e5546a04b8b4.unreachable.8u4w0fp5-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_hash-b89c88b5795c6cb3.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_hash-b89c88b5795c6cb3.rlib(rustc_hash-b89c88b5795c6cb3.rustc_hash.5xicl525-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblibc-9e68d83470af81b4.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblibc-9e68d83470af81b4.rlib(libc-9e68d83470af81b4.libc.407d5x9l-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libremove_dir_all-99a95a87f5e9a7a0.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libremove_dir_all-99a95a87f5e9a7a0.rlib(remove_dir_all-99a95a87f5e9a7a0.remove_dir_all.bnv61tdf-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblock_api-75e952607f30c602.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblock_api-75e952607f30c602.rlib(lock_api-75e952607f30c602.lock_api.qqh591d1-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libarrayvec-f5aac8b8ca0bcf01.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libarrayvec-f5aac8b8ca0bcf01.rlib(arrayvec-f5aac8b8ca0bcf01.arrayvec.13p50rl7-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbyteorder-b6dfc3bd4b49dd2e.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbyteorder-b6dfc3bd4b49dd2e.rlib(byteorder-b6dfc3bd4b49dd2e.byteorder.cgv09j0q-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbyteorder-b6dfc3bd4b49dd2e.rlib(byteorder-b6dfc3bd4b49dd2e.byteorder.cgv09j0q-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbyteorder-b6dfc3bd4b49dd2e.rlib(byteorder-b6dfc3bd4b49dd2e.byteorder.cgv09j0q-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libbyteorder-b6dfc3bd4b49dd2e.rlib(byteorder-b6dfc3bd4b49dd2e.byteorder.cgv09j0q-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_hc-6e2ec8176aa79676.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_hc-6e2ec8176aa79676.rlib(rand_hc-6e2ec8176aa79676.rand_hc.6y30ov11-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_hc-6e2ec8176aa79676.rlib(rand_hc-6e2ec8176aa79676.rand_hc.6y30ov11-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_hc-6e2ec8176aa79676.rlib(rand_hc-6e2ec8176aa79676.rand_hc.6y30ov11-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_hc-6e2ec8176aa79676.rlib(rand_hc-6e2ec8176aa79676.rand_hc.6y30ov11-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_hc-6e2ec8176aa79676.rlib(rand_hc-6e2ec8176aa79676.rand_hc.6y30ov11-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_hc-6e2ec8176aa79676.rlib(rand_hc-6e2ec8176aa79676.rand_hc.6y30ov11-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand_hc-6e2ec8176aa79676.rlib(rand_hc-6e2ec8176aa79676.rand_hc.6y30ov11-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcfg_if-6d144c64fbda33b7.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcfg_if-6d144c64fbda33b7.rlib(cfg_if-6d144c64fbda33b7.cfg_if.5oh9moxa-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon-37168f421195ab9b.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon-37168f421195ab9b.rlib(rustc_rayon-37168f421195ab9b.rustc_rayon.6rgfsqcg-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon-37168f421195ab9b.rlib(rustc_rayon-37168f421195ab9b.rustc_rayon.6rgfsqcg-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon-37168f421195ab9b.rlib(rustc_rayon-37168f421195ab9b.rustc_rayon.6rgfsqcg-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon-37168f421195ab9b.rlib(rustc_rayon-37168f421195ab9b.rustc_rayon.6rgfsqcg-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon-37168f421195ab9b.rlib(rustc_rayon-37168f421195ab9b.rustc_rayon.6rgfsqcg-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon-37168f421195ab9b.rlib(rustc_rayon-37168f421195ab9b.rustc_rayon.6rgfsqcg-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon-37168f421195ab9b.rlib(rustc_rayon-37168f421195ab9b.rustc_rayon.6rgfsqcg-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon-37168f421195ab9b.rlib(rustc_rayon-37168f421195ab9b.rustc_rayon.6rgfsqcg-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon-37168f421195ab9b.rlib(rustc_rayon-37168f421195ab9b.rustc_rayon.6rgfsqcg-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon-37168f421195ab9b.rlib(rustc_rayon-37168f421195ab9b.rustc_rayon.6rgfsqcg-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon-37168f421195ab9b.rlib(rustc_rayon-37168f421195ab9b.rustc_rayon.6rgfsqcg-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_rayon-37168f421195ab9b.rlib(rustc_rayon-37168f421195ab9b.rustc_rayon.6rgfsqcg-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog_settings-8890b529fca65bfa.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog_settings-8890b529fca65bfa.rlib(log_settings-8890b529fca65bfa.log_settings.erqh22ox-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog_settings-8890b529fca65bfa.rlib(log_settings-8890b529fca65bfa.log_settings.erqh22ox-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog_settings-8890b529fca65bfa.rlib(log_settings-8890b529fca65bfa.log_settings.erqh22ox-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog_settings-8890b529fca65bfa.rlib(log_settings-8890b529fca65bfa.log_settings.erqh22ox-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog_settings-8890b529fca65bfa.rlib(log_settings-8890b529fca65bfa.log_settings.erqh22ox-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog_settings-8890b529fca65bfa.rlib(log_settings-8890b529fca65bfa.log_settings.erqh22ox-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog_settings-8890b529fca65bfa.rlib(log_settings-8890b529fca65bfa.log_settings.erqh22ox-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblog_settings-8890b529fca65bfa.rlib(log_settings-8890b529fca65bfa.log_settings.erqh22ox-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libchalk_macros-fe6406adcb913e80.rlib(chalk_macros-fe6406adcb913e80.chalk_macros.4tol0anb-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtempfile-05201596bc63f257.rlib(tempfile-05201596bc63f257.tempfile.6b4p2q84-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libstd-5c450fec7662f1f2.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libstd-5c450fec7662f1f2.rlib(std-5c450fec7662f1f2.std.3ah07xcr-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libjobserver-6c96ce50254122af.rlib(jobserver-6c96ce50254122af.jobserver.dbesmgxr-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtest-027149a50a7732ce.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtest-027149a50a7732ce.rlib(test-027149a50a7732ce.test.9pssp4lt-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libatty-0b4ed96d08833e09.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libatty-0b4ed96d08833e09.rlib(atty-0b4ed96d08833e09.atty.3ghcl5oc-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libeither-b2e4ec4c0f78f52e.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libeither-b2e4ec4c0f78f52e.rlib(either-b2e4ec4c0f78f52e.either.2t31rwhz-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libenv_logger-17c5d54d353c8907.rlib(env_logger-17c5d54d353c8907.env_logger.68n929xc-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.10.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.11.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.12.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.13.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.14.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.15.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.3.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.4.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.5.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.6.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.7.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.8.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libtermcolor-ad6ce6ea9fbdcb89.rlib(termcolor-ad6ce6ea9fbdcb89.termcolor.60szsxne-cgu.9.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libena-d51adc4b87c24190.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libena-d51adc4b87c24190.rlib(ena-d51adc4b87c24190.ena.22n7cpb3-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libena-d51adc4b87c24190.rlib(ena-d51adc4b87c24190.ena.22n7cpb3-cgu.1.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libena-d51adc4b87c24190.rlib(ena-d51adc4b87c24190.ena.22n7cpb3-cgu.2.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblazy_static-217a2395a820a2ed.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblazy_static-217a2395a820a2ed.rlib(lazy_static-217a2395a820a2ed.lazy_static.8ix60lwh-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libminiz_sys-76b1bbea0d9329bd.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libminiz_sys-76b1bbea0d9329bd.rlib(miniz_sys-76b1bbea0d9329bd.miniz_sys.7e3mcng8-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libstable_deref_trait-919e6a113e0b651b.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libstable_deref_trait-919e6a113e0b651b.rlib(stable_deref_trait-919e6a113e0b651b.stable_deref_trait.1izkgo0r-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libproc_macro-cc1297c1586f3def.rlib(rust.metadata.bin): Unable to recognise the format of file: File format not recognized /usr/bin/strip:/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libproc_macro-cc1297c1586f3def.rlib(proc_macro-cc1297c1586f3def.proc_macro.74eb2cjr-cgu.0.rcgu.bc.z): Unable to recognise the format of file: File format not recognized + /usr/lib/rpm/brp-python-bytecompile 1 + /usr/lib/rpm/brp-python-hardlink + PYTHON3=/usr/libexec/platform-python + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /usr/lib/rustlib/src/rust/src/stdsimd/ci/dox.sh from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/lib/rustlib/src/rust/src/stdsimd/ci/run.sh from /usr/bin/env sh to #!/usr/bin/sh mangling shebang in /usr/lib/rustlib/src/rust/src/stdsimd/ci/run-docker.sh from /usr/bin/env sh to #!/usr/bin/sh Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.xhl5qu + umask 022 + cd /builddir/build/BUILD + cd rustc-1.35.0-src + export RUSTFLAGS=-Clink-arg=-Wl,-z,relro,-z,now + RUSTFLAGS=-Clink-arg=-Wl,-z,relro,-z,now + /usr/libexec/platform-python ./x.py test --no-fail-fast Finished dev [unoptimized] target(s) in 0.25s Building stage0 tool tidy (i686-unknown-linux-gnu) Compiling tidy v0.1.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/tidy) Finished release [optimized] target(s) in 0.77s tidy check * 569 error codes * highest error code: E0725 * lib stable 1.30.0 * aarch64_target_feature lang unstable 1.27.0 * abi_amdgpu_kernel lang unstable 1.29.0 * abi_msp430_interrupt lang unstable 1.16.0 * abi_ptx lang unstable 1.15.0 * abi_sysv64 lang stable 1.24.0 * abi_thiscall lang unstable 1.19.0 * abi_unadjusted lang unstable 1.16.0 * abi_vectorcall lang unstable 1.7.0 * abi_x86_interrupt lang unstable 1.17.0 * addr_from_into_ip lib stable 1.17.0 * addr_parse_error_error lib stable 1.4.0 * advanced_slice_patterns lang removed 1.0.0 * adx_target_feature lang unstable 1.32.0 * align_offset lib unstable None * alloc lib unstable None * alloc_error_handler lang unstable 1.29.0 * alloc_error_hook lib unstable None * alloc_internals lib unstable None * alloc_layout lib stable 1.28.0 * alloc_layout_extra lib unstable None * alloc_module lib stable 1.28.0 * alloc_prelude lib unstable None * alloc_system_type lib stable 1.28.0 * allocator lang removed 1.0.0 * allocator_api lib unstable None * allocator_internals lang unstable 1.20.0 * allow_fail lang unstable 1.19.0 * allow_internal_unsafe lang unstable 1.0.0 * allow_internal_unstable lang unstable 1.0.0 * any_send_sync_methods lib stable 1.28.0 * append lib stable 1.4.0 * arbitrary_self_types lang unstable 1.23.0 * arc_counts lib stable 1.15.0 * arc_unique lib stable 1.4.0 * arc_weak lib stable 1.4.0 * arm_target_feature lang unstable 1.27.0 * array_borrow lib stable 1.4.0 * array_default lib stable 1.4.0 * array_error_internals lib unstable None * as_c_str lib stable 1.20.0 * as_cell lib unstable None * ascii lib stable 1.9.0 * ascii_ctype_on_intrinsics lib stable 1.24.0 * ascii_methods_on_intrinsics lib stable 1.23.0 * asm lang unstable 1.0.0 * asraw_stdio lib stable 1.21.0 * asraw_stdio_locks lib stable 1.35.0 * assert_ne lib stable 1.13.0 * assoc_unix_epoch lib stable 1.28.0 * associated_consts lang stable 1.20.0 * associated_type_defaults lang unstable 1.2.0 * associated_types lang stable 1.0.0 * async_await lang unstable 1.28.0 * atomic_access lib stable 1.15.0 * atomic_bool_from lib stable 1.24.0 * atomic_debug lib stable 1.3.0 * atomic_from lib stable 1.23.0 * atomic_min_max lib unstable None * atomic_pointer lib stable 1.24.0 * attr_literals lang stable 1.30.0 * augmented_assignments lang stable 1.8.0 * avx512_target_feature lang unstable 1.27.0 * await_macro lib unstable None * binary_heap_append lib stable 1.11.0 * binary_heap_extras_15 lib stable 1.5.0 * binary_heap_peek_mut lib stable 1.12.0 * binary_heap_peek_mut_pop lib stable 1.18.0 * binaryheap_debug lib stable 1.4.0 * bind_by_move_pattern_guards lang unstable 1.30.0 * box_borrow lib stable 1.1.0 * box_default_extra lib stable 1.17.0 * box_error lib stable 1.8.0 * box_from_c_str lib stable 1.17.0 * box_from_c_string lib stable 1.20.0 * box_from_os_str lib stable 1.17.0 * box_from_os_string lib stable 1.20.0 * box_from_path lib stable 1.17.0 * box_from_path_buf lib stable 1.20.0 * box_from_slice lib stable 1.17.0 * box_from_str lib stable 1.20.0 * box_from_vec lib stable 1.20.0 * box_into_pin lib unstable None * box_into_raw_non_null lib unstable None * box_leak lib stable 1.26.0 * box_patterns lang unstable 1.0.0 * box_raw lib stable 1.4.0 * box_slice_clone lib stable 1.3.0 * box_str lib stable 1.4.0 * box_syntax lang unstable 1.0.0 * boxed_closure_impls lib stable 1.35.0 * boxed_slice_from_iter lib stable 1.32.0 * boxed_str_conv lib stable 1.19.0 * braced_empty_structs lang stable 1.8.0 * btree_append lib stable 1.11.0 * btree_drop lib stable 1.7.0 * btree_range lib stable 1.17.0 * btree_split_off lib stable 1.11.0 * bufreader_buffer lib unstable None * bufreader_seek_relative lib unstable None * build_hasher lib stable 1.7.0 * build_hasher_eq lib stable 1.29.0 * c_string_from_box lib stable 1.18.0 * c_variadic lang unstable 1.34.0 * c_variadic lib unstable None * c_void_variant lib unstable None * catch_unwind lib stable 1.9.0 * cell_as_ptr lib stable 1.12.0 * cell_eq lib stable 1.2.0 * cell_extras lib stable 1.15.0 * cell_from lib stable 1.12.0 * cell_get_mut lib stable 1.11.0 * cell_map lib stable 1.8.0 * cell_ord lib stable 1.10.0 * cell_update lib unstable None * cfg_attr_multi lang stable 1.33.0 * cfg_target_feature lang stable 1.27.0 * cfg_target_has_atomic lang unstable 1.9.0 * cfg_target_thread_local lang unstable 1.7.0 * cfg_target_vendor lang stable 1.33.0 * chain_bufread lib stable 1.9.0 * char_convert lib stable 1.13.0 * char_error_internals lib unstable None * char_escape_debug lib stable 1.20.0 * char_from_str lib stable 1.20.0 * char_from_unchecked lib stable 1.5.0 * char_struct_display lib stable 1.16.0 * checked_duration_since lib unstable , issue = * chunks_exact lib stable 1.31.0 * clamp lib unstable None * clone_closures lang stable 1.26.0 * clone_from_slice lib stable 1.7.0 * closure_to_fn_coercion lang stable 1.19.0 * cmp_os_str lib stable 1.8.0 * cmp_path lib stable 1.8.0 * cmpxchg16b_target_feature lang unstable 1.32.0 * coerce_unsized lib unstable None * collection_debug lib stable 1.17.0 * collections_bound lib stable 1.17.0 * collections_range lib stable 1.28.0 * command_envs lib stable 1.19.0 * compile_error lang stable 1.20.0 * compile_error_macro lib stable 1.20.0 * compiler_builtins lang unstable 1.13.0 * compiler_fences lib stable 1.21.0 * concat_idents lang unstable 1.0.0 * concat_idents_macro lib unstable None * condvar_default lib stable 1.10.0 * conservative_impl_trait lang stable 1.26.0 * const_compare_raw_pointers lang unstable 1.27.0 * const_cstr_unchecked lib unstable None * const_fn lang unstable 1.2.0 * const_fn_union lang unstable 1.27.0 * const_generics lang unstable 1.34.0 * const_indexing lang stable 1.26.0 * const_int_conversion lib unstable None * const_let lang stable 1.33.0 * const_needs_drop lib unstable None * const_panic lang unstable 1.30.0 * const_ptr_nonnull lib unstable None * const_raw_ptr_deref lang unstable 1.27.0 * const_raw_ptr_to_usize_cast lang unstable 1.27.0 * const_saturating_int_methods lib unstable None * const_slice_len lib unstable None * const_str_as_bytes lib unstable None * const_str_len lib unstable None * const_string_new lib unstable None * const_transmute lang unstable 1.29.0 * const_type_id lib unstable None * const_vec_new lib unstable None * convert_id lib stable 1.33.0 * convert_infallible lib stable 1.34.0 * copied lib stable 1.35.0 * copy_closures lang stable 1.26.0 * copy_from_slice lib stable 1.9.0 * copy_within lib unstable None * copysign lib stable 1.35.0 * core lib stable 1.6.0 * core_array lib stable 1.36.0 * core_ascii lib stable 1.26.0 * core_char lib stable 1.2.0 * core_hint lib stable 1.27.0 * core_impl_debug lib stable 1.9.0 * core_intrinsics lib unstable None * core_panic lib unstable None * core_panic_info lib unstable None * core_prelude lib stable 1.4.0 * core_private_bignum lib unstable None * core_private_diy_float lib unstable None * cow_add lib stable 1.14.0 * cow_box_error lib stable 1.22.0 * cow_from_cstr lib stable 1.28.0 * cow_from_osstr lib stable 1.28.0 * cow_from_path lib stable 1.6.0 * cow_from_pathbuf_ref lib stable 1.28.0 * cow_from_string_ref lib stable 1.28.0 * cow_from_vec lib stable 1.8.0 * cow_from_vec_ref lib stable 1.28.0 * cow_os_str_as_ref_path lib stable 1.8.0 * cow_str_from_iter lib stable 1.12.0 * cow_str_to_string_specialization lib stable 1.17.0 * crate_in_paths lang stable 1.30.0 * crate_visibility_modifier lang unstable 1.23.0 * cstr_borrow lib stable 1.3.0 * cstr_debug lib stable 1.3.0 * cstr_default lib stable 1.10.0 * cstr_from_bytes lib stable 1.10.0 * cstr_memory lib stable 1.4.0 * cstr_to_str lib stable 1.4.0 * cstring_asref lib stable 1.7.0 * cstring_drop lib stable 1.13.0 * cstring_from_cow_cstr lib stable 1.28.0 * cstring_into lib stable 1.7.0 * cursor_box_slice lib stable 1.5.0 * cursor_mut_vec lib stable 1.25.0 * custom_attribute lang unstable 1.0.0 * custom_derive lang removed 1.0.0 * custom_inner_attributes lang unstable 1.30.0 * custom_test_frameworks lang unstable 1.30.0 * dbg_macro lib stable 1.32.0 * deadline_api lib unstable None * debug_btree_map lib stable 1.12.0 * debug_builders lib stable 1.2.0 * debug_hash_map lib stable 1.12.0 * dec2flt lib unstable None * decl_macro lang unstable 1.17.0 * decode_utf16 lib stable 1.9.0 * dedup_by lib stable 1.16.0 * default lib stable 1.11.0 * default_box_extra lib stable 1.17.0 * default_for_pathbuf lib stable 1.17.0 * default_mut_str lib stable 1.28.0 * default_type_parameter_fallback lang unstable 1.3.0 * default_type_params lang stable 1.0.0 * deprecated lang stable 1.9.0 * deque_extras lib stable 1.16.0 * deque_extras_15 lib stable 1.5.0 * derefmut_for_string lib stable 1.3.0 * derive_clone_copy lib unstable None * derive_eq lib unstable None * dir_builder lib stable 1.6.0 * dir_entry_debug lib stable 1.13.0 * dir_entry_ext lib stable 1.1.0 * discriminant_value lib stable 1.21.0 * dispatch_from_dyn lib unstable None * doc_alias lang unstable 1.27.0 * doc_cfg lang unstable 1.21.0 * doc_keyword lang unstable 1.28.0 * doc_masked lang unstable 1.21.0 * doc_spotlight lang unstable 1.22.0 * dotdot_in_tuple_patterns lang stable 1.14.0 * dotdoteq_in_patterns lang stable 1.26.0 * double_ended_skip_iterator lib stable 1.9.0 * downgraded_weak lib stable 1.10.0 * drain lib stable 1.6.0 * drain_filter lib unstable None * drop_in_place lib stable 1.8.0 * drop_types_in_const lang stable 1.22.0 * dropck_eyepatch lang unstable 1.10.0 * dropck_parametricity lang unstable 1.3.0 * duration lib stable 1.3.0 * duration_as_u128 lib stable 1.33.0 * duration_checked_ops lib stable 1.16.0 * duration_constants lib unstable None * duration_core lib stable 1.25.0 * duration_debug_impl lib stable 1.27.0 * duration_extras lib stable 1.27.0 * duration_float lib unstable None * duration_from_micros lib stable 1.27.0 * duration_sum lib stable 1.16.0 * dyn_trait lang stable 1.27.0 * encode_utf16 lib stable 1.8.0 * entry_and_modify lib stable 1.26.0 * entry_or_default lib stable 1.28.0 * env lib stable 1.0.0 * env_iterators lib stable 1.12.0 * env_unimpl_send_sync lib stable 1.26.0 * eprint lib stable 1.19.0 * error_downcast lib stable 1.3.0 * error_iter lib unstable None * error_source lib stable 1.30.0 * error_type_id lib unstable None * euclidean_division lib unstable None * exact_size_case_mapping_iter lib stable 1.35.0 * exact_size_escape lib stable 1.11.0 * exact_size_is_empty lib unstable None * exclusive_range_pattern lang unstable 1.11.0 * exhaustive_integer_patterns lang stable 1.33.0 * exhaustive_patterns lang unstable 1.13.0 * existential_type lang unstable 1.28.0 * exit_status_from lib stable 1.12.0 * expand_open_options2 lib stable 1.9.0 * extend_for_unit lib stable 1.28.0 * extend_ref lib stable 1.2.0 * extend_string lib stable 1.4.0 * extended_compare_and_swap lib stable 1.10.0 * extern_absolute_paths lang stable 1.30.0 * extern_crate_item_prelude lang stable 1.31.0 * extern_crate_self lang stable 1.34.0 * extern_in_paths lang removed 1.33.0 * extern_prelude lang stable 1.30.0 * extern_types lang unstable 1.23.0 * external_doc lang unstable 1.22.0 * extra_log_consts lib unstable None * f32_deg_rad_conversions lib stable 1.7.0 * fd lib unstable None * fd_read lib unstable None * ffi_returns_twice lang unstable 1.34.0 * field_init_shorthand lang stable 1.17.0 * file_offset lib stable 1.15.0 * file_try_clone lib stable 1.9.0 * file_type lib stable 1.1.0 * file_type_ext lib stable 1.5.0 * fixed_size_array lib unstable None * float_bits_conv lib stable 1.20.0 * flt2dec lib unstable None * fmt_error lib stable 1.11.0 * fmt_flags lib stable 1.5.0 * fmt_flags_align lib stable 1.28.0 * fmt_internals lib unstable None * fmt_write_blanket_impl lib stable 1.4.0 * fmt_write_char lib stable 1.1.0 * fn_must_use lang stable 1.27.0 * fn_once_output lib stable 1.12.0 * fn_traits lib unstable None * fnbox lib unstable None * fnptr_impls lib stable 1.4.0 * forget_unsized lib unstable None * format_args_nl lang unstable 1.29.0 * formatter_write lib stable 1.2.0 * from_bool lib stable 1.28.0 * from_for_ptrs lib stable 1.6.0 * from_nonzero lib stable 1.31.0 * from_path_buf_for_os_string lib stable 1.14.0 * from_raw_os lib stable 1.1.0 * from_ref lib stable 1.28.0 * from_slice_v4 lib stable 1.9.0 * from_string_for_vec_u8 lib stable 1.14.0 * from_utf8_error_as_bytes lib stable 1.26.0 * frombyteswithnulerror_impls lib stable 1.17.0 * fs_canonicalize lib stable 1.5.0 * fs_ext lib stable 1.1.0 * fs_read_write lib stable 1.26.0 * fs_read_write_bytes lib stable 1.26.0 * fs_time lib stable 1.10.0 * fundamental lang unstable 1.0.0 * fused lib stable 1.26.0 * futures_api lib unstable None * gen_future lib unstable None * generator_trait lib unstable None * generators lang unstable 1.21.0 * generic_associated_types lang unstable 1.23.0 * generic_param_attrs lang stable 1.27.0 * get_type_id lib stable 1.34.0 * getpid lib stable 1.26.0 * global_alloc lib stable 1.28.0 * global_allocator lang stable 1.28.0 * global_asm lang unstable 1.18.0 * globs lang stable 1.0.0 * hash_extend_copy lib stable 1.4.0 * hash_map_remove_entry lib stable 1.27.0 * hash_raw_entry lib unstable None * hash_slice lib stable 1.3.0 * hasher_write lib stable 1.3.0 * hashmap_build_hasher lib stable 1.7.0 * hashmap_default_hasher lib stable 1.13.0 * hashmap_internals lib unstable None * hashmap_public_hasher lib stable 1.9.0 * herd_cows lib stable 1.19.0 * hexagon_target_feature lang unstable 1.27.0 * i128 lib stable 1.26.0 * i128_type lang stable 1.26.0 * if_let lang stable 1.0.0 * if_while_or_patterns lang stable 1.33.0 * impl_header_lifetime_elision lang stable 1.31.0 * impl_trait_in_bindings lang unstable 1.30.0 * import_shadowing lang removed 1.0.0 * in_band_lifetimes lang unstable 1.23.0 * inclusive_range lib stable 1.26.0 * inclusive_range_methods lib stable 1.27.0 * inclusive_range_syntax lang stable 1.26.0 * indirect_hasher_impl lib stable 1.22.0 * infer_outlives_requirements lang stable 1.30.0 * infer_static_outlives_requirements lang unstable 1.26.0 * inner_deref lib unstable None * insert_str lib stable 1.16.0 * int_error_internals lib unstable None * int_error_matching lib unstable None * int_to_from_bytes lib stable 1.32.0 * integer_atomics lib unstable None * into_boxed_c_str lib stable 1.20.0 * into_boxed_os_str lib stable 1.20.0 * into_boxed_path lib stable 1.20.0 * into_raw_os lib stable 1.4.0 * intrinsics lang unstable 1.0.0 * io_error_from_errorkind lib stable 1.14.0 * io_error_inner lib stable 1.3.0 * io_invalid_data lib stable 1.2.0 * io_take_into_inner lib stable 1.15.0 * iovec lib unstable None * ip lib unstable None * ip_17 lib stable 1.7.0 * ip_addr lib stable 1.7.0 * ip_cmp lib stable 1.16.0 * ip_constructors lib stable 1.30.0 * ip_from_ip lib stable 1.16.0 * ip_from_slice lib stable 1.17.0 * ip_shared lib stable 1.12.0 * ip_u32 lib stable 1.1.0 * ipaddr_checker lib stable 1.16.0 * ipv6_from_octets lib stable 1.9.0 * ipv6_from_segments lib stable 1.16.0 * ipv6_to_octets lib stable 1.12.0 * irrefutable_let_patterns lang stable 1.33.0 * is_char_boundary lib stable 1.9.0 * is_sorted lib unstable None * issue_5723_bootstrap lang stable 1.0.0 * item_like_imports lang stable 1.15.0 * iter_arith lib stable 1.11.0 * iter_arith_traits lib stable 1.12.0 * iter_arith_traits_result lib stable 1.16.0 * iter_cloned lib stable 1.1.0 * iter_cmp_by_key lib stable 1.6.0 * iter_copied lib unstable None * iter_empty lib stable 1.2.0 * iter_from_fn lib stable 1.34.0 * iter_max_by lib stable 1.15.0 * iter_min_by lib stable 1.15.0 * iter_nth_back lib unstable None * iter_once lib stable 1.2.0 * iter_once_with lib unstable None * iter_order lib stable 1.5.0 * iter_rfind lib stable 1.27.0 * iter_rfold lib stable 1.27.0 * iter_successors lib stable 1.34.0 * iter_to_slice lib stable 1.4.0 * iterator_find_map lib stable 1.30.0 * iterator_flatten lib stable 1.29.0 * iterator_for_each lib stable 1.21.0 * iterator_repeat_with lib stable 1.28.0 * iterator_step_by lib stable 1.28.0 * iterator_try_fold lib stable 1.27.0 * joinhandle_impl_send_sync lib stable 1.29.0 * label_break_value lang unstable 1.28.0 * lang_items lang unstable 1.0.0 * libstd_io_internals lib unstable None * libstd_sys_internals lib unstable None * libstd_thread_internals lib unstable None * link_args lang unstable 1.0.0 * link_cfg lang unstable 1.14.0 * link_llvm_intrinsics lang unstable 1.0.0 * linkage lang unstable 1.0.0 * linked_list_contains lib stable 1.12.0 * linked_list_extras lib unstable None * lint_reasons lang unstable 1.31.0 * log_syntax lang unstable 1.0.0 * loop_break_value lang stable 1.19.0 * lossless_float_conv lib stable 1.6.0 * lossless_int_conv lib stable 1.5.0 * lossless_iusize_conv lib stable 1.26.0 * macro_at_most_once_rep lang stable 1.32.0 * macro_lifetime_matcher lang stable 1.27.0 * macro_literal_matcher lang stable 1.32.0 * macro_reexport lang removed 1.0.0 * macro_rules lang stable 1.0.0 * macro_vis_matcher lang stable 1.30.0 * macros_in_extern lang unstable 1.27.0 * main lang unstable 1.0.0 * managed_boxes lang removed 1.0.0 * manually_drop lib stable 1.20.0 * manually_drop_take lib unstable None * map_entry_keys lib stable 1.10.0 * map_entry_recover_keys2 lib stable 1.12.0 * map_entry_replace lib unstable None * map_get_key_value lib unstable None * map_values_mut lib stable 1.10.0 * marker_trait_attr lang unstable 1.30.0 * match_beginning_vert lang stable 1.25.0 * match_default_bindings lang stable 1.26.0 * maybe_uninit lib unstable None * maybe_uninit_array lib unstable None * maybe_uninit_ref lib unstable None * maybe_uninit_slice lib unstable None * metadata_ext lib stable 1.1.0 * metadata_ext2 lib stable 1.8.0 * min_const_fn lang stable 1.31.0 * min_const_unsafe_fn lang stable 1.33.0 * mips_target_feature lang unstable 1.27.0 * mmx_target_feature lang unstable 1.27.0 * more_box_slice_clone lib stable 1.29.0 * more_io_inner_methods lib stable 1.20.0 * more_struct_aliases lang stable 1.16.0 * movbe_target_feature lang unstable 1.34.0 * move_cell lib stable 1.17.0 * mpsc_debug lib stable 1.8.0 * mpsc_error_conversions lib stable 1.24.0 * mpsc_recv_timeout lib stable 1.12.0 * mpsc_recv_timeout_error lib stable 1.15.0 * mpsc_select lib unstable None * mut_slice_default lib stable 1.5.0 * mutex_default lib stable 1.10.0 * mutex_from lib stable 1.24.0 * mutex_get_mut lib stable 1.6.0 * mutex_into_inner lib stable 1.6.0 * mutexguard lib stable 1.19.0 * n16 lib unstable None * naked_functions lang unstable 1.9.0 * needs_allocator lang unstable 1.4.0 * needs_drop lib stable 1.21.0 * needs_panic_runtime lang unstable 1.10.0 * negate_unsigned lang removed 1.0.0 * net2_mutators lib stable 1.9.0 * never_hash lib stable 1.29.0 * never_type lang unstable 1.13.0 * never_type lib unstable None * nll lang unstable 1.0.0 * no_core lang unstable 1.3.0 * no_debug lang unstable 1.5.0 * no_more_cas lib unstable None * no_panic_abs lib stable 1.13.0 * no_panic_pow lib stable 1.34.0 * no_std lang stable 1.6.0 * non_ascii_idents lang unstable 1.0.0 * non_exhaustive lang unstable 1.22.0 * non_modrs_mods lang stable 1.30.0 * nonnull lib stable 1.25.0 * nonnull_cast lib stable 1.27.0 * nonzero lib stable 1.28.0 * nonzero_parse lib stable 1.35.0 * num_wrapping lib stable 1.2.0 * omit_gdb_pretty_printer_section lang unstable 1.5.0 * on_unimplemented lang unstable 1.0.0 * once_is_completed lib unstable None * once_new lib stable 1.2.0 * once_poison lib unstable None * op_assign_builtins_by_ref lib stable 1.22.0 * op_assign_traits lib stable 1.8.0 * open_options_ext lib stable 1.10.0 * opt_out_copy lang removed 1.0.0 * optimize_attribute lang unstable 1.34.0 * optin_builtin_traits lang unstable 1.0.0 * option_entry lib stable 1.20.0 * option_filter lib stable 1.27.0 * option_from lib stable 1.12.0 * option_iter lib stable 1.4.0 * option_ref_from_ref_option lib stable 1.30.0 * option_ref_mut_cloned lib stable 1.26.0 * option_replace lib stable 1.31.0 * option_xor lib unstable None * ord_max_min lib stable 1.21.0 * ordering_chaining lib stable 1.17.0 * os lib stable 1.0.0 * os_str_str_ref_eq lib stable 1.29.0 * os_string_from_box lib stable 1.18.0 * osstring_default lib stable 1.9.0 * osstring_from_cow_osstr lib stable 1.28.0 * osstring_shrink_to_fit lib stable 1.19.0 * osstring_simple_functions lib stable 1.9.0 * overlapping_marker_traits lang unstable 1.18.0 * panic_abort lib unstable None * panic_col lib stable 1.25.0 * panic_handler lang stable 1.30.0 * panic_hook_display lib stable 1.26.0 * panic_hooks lib stable 1.10.0 * panic_implementation lang removed 1.28.0 * panic_info_message lib unstable None * panic_internals lib unstable None * panic_runtime lang unstable 1.10.0 * panic_unwind lib unstable None * park_timeout lib stable 1.4.0 * partialeq_path lib stable 1.6.0 * path_ancestors lib stable 1.28.0 * path_buf_capacity lib unstable None * path_buf_from_box lib stable 1.18.0 * path_component_asref lib stable 1.25.0 * path_components_debug lib stable 1.13.0 * path_ext lib stable 1.5.0 * path_from_str lib stable 1.32.0 * path_into_iter lib stable 1.6.0 * path_iter_debug lib stable 1.13.0 * path_strip_prefix lib stable 1.7.0 * pathbuf_from_cow_path lib stable 1.28.0 * pattern lib unstable None * pattern_parentheses lang stable 1.31.0 * peek lib stable 1.18.0 * pin lib stable 1.33.0 * pin_partialeq_partialord_impl_applicability lib stable 1.34.0 * platform_intrinsics lang unstable 1.4.0 * plugin lang unstable 1.0.0 * plugin_registrar lang unstable 1.0.0 * pointer_methods lib stable 1.26.0 * powerpc_target_feature lang unstable 1.27.0 * precise_pointer_size_matching lang unstable 1.32.0 * prelude_import lang unstable 1.2.0 * print_internals lib unstable None * proc_macro lang stable 1.29.0 * proc_macro_def_site lib unstable None * proc_macro_diagnostic lib unstable None * proc_macro_expr lang removed 1.27.0 * proc_macro_gen lang removed 1.27.0 * proc_macro_hygiene lang unstable 1.30.0 * proc_macro_internals lib unstable None * proc_macro_lib lib stable 1.15.0 * proc_macro_lib2 lib stable 1.29.0 * proc_macro_mod lang removed 1.27.0 * proc_macro_non_items lang removed 1.27.0 * proc_macro_path_invoc lang stable 1.30.0 * proc_macro_quote lib unstable None * proc_macro_raw_ident lib unstable None * proc_macro_span lib unstable None * process lib stable 1.0.0 * process_abort lib stable 1.17.0 * process_exec lib stable 1.15.0 * process_exec2 lib stable 1.9.0 * process_exitcode_placeholder lib unstable None * process_extensions lib stable 1.2.0 * process_id lib stable 1.3.0 * process_internals lib unstable None * process_output_debug lib stable 1.7.0 * process_pre_exec lib stable 1.34.0 * process_try_wait lib stable 1.18.0 * profiler_runtime lang unstable 1.18.0 * profiler_runtime_lib lib unstable None * pthread_t lib stable 1.8.0 * ptr_as_ref lib stable 1.9.0 * ptr_eq lib stable 1.17.0 * ptr_hash lib stable 1.35.0 * ptr_internals lib unstable None * ptr_offset_from lib unstable None * ptr_unaligned lib stable 1.17.0 * ptr_wrapping_offset lib stable 1.16.0 * ptr_wrapping_offset_from lib unstable None * pub_restricted lang stable 1.18.0 * pushpop_unsafe lang removed 1.2.0 * quad_precision_float lang removed 1.0.0 * question_mark lang stable 1.13.0 * quote lang removed 1.0.0 * range_contains lib stable 1.35.0 * range_is_empty lib unstable None * raw lib unstable None * raw_ext lib stable 1.1.0 * raw_identifiers lang stable 1.30.0 * raw_os lib stable 1.1.0 * raw_vec_internals lib unstable None * rc_counts lib stable 1.15.0 * rc_downcast lib stable 1.29.0 * rc_into_raw_non_null lib unstable None * rc_raw lib stable 1.17.0 * rc_unique lib stable 1.4.0 * rc_weak lib stable 1.4.0 * rchunks lib stable 1.31.0 * re_rebalance_coherence lang unstable 1.32.0 * read_exact lib stable 1.6.0 * read_initializer lib unstable None * receiver_into_iter lib stable 1.1.0 * receiver_trait lib unstable None * receiver_try_iter lib stable 1.15.0 * refcell_map_split lib stable 1.35.0 * refcell_replace lib stable 1.24.0 * refcell_replace_swap lib stable 1.35.0 * refcell_swap lib stable 1.24.0 * reflect lang removed 1.0.0 * relaxed_adts lang stable 1.19.0 * rename_connect_to_join lib stable 1.3.0 * renamed_spin_loop lib unstable None * repeat_generic_slice lib unstable None * repeat_str lib stable 1.16.0 * repr128 lang unstable 1.16.0 * repr_align lang stable 1.25.0 * repr_align_enum lang unstable 1.34.0 * repr_packed lang stable 1.33.0 * repr_simd lang unstable 1.4.0 * repr_transparent lang stable 1.28.0 * result_expect lib stable 1.4.0 * result_expect_err lib stable 1.17.0 * result_iter lib stable 1.4.0 * result_map_or_else lib unstable None * result_unwrap_or_default lib stable 1.16.0 * resume_unwind lib stable 1.9.0 * retain_hash_collection lib stable 1.18.0 * reverse_bits lib unstable None * reverse_cmp_key lib stable 1.19.0 * rt lib unstable None * rust1 lib stable 1.0.0 * rustc_attrs lang unstable 1.0.0 * rustc_const_unstable lang unstable 1.0.0 * rustc_diagnostic_macros lang unstable 1.0.0 * rustc_private lib unstable None * rvalue_static_promotion lang stable 1.21.0 * rw_exact_all_at lib stable 1.33.0 * rw_lock_default lib stable 1.10.0 * rw_lock_from lib stable 1.24.0 * rwlock_get_mut lib stable 1.6.0 * rwlock_guard_sync lib stable 1.23.0 * rwlock_into_inner lib stable 1.6.0 * sanitizer_runtime lang unstable 1.17.0 * sanitizer_runtime_lib lib unstable None * seek_convenience lib unstable None * self_in_typedefs lang stable 1.32.0 * self_struct_ctor lang stable 1.32.0 * set_permissions lib stable 1.1.0 * set_permissions_atomic lib stable 1.16.0 * set_recovery lib stable 1.9.0 * set_stdio lib unstable None * sgx_platform lib unstable None * shared_from_slice lib stable 1.21.0 * shared_from_slice2 lib stable 1.24.0 * shrink_to lib unstable None * signed_nonzero lib stable 1.34.0 * simd lang removed 1.0.0 * simd_arch lib stable 1.27.0 * simd_ffi lang unstable 1.0.0 * slice_align_to lib stable 1.30.0 * slice_binary_search_by_key lib stable 1.10.0 * slice_concat_ext lib unstable None * slice_get_slice lib stable 1.28.0 * slice_get_slice_impls lib stable 1.15.0 * slice_index_methods lib unstable None * slice_internals lib unstable None * slice_iter_as_ref lib stable 1.13.0 * slice_iter_mut_as_slice lib unstable None * slice_partition_at_index lib unstable None * slice_partition_dedup lib unstable None * slice_patterns lang unstable 1.0.0 * slice_rotate lib stable 1.26.0 * slice_rsplit lib stable 1.27.0 * slice_sort_by_cached_key lib stable 1.34.0 * slice_sort_by_key lib stable 1.7.0 * slice_splits lib stable 1.5.0 * slice_to_socket_addrs lib stable 1.8.0 * slicing_syntax lang stable 1.0.0 * smart_ptr_as_ref lib stable 1.5.0 * sockaddr_checker lib stable 1.16.0 * sockaddr_setters lib stable 1.9.0 * socket_addr_from_str lib stable 1.5.0 * socket_timeout lib stable 1.4.0 * sort_internals lib unstable None * sort_unstable lib stable 1.20.0 * specialization lang unstable 1.7.0 * spin_loop_hint lib stable 1.24.0 * splice lib stable 1.27.0 * split_ascii_whitespace lib stable 1.34.0 * split_off lib stable 1.4.0 * split_whitespace lib stable 1.1.0 * sse4a_target_feature lang unstable 1.27.0 * staged_api lang unstable 1.0.0 * start lang unstable 1.0.0 * static_in_const lang stable 1.17.0 * static_nobundle lang unstable 1.16.0 * static_recursion lang stable 1.17.0 * std_debug lib stable 1.16.0 * std_guard_impls lib stable 1.20.0 * std_internals lib unstable None * std_panic lib stable 1.9.0 * stdio_from lib stable 1.20.0 * stdsimd lib unstable None * step_trait lib unstable None * stmt_expr_attributes lang unstable 1.6.0 * str_as_mut_ptr lib unstable None * str_box_extras lib stable 1.20.0 * str_checked_slicing lib stable 1.20.0 * str_escape lib stable 1.34.0 * str_internals lib unstable None * str_match_indices lib stable 1.5.0 * str_matches lib stable 1.2.0 * str_mut_extras lib stable 1.20.0 * str_parse_error lib stable 1.5.0 * str_parse_error2 lib stable 1.8.0 * str_replacen lib stable 1.16.0 * str_slice_mut lib stable 1.5.0 * str_split_at lib stable 1.4.0 * str_to_string_specialization lib stable 1.9.0 * string_as_str lib stable 1.7.0 * string_box_error lib stable 1.6.0 * string_from_box lib stable 1.18.0 * string_from_cow_str lib stable 1.14.0 * string_from_iter_by_ref lib stable 1.17.0 * string_retain lib stable 1.26.0 * string_split_off lib stable 1.16.0 * string_to_socket_addrs lib stable 1.16.0 * string_to_string_specialization lib stable 1.17.0 * stringaddassign lib stable 1.12.0 * strip_prefix lib stable 1.7.0 * struct_field_attributes lang stable 1.20.0 * struct_inherit lang removed 1.0.0 * struct_variant lang stable 1.0.0 * structural_match lang unstable 1.8.0 * swap_nonoverlapping lib stable 1.27.0 * swap_with_slice lib stable 1.27.0 * symlink lib stable 1.1.0 * symlink_metadata lib stable 1.1.0 * symmetric_u32_duration_mul lib stable 1.31.0 * sync_poison lib stable 1.2.0 * take_set_limit lib stable 1.27.0 * target_feature lang stable 1.27.0 * tbm_target_feature lang unstable 1.27.0 * tcpstream_connect_timeout lib stable 1.21.0 * termination_trait lang stable 1.26.0 * termination_trait_lib lib unstable None * termination_trait_test lang stable 1.27.0 * test lib unstable None * test_2018_feature lang unstable 1.31.0 * test_accepted_feature lang stable 1.0.0 * test_removed_feature lang removed 1.0.0 * thread_extensions lib stable 1.9.0 * thread_id lib stable 1.19.0 * thread_local lang unstable 1.0.0 * thread_local_internals lib unstable None * thread_local_try_with lib stable 1.26.0 * thread_sleep lib stable 1.4.0 * thread_spawn_unchecked lib unstable None * time lib stable 1.3.0 * time2 lib stable 1.8.0 * time_augmented_assignment lib stable 1.9.0 * time_checked_add lib stable 1.34.0 * todo_macro lib unstable None * token_stream_extend lib stable 1.30.0 * tool_attributes lang stable 1.30.0 * tool_lints lang stable 1.31.0 * toowned_clone_into lib unstable None * trace_macros lang unstable 1.0.0 * trait_alias lang unstable 1.24.0 * transpose_result lib stable 1.33.0 * trim_direction lib stable 1.30.0 * trivial_bounds lang unstable 1.28.0 * trusted_len lib unstable None * try_blocks lang unstable 1.29.0 * try_borrow lib stable 1.13.0 * try_from lib stable 1.34.0 * try_reserve lib unstable None * try_trait lib unstable None * tuple_indexing lang stable 1.0.0 * type_alias_enum_variants lang unstable 1.31.0 * type_ascription lang unstable 1.6.0 * type_macros lang stable 1.13.0 * udp_peer_addr lib unstable None * unboxed_closures lang unstable 1.0.0 * underscore_const_names lang unstable 1.31.0 * underscore_imports lang stable 1.33.0 * underscore_lifetimes lang stable 1.26.0 * unicode_case_mapping lib stable 1.2.0 * unicode_encode_char lib stable 1.15.0 * unicode_internals lib unstable None * unicode_version lib unstable None * uniform_paths lang stable 1.32.0 * unit_from_iter lib stable 1.23.0 * universal_impl_trait lang stable 1.26.0 * unix_ppid lib stable 1.27.0 * unix_socket lib stable 1.10.0 * unix_socket_redox lib stable 1.29 * unmarked_api lang removed 1.0.0 * unreachable lib stable 1.27.0 * unrestricted_attribute_tokens lang stable 1.34.0 * unsafe_cell_default lib stable 1.10.0 * unsafe_no_drop_flag lang removed 1.0.0 * unsize lib unstable None * unsized_locals lang unstable 1.30.0 * unsized_tuple_coercion lang unstable 1.20.0 * untagged_unions lang unstable 1.13.0 * unwind_attributes lang unstable 1.4.0 * unwind_safe_atomic_refs lib stable 1.14.0 * unwind_safe_lock_refs lib stable 1.12.0 * update_panic_count lib unstable None * use_extern_macros lang stable 1.30.0 * use_nested_groups lang stable 1.25.0 * used lang stable 1.30.0 * utf8_error lib stable 1.5.0 * utf8_error_error_len lib stable 1.20.0 * vec_as_mut lib stable 1.5.0 * vec_as_slice lib stable 1.7.0 * vec_deque_contains lib stable 1.12.0 * vec_deque_partial_eq_slice lib stable 1.17.0 * vec_deque_retain lib stable 1.4.0 * vec_drain_as_slice lib unstable None * vec_extend_from_slice lib stable 1.6.0 * vec_from_box lib stable 1.18.0 * vec_from_cow_slice lib stable 1.14.0 * vec_from_mut lib stable 1.19.0 * vec_into_iter_as_slice lib stable 1.15.0 * vec_into_iter_clone lib stable 1.8.0 * vec_intoiter_debug lib stable 1.13.0 * vec_remove_item lib unstable None * vec_resize lib stable 1.5.0 * vec_resize_default lib unstable None * vec_resize_with lib stable 1.33.0 * vec_splice lib stable 1.21.0 * vecdeque_rotate lib unstable None * vecdeque_vec_conversions lib stable 1.10.0 * visible_private_types lang removed 1.0.0 * volatile lib stable 1.9.0 * wait_timeout lib stable 1.5.0 * wait_timeout_until lib unstable None * wait_until lib unstable None * wasi_ext lib unstable None * wasm_target_feature lang unstable 1.30.0 * weak_counts lib unstable None * weak_ptr_eq lib unstable None * while_let lang stable 1.0.0 * windows_c lib unstable None * windows_file_type_ext lib unstable None * windows_handle lib unstable None * windows_net lib unstable None * windows_process_extensions lib stable 1.16.0 * windows_stdio lib unstable None * windows_subsystem lang stable 1.18.0 * wrapping lib stable 1.7.0 * wrapping_display lib stable 1.10.0 * wrapping_div lib stable 1.3.0 * wrapping_fmt lib stable 1.11.0 * wrapping_impls lib stable 1.7.0 * wrapping_int_impl lib unstable None * wrapping_iter_arith lib stable 1.14.0 * wrapping_neg lib stable 1.10.0 * wrapping_next_power_of_two lib unstable None * wrapping_ref lib stable 1.14.0 Building stage0 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Copying stage0 std from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.22s Copying stage0 test from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.28s Copying stage0 rustc from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Finished release [optimized] target(s) in 0.23s Assembling stage1 compiler (i686-unknown-linux-gnu) Building stage1 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Copying stage1 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.23s Copying stage1 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.28s Copying stage1 rustc from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Finished release [optimized] target(s) in 0.23s Assembling stage2 compiler (i686-unknown-linux-gnu) Uplifting stage1 std (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Uplifting stage1 test (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building test helpers running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m32" "-march=i686" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/native/rust-test-helpers/rust_test_helpers.o" "-c" "/builddir/build/BUILD/rustc-1.35.0-src/src/test/auxiliary/rust_test_helpers.c" exit code: 0 running: "ar" "crs" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/native/rust-test-helpers/librust_test_helpers.a" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/native/rust-test-helpers/rust_test_helpers.o" exit code: 0 Building stage0 tool compiletest (i686-unknown-linux-gnu) Compiling failure_derive v0.1.5 Compiling diff v0.1.11 Compiling syn v0.15.22 Compiling env_logger v0.5.13 Compiling synstructure v0.10.1 Compiling serde_derive v1.0.81 Compiling failure v0.1.5 Compiling rustfix v0.4.4 Compiling compiletest v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/compiletest) error[E0560]: struct `test::TestOpts` has no field named `exclude_should_panic` --> src/tools/compiletest/src/main.rs:525:9 | 525 | exclude_should_panic: false, | ^^^^^^^^^^^^^^^^^^^^ `test::TestOpts` does not have this field | = note: available fields are: `list`, `filter`, `filter_exact`, `run_ignored`, `run_tests` ... and 8 others error: aborting due to previous error For more information about this error, try `rustc --explain E0560`. error: Could not compile `compiletest`. To learn more, run the command again with --verbose. command did not execute successfully: "/usr/bin/cargo" "build" "--target" "i686-unknown-linux-gnu" "-j" "40" "--release" "--frozen" "--manifest-path" "/builddir/build/BUILD/rustc-1.35.0-src/src/tools/compiletest/Cargo.toml" "--message-format" "json" expected success, got: exit code: 101 failed to run: /builddir/build/BUILD/rustc-1.35.0-src/build/bootstrap/debug/bootstrap test --no-fail-fast Build completed unsuccessfully in 0:00:39 + : + /usr/libexec/platform-python ./x.py test --no-fail-fast cargo Finished dev [unoptimized] target(s) in 0.25s Building stage0 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Copying stage0 std from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.23s Copying stage0 test from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.28s Copying stage0 rustc from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Finished release [optimized] target(s) in 0.23s Assembling stage1 compiler (i686-unknown-linux-gnu) Building stage1 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Copying stage1 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.23s Copying stage1 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.28s Copying stage1 rustc from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Finished release [optimized] target(s) in 0.23s Assembling stage2 compiler (i686-unknown-linux-gnu) Uplifting stage1 std (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Uplifting stage1 test (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Uplifting stage1 rustc (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 rustc from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage2 tool cargo (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.30s Building rustdoc for stage2 (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Compiling num-traits v0.2.6 Compiling bit-vec v0.5.0 Compiling bufstream v0.1.4 Compiling wait-timeout v0.1.5 Compiling bit-set v0.5.0 Compiling rusty-fork v0.2.1 Compiling proptest v0.9.2 Compiling cargo v0.36.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/cargo) warning: cannot borrow `*p` as mutable because it is also borrowed as immutable --> src/tools/cargo/tests/testsuite/support/mod.rs:794:17 | 793 | if let Some(cwd) = p.get_cwd() { | - immutable borrow occurs here 794 | p.cwd(cwd.join(path.as_ref())); | ^ --- immutable borrow later used here | | | mutable borrow occurs here | = note: #[warn(mutable_borrow_reservation_conflict)] on by default = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future = note: for more information, see issue #59159 Finished release [optimized] target(s) in 47.49s Running build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/deps/cargo-ea50436fc57d152c running 25 tests test core::package_id::tests::invalid_version_handled_nicely ... ok test core::package_id::tests::display ... ok test core::package_id_spec::tests::bad_parsing ... ok test core::package_id::tests::debug ... ok test core::package_id_spec::tests::matching ... ok test core::package_id_spec::tests::good_parsing ... ok test sources::git::source::test::test_canonicalize_cannot_be_a_base_urls ... ok test sources::git::source::test::test_canonicalize_idents_by_lowercasing_github_urls ... ok test sources::git::source::test::test_canonicalize_idents_by_stripping_dot_git ... ok test core::source::source_id::tests::github_sources_equal ... ok test sources::git::source::test::test_canonicalize_idents_by_stripping_trailing_url_slash ... ok test sources::git::source::test::test_url_to_path_ident_with_path ... ok test sources::git::source::test::test_url_to_path_ident_without_path ... ok test sources::git::source::test::test_canonicalize_idents_different_protocols ... ok test sources::registry::index::no_hyphen ... ok test sources::registry::index::two_hyphen ... ok test sources::registry::escaped_cher_in_json ... ok test util::dependency_queue::test::deep_first ... ok test sources::registry::index::overflow_hyphen ... ok test util::progress::test_progress_status_percentage ... ok test util::progress::test_progress_status_too_short ... ok test util::progress::test_progress_status ... ok test util::network::with_retry_finds_nested_spurious_errors ... ok test util::network::with_retry_repeats_the_call_then_works ... ok warning: spurious network error (2 tries remaining): A second chained error warning: spurious network error (1 tries remaining): A non-spurious wrapping errwarning: spurious network error (2 tries remaining): failed to get 200 response from `Uri`, got 502 warning: spurious network error (1 tries remaining): failed to get 200 response from `Uri`, got 501 test util::lev_distance::test_lev_distance ... ok test result: ok. 25 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out Running build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/deps/testsuite-da89b62dff8f0ad8 running 1554 tests test aaa_trigger_cross_compile_disabled_check ... ok test bad_config::bad2 ... ok test bad_config::bad_cargo_config_jobs ... ok test bad_config::bad_debuginfo ... ok test bad_config::bad_opt_level ... ok test bad_config::bad_cargo_lock ... ok test bad_config::bad_dependency ... ok test bad_config::bad_source_config2 ... ok test bad_config::bad4 ... ok test bad_config::bad_source_config1 ... ok test bad_config::bad_source_config5 ... ok test bad_config::bad_source_config3 ... ok test bad_config::bad_source_config6 ... ok test bad_config::ambiguous_git_reference ... ok test bad_config::duplicate_bench_names ... ok test bad_config::both_git_and_path_specified ... ok test bad_config::bad_source_config4 ... ok test bad_config::bad_git_dependency ... ok test bad_config::invalid_global_config ... ok test bad_config::duplicate_binary_names ... ok test bad_config::duplicate_example_names ... ok test bad_config::duplicate_deps ... ok test bad_config::duplicate_deps_diff_sources ... ok test bad_config::ignored_git_revision ... ok test bad_manifest_path::bench_dir_plus_file ... ok test bad_config::malformed_override ... ok test bad_manifest_path::bench_dir_containing_cargo_toml ... ok test bad_manifest_path::bench_dir_to_nonexistent_cargo_toml ... ok test bad_manifest_path::build_dir_containing_cargo_toml ... ok test bad_manifest_path::bench_dir_plus_path ... ok test alt_registry::registry_incompatible_with_git ... ok test alt_registry::passwords_in_url_forbidden ... ok test bad_manifest_path::build_dir_plus_file ... ok test bad_config::duplicate_packages_in_cargo_lock ... ok test bad_config::bad1 ... ok test bad_config::bad6 ... ok test bad_config::bad_source_in_cargo_lock ... ok test bad_manifest_path::build_dir_to_nonexistent_cargo_toml ... ok test bad_config::bad3 ... ok test bad_config::bad_source_config7 ... ok test bad_manifest_path::build_dir_plus_path ... ok test bad_manifest_path::clean_dir_containing_cargo_toml ... ok test bad_manifest_path::clean_dir_to_nonexistent_cargo_toml ... ok test bad_manifest_path::clean_dir_plus_file ... ok test bad_manifest_path::doc_dir_containing_cargo_toml ... ok test bad_manifest_path::clean_dir_plus_path ... ok test bad_manifest_path::doc_dir_plus_file ... ok test bad_manifest_path::doc_dir_plus_path ... ok test bad_manifest_path::generate_lockfile_dir_plus_file ... ok test bad_manifest_path::doc_dir_to_nonexistent_cargo_toml ... ok test bad_manifest_path::fetch_dir_containing_cargo_toml ... ok test bad_manifest_path::fetch_dir_plus_file ... ok test bad_manifest_path::fetch_dir_plus_path ... ok test bad_manifest_path::fetch_dir_to_nonexistent_cargo_toml ... ok test bad_manifest_path::generate_lockfile_dir_containing_cargo_toml ... ok test bad_manifest_path::generate_lockfile_dir_plus_path ... ok test bad_manifest_path::package_dir_plus_file ... ok test bad_manifest_path::generate_lockfile_dir_to_nonexistent_cargo_toml ... ok test bad_manifest_path::package_dir_containing_cargo_toml ... ok test bad_manifest_path::package_dir_plus_path ... ok test bad_manifest_path::package_dir_to_nonexistent_cargo_toml ... ok test bad_manifest_path::pkgid_dir_plus_file ... ok test bad_manifest_path::pkgid_dir_containing_cargo_toml ... ok test bad_manifest_path::pkgid_dir_plus_path ... ok test bad_manifest_path::pkgid_dir_to_nonexistent_cargo_toml ... ok test bad_manifest_path::publish_dir_plus_file ... ok test bad_manifest_path::read_manifest_dir_containing_cargo_toml ... ok test bad_manifest_path::publish_dir_plus_path ... ok test bad_manifest_path::read_manifest_dir_plus_path ... ok test bad_manifest_path::publish_dir_containing_cargo_toml ... ok test bad_manifest_path::read_manifest_dir_to_nonexistent_cargo_toml ... ok test bad_manifest_path::publish_dir_to_nonexistent_cargo_toml ... ok test bad_manifest_path::read_manifest_dir_plus_file ... ok test bad_manifest_path::run_dir_containing_cargo_toml ... ok test bad_manifest_path::run_dir_plus_file ... ok test alt_registry::cannot_publish_to_crates_io_with_registry_dependency ... ok test bad_manifest_path::run_dir_plus_path ... ok test bad_manifest_path::run_dir_to_nonexistent_cargo_toml ... ok test bad_manifest_path::rustc_dir_plus_path ... ok test bad_manifest_path::rustc_dir_plus_file ... ok test bad_manifest_path::rustc_dir_containing_cargo_toml ... ok test bad_manifest_path::rustc_dir_to_nonexistent_cargo_toml ... ok test bad_manifest_path::test_dir_containing_cargo_toml ... ok test bad_manifest_path::test_dir_plus_file ... ok test bad_manifest_path::test_dir_plus_path ... ok test bad_manifest_path::test_dir_to_nonexistent_cargo_toml ... ok test bad_manifest_path::update_dir_plus_file ... ok test bad_manifest_path::update_dir_containing_cargo_toml ... ok test bad_manifest_path::update_dir_plus_path ... ok test bad_manifest_path::update_dir_to_nonexistent_cargo_toml ... ok test bad_manifest_path::verify_project_dir_plus_file ... ok test bad_manifest_path::verify_project_dir_containing_cargo_toml ... ok test alt_registry::bad_registry_name ... ok test bad_manifest_path::verify_project_dir_plus_path ... ok test bad_manifest_path::verify_project_dir_to_nonexistent_cargo_toml ... ok test alt_registry::alt_reg_metadata ... ok test bad_config::bad_crate_type ... ok test bench::bench_all_exclude ... ok test bench::bench_all_virtual_manifest ... ok test bench::bench_bench_implicit ... ok test bench::bench_autodiscover_2015 ... ok test bench::bench_dylib ... ok test bench::bench_all_workspace ... ok test bench::bench_bin_implicit ... ok test bench::bench_multiple_targets ... ok test bench::bench_tarname ... ok test bench::bench_with_deep_lib_dep ... ok test bench::bench_twice_with_build_cmd ... ok test bench::cargo_bench_simple ... ok test bench::bench_virtual_manifest_all_implied ... ok test bench::bench_with_examples ... ok test bench::cargo_bench_failing_test ... ok test bench::bench_with_lib_dep ... ok test bench::cargo_bench_twice ... ok test bench::cargo_bench_verbose ... ok test build::bad_cargo_config ... ok test bench::json_artifact_includes_executable_for_benchmark ... ok test bench::dont_run_examples ... ok test bench::external_bench_explicit ... ok test bench::external_bench_implicit ... ok test bench::legacy_bench_name ... ok test bench::lib_bin_same_name ... ok test bench::lib_with_standard_name ... ok test bench::many_similar_names ... ok test bench::lib_with_standard_name2 ... ok test bench::pass_through_command_line ... ok test bench::test_bench_multiple_packages ... ok test bench::test_bench_no_run ... ok test bench::test_a_bench ... ok test bench::test_bench_no_fail_fast ... ok test bad_config::bad_dependency_in_lockfile ... ok test bad_config::default_cargo_config_jobs ... ok test build::cargo_build_empty_target ... ok test bad_config::good_cargo_config_jobs ... ok test build::cargo_compile_offline_not_try_update ... ok test bad_config::unused_keys_in_virtual_manifest ... ok test build::cargo_compile_with_bin_and_proc ... ok test build::cargo_compile_with_bin_and_crate_type ... ok test build::cargo_compile_with_dep_name_mismatch ... ok test build::cargo_compile_with_empty_package_name ... ok test bad_config::warn_semver_metadata ... ok test build::cargo_compile_with_forbidden_bin_target_name ... ok test alt_registry::patch_alt_reg ... ok test build::bad_platform_specific_dependency ... ok test build::cargo_compile_with_filename ... ok test build::cargo_compile_with_invalid_bin_target_name ... ok test build::building_a_dependent_crate_witout_bin_should_fail ... ok test build::cargo_compile_with_invalid_manifest ... ok test build::cargo_compile_with_invalid_lib_target_name ... ok test build::cargo_compile_with_invalid_manifest2 ... ok test build::cargo_compile_with_invalid_manifest3 ... ok test build::cargo_compile_with_invalid_package_name ... ok test build::cargo_compile_with_invalid_non_numeric_dep_version ... ok test build::build_virtual_manifest_one_project ... ok test build::build_all_virtual_manifest ... ok test build::cargo_compile_with_invalid_version ... ok test build::build_virtual_manifest_all_implied ... ok test bad_config::invalid_toml_historically_allowed_is_warned ... ok test build::cargo_compile_with_workspace_excluded ... ok test alt_registry::no_api ... ok test alt_registry::block_publish_due_to_no_token ... ok test alt_registry::publish_to_alt_registry ... ok test build::cargo_compile_without_manifest ... ok test build::build_all_member_dependency_same_name ... ok test bad_config::empty_dependencies ... ok test build::cargo_compile_path_with_offline ... ok test build::cargo_compile_with_invalid_code ... ok test alt_registry::publish_with_crates_io_dep ... ok test alt_registry::registry_and_path_dep_works ... ok test alt_registry::publish_with_registry_dependency ... ok test build::bad_cargo_toml_in_target_dir ... ok test build::cargo_compile_with_invalid_code_in_deps ... ok test alt_registry::depend_on_alt_registry_depends_on_same_registry ... ok test build::avoid_dev_deps ... ok test build::build_all_exclude ... ok test alt_registry::depend_on_alt_registry_depends_on_crates_io ... ok test alt_registry::alt_registry_and_crates_io_deps ... ok test alt_registry::unknown_registry ... ok test alt_registry::depend_on_alt_registry_depends_on_same_registry_no_index ... ok test build::dashes_in_crate_name_bad ... ok test build::cargo_compile_manifest_path ... ok test build::cyclic_deps_rejected ... ok test build::build_with_fake_libc_not_loading ... ok test build::all_targets_no_lib ... ok test build::cargo_fail_with_no_stderr ... ok test build::cargo_compile_simple ... ok test build::build_all_workspace ... ok test build::compile_offline_while_transitive_dep_not_cached ... ok test build::build_all_virtual_manifest_implicit_examples ... ok test build::build_multiple_packages ... ok test build::build_all_workspace_implicit_examples ... ok test build::cargo_compile_with_downloaded_dependency_with_offline ... ok test build::dep_no_libs ... ok test build::cargo_compile_with_warnings_in_the_root_package ... ok test build::cdylib_final_outputs ... ok test build::cdylib_not_lifted ... ok test bad_config::unused_keys ... ok test build::cargo_platform_specific_dependency_wrong_platform ... ok test build::cargo_compile_with_warnings_in_a_dep_package ... ok test build::example_as_lib ... ok test build::example_as_rlib ... ok test build::cargo_compile_duplicate_build_targets ... ok test build::compile_path_dep_then_change_version ... ok test build::compile_then_delete ... ok test build::incompatible_dependencies ... ok test build::incompatible_dependencies_with_multi_semver ... ok test build::cargo_compile_incremental ... ok test alt_registry::depend_on_alt_registry ... ok test build::dotdir_root ... ok test build::inferred_bins_duplicate_name ... ok test build::ignore_bad_directories ... ok test build::dashes_to_underscores ... ok test build::cargo_compile_with_nested_deps_correct_bin ... ok test build::crate_library_path_env_var ... ok test build::example_bin_same_name ... ok test build::cargo_compile_with_nested_deps_inferred ... ok test build::cargo_compile_with_nested_deps_shorthand ... ok test build::invalid_jobs ... ok test build::explicit_color_config_is_propagated_to_rustc ... ok test build::invalid_spec ... ok test build::cargo_default_env_metadata_env_var ... ok test build::cargo_compile_with_nested_deps_longhand ... ok test build::explicit_bins_without_paths ... ok test build::deletion_causes_failure ... ok test build::no_bin_in_src_with_lib ... ok test build::missing_lib_and_bin ... ok test build::example_as_dylib ... ok test build::non_existing_binary ... ok test build::example_as_proc_macro ... ok test build::non_existing_example ... ok test build::ignore_broken_symlinks ... ok test build::filtering ... ok test build::explicit_examples ... ok test build::filtering_implicit_bins ... ok test build::ignore_dotdirs ... ok test build::filtering_implicit_examples ... ok test build::ignore_dotfile ... ok test build::manifest_with_bom_is_ok ... ok test build::deterministic_cfg_flags ... ok test build::ignores_carriage_return_in_lockfile ... ok test build::compiler_json_error_format ... ok test build::rustc_env_var ... ok test build::compile_offline_without_maxvers_cached ... ok test build::inferred_bin_path ... ok test build::freshness_ignores_excluded ... ok test build::no_warn_about_package_metadata ... ok test build::implicit_examples ... ok test build::panic_abort_compiles_with_panic_abort ... ok test build::opt_out_of_bin ... ok test build::self_dependency ... ok test build::inferred_main_bin ... ok test build::rustc_wrapper_from_path ... ok test build::rustc_wrapper_relative ... ok test build::inferred_bins ... ok test build::recompile_space_in_name ... ok test build::target_filters_workspace_not_found ... ok test build::message_format_json_forward_stderr ... ok test build::inferred_examples ... ok test build::lib_with_standard_name ... ok test build::uplift_dsym_of_bin_on_mac ... ok test build::uplift_pdb_of_bin_on_windows ... ok test build::many_crate_types_correct ... ok test build::inferred_benchmarks ... ok test build::rustc_wrapper ... ok test build::many_crate_types_old_style_lib_location ... ok test build::crate_env_vars ... ok test build::wrong_message_format_option ... ok test build::crate_authors_env_vars ... ok test build::inferred_tests ... ok test build::simple_staticlib ... ok test build::target_edition ... ok test build::single_lib ... ok test build_auth::ssh_something_happens ... ok test build_lib::build_with_no_lib ... ok test build::offline_missing_optional ... ok test build_auth::https_something_happens ... ok test build::target_edition_override ... ok test build::incremental_config ... ok test build::no_linkable_target ... ok test build::predictable_filenames ... ok test build::run_proper_alias_binary_main_rs ... ok test build::release_build_ndebug ... ok test build::run_proper_alias_binary_from_src ... ok test build::run_proper_binary_main_rs_as_foo ... ok test build_script::build_script_only ... ok test build::verbose_build ... ok test build::json_parse_fail ... ok test build::run_proper_binary ... ok test build::verbose_release_build ... ok test build::offline_unused_target_dep ... ok test build::run_proper_binary_main_rs ... ok test build::custom_target_dir_env ... ok test build::cargo_platform_specific_dependency ... ok test build_script::custom_build_env_var_rustc_linker ... ok test build_plan::cargo_build_plan_build_script ... ok test build_plan::cargo_build_plan_simple ... ok test build_plan::build_plan_with_dev_dep ... ok test build_plan::cargo_build_plan_single_dep ... ok test build::standard_build_no_ndebug ... ok test build_lib::build_lib_only ... ok test build::verbose_release_build_deps ... ok test build::transitive_dependencies_not_available ... ok test build::targets_selected_default ... ok test build::staticlib_rlib_and_bin ... ok test build::signal_display ... ok test build::target_filters_workspace ... ok test build::vv_prints_rustc_env_vars ... ok test build::rebuild_preserves_out_dir ... ok test build_script::links_duplicates ... ok test build::targets_selected_all ... ok test build::build_filter_infer_profile ... ok test build_script::links_duplicates_deep_dependency ... ok test build_script::links_duplicates_with_cycle ... ok test build_script::changing_an_override_invalidates ... ok test build_auth::http_auth_offered ... ok test build_lib::build_with_relative_cargo_home_path ... ok test build_script::custom_build_script_failed ... ok test build_script::custom_build_script_wrong_rustc_flags ... ok test build_script::links_no_build_cmd ... ok test build::custom_target_dir_line_parameter ... ok test build_script::cfg_override ... ok test build_script::build_script_with_lto ... ok test build::incremental_profile ... ok test build_script::fresh_builds_possible_with_link_libs ... ok test build_script::fresh_builds_possible_with_multiple_metadata_overrides ... ok test build_script::adding_an_override_invalidates ... ok test build_script::build_deps_not_for_normal ... ok test build_script::build_deps_simple ... ok test build_script::links_with_dots ... ok test build::same_metadata_different_directory ... ok test build_script::custom_target_dir ... ok test build_script::if_build_set_to_false_dont_treat_build_rs_as_build_script ... ok test build_script::cfg_feedback ... ok test build_script::rename_with_link_search_path_cross ... ok test build::legacy_binary_paths_warnings ... ok test build_script::assume_build_script_when_build_rs_present ... ok test build_script::build_cmd_with_a_build_cmd ... ok test build_script::diamond_passes_args_only_once ... ok test build_script::cfg_env_vars_available ... ok test build_script::deterministic_rustc_dependency_flags ... ok test build_script::links_passes_env_vars ... ok test build_script::output_separate_lines ... ok test build_script::output_separate_lines_new ... ok test build_script::env_build ... ok test build_script::cfg_override_test ... ok test build::lto_build ... FAILED test build_script::custom_build_env_vars ... ok test build_script::doctest_receives_build_link_args ... ok test build_script::output_shows_on_vv ... ok test build_script::release_with_build_script ... ok test build_script::please_respect_the_dag ... ok test build_script::only_rerun_build_script ... ok test cargo_alias_config::alias_incorrect_config_type ... ok test build_script::overrides_and_links ... ok test build_script::profile_debug_0 ... ok test build_script::non_utf8_output ... ok test build_script::propagation_of_l_flags_new ... ok test build_script::env_test ... ok test build_script::propagation_of_l_flags ... ok test build_script::code_generation ... ok test build_script::cfg_test ... ok test cargo_command::cargo_help ... ok test build_script::out_dir_is_preserved ... ok test cargo_command::displays_subcommand_on_error ... ok test cargo_command::find_closest_dont_correct_nonsense ... ok test cargo_command::list_command_looks_at_path ... ok test cargo_command::list_command_resolves_symlinks ... ok test cargo_command::list_commands_with_descriptions ... ok test cargo_command::override_cargo_home ... ok test cargo_command::explain ... ok test cargo_command::z_flags_help ... ok test cargo_features::feature_required ... ok test build_script::profile_and_opt_level_set_correctly ... ok test build_script::rebuild_continues_to_pass_env_vars ... ok test build_script::unused_overrides ... ok test build_script::warnings_emitted ... ok test build_script::build_script_with_dynamic_native_dependency ... ok test cargo_alias_config::alias_config ... ok test cargo_alias_config::alias_list_test ... ok test cargo_features::unknown_feature ... ok test cargo_alias_config::recursive_alias ... ok test cfg::cfg_expr ... ok test cfg::cfg_expr_bad ... ok test cfg::cfg_matches ... ok test cfg::cfg_syntax ... ok test cfg::cfg_syntax_bad ... ok test cargo_alias_config::alias_cannot_shadow_builtin_command ... ok test cargo_alias_config::alias_override_builtin_alias ... ok test cargo_alias_config::alias_with_flags_config ... ok test cfg::bad_target_spec ... ok test cfg::bad_target_spec2 ... ok test cargo_features::cant_publish ... ok test cargo_features::nightly_feature_requires_nightly ... ok test build_script::warnings_printed_on_vv ... ok test build_script::warnings_hidden_for_upstream ... ok test build_script::flags_go_into_tests ... ok test cargo_alias_config::builtin_alias_takes_options ... ok test cargo_features::publish_allowed ... ok test cargo_features::nightly_feature_requires_nightly_in_dep ... ok test build_script::shared_dep_with_a_build_script ... ok test build_script::rustc_and_rustdoc_set_correctly ... ok test cargo_features::stable_feature_warns ... ok test cargo_command::cargo_subcommand_env ... ok test build_script::test_duplicate_deps ... ok test cfg::dont_include ... ok test cargo_features::z_flags_rejected ... ok test cargo_command::find_closest_biuld_to_build ... ok test cargo_command::cargo_subcommand_args ... ok test build_script::optional_build_script_dep ... ok test cfg::cfg_easy ... ok test cfg::any_ok ... ok test cargo_command::cargo_help_external_subcommand ... ok test build_script::rename_with_link_search_path ... ok test cfg::ignore_version_from_other_platform ... ok test cfg::multiple_match_ok ... ok test check::check_fail ... ok test build_script::test_dev_dep_build_script ... ok test check::check_virtual_all_implied ... ok test check::does_not_use_empty_rustc_wrapper ... ok test build_script::transitive_dep_host ... ok test check::check_all ... ok test build_script::optional_build_dep_and_required_normal_dep ... ok test build_script::env_doc ... ok test check::exclude_warns_on_non_existing_package ... ok test check::check_success ... ok test cfg::works_through_the_registry ... ok test check::check_unit_test_profile ... ok test check::issue_3418 ... ok test check::error_from_deep_recursion ... ok test check::rustc_check_err ... ok test check::rustc_check ... ok test check::short_message_format ... ok test check::targets_selected_default ... ok test build_script::test_a_lib_with_a_build_command ... ok test check::targets_selected_all ... ok test config::config_deserialize_any ... ok test config::config_bad_toml ... ok test config::config_get_list ... ok test config::config_get_integers ... ok test config::config_get_option ... ok test config::config_get_other_types ... ok test config::config_load_toml_profile ... ok test config::config_relative_path ... ok test config::config_unused_fields ... ok test config::config_toml_errors ... ok test config::get_errors ... ok test config::load_nested ... ok test config::get_config ... ok test check::issue_3419 ... ok test build_script::panic_abort_with_build_scripts ... ok test cross_compile::build_deps_for_the_right_arch ... ok test cross_compile::build_script_needed_for_host_and_target ... ok test cross_compile::build_script_only_host ... ok test cross_compile::build_script_with_platform_specific_dependencies ... ok test cross_compile::cross_test_dylib ... ok test cross_compile::cross_tests ... ok test cross_compile::cross_with_a_build_script ... ok test cross_compile::linker_and_ar ... ok test check::build_check ... ok test cross_compile::platform_specific_dependencies_do_not_leak ... ok test cross_compile::platform_specific_variables_reflected_in_build_scripts ... ok test cross_compile::plugin_build_script_right_arch ... ok test cross_compile::plugin_deps ... ok test cross_compile::plugin_to_the_max ... ok test cross_compile::plugin_with_extra_dylib_dep ... ok test cross_compile::simple_cargo_run ... ok test cross_compile::simple_cross ... ok test cross_compile::simple_cross_config ... ok test cross_compile::simple_deps ... ok test cross_compile::no_cross_doctests ... ok test cross_publish::publish_with_target ... ok test cross_publish::simple_cross_package ... ok test check::check_build ... ok test custom_target::custom_target_minimal ... ok test clean::cargo_clean_simple ... ok test custom_target::custom_target_dependency ... ok test collisions::collision_dylib ... ok test check::dylib_check_preserves_build_cache ... ok test check::custom_derive ... ok test clean::different_dir ... ok test clean::clean_multiple_packages ... ok test collisions::collision_example ... ok test check::proc_macro ... ok test concurrent::concurrent_installs ... ok test build_script::switch_features_rerun ... ok test collisions::collision_export ... ok test directory::git_override_requires_lockfile ... ok test directory::not_there ... ok test concurrent::multiple_installs ... ok test directory::bad_file_checksum ... ok test concurrent::git_same_repo_different_tags ... ok test concurrent::one_install_should_be_bad ... ok test directory::simple_install_fail ... ok test dep_info::build_dep_info_rlib ... ok test dep_info::no_rewrite_if_no_change ... ok test directory::version_missing ... ok test concurrent::same_project ... ok test build_script_env::rerun_if_env_changes ... ok test concurrent::no_deadlock_with_git_dependencies ... ok test dep_info::build_dep_info ... ok test directory::only_dot_files_ok ... ok test doc::doc_cap_lints ... ok test directory::crates_io_then_bad_checksum ... ok test directory::multiple ... ok test directory::random_files_ok ... ok test build_script::cfg_override_doc ... ok test death::ctrl_c_kills_everyone ... ok test clean::clean_git ... ok test doc::doc_message_format ... ok test directory::simple ... ok test config::read_env_vars_for_config ... ok test concurrent::multiple_registry_fetches ... ok test doc::doc_multiple_targets_same_name_lib ... ok test build_script_env::rerun_if_env_or_file_changes ... ok test doc::doc_multiple_targets_same_name_bin ... ok test corrupt_git::deleting_database_files ... ok test check::check_filters ... ok test concurrent::debug_release_ok ... ok test directory::git_lock_file_doesnt_change ... ok test clean::clean_verbose ... ok test dep_info::build_dep_info_dylib ... ok test directory::crates_io_then_directory ... ok test corrupt_git::deleting_checkout_files ... ok test clean::registry ... ok test build_script::rebuild_only_on_explicit_paths ... ok test dep_info::build_dep_info_lib ... ok test directory::install_without_feature_dep ... ok test doc::doc_no_libs ... ok test build_script::cfg_doc ... ok test directory::workspace_different_locations ... ok test concurrent::git_same_branch_different_revs ... ok test doc::doc_target ... ok test directory::simple_install ... ok test doc::short_message_format ... ok test concurrent::killing_cargo_releases_the_lock ... ok test clean::clean_release ... ok test check::check_artifacts ... ok test clean::build_script ... ok test doc::doc_lib_bin_same_name_documents_lib ... ok test doc::doc_lib_bin_same_name_documents_lib_when_requested ... ok test doc::doc_multiple_deps ... ok test build_script::testing_and_such ... ok test doc::doc_multiple_targets_same_name_undoced ... ok test doc::doc_lib_bin_same_name_documents_named_bin_when_requested ... ok test features::cyclic_feature ... ok test doc::doc_lib_bin_same_name_documents_bins_when_requested ... ok test doc::doc_multiple_targets_same_name ... ok test doc::doc_all_virtual_manifest ... ok test doc::doc_no_deps ... ok test doc::doc_private_ws ... ok test features::invalid1 ... ok test doc::document_only_lib ... ok test features::everything_in_the_lockfile ... ok test features::invalid2 ... ok test features::invalid3 ... ok test doc::doc_same_name ... ok test features::invalid5 ... ok test features::invalid4 ... ok test doc::no_document_build_deps ... ok test doc::doc_release ... ok test features::invalid6 ... ok test features::invalid7 ... ok test doc::doc_workspace_open_binary ... ok test features::invalid8 ... ok test doc::doc_workspace_open_different_library_and_package_names ... ok test features::activating_feature_activates_dep ... ok test features::namespaced_implicit_non_optional ... ok test features::namespaced_invalid_dependency ... ok test doc::doc_twice ... ok test features::namespaced_invalid_feature ... ok test features::namespaced_non_optional_dependency ... ok test doc::doc_private_items ... ok test features::namespaced_shadowed_dep ... ok test features::namespaced_shadowed_non_optional ... ok test doc::doc_workspace_open_help_message ... ok test features::no_transitive_dep_feature_requirement ... ok test edition::edition_works_for_build_script ... ok test doc::doc_virtual_manifest_all_implied ... ok test doc::doc_workspace_open_binary_and_library ... ok test features::all_features_all_crates ... ok test doc::plugins_no_use_target ... ok test fetch::fetch_all_platform_dependencies_when_no_target_is_given ... ok test fetch::fetch_platform_specific_dependencies ... ok test features::cyclic_feature2 ... ok test features::empty_features ... ok test fix::both_edition_migrate_flags ... ok test doc::doc_edition ... ok test features::combining_features_and_package ... ok test fetch::no_deps ... ok test features::optional_and_dev_dep ... ok test features::all_features_flag_enables_all_features ... ok test features::groups_on_groups_on_groups ... ok test clean::clean_doc ... ok test features::namespaced_implicit_feature ... ok test features::namespaced_same_name ... ok test features::no_rebuild_when_frobbing_default_feature ... ok test features::invalid9 ... ok test features::many_cli_features_comma_delimited ... ok test features::many_cli_features ... ok test features::feature_off_dylib ... ok test features::invalid10 ... ok test doc::doc_target_edition ... ok test features::only_dep_is_optional ... ok test features::many_cli_features_comma_and_space_delimited ... ok test features::many_features_no_rebuilds ... ok test doc::target_specific_not_documented ... ok test features::dep_feature_in_cmd_line ... ok test features::unions_work_with_no_default_features ... ok test features::warn_if_default_features ... ok test features::default_feature_pulled_in ... ok test features::transitive_features ... ok test fix::does_not_crash_with_rustc_wrapper ... ok test features::union_features ... ok test fix::do_not_fix_non_relevant_deps ... ok test fix::does_not_warn_about_clean_working_directory ... ok test fix::does_not_warn_about_dirty_ignored_files ... ok test fix::do_not_fix_broken_builds ... ok test fix::fix_broken_if_requested ... ok test fix::prepare_for_and_enable ... ok test fix::fix_deny_warnings ... ok test fix::fix_all_targets_by_default ... ok test features::no_feature_doesnt_build ... ok test doc::doc_all_member_dependency_same_name ... ok test fix::fix_deny_warnings_but_not_others ... ok test fix::fix_idioms ... ok test fix::fix_two_files ... ok test fix::fixes_extra_mut ... ok test doc::simple ... ok test fix::fix_overlapping ... ok test doc::doc_deps ... ok test fix::no_changes_necessary ... ok test fix::fixes_two_missing_ampersands ... ok test fix::idioms_2015_ok ... ok test fix::local_paths ... ok test doc::doc_all_workspace ... ok test fix::prepare_for_2018 ... ok test fix::only_warn_for_relevant_crates ... ok test fix::fix_path_deps ... ok test fix::preserve_line_endings ... ok test doc::doc_only_bin ... ok test fix::shows_warnings ... ok test doc::doc_dash_p ... ok test fix::doesnt_rebuild_dependencies ... ok test fix::fix_with_common ... ok test fix::specify_rustflags ... ok test fix::tricky ... ok test fix::fix_in_existing_repo_weird_ignore ... ok test fix::warns_about_dirty_working_directory ... ok test freshness::changing_lib_features_caches_targets ... ok test fix::warns_about_staged_working_directory ... ok test fix::warns_if_no_vcs_detected ... ok test fix::upgrade_extern_crate ... ok test freshness::no_rebuild_if_build_artifacts_move_backwards_in_time ... ok test freshness::no_rebuild_when_rename_dir ... ok test freshness::edition_change_invalidates ... ok test freshness::changing_rustflags_is_cached ... ok test doc::output_not_captured ... ok test fix::shows_warnings_on_second_run_without_changes ... ok test generate_lockfile::duplicate_entries_in_lockfile ... ok test generate_lockfile::cargo_update_generate_lockfile ... ok test generate_lockfile::adding_and_removing_packages ... ok test doc::rerun_when_dir_removed ... ok test freshness::bust_patched_dep ... ok test fix::fix_features ... ok test git::cargo_compile_forbird_git_httpsrepo_offline ... ok test generate_lockfile::no_index_update ... ok test freshness::path_dev_dep_registry_updates ... ok test freshness::change_panic_mode ... ok test freshness::rebuild_if_build_artifacts_move_forward_in_time ... ok test generate_lockfile::preserve_line_endings_issue_2076 ... ok test freshness::metadata_change_invalidates ... ok test git::cargo_compile_with_short_ssh_git ... ok test doc::target_specific_documented ... ok test freshness::changing_profiles_caches_targets ... ok test git::dep_with_bad_submodule ... ok test freshness::unused_optional_dep ... ok test freshness::fingerprint_cleaner_does_not_rebuild ... ok test freshness::rebuild_sub_package_then_while_package ... ok test freshness::changing_bin_features_caches_targets ... ok test fix::broken_fixes_backed_out ... ok test freshness::same_build_dir_cached_packages ... ok test doc::issue_5345 ... ok test freshness::modifying_and_moving ... ok test freshness::reuse_panic_pm ... ok test doc::features ... ok test git::git_with_cli_force ... ok test git::include_overrides_gitignore ... ignored test freshness::rerun_if_changed_in_dep ... ok test git::failed_submodule_checkout ... ok test freshness::no_rebuild_transitive_target_deps ... ok test freshness::rebuild_if_environment_changes ... ok test git::invalid_git_dependency_manifest ... ok test generate_lockfile::preserve_metadata ... ok test freshness::reuse_shared_build_dep ... ok test freshness::dont_rebuild_based_on_plugins ... ok test git::denied_lints_are_allowed ... ok test freshness::reuse_workspace_lib ... ok test git::add_a_git_dep ... ok test git::update_one_dep_in_repo_with_many_deps ... ok test git::update_ambiguous ... ok test git::dep_with_submodule ... ok test git::use_the_cli ... ok test git::cargo_compile_git_dep_branch ... ok test git::cargo_compile_with_malformed_nested_paths ... ok test git::fetch_downloads ... ok test init::auto_git ... ok test init::bin_already_exists_explicit ... ok test init::bin_already_exists_explicit_nosrc ... ok test git::cargo_compile_simple_git_dep ... ok test init::bin_already_exists_implicit ... ok test init::bin_already_exists_implicit_namenosrc ... ok test init::bin_already_exists_implicit_namesrc ... ok test init::bin_already_exists_implicit_nosrc ... ok test init::both_lib_and_bin ... ok test fix::fix_to_broken_code ... ok test init::cargo_lock_gitignored_if_lib1 ... ok test freshness::simulated_docker_deps_stay_cached ... ok test git::cargo_compile_git_dep_tag ... ok test init::cargo_lock_not_gitignored_if_bin1 ... ok test init::cargo_lock_gitignored_if_lib2 ... ok test init::cargo_lock_not_gitignored_if_bin2 ... ok test init::git_autodetect ... ok test git::cargo_compile_with_meta_package ... ok test init::gitignore_no_newline_in_new ... ok test freshness::reuse_panic_build_dep_test ... ok test freshness::simple_deps_cleaner_does_not_rebuild ... ok test init::gitignore_added_newline_in_existing ... ok test init::lib_already_exists_nosrc ... ok test init::invalid_dir_name ... ok test init::gitignore_appended_not_replaced ... ok test init::confused_by_multiple_lib_files ... ok test init::lib_already_exists_src ... ok test init::mercurial_autodetect ... ok test init::mercurial_added_newline_in_existing ... ok test init::mercurial_no_newline_in_new ... ok test init::multibin_project_name_clash ... ok test init::terminating_newline_in_new_mercurial_ignore ... ok test init::no_filename ... ok test init::reserved_name ... ok test init::simple_git ... ok test git::lints_are_suppressed ... ok test init::terminating_newline_in_existing_git_ignore ... ok test init::terminating_newline_in_existing_mercurial_ignore ... ok test init::terminating_newline_in_new_git_ignore ... ok test init::unknown_flags ... ok test init::with_argument ... ok test git::cargo_compile_with_nested_paths ... ok test install::bad_version ... ok test freshness::script_fails_stay_dirty ... ok test install::bad_paths ... ok test git::two_at_rev_instead_of_tag ... ok test install::install_empty_argument ... ok test fix::shows_warnings_on_second_run_without_changes_on_multiple_targets ... ok test git::dont_require_submodules_are_checked_out ... ok test git::git_name_not_always_needed ... ok test init::simple_lib ... ok test install::compile_failure ... ok test init::simple_git_ignore_exists ... ok test install::install_global_cargo_config ... ok test git::templatedir_doesnt_cause_problems ... ok test install::install_target_foreign ... ok test install::install_path_config ... ok test git::two_deps_only_update_one ... ok test freshness::rebuild_on_mid_build_file_modification ... ok test init::simple_bin ... ok test git::warnings_in_git_dep ... ok test git::doctest_same_name ... ok test install::installs_from_cwd_with_2018_warnings ... ok test git::two_revs_same_deps ... ok test install::do_not_rebuilds_on_local_install ... ok test git::update_one_source_updates_all_packages_in_that_git_source ... ok test install::dev_dependencies_no_check ... ok test install::missing ... ok test install::examples ... ok test git::dev_deps_with_testing ... ok test install::git_repo ... ok test install::multiple_crates_error ... ok test install::no_binaries ... ok test install::no_binaries_or_examples ... ok test install::git_with_lockfile ... ok test install::not_both_vers_and_version ... ok test install::install_path ... ok test install::install_ignores_local_cargo_config ... ok test freshness::modify_only_some_files ... ok test git::switch_deps_does_not_update_transitive ... ok test freshness::dirty_both_lib_and_test ... ok test install::test_install_git_cannot_be_a_base_url ... ok test git::git_build_cmd_freshness ... ok test install::dev_dependencies_lock_file_untouched ... ok test install::uninstall_cwd_no_project ... ok test git::switch_sources ... ok test freshness::rebuild_tests_if_lib_changes ... ok test install::installs_beta_version_by_explicit_name_from_git ... ok test install::uninstall_cwd_not_installed ... ok test install::install_twice ... ok test install::uninstall_multiple_and_specifying_bin ... ok test install::installs_from_cwd_by_default ... ok test install::uninstall_pkg_does_not_exist ... ok test install::install_target_native ... ok test install::install_respects_lock_file ... ok test install::custom_target_dir_for_git_source ... ok test install::legacy_version_requirement ... ok test install::git_repo_replace ... ok test install::list_error ... ok test install::multiple_crates_auto_binaries ... ok test install::install_force_bin ... ok test git::git_repo_changing_no_rebuild ... ok test git::git_dep_build_cmd ... ok test install::lock_file_path_deps_ok ... ok test install::q_silences_warnings ... ok test install::multiple_crates_auto_examples ... ok test list_targets::doc_list_targets ... ok test git::dep_with_changed_submodule ... ok test install::install_force ... ok test jobserver::jobserver_and_j ... ok test install::install_force_partial_overlap ... ok test local_registry::invalid_dir_bad ... ok test fix::fixes_missing_ampersand ... ok test list_targets::install_list_targets ... ok test list_targets::bench_list_targets ... ok test list_targets::run_list_targets ... ok test list_targets::build_list_targets ... ok test list_targets::check_list_targets ... ok test lockfile_compat::listed_checksum_bad_if_we_cannot_compute ... ok test list_targets::fix_list_targets ... ok test install::pick_max_version ... ok test list_targets::rustdoc_list_targets ... ok test install::subcommand_works_out_of_the_box ... ok test list_targets::rustc_list_targets ... ok test list_targets::test_list_targets ... ok test install::readonly_dir ... ok test lockfile_compat::locked_correct_error ... ok test git::recompilation ... ok test lockfile_compat::wrong_checksum_is_an_error ... ok test login::login_with_new_credentials ... ok test login::login_with_old_and_new_credentials ... ok test lockfile_compat::unlisted_checksum_is_bad_if_we_calculate ... ok test member_errors::member_manifest_path_io_error ... ok test login::login_with_old_credentials ... ok test member_errors::toml_deserialize_manifest_error ... ok test login::login_without_credentials ... ok test install::reports_unsuccessful_subcommand_result ... ok test install::uninstall_cwd ... ok Updating `/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/cit/t800/registry` index test login::new_credentials_is_used_instead_old ... ok test metabuild::metabuild_error_both ... ok test login::registry_credentials ... ok test member_errors::member_manifest_version_error ... ok test git::cargo_compile_offline_with_cached_git_dep ... ok test install::simple ... ok test metabuild::metabuild_gated ... ok test install::workspace_uses_workspace_target_dir ... ok test git::stale_cached_version ... ok test metabuild::metabuild_metadata ... ok test metabuild::metabuild_missing_dep ... ok test install::uninstall_piecemeal ... ok test install::uninstall_bin_does_not_exist ... ok test metadata::cargo_metadata_bad_version ... ok test install::uninstall_multiple_and_some_pkg_does_not_exist ... ok test install::vers_precise ... ok test metadata::cargo_metadata_no_deps_cwd ... ok test metadata::cargo_metadata_no_deps_path_to_cargo_toml_absolute ... ok test install::version_too ... ok test local_registry::depend_on_yanked ... ok test metadata::cargo_metadata_no_deps_path_to_cargo_toml_parent_absolute ... ok test metadata::cargo_metadata_no_deps_path_to_cargo_toml_parent_relative ... ok test metadata::cargo_metadata_no_deps_path_to_cargo_toml_relative ... ok test metadata::cargo_metadata_simple ... ok test local_registry::different_directory_replacing_the_registry_is_bad ... ok test metabuild::metabuild_build_plan ... ok test metadata::cargo_metadata_with_invalid_manifest ... ok test metadata::deps_with_bin_only ... ok test metadata::example ... ok test lockfile_compat::frozen_flag_preserves_old_lockfile ... ok test metadata::example_lib ... ok test metadata::cargo_metadata_warns_on_implicit_version ... ok test metadata::cargo_metadata_with_deps_and_version ... ok test metadata::library_with_features ... ok test install::multiple_crates_git_all ... ok test metadata::metadata_links ... ok test metadata::library_with_several_crate_types ... ok test local_registry::multiple_names ... ok test install::multiple_crates_select ... ok test lockfile_compat::current_lockfile_format ... ok test local_registry::multiple_versions ... ok test metadata::package_edition_2018 ... ok test metadata::multiple_features ... ok test metadata::target_edition_2018 ... ok test metadata::package_metadata ... ok test new::existing ... ok test metadata::workspace_metadata ... ok test net_config::net_retry_git_outputs_warning ... ok test new::explicit_invalid_name_not_suggested ... ok test metadata::workspace_metadata_no_deps ... ok test new::both_lib_and_bin ... ok Initialized empty Git repository in /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/cit/t857/.git/ test new::author_prefers_cargo ... ok test net_config::net_retry_loads_from_config ... ok test new::explicit_project_name ... ok test new::finds_author_email ... ok test new::finds_author_user ... ok test new::finds_author_priority ... ok test new::finds_author_user_escaped ... ok test new::finds_git_author ... ok test new::finds_author_username ... ok test new::finds_author_git ... ok test local_registry::interdependent ... ok test lockfile_compat::lockfile_without_root ... ok test local_registry::path_dep_rewritten ... ok test new::finds_git_email ... ok test metadata::rename_dependency ... ok test new::new_with_bad_edition ... ok test lockfile_compat::totally_wild_checksums_works ... ok test new::git_prefers_command_line ... ok test new::invalid_characters ... ok test new::keyword_name ... ok test new::new_with_edition_2018 ... ok test new::new_with_edition_2015 ... ok test new::new_with_blank_email ... ok test new::no_argument ... ok test new::reserved_binary_name ... ok test lockfile_compat::oldest_lockfile_still_works ... ok test new::new_default_edition ... ok test new::finds_local_author_git ... ok test new::reserved_name ... ok test new::strip_angle_bracket_author_email ... ok test install::list ... ok test new::unknown_flags ... ok test git::update_with_shared_deps ... ok test overrides::invalid_semver_version ... ok test freshness::changing_bin_paths_common_target_features_caches_targets ... ok test new::subpackage_git_with_vcs_arg ... ok test new::subpackage_no_git ... ok test new::subpackage_git_with_gitignore ... ok test metabuild::metabuild_override ... ok test overrides::missing_version ... ok test overrides::different_version ... ok test jobserver::jobserver_exists ... ok test install::use_path_workspace ... ok test overrides::override_plus_dep ... ok test install::multiple_pkgs ... ok test overrides::override_wrong_version ... ok test overrides::multiple_specs ... ok test metabuild::metabuild_failed_build_json ... ok test overrides::override_with_nothing ... ok test overrides::override_wrong_name ... ok test metadata::cargo_metadata_path_to_cargo_toml_project ... ok test new::simple_lib ... ok test overrides::test_override_dep ... ok test new::simple_git ... ok test out_dir::rlib_with_debug ... ok test package::broken_symlink ... ok test out_dir::static_library_with_debug ... ok test package::do_not_package_if_repository_is_dirty ... ok test overrides::update ... ok test metabuild::metabuild_json_artifact ... ok test overrides::override_simple ... ok test metabuild::metabuild_fresh ... ok test local_registry::crates_io_registry_url_is_optional ... ok test package::generated_manifest ... ok test local_registry::simple ... ok test package::exclude ... ok test package::ignore_workspace_specifier ... ok test package::include ... ok test overrides::no_override_self ... ok test overrides::override_to_path_dep ... ok test overrides::broken_path_override_warns ... ok test package::package_git_submodule ... ok test overrides::no_warnings_when_replace_is_used_in_another_workspace_member ... ok test package::package_lockfile_git_repo ... ok test metabuild::metabuild_lib_name ... ok test overrides::override_an_override ... ok test metabuild::metabuild_basic ... ok test out_dir::dynamic_library_with_debug ... ok test package::package_two_kinds_of_deps ... ok test overrides::locked_means_locked_yes_no_seriously_i_mean_locked ... ok test package::package_weird_characters ... ok test out_dir::binary_with_debug ... ok test out_dir::out_dir_is_a_file ... ok test new::simple_bin ... ok test overrides::paths_ok_with_optional ... ok test package::path_dependency_no_version ... ok test package::test_edition_malformed ... ok test package::vcs_file_collision ... ok test overrides::paths_add_optional_bad ... ok test metabuild::metabuild_external_dependency ... ok test package::edition_with_metadata ... ok test overrides::replace_registry_with_path ... ok test patch::non_crates_io ... ok test overrides::persists_across_rebuilds ... ok test metabuild::metabuild_two_versions ... ok test metabuild::metabuild_links ... ok test metabuild::metabuild_workspace ... ok test package::no_lock_file_with_library ... ok test overrides::override_adds_some_deps ... ok test overrides::overriding_nonexistent_no_spurious ... ok test overrides::replace_to_path_dep ... ok test package::package_no_default_features ... ok test patch::replace_with_crates_io ... ok test overrides::use_a_spec_to_select ... ok test out_dir::include_only_the_binary_from_the_current_package ... ok test overrides::transitive ... ok test package::test_edition ... ok test patch::no_warn_ws_patch ... ok test out_dir::avoid_build_scripts ... ok test overrides::override_with_default_feature ... ok test install::install_location_precedence ... ok test path::error_message_for_missing_manifest ... ok test metabuild::metabuild_optional_dep ... ok test patch::new_minor ... ok test package::lock_file_and_workspace ... ok test path::missing_path_dependency ... ok test package::no_duplicates_from_modified_tracked_files ... ok test jobserver::makes_jobserver_used ... ok test package::package_with_all_features ... ok test patch::patch_in_virtual ... ok test patch::nonexistent ... ok test path::cargo_compile_with_root_dev_deps ... ok test package::package_with_select_features ... ok test patch::patch_git ... ok test patch::remove_patch ... ok test package::package_lib_with_bin ... ok test patch::patch_to_git ... ok test patch::patch_depends_on_another_patch ... ok test package::package_verbose ... ok test patch::unused ... ok test plugins::panic_abort_plugins ... ok test plugins::plugin_to_the_max ... ok test patch::unused_git ... ok test plugins::plugin_with_dynamic_native_dependency ... ok test plugins::shared_panic_abort_plugins ... ok test patch::transitive_new_major ... ok test patch::transitive_new_minor ... ok test patch::add_patch ... ok test proc_macro::proc_macro_crate_type_multiple ... ok test patch::new_major ... ok test proc_macro::plugin_and_proc_macro ... ok test patch::replace ... ok test profile_config::profile_config_error_paths ... ok test patch::add_ignored_patch ... ok test profile_config::profile_config_all_options ... ok test package::do_not_package_if_src_was_modified ... ok test profile_config::profile_config_override_spec_multiple ... ok test path::custom_target_no_rebuild ... ok test profile_config::profile_config_syntax_errors ... ok test profile_config::profile_config_validate_errors ... ok test patch::replace_prerelease ... ok test path::override_path_dep ... ok test path::override_relative ... ok test plugins::native_plugin_dependency_with_custom_ar_linker ... ok test path::invalid_path_dep_in_workspace_with_lockfile ... ok test path::workspace_produces_rlib ... ok test profile_overrides::profile_override_dev_release_only ... ok test profile_overrides::profile_override_spec_multiple ... ok test profile_overrides::profile_override_bad_settings ... ok test profile_overrides::profile_override_gated ... ok test path::cargo_compile_with_transitive_dev_deps ... ok test path::override_and_depend ... ok test profile_config::profile_config_gated ... ok test package::ignore_nested ... ok test profile_config::profile_config_no_warn_unknown_override ... ok test profile_config::profile_config_mixed_types ... ok test package::package_lockfile ... ok test path::cargo_compile_with_root_dev_deps_with_testing ... ok test out_dir::replaces_artifacts ... ok test package::package_verification ... ok test profile_config::profile_config_validate_warnings ... ok test package::repackage_on_source_change ... ok test profile_config::profile_config_override_precedence ... ok test package::simple ... ok test plugins::doctest_a_plugin ... ok test path::no_rebuild_two_deps ... ok test proc_macro::proc_macro_crate_type_warning ... ok test proc_macro::proc_macro_crate_type_warning_plugin ... ok test profile_overrides::profile_override_basic ... ok test path::dev_deps_no_rebuild_lib ... ok test path::override_self ... ok test profile_overrides::profile_override_spec ... ok test profile_overrides::profile_override_warnings ... ok test publish::block_publish_no_registry ... ok test publish::dont_publish_dirty ... ok test publish::git_deps ... ok test profiles::debug_override_1 ... ok test publish::new_crate_rejected ... ok test profiles::opt_level_override_0 ... ok test publish::path_dependency_no_version ... ok test publish::old_token_location ... ok test profiles::profile_doc_deprecated ... ok test publish::publish_empty_list ... ok test profiles::profile_overrides ... ok test profiles::profile_panic_test_bench ... ok test package::metadata_warning ... ok test profiles::profile_in_non_root_manifest_triggers_a_warning ... ok test proc_macro::noop ... ok test profiles::top_level_overrides_deps ... ok test publish::registry_not_in_publish_list ... ok test publish::simple ... ok test proc_macro::probe_cfg_before_crate_type_discovery ... ok test profile_overrides::profile_override_hierarchy ... ok test plugins::plugin_integration ... ok test profiles::profile_in_virtual_manifest_works ... ok test publish::simple_with_index_and_host ... ok test publish::simple_with_host ... ok test profile_overrides::override_proc_macro ... ok test read_manifest::cargo_read_manifest_cwd ... ok test read_manifest::cargo_read_manifest_path_to_cargo_toml_absolute ... ok test read_manifest::cargo_read_manifest_path_to_cargo_toml_relative ... ok test publish::publish_with_no_default_features ... ok test proc_macro::impl_and_derive ... ok test publish::unpublishable_crate ... ok test read_manifest::cargo_read_manifest_path_to_cargo_toml_parent_relative ... ok test read_manifest::cargo_read_manifest_path_to_cargo_toml_parent_absolute ... ok test publish::dry_run ... ok test publish::ignore_when_crate_ignored ... ok test registry::disallow_network ... ok test profiles::panic_unwind_does_not_build_twice ... ok test publish::publish_allowed_registry ... ok test publish::publish_clean ... ok test registry::fetch_downloads ... ok test publish::publish_in_sub_repo ... ok test proc_macro::proc_macro_doctest ... ok test registry::bad_and_or_malicious_packages_rejected ... ok test publish::publish_with_all_features ... ok test registry::login_with_no_cargo_dir ... ok test registry::mis_hyphenated ... ok test publish::publish_when_ignored ... ok test profile_targets::profile_selection_check_all_targets ... ok test registry::bad_cksum ... ok test registry::nonexistent ... ok test registry::login_with_differently_sized_token ... ok test path::nested_deps_recompile ... ok test profile_targets::profile_selection_check_all_targets_test ... ok test registry::relying_on_a_yank_is_bad ... ok test profile_targets::profile_selection_check_all_targets_release ... ok test path::no_rebuild_dependency ... ok test registry::update_offline ... ok test publish::publish_with_select_features ... ok test registry::update_backtracking_ok ... ok test registry::update_same_prefix_oh_my_how_was_this_a_bug ... ok test path::path_dep_build_cmd ... ok test profile_targets::profile_selection_build ... ok test proc_macro::proc_macro_crate_type ... ok test profile_targets::profile_selection_build_release ... ok test path::cargo_compile_with_nested_deps_shorthand ... ok test registry::wrong_case ... ok test profiles::opt_level_overrides ... ok test registry::wrong_version ... ok test registry::bad_license_file ... ok test registry::dev_dependency_not_used ... ok test registry::lockfile_locks ... ok test rename_deps::features_not_working ... ok test profile_targets::profile_selection_test ... ok test registry::git_and_registry_dep ... ok test registry::deps ... ok test registry::old_version_req ... ok test registry::resolve_and_backtracking ... ok test registry::bundled_crate_in_registry ... ok test registry::old_version_req_upstream ... ok test registry::only_download_relevant ... ok test registry::git_init_templatedir_missing ... ok test profile_targets::profile_selection_build_all_targets ... ok test required_features::bench_arg_features ... ok test registry::lockfile_locks_transitively ... ok test profile_targets::profile_selection_build_all_targets_release ... ok test required_features::bench_default_features ... ok test registry::toml_lies_but_index_is_truth ... ok test registry::package_with_path_deps ... ok test required_features::bench_multiple_required_features ... ok test registry::update_registry ... ok test rename_deps::rename_twice ... ok test profile_targets::profile_selection_bench ... ok test registry::update_with_lockfile_if_packages_missing ... ok test registry::upstream_warnings_on_extra_verbose ... ok test registry::use_semver ... ok test required_features::run_default_multiple_required_features ... ok test profile_targets::profile_selection_test_release ... ok test registry::add_dep_dont_update_registry ... ok test registry::vv_prints_warnings ... ok test rename_deps::lots_of_names ... ok test resolve::basic_public_dependency ... ok test resolve::conflict_store_bug ... ok test resolve::conflict_store_more_then_one_match ... ok test resolve::hard_equality ... ok test resolve::incomplete_information_skiping ... ok test resolve::incomplete_information_skiping_2 ... ok test resolve::incomplete_information_skiping_3 ... ok test rename_deps::features_still_work ... ok test registry::bump_version_dont_update_registry ... ok test registry::update_multiple_packages ... ok test rename_deps::rename_with_dash ... ok test rename_deps::rename_dependency ... ok test rename_deps::rename_with_different_names ... ok test resolve::public_dependency_filling_in ... ok test resolve::public_dependency_filling_in_and_update ... ok test resolve::public_dependency_skiping ... ok test resolve::public_dependency_skiping_in_backtracking ... ok test resolve::resolving_allows_multiple_compatible_versions ... ok test resolve::resolving_backtrack ... ok test resolve::resolving_backtrack_features ... ok test resolve::resolving_but_no_exists ... ok test resolve::resolving_cycle ... ok test resolve::resolving_incompat_versions ... ok test resolve::resolving_mis_hyphenated_from_registry ... ok test resolve::minimal_version_cli ... ok test rename_deps::rename_and_patch ... ok test resolve::resolving_with_constrained_sibling_backtrack_activation ... ok test resolve::resolving_with_constrained_sibling_backtrack_parent ... ok test resolve::resolving_with_constrained_sibling_transitive_dep_effects ... ok test resolve::resolving_with_deep_backtracking ... ok test rename_deps::rename_affects_fingerprint ... ok test resolve::resolving_with_many_versions ... ok test resolve::resolving_with_specific_version ... ok test resolve::resolving_with_sys_crates ... ok test resolve::resolving_wrong_case_from_registry ... ok test resolve::test_dependency_with_empty_name ... ok test resolve::test_resolving_common_transitive_deps ... ok test resolve::test_resolving_empty_dependency_list ... ok test resolve::test_resolving_maximum_version_with_transitive_deps ... ok test resolve::test_resolving_minimum_version_with_transitive_deps ... ok test resolve::test_resolving_multiple_deps ... ok test resolve::test_resolving_one_dep ... ok test resolve::test_resolving_only_package ... ok test registry::update_transitive_dependency ... ok test resolve::test_resolving_with_dev_deps ... ok test resolve::test_resolving_with_same_name ... ok test resolve::test_resolving_transitive_deps ... ok test run::bogus_default_run ... ok test registry::yanks_are_not_used ... ok test run::autobins_disables ... ok test registry::yanks_in_lockfiles_are_ok ... ok test run::default_run_unstable ... ok test run::either_name_or_example ... ok test registry::yanks_in_lockfiles_are_ok_for_other_update ... ok test publish::publish_with_patch ... ok test required_features::build_bin_arg_features ... ok test required_features::build_example_arg_features ... ok test required_features::build_example_default_features ... ok test registry::simple ... ok test resolve::resolving_with_deep_traps ... ok test run::no_main_file ... ok test rename_deps::can_run_doc_tests ... ok test required_features::install_arg_features ... ok test required_features::run_default ... ok test registry::updating_a_dep ... ok test run::run_bins ... ok test required_features::build_bin_default_features ... ok test registry::yanks_in_lockfiles_are_ok_with_new_dep ... ok test run::run_example_autodiscover_2015 ... ok test run::run_example_autodiscover_2015_with_autoexamples_disabled ... ok test path::thin_lto_works ... ok test required_features::test_arg_features ... ok test run::run_library_example ... ok test run::default_run_workspace ... ok test required_features::build_bin_multiple_required_features ... ok test run::exit_code ... ok test run::exit_code_verbose ... ok test required_features::test_default_features ... ok test required_features::test_skips_compiling_bin_with_missing_required_features ... ok test run::run_with_filename ... ok test run::simple_quiet_and_verbose ... ok test registry::update_lockfile ... ok test run::fail_no_extra_verbose ... ok test run::dashes_are_forwarded ... ok test registry::rename_deps_and_features ... ok test run::explicit_bin_with_args ... ok test run::too_many_bins ... ok test registry::update_publish_then_update ... ok test run::release_works ... ok test required_features::install_multiple_required_features ... ok test run::run_bin_different_name ... ok test rustc::fail_with_multiple_packages ... ok test run::quiet_and_verbose_config ... ok test rustc::fails_when_trying_to_build_main_and_lib_with_args ... ok test rustc::fails_with_args_to_all_binaries ... ok test run::one_bin_multiple_examples ... ok test run::run_dylib_dep ... ok test required_features::install_default_features ... ok test run::run_bin_example ... ok test required_features::build_example_multiple_required_features ... ok test run::run_example_autodiscover_2015_with_autoexamples_enabled ... ok test rustc::build_lib_for_foo ... ok test run::run_example_autodiscover_2018 ... ok test run::run_example ... ok test rustc::build_only_bar_dependency ... ok test run::run_from_executable_folder ... ok test rustc::lib ... ok test required_features::test_multiple_required_features ... ok test run::run_workspace ... ok test run::simple ... ok test run::simple_quiet ... ok test run::example_with_release_flag ... ok test run::library_paths_sorted_alphabetically ... ok test rustc::rustc_fingerprint ... ok test profile_targets::profile_selection_doc ... ok test rustdocflags::bad_flags ... ok test resolve::resolving_with_constrained_cousins_backtrack ... ok test run::simple_with_args ... ok test rustc::build_main_and_allow_unstable_options ... ok test rustc::build_with_args_to_one_of_multiple_tests ... ok test rustc::targets_selected_default ... ok test rustc::build_foo_with_bar_dependency ... ok test rustc::build_with_args_to_one_of_multiple_binaries ... ok test path::deep_dependencies_trigger_rebuild ... ok test rustc::targets_selected_all ... ok test rustc::rustc_test_with_implicit_bin ... ok test rustdocflags::rustdocflags_passed_to_rustdoc_through_cargo_test_only_once ... ok test rustflags::build_rustflags_no_recompile ... ok test rustc::rustc_with_other_profile ... ok test run::run_with_library_paths ... ok test run::specify_name ... ok test rustflags::build_rustflags_with_home_config ... ok test rustflags::build_rustflags_build_script ... ok test rustflags::build_rustflags_recompile ... ok test rustflags::build_rustflags_normal_source ... ok test rustflags::build_rustflags_plugin ... ok test rustflags::build_rustflags_recompile2 ... ok test rustflags::build_rustflags_plugin_with_target ... ok test run::specify_default_run ... ok test resolve::large_conflict_cache ... ok test required_features::dep_feature_in_cmd_line ... ok test rustflags::build_rustflags_plugin_dep ... ok test rustdocflags::rustdocflags_passed_to_rustdoc_through_cargo_test ... ok test rustflags::build_rustflags_build_script_dep ... ok test rustflags::build_rustflags_build_script_with_target ... ok test rustflags::build_rustflags_plugin_dep_with_target ... ok test required_features::dep_feature_in_toml ... ok test rustflags::build_rustflags_build_script_dep_with_target ... ok test run::run_multiple_packages ... ok test rustflags::env_rustflags_no_recompile ... ok test rustflags::env_rustflags_plugin ... ok test rustdoc::features ... ok Updating `/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/cit/t1238/registry` index test search::help ... ok test search::multiple_query_params ... ok test search::replace_default ... ok test search::not_update ... ok test search::simple ... ok test search::simple_with_host ... ok test rustflags::env_rustflags_recompile ... ok test support::lines_match_works ... ok test support::resolver::meta_test_deep_pretty_print_registry ... ok test search::simple_with_index_and_host ... ok test rustflags::env_rustflags_recompile2 ... ok test rustflags::env_rustflags_plugin_with_target ... ok test rustflags::env_rustflags_plugin_dep ... ok test test::bench_without_name ... ok test test::bad_example ... ok test rustflags::env_rustflags_plugin_dep_with_target ... ok test rustflags::env_rustflags_normal_source ... ok test rustflags::build_rustflags_normal_source_with_target ... ok test test::bin_without_name ... ok test rustflags::env_rustflags_build_script ... ok test rustdoc::rustdoc_only_bar_dependency ... ok test test::can_not_no_run_doc_tests ... ok test rustdoc::rustdoc_simple ... ok test resolve::prop_minimum_version_errors_the_same ... ok test rustflags::env_rustflags_misspelled_build_script ... ok test rustflags::target_rustflags_precedence ... ok test rustflags::target_rustflags_normal_source ... ok test rustflags::env_rustflags_build_script_dep ... ok test rustdoc::rustdoc_args ... ok test rustflags::env_rustflags_build_script_with_target ... ok test shell_quoting::features_are_quoted ... ok test rustflags::target_rustflags_string_and_array_form1 ... ok test rustflags::env_rustflags_build_script_dep_with_target ... ok test rustflags::target_rustflags_string_and_array_form2 ... ok test support::resolver::meta_test_multiple_versions_strategy ... ok test rustflags::two_matching_in_config ... ok test rustflags::env_rustflags_normal_source_with_target ... ok test support::resolver::meta_test_deep_trees_from_strategy ... ok test rustdoc::rustdoc_same_name_documents_lib ... ok test resolve::prop_passes_validation ... ok test rustdocflags::parses_config ... ok test rustdocflags::rustdocflags_misspelled ... ok test rustdoc::rustdoc_foo_with_bar_dependency ... ok test test::cfg_test_even_with_no_harness ... ok test test::cargo_test_quiet_no_harness ... ok test rustc_info_cache::rustc_info_cache ... ok test rustdocflags::parses_env ... ok test test::cargo_test_quiet_with_harness ... ok test test::almost_cyclic_but_not_quite ... ok test test::cargo_test_overflow_checks ... ok test test::bin_there_for_integration ... ok test test::example_without_name ... ok test test::cargo_test_env ... ok test test::cargo_test_verbose ... ok test test::cargo_test_failing_test_in_lib ... ok test test::dylib_doctest2 ... ok test test::cyclic_dev ... ok test test::cargo_test_twice ... ok test test::cargo_test_release ... ok test rustflags::env_rustflags_misspelled ... ok test test::doctest_only_with_dev_dep ... ok test test::bin_is_preserved ... ok test test::cargo_test_failing_test_in_test ... ok test test::cargo_test_failing_test_in_bin ... ok test test::build_then_selective_test ... ok test test::cargo_test_simple ... ok test test::doctest_skip_staticlib ... ok test test::dashes_to_underscores ... ok test resolve::prop_limited_independence_of_irrelevant_alternatives ... ok test small_fd_limits::avoid_using_git ... ok test small_fd_limits::use_git_gc ... ok test test::dont_run_examples ... ok test test::dev_dep_with_build_script ... ok test test::cyclic_dev_dep_doc_test ... ok test rustflags::cfg_rustflags_precedence ... ok test test::example_with_dev_dep ... ok test rustflags::cfg_rustflags_normal_source ... ok test test::json_artifact_includes_test_flag ... ok test test::json_artifact_includes_executable_for_integration_tests ... ok test test::doctest_feature ... ok test test::filter_no_doc_tests ... ok test test::json_artifact_includes_executable_for_library_tests ... ok test test::doctest_dev_dep ... ok test test::test_dep_with_dev ... ok test test::external_test_named_test ... ok test test::dylib_doctest ... ok test test::bin_does_not_rebuild_tests ... ok test test::doctest_and_registry ... ok test test::external_test_explicit ... ok test test::example_bin_same_name ... ok test test::external_test_implicit ... ok test test::can_not_mix_doc_tests_and_regular_tests ... ok test test::lib_with_standard_name2 ... ok test resolve::prop_removing_a_dep_cant_break ... ok test test::lib_bin_same_name ... ok test test::lib_without_name ... ok test test::selective_test_optional_dep ... ok test test::selective_test_wonky_profile ... ok test test::only_test_docs ... ok test test::pass_through_command_line ... ok test test::panic_abort_multiple ... ok test test::test_all_targets_lib ... ok test test::many_similar_names ... ok test rustdocflags::rerun ... ok test test::selective_testing_with_docs ... ok test test::test_without_name ... ok test test::test_build_script_links ... ok test resolve::resolving_with_many_equivalent_backtracking ... ok test test::test_filtered_excludes_compiling_examples ... ok test test::test_all_exclude ... ok test test::example_dev_dep ... ok test test::lib_with_standard_name ... ok test test::test_multiple_packages ... ok test test::test_hint_workspace ... ok test test::test_no_harness ... ok test test::test_all_virtual_manifest ... ok test test::no_fail_fast ... ok test test::test_dylib ... ok test tool_paths::absolute_tools ... ok test test::test_all_member_dependency_same_name ... ok test tool_paths::custom_runner_cfg_collision ... ok test test::test_many_targets ... ok test verify_project::cargo_verify_project_cwd ... ok test test::test_all_workspace ... ok test test::test_many_with_features ... ok test verify_project::cargo_verify_project_path_to_cargo_toml_absolute ... ok test test::test_no_run ... ok test update::preserve_top_comment ... ok test tool_paths::pathless_tools ... ok test test::test_run_implicit_bin_target ... ok test verify_project::cargo_verify_project_honours_unstable_features ... ok test version::version_works_with_bad_config ... ok test verify_project::cargo_verify_project_path_to_cargo_toml_relative ... ok test test::pass_correct_cfgs_flags_to_rustdoc ... ok test test::publish_a_crate_without_tests ... ok test version::version_works_with_bad_target_dir ... ok test version::version_works_without_rustc ... ok test tool_paths::relative_tools ... ok test version::simple ... ok test workspaces::cycle ... ok test update::change_package_version ... ok test test::find_dependency_of_proc_macro_dependency_with_target ... ok test test::test_run_specific_bin_target ... ok test workspaces::dangling_member ... ok test workspaces::error_if_parent_cargo_toml_is_invalid ... ok test test::test_order ... ok test tool_paths::custom_runner_cfg ... ok test test::test_run_specific_test_target ... ok test workspaces::glob_syntax_invalid_members ... ok test workspaces::include_virtual ... ok test test::test_run_implicit_test_target ... ok test workspaces::invalid_members ... ok test workspaces::invalid_parent_pointer ... ok test test::test_with_example_twice ... ok test test::test_panic_abort_with_dep ... ok test tool_paths::custom_runner_cfg_precedence ... ok test test::test_then_build ... ok test workspaces::parent_doesnt_point_to_child ... ok test test::test_run_implicit_bench_target ... ok test test::test_virtual_manifest_all_implied ... ok test test::test_hint_not_masked_by_doctest ... ok test test::test_twice_with_build_cmd ... ok test test::selective_testing ... ok test test::test_release_ignore_panic ... ok test workspaces::same_names_in_workspace ... ok test test::test_with_lib_dep ... ok test test::test_with_deep_lib_dep ... ok test test::test_run_implicit_example_target ... ok test tool_paths::custom_runner ... ok test workspaces::cargo_home_at_root_works ... ok test workspaces::path_dep_outside_workspace_is_not_member ... ok test workspaces::two_roots ... ok test workspaces::bare_workspace_ok ... ok test workspaces::explicit_package_argument_works_with_virtual_manifest ... ok test workspaces::lockfile_can_specify_nonexistant_members ... ok test workspaces::virtual_build_no_members ... ok test workspaces::virtual_default_member_is_not_a_member ... ok test workspaces::virtual_misconfigure ... ok test workspaces::test_path_dependency_under_member ... ok test workspaces::excluded_simple ... ok test workspaces::workspace_isnt_root ... ok test workspaces::simple_explicit_default_members ... ok test workspaces::ws_rustc_err ... ok test workspaces::relative_path_for_root_works ... ok test workspaces::members_include_path_deps ... ok test workspaces::you_cannot_generate_lockfile_for_empty_workspaces ... ok test workspaces::exclude_members_preferred ... ok test workspaces::ws_err_unused ... ok test workspaces::inferred_root ... ok test workspaces::simple_explicit ... ok test workspaces::relative_path_for_member_works ... ok test workspaces::inferred_path_dep ... ok test workspaces::parent_pointer_works ... ok test workspaces::virtual_build_all_implied ... ok test workspaces::ws_warn_path ... ok test workspaces::exclude_but_also_depend ... ok test workspaces::virtual_default_members ... ok test workspaces::test_in_and_out_of_workspace ... ok test workspaces::virtual_works ... ok test workspaces::new_warns_you_this_will_not_work ... ok test workspaces::dep_used_with_separate_features ... ok test workspaces::workspace_with_transitive_dev_deps ... ok test workspaces::transitive_path_dep ... ok test workspaces::glob_syntax ... ok test workspaces::rebuild_please ... ok test workspaces::ws_warn_unused ... ok test workspaces::fetch_fetches_all ... ok test update::update_via_new_member ... ok test update::add_dep_deep_new_requirement ... ok test update::update_via_new_dep ... ok test workspaces::workspace_in_git ... ok test workspaces::relative_rustc ... ok test update::update_precise ... ok test update::minor_update_two_places ... ok test update::dry_run_update ... ok test update::conservative ... ok test update::transitive_minor_update ... ok test workspaces::lock_doesnt_change_depending_on_crate ... ok test workspaces::share_dependencies ... ok test warn_on_failure::warning_on_lib_failure ... ok test update::everything_real_deep ... ok test warn_on_failure::no_warning_on_bin_failure ... ok test workspaces::dont_recurse_out_of_cargo_home ... ok test warn_on_failure::no_warning_on_success ... ok test workspaces::lock_works_for_everyone ... ok failures: ---- build::lto_build stdout ---- running `/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/cargo build -v --release` thread 'build::lto_build' panicked at ' Expected: execs but: exited with exit code: 101 --- stdout --- stderr Compiling test v0.0.0 (/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/cit/t223/foo) Running `rustc --crate-name test src/main.rs --color never --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto -C metadata=196abde323cd43e1 -C extra-filename=-196abde323cd43e1 --out-dir /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/cit/t223/foo/target/release/deps -L dependency=/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/cit/t223/foo/target/release/deps` error: Could not compile `test`. Caused by: process didn't exit successfully: `rustc --crate-name test src/main.rs --color never --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto -C metadata=196abde323cd43e1 -C extra-filename=-196abde323cd43e1 --out-dir /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/cit/t223/foo/target/release/deps -L dependency=/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/cit/t223/foo/target/release/deps` (signal: 11, SIGSEGV: invalid memory reference) ', src/tools/cargo/tests/testsuite/support/mod.rs:841:13 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. failures: build::lto_build test result: FAILED. 1552 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out Doc-tests cargo running 5 tests test src/cargo/core/compiler/layout.rs - core::compiler::layout (line 6) ... ignored test src/cargo/core/features.rs - core::features (line 24) ... ignored test src/cargo/util/network.rs - util::network::with_retry (line 75) ... ignored test src/cargo/core/source/source_id.rs - core::source::source_id::SourceId::from_url (line 105) ... ok test src/cargo/core/package_id_spec.rs - core::package_id_spec::PackageIdSpec::parse (line 34) ... ok test result: ok. 2 passed; 0 failed; 3 ignored; 0 measured; 0 filtered out error: test failed, to rerun pass '--test testsuite' command did not execute successfully: "/usr/bin/cargo" "test" "--target" "i686-unknown-linux-gnu" "-j" "40" "--release" "--frozen" "--manifest-path" "/builddir/build/BUILD/rustc-1.35.0-src/src/tools/cargo/Cargo.toml" "--no-fail-fast" expected success, got: exit code: 101 1 command(s) did not execute successfully: - "/usr/bin/cargo" "test" "--target" "i686-unknown-linux-gnu" "-j" "40" "--release" "--frozen" "--manifest-path" "/builddir/build/BUILD/rustc-1.35.0-src/src/tools/cargo/Cargo.toml" "--no-fail-fast" failed to run: /builddir/build/BUILD/rustc-1.35.0-src/build/bootstrap/debug/bootstrap test --no-fail-fast cargo Build completed unsuccessfully in 0:01:40 + : + /usr/libexec/platform-python ./x.py test --no-fail-fast clippy Finished dev [unoptimized] target(s) in 0.25s Building stage0 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Copying stage0 std from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.23s Copying stage0 test from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.29s Copying stage0 rustc from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Finished release [optimized] target(s) in 0.23s Assembling stage1 compiler (i686-unknown-linux-gnu) Building stage1 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Copying stage1 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.23s Copying stage1 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.29s Copying stage1 rustc from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Finished release [optimized] target(s) in 0.23s Assembling stage2 compiler (i686-unknown-linux-gnu) Uplifting stage1 std (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Uplifting stage1 test (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Uplifting stage1 rustc (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 rustc from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage2 tool clippy-driver (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.26s Building rustdoc for stage2 (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Compiling compiletest_rs v0.3.21 Compiling clippy-mini-macro-test v0.2.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/clippy/mini-macro) Compiling log v0.4.6 Compiling rustfix v0.4.4 Compiling clippy v0.0.212 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/clippy) Finished release [optimized] target(s) in 14.91s Running build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/deps/clippy_driver-ac16243438982cef running 1 test test test_arg_value ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out Running build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/deps/compile_test-0d1ab24c7ae2501d running 1 test running 289 tests test [ui] ui/assertions_on_constants.rs ... FAILED test [ui] ui/cast_lossless_integer.rs ... FAILED test [ui] ui/author/for_loop.rs ... FAILED test [ui] ui/absurd-extreme-comparisons.rs ... FAILED test [ui] ui/attrs.rs ... FAILED test [ui] ui/assign_ops2.rs ... FAILED test [ui] ui/block_in_if_condition.rs ... FAILED test [ui] ui/box_vec.rs ... FAILED test [ui] ui/author/matches.rs ... ok test [ui] ui/booleans.rs ... FAILED test [ui] ui/bool_comparison.rs ... FAILED test [ui] ui/complex_types.rs ... FAILED test [ui] ui/cmp_owned.rs ... FAILED test [ui] ui/copy_iterator.rs ... FAILED test [ui] ui/approx_const.rs ... ok test [ui] ui/const_static_lifetime.rs ... FAILED test [ui] ui/cast_lossless_float.rs ... FAILED test [ui] ui/cognitive_complexity_attr_used.rs ... FAILED test [ui] ui/clone_on_copy_impl.rs ... ok test [ui] ui/collapsible_if.rs ... FAILED test [ui] ui/char_lit_as_u8.rs ... ok test [ui] ui/cmp_null.rs ... ok test [ui] ui/cast_alignment.rs ... ok test [ui] ui/arithmetic.rs ... ok test [ui] ui/clone_on_copy_mut.rs ... ok test [ui] ui/cast_size.rs ... FAILED test [ui] ui/cognitive_complexity.rs ... FAILED test [ui] ui/blacklisted_name.rs ... ok test [ui] ui/assign_ops.rs ... ok test [ui] ui/cmp_nan.rs ... ok test [ui] ui/cast.rs ... ok test [ui] ui/cast_ref_to_mut.rs ... ok test [ui] ui/bit_masks.rs ... ok test [ui] ui/checked_unwrap.rs ... ok test [ui] ui/borrow_box.rs ... ok test [ui] ui/author/call.rs ... ok test [ui] ui/author.rs ... ok test [ui] ui/bytecount.rs ... ok test [ui] ui/builtin-type-shadow.rs ... ok test [ui] ui/crashes/ice-1782.rs ... FAILED test [ui] ui/crashes/ice-1969.rs ... FAILED test [ui] ui/crashes/cc_seme.rs ... FAILED test [ui] ui/crashes/ice-2499.rs ... FAILED test [ui] ui/crashes/if_same_then_else.rs ... FAILED test [ui] ui/crashes/ice-2774.rs ... FAILED test [ui] ui/crashes/issue-2862.rs ... FAILED test [ui] ui/crashes/issues_loop_mut_cond.rs ... FAILED test [ui] ui/crashes/match_same_arms_const.rs ... FAILED test [ui] ui/crashes/issue-825.rs ... FAILED test [ui] ui/crashes/needless_borrow_fp.rs ... FAILED test [ui] ui/crashes/procedural_macro.rs ... FAILED test [ui] ui/dbg_macro.rs ... FAILED test [ui] ui/crashes/enum-glob-import-crate.rs ... ok test [ui] ui/crashes/ice-1588.rs ... ok test [ui] ui/decimal_literal_representation.rs ... ok test [ui] ui/crashes/used_underscore_binding_macro.rs ... FAILED test [ui] ui/enums_clike.rs ... ignored test [ui] ui/crashes/ice-2727.rs ... ok test [ui] ui/cstring.rs ... ok test [ui] ui/deprecated.rs ... ok test [ui] ui/crashes/ice-2594.rs ... ok test [ui] ui/default_trait_access.rs ... FAILED test [ui] ui/cfg_attr_rustfmt.rs ... ok test [ui] ui/crashes/ice-2865.rs ... ok test [ui] ui/crashes/ice-3462.rs ... ok test [ui] ui/crashes/ice-700.rs ... ok test [ui] ui/crashes/ice-2760.rs ... ok test [ui] ui/crashes/ice-3747.rs ... ok test [ui] ui/crashes/returns.rs ... ok test [ui] ui/diverging_sub_expression.rs ... FAILED test [ui] ui/crashes/ice-3151.rs ... ok test [ui] ui/crashes/ice_exacte_size.rs ... ok test [ui] ui/crashes/needless_lifetimes_impl_trait.rs ... ok test [ui] ui/derive.rs ... FAILED test [ui] ui/crashes/whitelist/conf_whitelisted.rs ... ok test [ui] ui/crashes/regressions.rs ... ok test [ui] ui/crashes/mut_mut_macro.rs ... ok test [ui] ui/crashes/associated-constant-ice.rs ... ok test [ui] ui/crashes/single-match-else.rs ... ok test [ui] ui/dlist.rs ... FAILED test [ui] ui/doc.rs ... ok test [ui] ui/double_neg.rs ... ok test [ui] ui/double_parens.rs ... FAILED test [ui] ui/drop_forget_copy.rs ... FAILED test [ui] ui/drop_bounds.rs ... ok test [ui] ui/duration_subsec.rs ... FAILED test [ui] ui/duplicate_underscore_argument.rs ... ok test [ui] ui/else_if_without_else.rs ... FAILED test [ui] ui/drop_forget_ref.rs ... ok test [ui] ui/empty_enum.rs ... ok test [ui] ui/entry.rs ... FAILED test [ui] ui/empty_line_after_outer_attribute.rs ... FAILED test [ui] ui/enum_variants.rs ... ok test [ui] ui/enum_glob_use.rs ... ok test [ui] ui/eq_op.rs ... FAILED test [ui] ui/escape_analysis.rs ... FAILED test [ui] ui/eta.rs ... FAILED test [ui] ui/erasing_op.rs ... ok test [ui] ui/float_cmp_const.rs ... FAILED test [ui] ui/explicit_counter_loop.rs ... FAILED test [ui] ui/float_cmp.rs ... FAILED test [ui] ui/fallible_impl_from.rs ... FAILED test [ui] ui/explicit_write.rs ... FAILED test [ui] ui/expect_fun_call.rs ... FAILED test [ui] ui/formatting.rs ... FAILED test [ui] ui/fn_to_numeric_cast.rs ... FAILED test [ui] ui/eval_order_dependence.rs ... ok test [ui] ui/for_loop.rs ... FAILED test [ui] ui/functions.rs ... FAILED test [ui] ui/for_kv_map.rs ... ok test [ui] ui/filter_methods.rs ... ok test [ui] ui/for_loop_over_option_result.rs ... ok test [ui] ui/fxhash.rs ... ok test [ui] ui/functions_maxlines.rs ... ok test [ui] ui/get_unwrap.rs ... FAILED test [ui] ui/if_not_else.rs ... FAILED test [ui] ui/ice-3717.rs ... ok test [ui] ui/ice-2636.rs ... ok test [ui] ui/identity_op.rs ... ok test [ui] ui/if_same_then_else.rs ... FAILED test [ui] ui/implicit_hasher.rs ... FAILED test [ui] ui/ifs_same_cond.rs ... FAILED test [ui] ui/implicit_return.rs ... FAILED test [ui] ui/identity_conversion.rs ... ok test [ui] ui/impl.rs ... ok test [ui] ui/infinite_iter.rs ... FAILED test [ui] ui/invalid_upcast_comparisons.rs ... FAILED test [ui] ui/issue-3145.rs ... ok test [ui] ui/int_plus_one.rs ... ok test [ui] ui/iter_skip_next.rs ... FAILED test [ui] ui/issue_3849.rs ... FAILED test [ui] ui/infinite_loop.rs ... FAILED test [ui] ui/issue_2356.rs ... FAILED test [ui] ui/inline_fn_without_body.rs ... ok test [ui] ui/item_after_statement.rs ... ok test [ui] ui/crashes/ice-3741.rs ... ok test [ui] ui/len_zero.rs ... FAILED test [ui] ui/let_return.rs ... FAILED test [ui] ui/large_enum_variant.rs ... ok test [ui] ui/invalid_ref.rs ... ok test [ui] ui/let_if_seq.rs ... FAILED test [ui] ui/indexing_slicing.rs ... ok test [ui] ui/double_comparison.rs ... ok test [ui] ui/let_unit.rs ... FAILED test [ui] ui/lifetimes.rs ... FAILED test [ui] ui/literals.rs ... ok test [ui] ui/manual_memcpy.rs ... FAILED test [ui] ui/excessive_precision.rs ... ok test [ui] ui/map_flatten.rs ... ok test [ui] ui/matches.rs ... FAILED test [ui] ui/match_overlapping_arm.rs ... ok test [ui] ui/methods.rs ... FAILED test [ui] ui/mem_forget.rs ... ok test [ui] ui/mem_discriminant.rs ... ok test [ui] ui/missing-doc-crate-missing.rs ... ok test [ui] ui/match_bool.rs ... ok test [ui] ui/missing_const_for_fn/cant_be_const.rs ... ok test [ui] ui/map_unit_fn.rs ... ok test [ui] ui/module_inception.rs ... ok test [ui] ui/mut_from_ref.rs ... FAILED test [ui] ui/missing_const_for_fn/could_be_const.rs ... FAILED test [ui] ui/match_same_arms.rs ... ok test [ui] ui/mut_mut.rs ... FAILED test [ui] ui/min_max.rs ... ok test [ui] ui/missing_inline.rs ... ok test [ui] ui/module_name_repetitions.rs ... ok test [ui] ui/modulo_one.rs ... ok test [ui] ui/inconsistent_digit_grouping.rs ... ok test [ui] ui/missing-doc.rs ... ok test [ui] ui/mutex_atomic.rs ... ok test [ui] ui/mut_reference.rs ... ok test [ui] ui/format.rs ... ok test [ui] ui/mut_range_bound.rs ... ok test [ui] ui/missing-doc-crate.rs ... ok test [ui] ui/infallible_destructuring_match.rs ... ok test [ui] ui/needless_borrow.rs ... FAILED test [ui] ui/needless_bool.rs ... FAILED test [ui] ui/needless_borrowed_ref.rs ... FAILED test [ui] ui/lint_without_lint_pass.rs ... FAILED test [ui] ui/my_lint.rs ... FAILED test [ui] ui/needless_continue.rs ... FAILED test [ui] ui/needless_collect.rs ... ok test [ui] ui/needless_pass_by_value.rs ... FAILED test [ui] ui/needless_pass_by_value_proc_macro.rs ... ok test [ui] ui/needless_range_loop.rs ... FAILED test [ui] ui/needless_return.rs ... FAILED test [ui] ui/never_loop.rs ... FAILED test [ui] ui/new_ret_no_self.rs ... FAILED test [ui] ui/neg_multiply.rs ... FAILED test [ui] ui/needless_update.rs ... ok test [ui] ui/no_effect.rs ... FAILED test [ui] ui/non_expressive_names.rs ... FAILED test [ui] ui/new_without_default.rs ... FAILED test [ui] ui/ok_if_let.rs ... FAILED test [ui] ui/panic_unimplemented.rs ... FAILED test [ui] ui/non_copy_const.rs ... FAILED test [ui] ui/ok_expect.rs ... FAILED test [ui] ui/option_option.rs ... FAILED test [ui] ui/print.rs ... FAILED test [ui] ui/option_map_unit_fn.rs ... FAILED test [ui] ui/op_ref.rs ... ok test [ui] ui/neg_cmp_op_on_partial_ord.rs ... ok test [ui] ui/patterns.rs ... ok test [ui] ui/partialeq_ne_impl.rs ... ok test [ui] ui/open_options.rs ... ok test [ui] ui/overflow_check_conditional.rs ... ok test [ui] ui/proc_macro.rs ... ok test [ui] ui/mistyped_literal_suffix.rs ... ok test [ui] ui/mem_replace.rs ... ok test [ui] ui/print_with_newline.rs ... ok test [ui] ui/print_literal.rs ... ok test [ui] ui/question_mark.rs ... FAILED test [ui] ui/transmute_64bit.rs ... ignored test [ui] ui/ptr_arg.rs ... ok test [ui] ui/map_clone.rs ... ok test [ui] ui/into_iter_on_ref.rs ... ok test [ui] ui/redundant_clone.rs ... FAILED test [ui] ui/range_plus_minus_one.rs ... FAILED test [ui] ui/redundant_closure_call.rs ... FAILED test [ui] ui/range.rs ... ok test [ui] ui/redundant_pattern_matching.rs ... ok test [ui] ui/reference.rs ... FAILED test [ui] ui/result_map_unwrap_or_else.rs ... FAILED test [ui] ui/rename.rs ... FAILED test [ui] ui/result_map_unit_fn.rs ... FAILED test [ui] ui/renamed_builtin_attr.rs ... ok test [ui] ui/shadow.rs ... FAILED test [ui] ui/short_circuit_statement.rs ... FAILED test [ui] ui/regex.rs ... ok test [ui] ui/temporary_assignment.rs ... FAILED test [ui] ui/single_match_else.rs ... FAILED test [ui] ui/serde.rs ... FAILED test [ui] ui/similar_names.rs ... FAILED test [ui] ui/string_extend.rs ... FAILED test [ui] ui/suspicious_arithmetic_impl.rs ... FAILED test [ui] ui/strings.rs ... FAILED test [ui] ui/slow_vector_initialization.rs ... ok test [ui] ui/transmute.rs ... FAILED test [ui] ui/single_match.rs ... ok test [ui] ui/transmute_32bit.rs ... FAILED test [ui] ui/trailing_zeros.rs ... ok test [ui] ui/swap.rs ... ok test [ui] ui/toplevel_ref_arg.rs ... ok test [ui] ui/transmuting_null.rs ... FAILED test [ui] ui/trivially_copy_pass_by_ref.rs ... FAILED test [ui] ui/ty_fn_sig.rs ... ok test [ui] ui/unit_arg.rs ... FAILED test [ui] ui/unicode.rs ... ok test [ui] ui/println_empty_string.rs ... ok test [ui] ui/unknown_attribute.rs ... ok test [ui] ui/ptr_offset_with_cast.rs ... ok test [ui] ui/unit_cmp.rs ... ok test [ui] ui/precedence.rs ... ok test [ui] ui/unknown_clippy_lints.rs ... ok test [ui] ui/unnecessary_operation.rs ... FAILED test [ui] ui/unnecessary_clone.rs ... FAILED test [ui] ui/unnecessary_filter_map.rs ... FAILED test [ui] ui/unused_lt.rs ... FAILED test [ui] ui/unused_io_amount.rs ... ok test [ui] ui/unneeded_field_pattern.rs ... ok test [ui] ui/unused_labels.rs ... FAILED test [ui] ui/unsafe_removed_from_name.rs ... ok test [ui] ui/unused_unit.rs ... FAILED test [ui] ui/use_self.rs ... FAILED test [ui] ui/vec.rs ... FAILED test [ui] ui/used_underscore_binding.rs ... FAILED test [ui] ui/replace_consts.rs ... ok test [ui] ui/unwrap_or.rs ... ok test [ui] ui/useless_asref.rs ... FAILED test [ui] ui/wildcard_enum_match_arm.rs ... FAILED test [ui] ui/string_lit_as_bytes.rs ... ok test [ui] ui/while_loop.rs ... FAILED test [ui] ui/write_with_newline.rs ... ok test [ui] ui/redundant_field_names.rs ... ok test [ui] ui/useful_asref.rs ... ok test [ui] ui/types.rs ... ok test [ui] ui/starts_ends_with.rs ... ok test [ui] ui/write_literal.rs ... ok test [ui] ui/zero_div_zero.rs ... ok test [ui] ui/zero_ptr.rs ... ok test [ui] ui/wrong_self_convention.rs ... ok test [ui] ui/single_char_pattern.rs ... ok test [ui] ui/unnecessary_fold.rs ... ok test [ui] ui/unnecessary_ref.rs ... ok test [ui] ui/useless_attribute.rs ... ok test [ui] ui/vec_box_sized.rs ... ok test [ui] ui/writeln_empty_string.rs ... ok test [ui] ui/unreadable_literal.rs ... FAILED test [ui] ui/large_digit_groups.rs ... FAILED failures: ---- [ui] ui/assertions_on_constants.rs stdout ---- normalized stderr: expected stderr: error: assert!(true) will be optimized out by the compiler --> $DIR/assertions_on_constants.rs:9:5 | LL | assert!(true); | ^^^^^^^^^^^^^^ | = note: `-D clippy::assertions-on-constants` implied by `-D warnings` = help: remove it error: assert!(false) should probably be replaced --> $DIR/assertions_on_constants.rs:10:5 | LL | assert!(false); | ^^^^^^^^^^^^^^^ | = help: use panic!() or unreachable!() error: assert!(true) will be optimized out by the compiler --> $DIR/assertions_on_constants.rs:11:5 | LL | assert!(true, "true message"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: remove it error: assert!(false) should probably be replaced --> $DIR/assertions_on_constants.rs:12:5 | LL | assert!(false, "false message"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: use panic!() or unreachable!() error: assert!(const: true) will be optimized out by the compiler --> $DIR/assertions_on_constants.rs:15:5 | LL | assert!(B); | ^^^^^^^^^^^ | = help: remove it error: assert!(const: false) should probably be replaced --> $DIR/assertions_on_constants.rs:18:5 | LL | assert!(C); | ^^^^^^^^^^^ | = help: use panic!() or unreachable!() error: assert!(true) will be optimized out by the compiler --> $DIR/assertions_on_constants.rs:20:5 | LL | debug_assert!(true); | ^^^^^^^^^^^^^^^^^^^^ | = help: remove it = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: aborting due to 7 previous errors diff of stderr: -error: assert!(true) will be optimized out by the compiler - --> $DIR/assertions_on_constants.rs:9:5 - | -LL | assert!(true); - | ^^^^^^^^^^^^^^ - | - = note: `-D clippy::assertions-on-constants` implied by `-D warnings` - = help: remove it - -error: assert!(false) should probably be replaced - --> $DIR/assertions_on_constants.rs:10:5 - | -LL | assert!(false); - | ^^^^^^^^^^^^^^^ - | - = help: use panic!() or unreachable!() - -error: assert!(true) will be optimized out by the compiler - --> $DIR/assertions_on_constants.rs:11:5 - | -LL | assert!(true, "true message"); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = help: remove it - -error: assert!(false) should probably be replaced - --> $DIR/assertions_on_constants.rs:12:5 - | -LL | assert!(false, "false message"); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = help: use panic!() or unreachable!() - -error: assert!(const: true) will be optimized out by the compiler - --> $DIR/assertions_on_constants.rs:15:5 - | -LL | assert!(B); - | ^^^^^^^^^^^ - | - = help: remove it - -error: assert!(const: false) should probably be replaced - --> $DIR/assertions_on_constants.rs:18:5 - | -LL | assert!(C); - | ^^^^^^^^^^^ - | - = help: use panic!() or unreachable!() - -error: assert!(true) will be optimized out by the compiler - --> $DIR/assertions_on_constants.rs:20:5 - | -LL | debug_assert!(true); - | ^^^^^^^^^^^^^^^^^^^^ - | - = help: remove it - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -error: aborting due to 7 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/assertions_on_constants.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'assertions_on_constants.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/assertions_on_constants.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/assertions_on_constants.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/assertions_on_constants.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/assertions_on_constants.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. ---- [ui] ui/cast_lossless_integer.rs stdout ---- normalized stderr: expected stderr: error: casting i8 to i16 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:8:5 | LL | 1i8 as i16; | ^^^^^^^^^^ help: try: `i16::from(1i8)` | = note: `-D clippy::cast-lossless` implied by `-D warnings` error: casting i8 to i32 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:9:5 | LL | 1i8 as i32; | ^^^^^^^^^^ help: try: `i32::from(1i8)` error: casting i8 to i64 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:10:5 | LL | 1i8 as i64; | ^^^^^^^^^^ help: try: `i64::from(1i8)` error: casting u8 to i16 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:11:5 | LL | 1u8 as i16; | ^^^^^^^^^^ help: try: `i16::from(1u8)` error: casting u8 to i32 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:12:5 | LL | 1u8 as i32; | ^^^^^^^^^^ help: try: `i32::from(1u8)` error: casting u8 to i64 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:13:5 | LL | 1u8 as i64; | ^^^^^^^^^^ help: try: `i64::from(1u8)` error: casting u8 to u16 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:14:5 | LL | 1u8 as u16; | ^^^^^^^^^^ help: try: `u16::from(1u8)` error: casting u8 to u32 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:15:5 | LL | 1u8 as u32; | ^^^^^^^^^^ help: try: `u32::from(1u8)` error: casting u8 to u64 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:16:5 | LL | 1u8 as u64; | ^^^^^^^^^^ help: try: `u64::from(1u8)` error: casting i16 to i32 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:17:5 | LL | 1i16 as i32; | ^^^^^^^^^^^ help: try: `i32::from(1i16)` error: casting i16 to i64 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:18:5 | LL | 1i16 as i64; | ^^^^^^^^^^^ help: try: `i64::from(1i16)` error: casting u16 to i32 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:19:5 | LL | 1u16 as i32; | ^^^^^^^^^^^ help: try: `i32::from(1u16)` error: casting u16 to i64 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:20:5 | LL | 1u16 as i64; | ^^^^^^^^^^^ help: try: `i64::from(1u16)` error: casting u16 to u32 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:21:5 | LL | 1u16 as u32; | ^^^^^^^^^^^ help: try: `u32::from(1u16)` error: casting u16 to u64 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:22:5 | LL | 1u16 as u64; | ^^^^^^^^^^^ help: try: `u64::from(1u16)` error: casting i32 to i64 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:23:5 | LL | 1i32 as i64; | ^^^^^^^^^^^ help: try: `i64::from(1i32)` error: casting u32 to i64 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:24:5 | LL | 1u32 as i64; | ^^^^^^^^^^^ help: try: `i64::from(1u32)` error: casting u32 to u64 may become silently lossy if types change --> $DIR/cast_lossless_integer.rs:25:5 | LL | 1u32 as u64; | ^^^^^^^^^^^ help: try: `u64::from(1u32)` error: aborting due to 18 previous errors diff of stderr: -error: casting i8 to i16 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:8:5 - | -LL | 1i8 as i16; - | ^^^^^^^^^^ help: try: `i16::from(1i8)` - | - = note: `-D clippy::cast-lossless` implied by `-D warnings` - -error: casting i8 to i32 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:9:5 - | -LL | 1i8 as i32; - | ^^^^^^^^^^ help: try: `i32::from(1i8)` - -error: casting i8 to i64 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:10:5 - | -LL | 1i8 as i64; - | ^^^^^^^^^^ help: try: `i64::from(1i8)` - -error: casting u8 to i16 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:11:5 - | -LL | 1u8 as i16; - | ^^^^^^^^^^ help: try: `i16::from(1u8)` - -error: casting u8 to i32 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:12:5 - | -LL | 1u8 as i32; - | ^^^^^^^^^^ help: try: `i32::from(1u8)` - -error: casting u8 to i64 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:13:5 - | -LL | 1u8 as i64; - | ^^^^^^^^^^ help: try: `i64::from(1u8)` - -error: casting u8 to u16 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:14:5 - | -LL | 1u8 as u16; - | ^^^^^^^^^^ help: try: `u16::from(1u8)` - -error: casting u8 to u32 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:15:5 - | -LL | 1u8 as u32; - | ^^^^^^^^^^ help: try: `u32::from(1u8)` - -error: casting u8 to u64 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:16:5 - | -LL | 1u8 as u64; - | ^^^^^^^^^^ help: try: `u64::from(1u8)` - -error: casting i16 to i32 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:17:5 - | -LL | 1i16 as i32; - | ^^^^^^^^^^^ help: try: `i32::from(1i16)` - -error: casting i16 to i64 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:18:5 - | -LL | 1i16 as i64; - | ^^^^^^^^^^^ help: try: `i64::from(1i16)` - -error: casting u16 to i32 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:19:5 - | -LL | 1u16 as i32; - | ^^^^^^^^^^^ help: try: `i32::from(1u16)` - -error: casting u16 to i64 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:20:5 - | -LL | 1u16 as i64; - | ^^^^^^^^^^^ help: try: `i64::from(1u16)` - -error: casting u16 to u32 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:21:5 - | -LL | 1u16 as u32; - | ^^^^^^^^^^^ help: try: `u32::from(1u16)` - -error: casting u16 to u64 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:22:5 - | -LL | 1u16 as u64; - | ^^^^^^^^^^^ help: try: `u64::from(1u16)` - -error: casting i32 to i64 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:23:5 - | -LL | 1i32 as i64; - | ^^^^^^^^^^^ help: try: `i64::from(1i32)` - -error: casting u32 to i64 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:24:5 - | -LL | 1u32 as i64; - | ^^^^^^^^^^^ help: try: `i64::from(1u32)` - -error: casting u32 to u64 may become silently lossy if types change - --> $DIR/cast_lossless_integer.rs:25:5 - | -LL | 1u32 as u64; - | ^^^^^^^^^^^ help: try: `u64::from(1u32)` - -error: aborting due to 18 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cast_lossless_integer.stderr normalized fixed: // run-rustfix #![allow(clippy::no_effect, clippy::unnecessary_operation, dead_code)] #![warn(clippy::cast_lossless)] fn main() { // Test clippy::cast_lossless with casts to integer types 1i8 as i16; 1i8 as i32; 1i8 as i64; 1u8 as i16; 1u8 as i32; 1u8 as i64; 1u8 as u16; 1u8 as u32; 1u8 as u64; 1i16 as i32; 1i16 as i64; 1u16 as i32; 1u16 as i64; 1u16 as u32; 1u16 as u64; 1i32 as i64; 1u32 as i64; 1u32 as u64; } // The lint would suggest using `f64::from(input)` here but the `XX::from` function is not const, // so we skip the lint if the expression is in a const fn. // See #3656 const fn abc(input: u16) -> u32 { input as u32 } expected fixed: // run-rustfix #![allow(clippy::no_effect, clippy::unnecessary_operation, dead_code)] #![warn(clippy::cast_lossless)] fn main() { // Test clippy::cast_lossless with casts to integer types i16::from(1i8); i32::from(1i8); i64::from(1i8); i16::from(1u8); i32::from(1u8); i64::from(1u8); u16::from(1u8); u32::from(1u8); u64::from(1u8); i32::from(1i16); i64::from(1i16); i32::from(1u16); i64::from(1u16); u32::from(1u16); u64::from(1u16); i64::from(1i32); i64::from(1u32); u64::from(1u32); } // The lint would suggest using `f64::from(input)` here but the `XX::from` function is not const, // so we skip the lint if the expression is in a const fn. // See #3656 const fn abc(input: u16) -> u32 { input as u32 } diff of fixed: // run-rustfix #![allow(clippy::no_effect, clippy::unnecessary_operation, dead_code)] #![warn(clippy::cast_lossless)] fn main() { // Test clippy::cast_lossless with casts to integer types - i16::from(1i8); - i32::from(1i8); - i64::from(1i8); - i16::from(1u8); - i32::from(1u8); - i64::from(1u8); - u16::from(1u8); - u32::from(1u8); - u64::from(1u8); - i32::from(1i16); - i64::from(1i16); - i32::from(1u16); - i64::from(1u16); - u32::from(1u16); - u64::from(1u16); - i64::from(1i32); - i64::from(1u32); - u64::from(1u32); + 1i8 as i16; + 1i8 as i32; + 1i8 as i64; + 1u8 as i16; + 1u8 as i32; + 1u8 as i64; + 1u8 as u16; + 1u8 as u32; + 1u8 as u64; + 1i16 as i32; + 1i16 as i64; + 1u16 as i32; + 1u16 as i64; + 1u16 as u32; + 1u16 as u64; + 1i32 as i64; + 1u32 as i64; + 1u32 as u64; } // The lint would suggest using `f64::from(input)` here but the `XX::from` function is not const, // so we skip the lint if the expression is in a const fn. // See #3656 const fn abc(input: u16) -> u32 { input as u32 } The actual fixed differed from the expected fixed. Actual fixed saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cast_lossless_integer.fixed To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'cast_lossless_integer.rs' error: 2 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/cast_lossless_integer.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cast_lossless_integer.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cast_lossless_integer.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/cast_lossless_integer.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/author/for_loop.rs stdout ---- normalized stdout: expected stdout: if_chain! { if let ExprKind::Block(ref block) = expr.node; if let StmtKind::Local(ref local) = block.node; if let Some(ref init) = local.init; if let ExprKind::Match(ref expr, ref arms, MatchSource::ForLoopDesugar) = init.node; if let ExprKind::Call(ref func, ref args) = expr.node; if let ExprKind::Path(ref path) = func.node; if match_qpath(path, &["{{root}}", "std", "iter", "IntoIterator", "into_iter"]); if args.len() == 1; if let ExprKind::Struct(ref path1, ref fields, None) = args[0].node; if match_qpath(path1, &["{{root}}", "std", "ops", "Range"]); if fields.len() == 2; // unimplemented: field checks if arms.len() == 1; if let ExprKind::Loop(ref body, ref label, LoopSource::ForLoop) = arms[0].body.node; if let StmtKind::Local(ref local1) = body.node; if let PatKind::Binding(BindingAnnotation::Mutable, _, name, None) = local1.pat.node; if name.node.as_str() == "__next"; if let StmtKind::Expr(ref e, _) = local1.pat.node if let ExprKind::Match(ref expr1, ref arms1, MatchSource::ForLoopDesugar) = e.node; if let ExprKind::Call(ref func1, ref args1) = expr1.node; if let ExprKind::Path(ref path2) = func1.node; if match_qpath(path2, &["{{root}}", "std", "iter", "Iterator", "next"]); if args1.len() == 1; if let ExprKind::AddrOf(MutMutable, ref inner) = args1[0].node; if let ExprKind::Path(ref path3) = inner.node; if match_qpath(path3, &["iter"]); if arms1.len() == 2; if let ExprKind::Assign(ref target, ref value) = arms1[0].body.node; if let ExprKind::Path(ref path4) = target.node; if match_qpath(path4, &["__next"]); if let ExprKind::Path(ref path5) = value.node; if match_qpath(path5, &["val"]); if arms1[0].pats.len() == 1; if let PatKind::TupleStruct(ref path6, ref fields1, None) = arms1[0].pats[0].node; if match_qpath(path6, &["{{root}}", "std", "option", "Option", "Some"]); if fields1.len() == 1; // unimplemented: field checks if let ExprKind::Break(ref destination, None) = arms1[1].body.node; if arms1[1].pats.len() == 1; if let PatKind::Path(ref path7) = arms1[1].pats[0].node; if match_qpath(path7, &["{{root}}", "std", "option", "Option", "None"]); if let StmtKind::Local(ref local2) = path7.node; if let Some(ref init1) = local2.init; if let ExprKind::Path(ref path8) = init1.node; if match_qpath(path8, &["__next"]); if let PatKind::Binding(BindingAnnotation::Unannotated, _, name1, None) = local2.pat.node; if name1.node.as_str() == "y"; if let StmtKind::Expr(ref e1, _) = local2.pat.node if let ExprKind::Block(ref block1) = e1.node; if let StmtKind::Local(ref local3) = block1.node; if let Some(ref init2) = local3.init; if let ExprKind::Path(ref path9) = init2.node; if match_qpath(path9, &["y"]); if let PatKind::Binding(BindingAnnotation::Unannotated, _, name2, None) = local3.pat.node; if name2.node.as_str() == "z"; if arms[0].pats.len() == 1; if let PatKind::Binding(BindingAnnotation::Mutable, _, name3, None) = arms[0].pats[0].node; if name3.node.as_str() == "iter"; if let PatKind::Binding(BindingAnnotation::Unannotated, _, name4, None) = local.pat.node; if name4.node.as_str() == "_result"; if let ExprKind::Path(ref path10) = local.pat.node; if match_qpath(path10, &["_result"]); then { // report your lint here } } diff of stdout: -if_chain! { - if let ExprKind::Block(ref block) = expr.node; - if let StmtKind::Local(ref local) = block.node; - if let Some(ref init) = local.init; - if let ExprKind::Match(ref expr, ref arms, MatchSource::ForLoopDesugar) = init.node; - if let ExprKind::Call(ref func, ref args) = expr.node; - if let ExprKind::Path(ref path) = func.node; - if match_qpath(path, &["{{root}}", "std", "iter", "IntoIterator", "into_iter"]); - if args.len() == 1; - if let ExprKind::Struct(ref path1, ref fields, None) = args[0].node; - if match_qpath(path1, &["{{root}}", "std", "ops", "Range"]); - if fields.len() == 2; - // unimplemented: field checks - if arms.len() == 1; - if let ExprKind::Loop(ref body, ref label, LoopSource::ForLoop) = arms[0].body.node; - if let StmtKind::Local(ref local1) = body.node; - if let PatKind::Binding(BindingAnnotation::Mutable, _, name, None) = local1.pat.node; - if name.node.as_str() == "__next"; - if let StmtKind::Expr(ref e, _) = local1.pat.node - if let ExprKind::Match(ref expr1, ref arms1, MatchSource::ForLoopDesugar) = e.node; - if let ExprKind::Call(ref func1, ref args1) = expr1.node; - if let ExprKind::Path(ref path2) = func1.node; - if match_qpath(path2, &["{{root}}", "std", "iter", "Iterator", "next"]); - if args1.len() == 1; - if let ExprKind::AddrOf(MutMutable, ref inner) = args1[0].node; - if let ExprKind::Path(ref path3) = inner.node; - if match_qpath(path3, &["iter"]); - if arms1.len() == 2; - if let ExprKind::Assign(ref target, ref value) = arms1[0].body.node; - if let ExprKind::Path(ref path4) = target.node; - if match_qpath(path4, &["__next"]); - if let ExprKind::Path(ref path5) = value.node; - if match_qpath(path5, &["val"]); - if arms1[0].pats.len() == 1; - if let PatKind::TupleStruct(ref path6, ref fields1, None) = arms1[0].pats[0].node; - if match_qpath(path6, &["{{root}}", "std", "option", "Option", "Some"]); - if fields1.len() == 1; - // unimplemented: field checks - if let ExprKind::Break(ref destination, None) = arms1[1].body.node; - if arms1[1].pats.len() == 1; - if let PatKind::Path(ref path7) = arms1[1].pats[0].node; - if match_qpath(path7, &["{{root}}", "std", "option", "Option", "None"]); - if let StmtKind::Local(ref local2) = path7.node; - if let Some(ref init1) = local2.init; - if let ExprKind::Path(ref path8) = init1.node; - if match_qpath(path8, &["__next"]); - if let PatKind::Binding(BindingAnnotation::Unannotated, _, name1, None) = local2.pat.node; - if name1.node.as_str() == "y"; - if let StmtKind::Expr(ref e1, _) = local2.pat.node - if let ExprKind::Block(ref block1) = e1.node; - if let StmtKind::Local(ref local3) = block1.node; - if let Some(ref init2) = local3.init; - if let ExprKind::Path(ref path9) = init2.node; - if match_qpath(path9, &["y"]); - if let PatKind::Binding(BindingAnnotation::Unannotated, _, name2, None) = local3.pat.node; - if name2.node.as_str() == "z"; - if arms[0].pats.len() == 1; - if let PatKind::Binding(BindingAnnotation::Mutable, _, name3, None) = arms[0].pats[0].node; - if name3.node.as_str() == "iter"; - if let PatKind::Binding(BindingAnnotation::Unannotated, _, name4, None) = local.pat.node; - if name4.node.as_str() == "_result"; - if let ExprKind::Path(ref path10) = local.pat.node; - if match_qpath(path10, &["_result"]); - then { - // report your lint here - } -} - The actual stdout differed from the expected stdout. Actual stdout saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/author/for_loop.stdout To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'author/for_loop.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/author/for_loop.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/author/for_loop.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/author/for_loop.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/author/for_loop.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/absurd-extreme-comparisons.rs stdout ---- normalized stderr: expected stderr: error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:14:5 | LL | u <= 0; | ^^^^^^ | = note: `-D clippy::absurd-extreme-comparisons` implied by `-D warnings` = help: because 0 is the minimum value for this type, the case where the two sides are not equal never occurs, consider using u == 0 instead error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:15:5 | LL | u <= Z; | ^^^^^^ | = help: because Z is the minimum value for this type, the case where the two sides are not equal never occurs, consider using u == Z instead error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:16:5 | LL | u < Z; | ^^^^^ | = help: because Z is the minimum value for this type, this comparison is always false error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:17:5 | LL | Z >= u; | ^^^^^^ | = help: because Z is the minimum value for this type, the case where the two sides are not equal never occurs, consider using Z == u instead error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:18:5 | LL | Z > u; | ^^^^^ | = help: because Z is the minimum value for this type, this comparison is always false error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:19:5 | LL | u > std::u32::MAX; | ^^^^^^^^^^^^^^^^^ | = help: because std::u32::MAX is the maximum value for this type, this comparison is always false error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:20:5 | LL | u >= std::u32::MAX; | ^^^^^^^^^^^^^^^^^^ | = help: because std::u32::MAX is the maximum value for this type, the case where the two sides are not equal never occurs, consider using u == std::u32::MAX instead error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:21:5 | LL | std::u32::MAX < u; | ^^^^^^^^^^^^^^^^^ | = help: because std::u32::MAX is the maximum value for this type, this comparison is always false error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:22:5 | LL | std::u32::MAX <= u; | ^^^^^^^^^^^^^^^^^^ | = help: because std::u32::MAX is the maximum value for this type, the case where the two sides are not equal never occurs, consider using std::u32::MAX == u instead error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:23:5 | LL | 1-1 > u; | ^^^^^^^ | = help: because 1-1 is the minimum value for this type, this comparison is always false error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:24:5 | LL | u >= !0; | ^^^^^^^ | = help: because !0 is the maximum value for this type, the case where the two sides are not equal never occurs, consider using u == !0 instead error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:25:5 | LL | u <= 12 - 2*6; | ^^^^^^^^^^^^^ | = help: because 12 - 2*6 is the minimum value for this type, the case where the two sides are not equal never occurs, consider using u == 12 - 2*6 instead error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:27:5 | LL | i < -127 - 1; | ^^^^^^^^^^^^ | = help: because -127 - 1 is the minimum value for this type, this comparison is always false error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:28:5 | LL | std::i8::MAX >= i; | ^^^^^^^^^^^^^^^^^ | = help: because std::i8::MAX is the maximum value for this type, this comparison is always true error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:29:5 | LL | 3-7 < std::i32::MIN; | ^^^^^^^^^^^^^^^^^^^ | = help: because std::i32::MIN is the minimum value for this type, this comparison is always false error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:31:5 | LL | b >= true; | ^^^^^^^^^ | = help: because true is the maximum value for this type, the case where the two sides are not equal never occurs, consider using b == true instead error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false --> $DIR/absurd-extreme-comparisons.rs:32:5 | LL | false > b; | ^^^^^^^^^ | = help: because false is the minimum value for this type, this comparison is always false error: <-comparison of unit values detected. This will always be false --> $DIR/absurd-extreme-comparisons.rs:35:5 | LL | () < {}; | ^^^^^^^ | = note: #[deny(clippy::unit_cmp)] on by default error: aborting due to 18 previous errors diff of stderr: -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:14:5 - | -LL | u <= 0; - | ^^^^^^ - | - = note: `-D clippy::absurd-extreme-comparisons` implied by `-D warnings` - = help: because 0 is the minimum value for this type, the case where the two sides are not equal never occurs, consider using u == 0 instead - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:15:5 - | -LL | u <= Z; - | ^^^^^^ - | - = help: because Z is the minimum value for this type, the case where the two sides are not equal never occurs, consider using u == Z instead - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:16:5 - | -LL | u < Z; - | ^^^^^ - | - = help: because Z is the minimum value for this type, this comparison is always false - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:17:5 - | -LL | Z >= u; - | ^^^^^^ - | - = help: because Z is the minimum value for this type, the case where the two sides are not equal never occurs, consider using Z == u instead - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:18:5 - | -LL | Z > u; - | ^^^^^ - | - = help: because Z is the minimum value for this type, this comparison is always false - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:19:5 - | -LL | u > std::u32::MAX; - | ^^^^^^^^^^^^^^^^^ - | - = help: because std::u32::MAX is the maximum value for this type, this comparison is always false - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:20:5 - | -LL | u >= std::u32::MAX; - | ^^^^^^^^^^^^^^^^^^ - | - = help: because std::u32::MAX is the maximum value for this type, the case where the two sides are not equal never occurs, consider using u == std::u32::MAX instead - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:21:5 - | -LL | std::u32::MAX < u; - | ^^^^^^^^^^^^^^^^^ - | - = help: because std::u32::MAX is the maximum value for this type, this comparison is always false - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:22:5 - | -LL | std::u32::MAX <= u; - | ^^^^^^^^^^^^^^^^^^ - | - = help: because std::u32::MAX is the maximum value for this type, the case where the two sides are not equal never occurs, consider using std::u32::MAX == u instead - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:23:5 - | -LL | 1-1 > u; - | ^^^^^^^ - | - = help: because 1-1 is the minimum value for this type, this comparison is always false - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:24:5 - | -LL | u >= !0; - | ^^^^^^^ - | - = help: because !0 is the maximum value for this type, the case where the two sides are not equal never occurs, consider using u == !0 instead - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:25:5 - | -LL | u <= 12 - 2*6; - | ^^^^^^^^^^^^^ - | - = help: because 12 - 2*6 is the minimum value for this type, the case where the two sides are not equal never occurs, consider using u == 12 - 2*6 instead - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:27:5 - | -LL | i < -127 - 1; - | ^^^^^^^^^^^^ - | - = help: because -127 - 1 is the minimum value for this type, this comparison is always false - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:28:5 - | -LL | std::i8::MAX >= i; - | ^^^^^^^^^^^^^^^^^ - | - = help: because std::i8::MAX is the maximum value for this type, this comparison is always true - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:29:5 - | -LL | 3-7 < std::i32::MIN; - | ^^^^^^^^^^^^^^^^^^^ - | - = help: because std::i32::MIN is the minimum value for this type, this comparison is always false - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:31:5 - | -LL | b >= true; - | ^^^^^^^^^ - | - = help: because true is the maximum value for this type, the case where the two sides are not equal never occurs, consider using b == true instead - -error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false - --> $DIR/absurd-extreme-comparisons.rs:32:5 - | -LL | false > b; - | ^^^^^^^^^ - | - = help: because false is the minimum value for this type, this comparison is always false - -error: <-comparison of unit values detected. This will always be false - --> $DIR/absurd-extreme-comparisons.rs:35:5 - | -LL | () < {}; - | ^^^^^^^ - | - = note: #[deny(clippy::unit_cmp)] on by default - -error: aborting due to 18 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/absurd-extreme-comparisons.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'absurd-extreme-comparisons.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/absurd-extreme-comparisons.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/absurd-extreme-comparisons.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/absurd-extreme-comparisons.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/absurd-extreme-comparisons.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/attrs.rs stdout ---- normalized stderr: expected stderr: error: you have declared `#[inline(always)]` on `test_attr_lint`. This is usually a bad idea --> $DIR/attrs.rs:3:1 | LL | #[inline(always)] | ^^^^^^^^^^^^^^^^^ | = note: `-D clippy::inline-always` implied by `-D warnings` error: the since field must contain a semver-compliant version --> $DIR/attrs.rs:23:14 | LL | #[deprecated(since = "forever")] | ^^^^^^^^^^^^^^^^^ | = note: `-D clippy::deprecated-semver` implied by `-D warnings` error: the since field must contain a semver-compliant version --> $DIR/attrs.rs:26:14 | LL | #[deprecated(since = "1")] | ^^^^^^^^^^^ error: aborting due to 3 previous errors diff of stderr: -error: you have declared `#[inline(always)]` on `test_attr_lint`. This is usually a bad idea - --> $DIR/attrs.rs:3:1 - | -LL | #[inline(always)] - | ^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::inline-always` implied by `-D warnings` - -error: the since field must contain a semver-compliant version - --> $DIR/attrs.rs:23:14 - | -LL | #[deprecated(since = "forever")] - | ^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::deprecated-semver` implied by `-D warnings` - -error: the since field must contain a semver-compliant version - --> $DIR/attrs.rs:26:14 - | -LL | #[deprecated(since = "1")] - | ^^^^^^^^^^^ - -error: aborting due to 3 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/attrs.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'attrs.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/attrs.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/attrs.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/attrs.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/attrs.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/assign_ops2.rs stdout ---- normalized stderr: expected stderr: error: variable appears on both sides of an assignment operation --> $DIR/assign_ops2.rs:5:5 | LL | a += a + 1; | ^^^^^^^^^^ | = note: `-D clippy::misrefactored-assign-op` implied by `-D warnings` help: Did you mean a = a + 1 or a = a + a + 1? Consider replacing it with | LL | a += 1; | ^^^^^^ help: or | LL | a = a + a + 1; | ^^^^^^^^^^^^^ error: variable appears on both sides of an assignment operation --> $DIR/assign_ops2.rs:6:5 | LL | a += 1 + a; | ^^^^^^^^^^ help: Did you mean a = a + 1 or a = a + 1 + a? Consider replacing it with | LL | a += 1; | ^^^^^^ help: or | LL | a = a + 1 + a; | ^^^^^^^^^^^^^ error: variable appears on both sides of an assignment operation --> $DIR/assign_ops2.rs:7:5 | LL | a -= a - 1; | ^^^^^^^^^^ help: Did you mean a = a - 1 or a = a - (a - 1)? Consider replacing it with | LL | a -= 1; | ^^^^^^ help: or | LL | a = a - (a - 1); | ^^^^^^^^^^^^^^^ error: variable appears on both sides of an assignment operation --> $DIR/assign_ops2.rs:8:5 | LL | a *= a * 99; | ^^^^^^^^^^^ help: Did you mean a = a * 99 or a = a * a * 99? Consider replacing it with | LL | a *= 99; | ^^^^^^^ help: or | LL | a = a * a * 99; | ^^^^^^^^^^^^^^ error: variable appears on both sides of an assignment operation --> $DIR/assign_ops2.rs:9:5 | LL | a *= 42 * a; | ^^^^^^^^^^^ help: Did you mean a = a * 42 or a = a * 42 * a? Consider replacing it with | LL | a *= 42; | ^^^^^^^ help: or | LL | a = a * 42 * a; | ^^^^^^^^^^^^^^ error: variable appears on both sides of an assignment operation --> $DIR/assign_ops2.rs:10:5 | LL | a /= a / 2; | ^^^^^^^^^^ help: Did you mean a = a / 2 or a = a / (a / 2)? Consider replacing it with | LL | a /= 2; | ^^^^^^ help: or | LL | a = a / (a / 2); | ^^^^^^^^^^^^^^^ error: variable appears on both sides of an assignment operation --> $DIR/assign_ops2.rs:11:5 | LL | a %= a % 5; | ^^^^^^^^^^ help: Did you mean a = a % 5 or a = a % (a % 5)? Consider replacing it with | LL | a %= 5; | ^^^^^^ help: or | LL | a = a % (a % 5); | ^^^^^^^^^^^^^^^ error: variable appears on both sides of an assignment operation --> $DIR/assign_ops2.rs:12:5 | LL | a &= a & 1; | ^^^^^^^^^^ help: Did you mean a = a & 1 or a = a & a & 1? Consider replacing it with | LL | a &= 1; | ^^^^^^ help: or | LL | a = a & a & 1; | ^^^^^^^^^^^^^ error: variable appears on both sides of an assignment operation --> $DIR/assign_ops2.rs:13:5 | LL | a *= a * a; | ^^^^^^^^^^ help: Did you mean a = a * a or a = a * a * a? Consider replacing it with | LL | a *= a; | ^^^^^^ help: or | LL | a = a * a * a; | ^^^^^^^^^^^^^ error: manual implementation of an assign operation --> $DIR/assign_ops2.rs:50:5 | LL | buf = buf + cows.clone(); | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `buf += cows.clone()` | = note: `-D clippy::assign-op-pattern` implied by `-D warnings` error: aborting due to 10 previous errors diff of stderr: -error: variable appears on both sides of an assignment operation - --> $DIR/assign_ops2.rs:5:5 - | -LL | a += a + 1; - | ^^^^^^^^^^ - | - = note: `-D clippy::misrefactored-assign-op` implied by `-D warnings` -help: Did you mean a = a + 1 or a = a + a + 1? Consider replacing it with - | -LL | a += 1; - | ^^^^^^ -help: or - | -LL | a = a + a + 1; - | ^^^^^^^^^^^^^ - -error: variable appears on both sides of an assignment operation - --> $DIR/assign_ops2.rs:6:5 - | -LL | a += 1 + a; - | ^^^^^^^^^^ -help: Did you mean a = a + 1 or a = a + 1 + a? Consider replacing it with - | -LL | a += 1; - | ^^^^^^ -help: or - | -LL | a = a + 1 + a; - | ^^^^^^^^^^^^^ - -error: variable appears on both sides of an assignment operation - --> $DIR/assign_ops2.rs:7:5 - | -LL | a -= a - 1; - | ^^^^^^^^^^ -help: Did you mean a = a - 1 or a = a - (a - 1)? Consider replacing it with - | -LL | a -= 1; - | ^^^^^^ -help: or - | -LL | a = a - (a - 1); - | ^^^^^^^^^^^^^^^ - -error: variable appears on both sides of an assignment operation - --> $DIR/assign_ops2.rs:8:5 - | -LL | a *= a * 99; - | ^^^^^^^^^^^ -help: Did you mean a = a * 99 or a = a * a * 99? Consider replacing it with - | -LL | a *= 99; - | ^^^^^^^ -help: or - | -LL | a = a * a * 99; - | ^^^^^^^^^^^^^^ - -error: variable appears on both sides of an assignment operation - --> $DIR/assign_ops2.rs:9:5 - | -LL | a *= 42 * a; - | ^^^^^^^^^^^ -help: Did you mean a = a * 42 or a = a * 42 * a? Consider replacing it with - | -LL | a *= 42; - | ^^^^^^^ -help: or - | -LL | a = a * 42 * a; - | ^^^^^^^^^^^^^^ - -error: variable appears on both sides of an assignment operation - --> $DIR/assign_ops2.rs:10:5 - | -LL | a /= a / 2; - | ^^^^^^^^^^ -help: Did you mean a = a / 2 or a = a / (a / 2)? Consider replacing it with - | -LL | a /= 2; - | ^^^^^^ -help: or - | -LL | a = a / (a / 2); - | ^^^^^^^^^^^^^^^ - -error: variable appears on both sides of an assignment operation - --> $DIR/assign_ops2.rs:11:5 - | -LL | a %= a % 5; - | ^^^^^^^^^^ -help: Did you mean a = a % 5 or a = a % (a % 5)? Consider replacing it with - | -LL | a %= 5; - | ^^^^^^ -help: or - | -LL | a = a % (a % 5); - | ^^^^^^^^^^^^^^^ - -error: variable appears on both sides of an assignment operation - --> $DIR/assign_ops2.rs:12:5 - | -LL | a &= a & 1; - | ^^^^^^^^^^ -help: Did you mean a = a & 1 or a = a & a & 1? Consider replacing it with - | -LL | a &= 1; - | ^^^^^^ -help: or - | -LL | a = a & a & 1; - | ^^^^^^^^^^^^^ - -error: variable appears on both sides of an assignment operation - --> $DIR/assign_ops2.rs:13:5 - | -LL | a *= a * a; - | ^^^^^^^^^^ -help: Did you mean a = a * a or a = a * a * a? Consider replacing it with - | -LL | a *= a; - | ^^^^^^ -help: or - | -LL | a = a * a * a; - | ^^^^^^^^^^^^^ - -error: manual implementation of an assign operation - --> $DIR/assign_ops2.rs:50:5 - | -LL | buf = buf + cows.clone(); - | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `buf += cows.clone()` - | - = note: `-D clippy::assign-op-pattern` implied by `-D warnings` - -error: aborting due to 10 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/assign_ops2.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'assign_ops2.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/assign_ops2.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/assign_ops2.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/assign_ops2.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/assign_ops2.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/block_in_if_condition.rs stdout ---- normalized stderr: expected stderr: error: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' --> $DIR/block_in_if_condition.rs:26:8 | LL | if { | ________^ LL | | let x = 3; LL | | x == 3 LL | | } { | |_____^ | = note: `-D clippy::block-in-if-condition-stmt` implied by `-D warnings` = help: try let res = { let x = 3; x == 3 }; if res { 6 } ... error: omit braces around single expression condition --> $DIR/block_in_if_condition.rs:37:8 | LL | if { true } { | ^^^^^^^^ | = note: `-D clippy::block-in-if-condition-expr` implied by `-D warnings` = help: try if true { 6 } ... error: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' --> $DIR/block_in_if_condition.rs:58:17 | LL | |x| { | _________________^ LL | | let target = 3; LL | | x == target LL | | }, | |_____________^ error: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' --> $DIR/block_in_if_condition.rs:67:13 | LL | |x| { | _____________^ LL | | let target = 3; LL | | x == target LL | | }, | |_________^ error: this boolean expression can be simplified --> $DIR/block_in_if_condition.rs:77:8 | LL | if true && x == 3 { | ^^^^^^^^^^^^^^ help: try: `x == 3` | = note: `-D clippy::nonminimal-bool` implied by `-D warnings` error: aborting due to 5 previous errors diff of stderr: -error: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' - --> $DIR/block_in_if_condition.rs:26:8 - | -LL | if { - | ________^ -LL | | let x = 3; -LL | | x == 3 -LL | | } { - | |_____^ - | - = note: `-D clippy::block-in-if-condition-stmt` implied by `-D warnings` - = help: try - let res = { - let x = 3; - x == 3 - }; - if res { - 6 - } ... - -error: omit braces around single expression condition - --> $DIR/block_in_if_condition.rs:37:8 - | -LL | if { true } { - | ^^^^^^^^ - | - = note: `-D clippy::block-in-if-condition-expr` implied by `-D warnings` - = help: try - if true { - 6 - } ... - -error: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' - --> $DIR/block_in_if_condition.rs:58:17 - | -LL | |x| { - | _________________^ -LL | | let target = 3; -LL | | x == target -LL | | }, - | |_____________^ - -error: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' - --> $DIR/block_in_if_condition.rs:67:13 - | -LL | |x| { - | _____________^ -LL | | let target = 3; -LL | | x == target -LL | | }, - | |_________^ - -error: this boolean expression can be simplified - --> $DIR/block_in_if_condition.rs:77:8 - | -LL | if true && x == 3 { - | ^^^^^^^^^^^^^^ help: try: `x == 3` - | - = note: `-D clippy::nonminimal-bool` implied by `-D warnings` - -error: aborting due to 5 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/block_in_if_condition.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'block_in_if_condition.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/block_in_if_condition.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/block_in_if_condition.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/block_in_if_condition.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/block_in_if_condition.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/box_vec.rs stdout ---- normalized stderr: expected stderr: error: you seem to be trying to use `Box>`. Consider using just `Vec` --> $DIR/box_vec.rs:14:18 | LL | pub fn test(foo: Box>) { | ^^^^^^^^^^^^^^ | = note: `-D clippy::box-vec` implied by `-D warnings` = help: `Vec` is already on the heap, `Box>` makes an extra allocation. error: aborting due to previous error diff of stderr: -error: you seem to be trying to use `Box>`. Consider using just `Vec` - --> $DIR/box_vec.rs:14:18 - | -LL | pub fn test(foo: Box>) { - | ^^^^^^^^^^^^^^ - | - = note: `-D clippy::box-vec` implied by `-D warnings` - = help: `Vec` is already on the heap, `Box>` makes an extra allocation. - -error: aborting due to previous error - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/box_vec.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'box_vec.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/box_vec.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/box_vec.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/box_vec.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/box_vec.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/booleans.rs stdout ---- normalized stderr: expected stderr: error: this boolean expression contains a logic bug --> $DIR/booleans.rs:10:13 | LL | let _ = a && b || a; | ^^^^^^^^^^^ help: it would look like the following: `a` | = note: `-D clippy::logic-bug` implied by `-D warnings` help: this expression can be optimized out by applying boolean operations to the outer expression --> $DIR/booleans.rs:10:18 | LL | let _ = a && b || a; | ^ error: this boolean expression can be simplified --> $DIR/booleans.rs:12:13 | LL | let _ = !true; | ^^^^^ help: try: `false` | = note: `-D clippy::nonminimal-bool` implied by `-D warnings` error: this boolean expression can be simplified --> $DIR/booleans.rs:13:13 | LL | let _ = !false; | ^^^^^^ help: try: `true` error: this boolean expression can be simplified --> $DIR/booleans.rs:14:13 | LL | let _ = !!a; | ^^^ help: try: `a` error: this boolean expression contains a logic bug --> $DIR/booleans.rs:15:13 | LL | let _ = false && a; | ^^^^^^^^^^ help: it would look like the following: `false` | help: this expression can be optimized out by applying boolean operations to the outer expression --> $DIR/booleans.rs:15:22 | LL | let _ = false && a; | ^ error: this boolean expression can be simplified --> $DIR/booleans.rs:16:13 | LL | let _ = false || a; | ^^^^^^^^^^ help: try: `a` error: this boolean expression can be simplified --> $DIR/booleans.rs:21:13 | LL | let _ = !(!a && b); | ^^^^^^^^^^ help: try: `!b || a` error: this boolean expression contains a logic bug --> $DIR/booleans.rs:31:13 | LL | let _ = a == b && a != b; | ^^^^^^^^^^^^^^^^ help: it would look like the following: `false` | help: this expression can be optimized out by applying boolean operations to the outer expression --> $DIR/booleans.rs:31:13 | LL | let _ = a == b && a != b; | ^^^^^^ error: this boolean expression can be simplified --> $DIR/booleans.rs:32:13 | LL | let _ = a == b && c == 5 && a == b; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try | LL | let _ = a == b && c == 5; | ^^^^^^^^^^^^^^^^ LL | let _ = !(c != 5 || a != b); | ^^^^^^^^^^^^^^^^^^^ error: this boolean expression can be simplified --> $DIR/booleans.rs:33:13 | LL | let _ = a == b && c == 5 && b == a; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try | LL | let _ = a == b && c == 5; | ^^^^^^^^^^^^^^^^ LL | let _ = !(c != 5 || a != b); | ^^^^^^^^^^^^^^^^^^^ error: this boolean expression contains a logic bug --> $DIR/booleans.rs:34:13 | LL | let _ = a < b && a >= b; | ^^^^^^^^^^^^^^^ help: it would look like the following: `false` | help: this expression can be optimized out by applying boolean operations to the outer expression --> $DIR/booleans.rs:34:13 | LL | let _ = a < b && a >= b; | ^^^^^ error: this boolean expression contains a logic bug --> $DIR/booleans.rs:35:13 | LL | let _ = a > b && a <= b; | ^^^^^^^^^^^^^^^ help: it would look like the following: `false` | help: this expression can be optimized out by applying boolean operations to the outer expression --> $DIR/booleans.rs:35:13 | LL | let _ = a > b && a <= b; | ^^^^^ error: this boolean expression can be simplified --> $DIR/booleans.rs:37:13 | LL | let _ = a != b || !(a != b || c == d); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try | LL | let _ = c != d || a != b; | ^^^^^^^^^^^^^^^^ LL | let _ = !(a == b && c == d); | ^^^^^^^^^^^^^^^^^^^ error: this boolean expression can be simplified --> $DIR/booleans.rs:45:13 | LL | let _ = !a.is_some(); | ^^^^^^^^^^^^ help: try: `a.is_none()` error: this boolean expression can be simplified --> $DIR/booleans.rs:47:13 | LL | let _ = !a.is_none(); | ^^^^^^^^^^^^ help: try: `a.is_some()` error: this boolean expression can be simplified --> $DIR/booleans.rs:49:13 | LL | let _ = !b.is_err(); | ^^^^^^^^^^^ help: try: `b.is_ok()` error: this boolean expression can be simplified --> $DIR/booleans.rs:51:13 | LL | let _ = !b.is_ok(); | ^^^^^^^^^^ help: try: `b.is_err()` error: this boolean expression can be simplified --> $DIR/booleans.rs:53:13 | LL | let _ = !(a.is_some() && !c); | ^^^^^^^^^^^^^^^^^^^^ help: try: `c || a.is_none()` error: this boolean expression can be simplified --> $DIR/booleans.rs:54:13 | LL | let _ = !(!c ^ c) || !a.is_some(); | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!(!c ^ c) || a.is_none()` error: this boolean expression can be simplified --> $DIR/booleans.rs:55:13 | LL | let _ = (!c ^ c) || !a.is_some(); | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(!c ^ c) || a.is_none()` error: this boolean expression can be simplified --> $DIR/booleans.rs:56:13 | LL | let _ = !c ^ c || !a.is_some(); | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `!c ^ c || a.is_none()` error: this boolean expression can be simplified --> $DIR/booleans.rs:128:8 | LL | if !res.is_ok() {} | ^^^^^^^^^^^^ help: try: `res.is_err()` error: this boolean expression can be simplified --> $DIR/booleans.rs:129:8 | LL | if !res.is_err() {} | ^^^^^^^^^^^^^ help: try: `res.is_ok()` error: this boolean expression can be simplified --> $DIR/booleans.rs:132:8 | LL | if !res.is_some() {} | ^^^^^^^^^^^^^^ help: try: `res.is_none()` error: this boolean expression can be simplified --> $DIR/booleans.rs:133:8 | LL | if !res.is_none() {} | ^^^^^^^^^^^^^^ help: try: `res.is_some()` error: aborting due to 25 previous errors diff of stderr: -error: this boolean expression contains a logic bug - --> $DIR/booleans.rs:10:13 - | -LL | let _ = a && b || a; - | ^^^^^^^^^^^ help: it would look like the following: `a` - | - = note: `-D clippy::logic-bug` implied by `-D warnings` -help: this expression can be optimized out by applying boolean operations to the outer expression - --> $DIR/booleans.rs:10:18 - | -LL | let _ = a && b || a; - | ^ - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:12:13 - | -LL | let _ = !true; - | ^^^^^ help: try: `false` - | - = note: `-D clippy::nonminimal-bool` implied by `-D warnings` - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:13:13 - | -LL | let _ = !false; - | ^^^^^^ help: try: `true` - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:14:13 - | -LL | let _ = !!a; - | ^^^ help: try: `a` - -error: this boolean expression contains a logic bug - --> $DIR/booleans.rs:15:13 - | -LL | let _ = false && a; - | ^^^^^^^^^^ help: it would look like the following: `false` - | -help: this expression can be optimized out by applying boolean operations to the outer expression - --> $DIR/booleans.rs:15:22 - | -LL | let _ = false && a; - | ^ - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:16:13 - | -LL | let _ = false || a; - | ^^^^^^^^^^ help: try: `a` - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:21:13 - | -LL | let _ = !(!a && b); - | ^^^^^^^^^^ help: try: `!b || a` - -error: this boolean expression contains a logic bug - --> $DIR/booleans.rs:31:13 - | -LL | let _ = a == b && a != b; - | ^^^^^^^^^^^^^^^^ help: it would look like the following: `false` - | -help: this expression can be optimized out by applying boolean operations to the outer expression - --> $DIR/booleans.rs:31:13 - | -LL | let _ = a == b && a != b; - | ^^^^^^ - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:32:13 - | -LL | let _ = a == b && c == 5 && a == b; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ -help: try - | -LL | let _ = a == b && c == 5; - | ^^^^^^^^^^^^^^^^ -LL | let _ = !(c != 5 || a != b); - | ^^^^^^^^^^^^^^^^^^^ - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:33:13 - | -LL | let _ = a == b && c == 5 && b == a; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ -help: try - | -LL | let _ = a == b && c == 5; - | ^^^^^^^^^^^^^^^^ -LL | let _ = !(c != 5 || a != b); - | ^^^^^^^^^^^^^^^^^^^ - -error: this boolean expression contains a logic bug - --> $DIR/booleans.rs:34:13 - | -LL | let _ = a < b && a >= b; - | ^^^^^^^^^^^^^^^ help: it would look like the following: `false` - | -help: this expression can be optimized out by applying boolean operations to the outer expression - --> $DIR/booleans.rs:34:13 - | -LL | let _ = a < b && a >= b; - | ^^^^^ - -error: this boolean expression contains a logic bug - --> $DIR/booleans.rs:35:13 - | -LL | let _ = a > b && a <= b; - | ^^^^^^^^^^^^^^^ help: it would look like the following: `false` - | -help: this expression can be optimized out by applying boolean operations to the outer expression - --> $DIR/booleans.rs:35:13 - | -LL | let _ = a > b && a <= b; - | ^^^^^ - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:37:13 - | -LL | let _ = a != b || !(a != b || c == d); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -help: try - | -LL | let _ = c != d || a != b; - | ^^^^^^^^^^^^^^^^ -LL | let _ = !(a == b && c == d); - | ^^^^^^^^^^^^^^^^^^^ - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:45:13 - | -LL | let _ = !a.is_some(); - | ^^^^^^^^^^^^ help: try: `a.is_none()` - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:47:13 - | -LL | let _ = !a.is_none(); - | ^^^^^^^^^^^^ help: try: `a.is_some()` - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:49:13 - | -LL | let _ = !b.is_err(); - | ^^^^^^^^^^^ help: try: `b.is_ok()` - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:51:13 - | -LL | let _ = !b.is_ok(); - | ^^^^^^^^^^ help: try: `b.is_err()` - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:53:13 - | -LL | let _ = !(a.is_some() && !c); - | ^^^^^^^^^^^^^^^^^^^^ help: try: `c || a.is_none()` - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:54:13 - | -LL | let _ = !(!c ^ c) || !a.is_some(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!(!c ^ c) || a.is_none()` - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:55:13 - | -LL | let _ = (!c ^ c) || !a.is_some(); - | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(!c ^ c) || a.is_none()` - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:56:13 - | -LL | let _ = !c ^ c || !a.is_some(); - | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `!c ^ c || a.is_none()` - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:128:8 - | -LL | if !res.is_ok() {} - | ^^^^^^^^^^^^ help: try: `res.is_err()` - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:129:8 - | -LL | if !res.is_err() {} - | ^^^^^^^^^^^^^ help: try: `res.is_ok()` - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:132:8 - | -LL | if !res.is_some() {} - | ^^^^^^^^^^^^^^ help: try: `res.is_none()` - -error: this boolean expression can be simplified - --> $DIR/booleans.rs:133:8 - | -LL | if !res.is_none() {} - | ^^^^^^^^^^^^^^ help: try: `res.is_some()` - -error: aborting due to 25 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/booleans.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'booleans.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/booleans.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/booleans.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/booleans.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/booleans.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/bool_comparison.rs stdout ---- normalized stderr: expected stderr: error: equality checks against true are unnecessary --> $DIR/bool_comparison.rs:4:8 | LL | if x == true { | ^^^^^^^^^ help: try simplifying it as shown: `x` | = note: `-D clippy::bool-comparison` implied by `-D warnings` error: equality checks against false can be replaced by a negation --> $DIR/bool_comparison.rs:9:8 | LL | if x == false { | ^^^^^^^^^^ help: try simplifying it as shown: `!x` error: equality checks against true are unnecessary --> $DIR/bool_comparison.rs:14:8 | LL | if true == x { | ^^^^^^^^^ help: try simplifying it as shown: `x` error: equality checks against false can be replaced by a negation --> $DIR/bool_comparison.rs:19:8 | LL | if false == x { | ^^^^^^^^^^ help: try simplifying it as shown: `!x` error: inequality checks against true can be replaced by a negation --> $DIR/bool_comparison.rs:24:8 | LL | if x != true { | ^^^^^^^^^ help: try simplifying it as shown: `!x` error: inequality checks against false are unnecessary --> $DIR/bool_comparison.rs:29:8 | LL | if x != false { | ^^^^^^^^^^ help: try simplifying it as shown: `x` error: inequality checks against true can be replaced by a negation --> $DIR/bool_comparison.rs:34:8 | LL | if true != x { | ^^^^^^^^^ help: try simplifying it as shown: `!x` error: inequality checks against false are unnecessary --> $DIR/bool_comparison.rs:39:8 | LL | if false != x { | ^^^^^^^^^^ help: try simplifying it as shown: `x` error: less than comparison against true can be replaced by a negation --> $DIR/bool_comparison.rs:44:8 | LL | if x < true { | ^^^^^^^^ help: try simplifying it as shown: `!x` error: greater than checks against false are unnecessary --> $DIR/bool_comparison.rs:49:8 | LL | if false < x { | ^^^^^^^^^ help: try simplifying it as shown: `x` error: greater than checks against false are unnecessary --> $DIR/bool_comparison.rs:54:8 | LL | if x > false { | ^^^^^^^^^ help: try simplifying it as shown: `x` error: less than comparison against true can be replaced by a negation --> $DIR/bool_comparison.rs:59:8 | LL | if true > x { | ^^^^^^^^ help: try simplifying it as shown: `!x` error: order comparisons between booleans can be simplified --> $DIR/bool_comparison.rs:65:8 | LL | if x < y { | ^^^^^ help: try simplifying it as shown: `!x & y` error: order comparisons between booleans can be simplified --> $DIR/bool_comparison.rs:70:8 | LL | if x > y { | ^^^^^ help: try simplifying it as shown: `x & !y` error: aborting due to 14 previous errors diff of stderr: -error: equality checks against true are unnecessary - --> $DIR/bool_comparison.rs:4:8 - | -LL | if x == true { - | ^^^^^^^^^ help: try simplifying it as shown: `x` - | - = note: `-D clippy::bool-comparison` implied by `-D warnings` - -error: equality checks against false can be replaced by a negation - --> $DIR/bool_comparison.rs:9:8 - | -LL | if x == false { - | ^^^^^^^^^^ help: try simplifying it as shown: `!x` - -error: equality checks against true are unnecessary - --> $DIR/bool_comparison.rs:14:8 - | -LL | if true == x { - | ^^^^^^^^^ help: try simplifying it as shown: `x` - -error: equality checks against false can be replaced by a negation - --> $DIR/bool_comparison.rs:19:8 - | -LL | if false == x { - | ^^^^^^^^^^ help: try simplifying it as shown: `!x` - -error: inequality checks against true can be replaced by a negation - --> $DIR/bool_comparison.rs:24:8 - | -LL | if x != true { - | ^^^^^^^^^ help: try simplifying it as shown: `!x` - -error: inequality checks against false are unnecessary - --> $DIR/bool_comparison.rs:29:8 - | -LL | if x != false { - | ^^^^^^^^^^ help: try simplifying it as shown: `x` - -error: inequality checks against true can be replaced by a negation - --> $DIR/bool_comparison.rs:34:8 - | -LL | if true != x { - | ^^^^^^^^^ help: try simplifying it as shown: `!x` - -error: inequality checks against false are unnecessary - --> $DIR/bool_comparison.rs:39:8 - | -LL | if false != x { - | ^^^^^^^^^^ help: try simplifying it as shown: `x` - -error: less than comparison against true can be replaced by a negation - --> $DIR/bool_comparison.rs:44:8 - | -LL | if x < true { - | ^^^^^^^^ help: try simplifying it as shown: `!x` - -error: greater than checks against false are unnecessary - --> $DIR/bool_comparison.rs:49:8 - | -LL | if false < x { - | ^^^^^^^^^ help: try simplifying it as shown: `x` - -error: greater than checks against false are unnecessary - --> $DIR/bool_comparison.rs:54:8 - | -LL | if x > false { - | ^^^^^^^^^ help: try simplifying it as shown: `x` - -error: less than comparison against true can be replaced by a negation - --> $DIR/bool_comparison.rs:59:8 - | -LL | if true > x { - | ^^^^^^^^ help: try simplifying it as shown: `!x` - -error: order comparisons between booleans can be simplified - --> $DIR/bool_comparison.rs:65:8 - | -LL | if x < y { - | ^^^^^ help: try simplifying it as shown: `!x & y` - -error: order comparisons between booleans can be simplified - --> $DIR/bool_comparison.rs:70:8 - | -LL | if x > y { - | ^^^^^ help: try simplifying it as shown: `x & !y` - -error: aborting due to 14 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/bool_comparison.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'bool_comparison.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/bool_comparison.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/bool_comparison.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/bool_comparison.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/bool_comparison.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/complex_types.rs stdout ---- normalized stderr: expected stderr: error: very complex type used. Consider factoring parts into `type` definitions --> $DIR/complex_types.rs:7:12 | LL | const CST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0)))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::type-complexity` implied by `-D warnings` error: very complex type used. Consider factoring parts into `type` definitions --> $DIR/complex_types.rs:8:12 | LL | static ST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0)))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: very complex type used. Consider factoring parts into `type` definitions --> $DIR/complex_types.rs:11:8 | LL | f: Vec>>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: very complex type used. Consider factoring parts into `type` definitions --> $DIR/complex_types.rs:14:11 | LL | struct TS(Vec>>); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: very complex type used. Consider factoring parts into `type` definitions --> $DIR/complex_types.rs:17:11 | LL | Tuple(Vec>>), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: very complex type used. Consider factoring parts into `type` definitions --> $DIR/complex_types.rs:18:17 | LL | Struct { f: Vec>> }, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: very complex type used. Consider factoring parts into `type` definitions --> $DIR/complex_types.rs:22:14 | LL | const A: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0)))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: very complex type used. Consider factoring parts into `type` definitions --> $DIR/complex_types.rs:23:30 | LL | fn impl_method(&self, p: Vec>>) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: very complex type used. Consider factoring parts into `type` definitions --> $DIR/complex_types.rs:27:14 | LL | const A: Vec>>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: very complex type used. Consider factoring parts into `type` definitions --> $DIR/complex_types.rs:28:14 | LL | type B = Vec>>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: very complex type used. Consider factoring parts into `type` definitions --> $DIR/complex_types.rs:29:25 | LL | fn method(&self, p: Vec>>); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: very complex type used. Consider factoring parts into `type` definitions --> $DIR/complex_types.rs:30:29 | LL | fn def_method(&self, p: Vec>>) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: very complex type used. Consider factoring parts into `type` definitions --> $DIR/complex_types.rs:33:15 | LL | fn test1() -> Vec>> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: very complex type used. Consider factoring parts into `type` definitions --> $DIR/complex_types.rs:37:14 | LL | fn test2(_x: Vec>>) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: very complex type used. Consider factoring parts into `type` definitions --> $DIR/complex_types.rs:40:13 | LL | let _y: Vec>> = vec![]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 15 previous errors diff of stderr: -error: very complex type used. Consider factoring parts into `type` definitions - --> $DIR/complex_types.rs:7:12 - | -LL | const CST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0)))); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::type-complexity` implied by `-D warnings` - -error: very complex type used. Consider factoring parts into `type` definitions - --> $DIR/complex_types.rs:8:12 - | -LL | static ST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0)))); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: very complex type used. Consider factoring parts into `type` definitions - --> $DIR/complex_types.rs:11:8 - | -LL | f: Vec>>, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: very complex type used. Consider factoring parts into `type` definitions - --> $DIR/complex_types.rs:14:11 - | -LL | struct TS(Vec>>); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: very complex type used. Consider factoring parts into `type` definitions - --> $DIR/complex_types.rs:17:11 - | -LL | Tuple(Vec>>), - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: very complex type used. Consider factoring parts into `type` definitions - --> $DIR/complex_types.rs:18:17 - | -LL | Struct { f: Vec>> }, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: very complex type used. Consider factoring parts into `type` definitions - --> $DIR/complex_types.rs:22:14 - | -LL | const A: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0)))); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: very complex type used. Consider factoring parts into `type` definitions - --> $DIR/complex_types.rs:23:30 - | -LL | fn impl_method(&self, p: Vec>>) {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: very complex type used. Consider factoring parts into `type` definitions - --> $DIR/complex_types.rs:27:14 - | -LL | const A: Vec>>; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: very complex type used. Consider factoring parts into `type` definitions - --> $DIR/complex_types.rs:28:14 - | -LL | type B = Vec>>; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: very complex type used. Consider factoring parts into `type` definitions - --> $DIR/complex_types.rs:29:25 - | -LL | fn method(&self, p: Vec>>); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: very complex type used. Consider factoring parts into `type` definitions - --> $DIR/complex_types.rs:30:29 - | -LL | fn def_method(&self, p: Vec>>) {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: very complex type used. Consider factoring parts into `type` definitions - --> $DIR/complex_types.rs:33:15 - | -LL | fn test1() -> Vec>> { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: very complex type used. Consider factoring parts into `type` definitions - --> $DIR/complex_types.rs:37:14 - | -LL | fn test2(_x: Vec>>) {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: very complex type used. Consider factoring parts into `type` definitions - --> $DIR/complex_types.rs:40:13 - | -LL | let _y: Vec>> = vec![]; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: aborting due to 15 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/complex_types.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'complex_types.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/complex_types.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/complex_types.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/complex_types.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/complex_types.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/cmp_owned.rs stdout ---- normalized stderr: expected stderr: error: this creates an owned instance just for comparison --> $DIR/cmp_owned.rs:5:14 | LL | x != "foo".to_string(); | ^^^^^^^^^^^^^^^^^ help: try: `"foo"` | = note: `-D clippy::cmp-owned` implied by `-D warnings` error: this creates an owned instance just for comparison --> $DIR/cmp_owned.rs:7:9 | LL | "foo".to_string() != x; | ^^^^^^^^^^^^^^^^^ help: try: `"foo"` error: this creates an owned instance just for comparison --> $DIR/cmp_owned.rs:14:10 | LL | x != "foo".to_owned(); | ^^^^^^^^^^^^^^^^ help: try: `"foo"` error: this creates an owned instance just for comparison --> $DIR/cmp_owned.rs:16:10 | LL | x != String::from("foo"); | ^^^^^^^^^^^^^^^^^^^ help: try: `"foo"` error: this creates an owned instance just for comparison --> $DIR/cmp_owned.rs:20:5 | LL | Foo.to_owned() == Foo; | ^^^^^^^^^^^^^^ help: try: `Foo` error: this creates an owned instance just for comparison --> $DIR/cmp_owned.rs:22:30 | LL | "abc".chars().filter(|c| c.to_owned() != 'X'); | ^^^^^^^^^^^^ help: try: `*c` error: this creates an owned instance just for comparison --> $DIR/cmp_owned.rs:29:5 | LL | y.to_owned() == *x; | ^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating error: this creates an owned instance just for comparison --> $DIR/cmp_owned.rs:34:5 | LL | y.to_owned() == **x; | ^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating error: this creates an owned instance just for comparison --> $DIR/cmp_owned.rs:41:9 | LL | self.to_owned() == *other | ^^^^^^^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating error: aborting due to 9 previous errors diff of stderr: -error: this creates an owned instance just for comparison - --> $DIR/cmp_owned.rs:5:14 - | -LL | x != "foo".to_string(); - | ^^^^^^^^^^^^^^^^^ help: try: `"foo"` - | - = note: `-D clippy::cmp-owned` implied by `-D warnings` - -error: this creates an owned instance just for comparison - --> $DIR/cmp_owned.rs:7:9 - | -LL | "foo".to_string() != x; - | ^^^^^^^^^^^^^^^^^ help: try: `"foo"` - -error: this creates an owned instance just for comparison - --> $DIR/cmp_owned.rs:14:10 - | -LL | x != "foo".to_owned(); - | ^^^^^^^^^^^^^^^^ help: try: `"foo"` - -error: this creates an owned instance just for comparison - --> $DIR/cmp_owned.rs:16:10 - | -LL | x != String::from("foo"); - | ^^^^^^^^^^^^^^^^^^^ help: try: `"foo"` - -error: this creates an owned instance just for comparison - --> $DIR/cmp_owned.rs:20:5 - | -LL | Foo.to_owned() == Foo; - | ^^^^^^^^^^^^^^ help: try: `Foo` - -error: this creates an owned instance just for comparison - --> $DIR/cmp_owned.rs:22:30 - | -LL | "abc".chars().filter(|c| c.to_owned() != 'X'); - | ^^^^^^^^^^^^ help: try: `*c` - -error: this creates an owned instance just for comparison - --> $DIR/cmp_owned.rs:29:5 - | -LL | y.to_owned() == *x; - | ^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating - -error: this creates an owned instance just for comparison - --> $DIR/cmp_owned.rs:34:5 - | -LL | y.to_owned() == **x; - | ^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating - -error: this creates an owned instance just for comparison - --> $DIR/cmp_owned.rs:41:9 - | -LL | self.to_owned() == *other - | ^^^^^^^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating - -error: aborting due to 9 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cmp_owned.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'cmp_owned.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/cmp_owned.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cmp_owned.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cmp_owned.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/cmp_owned.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/copy_iterator.rs stdout ---- normalized stderr: expected stderr: error: you are implementing `Iterator` on a `Copy` type --> $DIR/copy_iterator.rs:6:1 | LL | / impl Iterator for Countdown { LL | | type Item = u8; LL | | LL | | fn next(&mut self) -> Option { ... | LL | | } LL | | } | |_^ | = note: `-D clippy::copy-iterator` implied by `-D warnings` = note: consider implementing `IntoIterator` instead error: aborting due to previous error diff of stderr: -error: you are implementing `Iterator` on a `Copy` type - --> $DIR/copy_iterator.rs:6:1 - | -LL | / impl Iterator for Countdown { -LL | | type Item = u8; -LL | | -LL | | fn next(&mut self) -> Option { -... | -LL | | } -LL | | } - | |_^ - | - = note: `-D clippy::copy-iterator` implied by `-D warnings` - = note: consider implementing `IntoIterator` instead - -error: aborting due to previous error - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/copy_iterator.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'copy_iterator.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/copy_iterator.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/copy_iterator.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/copy_iterator.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/copy_iterator.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/const_static_lifetime.rs stdout ---- normalized stderr: expected stderr: error: Constants have by default a `'static` lifetime --> $DIR/const_static_lifetime.rs:4:17 | LL | const VAR_ONE: &'static str = "Test constant #1"; // ERROR Consider removing 'static. | -^^^^^^^---- help: consider removing `'static`: `&str` | = note: `-D clippy::const-static-lifetime` implied by `-D warnings` error: Constants have by default a `'static` lifetime --> $DIR/const_static_lifetime.rs:8:21 | LL | const VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR Consider removing 'static | -^^^^^^^---- help: consider removing `'static`: `&str` error: Constants have by default a `'static` lifetime --> $DIR/const_static_lifetime.rs:10:32 | LL | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static | -^^^^^^^---- help: consider removing `'static`: `&str` error: Constants have by default a `'static` lifetime --> $DIR/const_static_lifetime.rs:10:47 | LL | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static | -^^^^^^^---- help: consider removing `'static`: `&str` error: Constants have by default a `'static` lifetime --> $DIR/const_static_lifetime.rs:12:18 | LL | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static | -^^^^^^^------------------ help: consider removing `'static`: `&[&[&'static str]]` error: Constants have by default a `'static` lifetime --> $DIR/const_static_lifetime.rs:12:30 | LL | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static | -^^^^^^^---- help: consider removing `'static`: `&str` error: Constants have by default a `'static` lifetime --> $DIR/const_static_lifetime.rs:14:17 | LL | const VAR_SIX: &'static u8 = &5; | -^^^^^^^--- help: consider removing `'static`: `&u8` error: Constants have by default a `'static` lifetime --> $DIR/const_static_lifetime.rs:16:29 | LL | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])]; | -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]` error: Constants have by default a `'static` lifetime --> $DIR/const_static_lifetime.rs:16:39 | LL | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])]; | -^^^^^^^---- help: consider removing `'static`: `&str` error: Constants have by default a `'static` lifetime --> $DIR/const_static_lifetime.rs:18:20 | LL | const VAR_HEIGHT: &'static Foo = &Foo {}; | -^^^^^^^---- help: consider removing `'static`: `&Foo` error: Constants have by default a `'static` lifetime --> $DIR/const_static_lifetime.rs:20:19 | LL | const VAR_SLICE: &'static [u8] = b"Test constant #1"; // ERROR Consider removing 'static. | -^^^^^^^----- help: consider removing `'static`: `&[u8]` error: Constants have by default a `'static` lifetime --> $DIR/const_static_lifetime.rs:22:19 | LL | const VAR_TUPLE: &'static (u8, u8) = &(1, 2); // ERROR Consider removing 'static. | -^^^^^^^--------- help: consider removing `'static`: `&(u8, u8)` error: Constants have by default a `'static` lifetime --> $DIR/const_static_lifetime.rs:24:19 | LL | const VAR_ARRAY: &'static [u8; 1] = b"T"; // ERROR Consider removing 'static. | -^^^^^^^-------- help: consider removing `'static`: `&[u8; 1]` error: aborting due to 13 previous errors diff of stderr: -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:4:17 - | -LL | const VAR_ONE: &'static str = "Test constant #1"; // ERROR Consider removing 'static. - | -^^^^^^^---- help: consider removing `'static`: `&str` - | - = note: `-D clippy::const-static-lifetime` implied by `-D warnings` - -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:8:21 - | -LL | const VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR Consider removing 'static - | -^^^^^^^---- help: consider removing `'static`: `&str` - -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:10:32 - | -LL | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static - | -^^^^^^^---- help: consider removing `'static`: `&str` - -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:10:47 - | -LL | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static - | -^^^^^^^---- help: consider removing `'static`: `&str` - -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:12:18 - | -LL | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static - | -^^^^^^^------------------ help: consider removing `'static`: `&[&[&'static str]]` - -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:12:30 - | -LL | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static - | -^^^^^^^---- help: consider removing `'static`: `&str` - -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:14:17 - | -LL | const VAR_SIX: &'static u8 = &5; - | -^^^^^^^--- help: consider removing `'static`: `&u8` - -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:16:29 - | -LL | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])]; - | -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]` - -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:16:39 - | -LL | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])]; - | -^^^^^^^---- help: consider removing `'static`: `&str` - -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:18:20 - | -LL | const VAR_HEIGHT: &'static Foo = &Foo {}; - | -^^^^^^^---- help: consider removing `'static`: `&Foo` - -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:20:19 - | -LL | const VAR_SLICE: &'static [u8] = b"Test constant #1"; // ERROR Consider removing 'static. - | -^^^^^^^----- help: consider removing `'static`: `&[u8]` - -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:22:19 - | -LL | const VAR_TUPLE: &'static (u8, u8) = &(1, 2); // ERROR Consider removing 'static. - | -^^^^^^^--------- help: consider removing `'static`: `&(u8, u8)` - -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:24:19 - | -LL | const VAR_ARRAY: &'static [u8; 1] = b"T"; // ERROR Consider removing 'static. - | -^^^^^^^-------- help: consider removing `'static`: `&[u8; 1]` - -error: aborting due to 13 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/const_static_lifetime.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'const_static_lifetime.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/const_static_lifetime.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/const_static_lifetime.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/const_static_lifetime.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/const_static_lifetime.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/cast_lossless_float.rs stdout ---- normalized stderr: expected stderr: error: casting i8 to f32 may become silently lossy if types change --> $DIR/cast_lossless_float.rs:9:5 | LL | x0 as f32; | ^^^^^^^^^ help: try: `f32::from(x0)` | = note: `-D clippy::cast-lossless` implied by `-D warnings` error: casting i8 to f64 may become silently lossy if types change --> $DIR/cast_lossless_float.rs:10:5 | LL | x0 as f64; | ^^^^^^^^^ help: try: `f64::from(x0)` error: casting u8 to f32 may become silently lossy if types change --> $DIR/cast_lossless_float.rs:12:5 | LL | x1 as f32; | ^^^^^^^^^ help: try: `f32::from(x1)` error: casting u8 to f64 may become silently lossy if types change --> $DIR/cast_lossless_float.rs:13:5 | LL | x1 as f64; | ^^^^^^^^^ help: try: `f64::from(x1)` error: casting i16 to f32 may become silently lossy if types change --> $DIR/cast_lossless_float.rs:15:5 | LL | x2 as f32; | ^^^^^^^^^ help: try: `f32::from(x2)` error: casting i16 to f64 may become silently lossy if types change --> $DIR/cast_lossless_float.rs:16:5 | LL | x2 as f64; | ^^^^^^^^^ help: try: `f64::from(x2)` error: casting u16 to f32 may become silently lossy if types change --> $DIR/cast_lossless_float.rs:18:5 | LL | x3 as f32; | ^^^^^^^^^ help: try: `f32::from(x3)` error: casting u16 to f64 may become silently lossy if types change --> $DIR/cast_lossless_float.rs:19:5 | LL | x3 as f64; | ^^^^^^^^^ help: try: `f64::from(x3)` error: casting i32 to f64 may become silently lossy if types change --> $DIR/cast_lossless_float.rs:21:5 | LL | x4 as f64; | ^^^^^^^^^ help: try: `f64::from(x4)` error: casting u32 to f64 may become silently lossy if types change --> $DIR/cast_lossless_float.rs:23:5 | LL | x5 as f64; | ^^^^^^^^^ help: try: `f64::from(x5)` error: aborting due to 10 previous errors diff of stderr: -error: casting i8 to f32 may become silently lossy if types change - --> $DIR/cast_lossless_float.rs:9:5 - | -LL | x0 as f32; - | ^^^^^^^^^ help: try: `f32::from(x0)` - | - = note: `-D clippy::cast-lossless` implied by `-D warnings` - -error: casting i8 to f64 may become silently lossy if types change - --> $DIR/cast_lossless_float.rs:10:5 - | -LL | x0 as f64; - | ^^^^^^^^^ help: try: `f64::from(x0)` - -error: casting u8 to f32 may become silently lossy if types change - --> $DIR/cast_lossless_float.rs:12:5 - | -LL | x1 as f32; - | ^^^^^^^^^ help: try: `f32::from(x1)` - -error: casting u8 to f64 may become silently lossy if types change - --> $DIR/cast_lossless_float.rs:13:5 - | -LL | x1 as f64; - | ^^^^^^^^^ help: try: `f64::from(x1)` - -error: casting i16 to f32 may become silently lossy if types change - --> $DIR/cast_lossless_float.rs:15:5 - | -LL | x2 as f32; - | ^^^^^^^^^ help: try: `f32::from(x2)` - -error: casting i16 to f64 may become silently lossy if types change - --> $DIR/cast_lossless_float.rs:16:5 - | -LL | x2 as f64; - | ^^^^^^^^^ help: try: `f64::from(x2)` - -error: casting u16 to f32 may become silently lossy if types change - --> $DIR/cast_lossless_float.rs:18:5 - | -LL | x3 as f32; - | ^^^^^^^^^ help: try: `f32::from(x3)` - -error: casting u16 to f64 may become silently lossy if types change - --> $DIR/cast_lossless_float.rs:19:5 - | -LL | x3 as f64; - | ^^^^^^^^^ help: try: `f64::from(x3)` - -error: casting i32 to f64 may become silently lossy if types change - --> $DIR/cast_lossless_float.rs:21:5 - | -LL | x4 as f64; - | ^^^^^^^^^ help: try: `f64::from(x4)` - -error: casting u32 to f64 may become silently lossy if types change - --> $DIR/cast_lossless_float.rs:23:5 - | -LL | x5 as f64; - | ^^^^^^^^^ help: try: `f64::from(x5)` - -error: aborting due to 10 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cast_lossless_float.stderr normalized fixed: // run-rustfix #![allow(clippy::no_effect, clippy::unnecessary_operation, dead_code)] #![warn(clippy::cast_lossless)] fn main() { // Test clippy::cast_lossless with casts to floating-point types let x0 = 1i8; x0 as f32; x0 as f64; let x1 = 1u8; x1 as f32; x1 as f64; let x2 = 1i16; x2 as f32; x2 as f64; let x3 = 1u16; x3 as f32; x3 as f64; let x4 = 1i32; x4 as f64; let x5 = 1u32; x5 as f64; } // The lint would suggest using `f64::from(input)` here but the `XX::from` function is not const, // so we skip the lint if the expression is in a const fn. // See #3656 const fn abc(input: f32) -> f64 { input as f64 } expected fixed: // run-rustfix #![allow(clippy::no_effect, clippy::unnecessary_operation, dead_code)] #![warn(clippy::cast_lossless)] fn main() { // Test clippy::cast_lossless with casts to floating-point types let x0 = 1i8; f32::from(x0); f64::from(x0); let x1 = 1u8; f32::from(x1); f64::from(x1); let x2 = 1i16; f32::from(x2); f64::from(x2); let x3 = 1u16; f32::from(x3); f64::from(x3); let x4 = 1i32; f64::from(x4); let x5 = 1u32; f64::from(x5); } // The lint would suggest using `f64::from(input)` here but the `XX::from` function is not const, // so we skip the lint if the expression is in a const fn. // See #3656 const fn abc(input: f32) -> f64 { input as f64 } diff of fixed: // run-rustfix #![allow(clippy::no_effect, clippy::unnecessary_operation, dead_code)] #![warn(clippy::cast_lossless)] fn main() { // Test clippy::cast_lossless with casts to floating-point types let x0 = 1i8; - f32::from(x0); - f64::from(x0); + x0 as f32; + x0 as f64; let x1 = 1u8; - f32::from(x1); - f64::from(x1); + x1 as f32; + x1 as f64; let x2 = 1i16; - f32::from(x2); - f64::from(x2); + x2 as f32; + x2 as f64; let x3 = 1u16; - f32::from(x3); - f64::from(x3); + x3 as f32; + x3 as f64; let x4 = 1i32; - f64::from(x4); + x4 as f64; let x5 = 1u32; - f64::from(x5); + x5 as f64; } // The lint would suggest using `f64::from(input)` here but the `XX::from` function is not const, // so we skip the lint if the expression is in a const fn. // See #3656 const fn abc(input: f32) -> f64 { input as f64 } The actual fixed differed from the expected fixed. Actual fixed saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cast_lossless_float.fixed To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'cast_lossless_float.rs' error: 2 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/cast_lossless_float.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cast_lossless_float.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cast_lossless_float.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/cast_lossless_float.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/cognitive_complexity_attr_used.rs stdout ---- normalized stderr: expected stderr: error: the function has a cognitive complexity of 3 --> $DIR/cognitive_complexity_attr_used.rs:9:1 | LL | / fn kaboom() { LL | | if 42 == 43 { LL | | panic!(); LL | | } else if "cake" == "lie" { LL | | println!("what?"); LL | | } LL | | } | |_^ | = note: `-D clippy::cognitive-complexity` implied by `-D warnings` = help: you could split it up into multiple smaller functions error: aborting due to previous error diff of stderr: -error: the function has a cognitive complexity of 3 - --> $DIR/cognitive_complexity_attr_used.rs:9:1 - | -LL | / fn kaboom() { -LL | | if 42 == 43 { -LL | | panic!(); -LL | | } else if "cake" == "lie" { -LL | | println!("what?"); -LL | | } -LL | | } - | |_^ - | - = note: `-D clippy::cognitive-complexity` implied by `-D warnings` - = help: you could split it up into multiple smaller functions - -error: aborting due to previous error - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cognitive_complexity_attr_used.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'cognitive_complexity_attr_used.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/cognitive_complexity_attr_used.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cognitive_complexity_attr_used.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cognitive_complexity_attr_used.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/cognitive_complexity_attr_used.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/collapsible_if.rs stdout ---- normalized stderr: error: this if statement can be collapsed --> $DIR/collapsible_if.rs:9:5 | LL | / if x == "hello" { LL | | if y == "world" { LL | | println!("Hello world!"); LL | | } LL | | } | |_____^ | = note: `-D clippy::collapsible-if` implied by `-D warnings` help: try | LL | if x == "hello" && y == "world" { LL | println!("Hello world!"); LL | } | expected stderr: error: this if statement can be collapsed --> $DIR/collapsible_if.rs:9:5 | LL | / if x == "hello" { LL | | if y == "world" { LL | | println!("Hello world!"); LL | | } LL | | } | |_____^ | = note: `-D clippy::collapsible-if` implied by `-D warnings` help: try | LL | if x == "hello" && y == "world" { LL | println!("Hello world!"); LL | } | error: this if statement can be collapsed --> $DIR/collapsible_if.rs:15:5 | LL | / if x == "hello" || x == "world" { LL | | if y == "world" || y == "hello" { LL | | println!("Hello world!"); LL | | } LL | | } | |_____^ help: try | LL | if (x == "hello" || x == "world") && (y == "world" || y == "hello") { LL | println!("Hello world!"); LL | } | error: this if statement can be collapsed --> $DIR/collapsible_if.rs:21:5 | LL | / if x == "hello" && x == "world" { LL | | if y == "world" || y == "hello" { LL | | println!("Hello world!"); LL | | } LL | | } | |_____^ help: try | LL | if x == "hello" && x == "world" && (y == "world" || y == "hello") { LL | println!("Hello world!"); LL | } | error: this if statement can be collapsed --> $DIR/collapsible_if.rs:27:5 | LL | / if x == "hello" || x == "world" { LL | | if y == "world" && y == "hello" { LL | | println!("Hello world!"); LL | | } LL | | } | |_____^ help: try | LL | if (x == "hello" || x == "world") && y == "world" && y == "hello" { LL | println!("Hello world!"); LL | } | error: this if statement can be collapsed --> $DIR/collapsible_if.rs:33:5 | LL | / if x == "hello" && x == "world" { LL | | if y == "world" && y == "hello" { LL | | println!("Hello world!"); LL | | } LL | | } | |_____^ help: try | LL | if x == "hello" && x == "world" && y == "world" && y == "hello" { LL | println!("Hello world!"); LL | } | error: this if statement can be collapsed --> $DIR/collapsible_if.rs:39:5 | LL | / if 42 == 1337 { LL | | if 'a' != 'A' { LL | | println!("world!") LL | | } LL | | } | |_____^ help: try | LL | if 42 == 1337 && 'a' != 'A' { LL | println!("world!") LL | } | error: this `else { if .. }` block can be collapsed --> $DIR/collapsible_if.rs:48:12 | LL | } else { | ____________^ LL | | if y == "world" { LL | | println!("world!") LL | | } LL | | } | |_____^ help: try | LL | } else if y == "world" { LL | println!("world!") LL | } | error: this `else { if .. }` block can be collapsed --> $DIR/collapsible_if.rs:56:12 | LL | } else { | ____________^ LL | | if let Some(42) = Some(42) { LL | | println!("world!") LL | | } LL | | } | |_____^ help: try | LL | } else if let Some(42) = Some(42) { LL | println!("world!") LL | } | error: this `else { if .. }` block can be collapsed --> $DIR/collapsible_if.rs:64:12 | LL | } else { | ____________^ LL | | if y == "world" { LL | | println!("world") LL | | } ... | LL | | } LL | | } | |_____^ help: try | LL | } else if y == "world" { LL | println!("world") LL | } LL | else { LL | println!("!") LL | } | error: this `else { if .. }` block can be collapsed --> $DIR/collapsible_if.rs:75:12 | LL | } else { | ____________^ LL | | if let Some(42) = Some(42) { LL | | println!("world") LL | | } ... | LL | | } LL | | } | |_____^ help: try | LL | } else if let Some(42) = Some(42) { LL | println!("world") LL | } LL | else { LL | println!("!") LL | } | error: this `else { if .. }` block can be collapsed --> $DIR/collapsible_if.rs:86:12 | LL | } else { | ____________^ LL | | if let Some(42) = Some(42) { LL | | println!("world") LL | | } ... | LL | | } LL | | } | |_____^ help: try | LL | } else if let Some(42) = Some(42) { LL | println!("world") LL | } LL | else { LL | println!("!") LL | } | error: this `else { if .. }` block can be collapsed --> $DIR/collapsible_if.rs:97:12 | LL | } else { | ____________^ LL | | if x == "hello" { LL | | println!("world") LL | | } ... | LL | | } LL | | } | |_____^ help: try | LL | } else if x == "hello" { LL | println!("world") LL | } LL | else { LL | println!("!") LL | } | error: this `else { if .. }` block can be collapsed --> $DIR/collapsible_if.rs:108:12 | LL | } else { | ____________^ LL | | if let Some(42) = Some(42) { LL | | println!("world") LL | | } ... | LL | | } LL | | } | |_____^ help: try | LL | } else if let Some(42) = Some(42) { LL | println!("world") LL | } LL | else { LL | println!("!") LL | } | error: this if statement can be collapsed --> $DIR/collapsible_if.rs:167:5 | LL | / if x == "hello" { LL | | if y == "world" { // Collapsible LL | | println!("Hello world!"); LL | | } LL | | } | |_____^ help: try | LL | if x == "hello" && y == "world" { // Collapsible LL | println!("Hello world!"); LL | } | error: aborting due to 14 previous errors diff of stderr: error: this if statement can be collapsed --> $DIR/collapsible_if.rs:9:5 | LL | / if x == "hello" { LL | | if y == "world" { LL | | println!("Hello world!"); LL | | } LL | | } | |_____^ | = note: `-D clippy::collapsible-if` implied by `-D warnings` help: try | LL | if x == "hello" && y == "world" { LL | println!("Hello world!"); LL | } | -error: this if statement can be collapsed - --> $DIR/collapsible_if.rs:15:5 - | -LL | / if x == "hello" || x == "world" { -LL | | if y == "world" || y == "hello" { -LL | | println!("Hello world!"); -LL | | } -LL | | } - | |_____^ -help: try - | -LL | if (x == "hello" || x == "world") && (y == "world" || y == "hello") { -LL | println!("Hello world!"); -LL | } - | - -error: this if statement can be collapsed - --> $DIR/collapsible_if.rs:21:5 - | -LL | / if x == "hello" && x == "world" { -LL | | if y == "world" || y == "hello" { -LL | | println!("Hello world!"); -LL | | } -LL | | } - | |_____^ -help: try - | -LL | if x == "hello" && x == "world" && (y == "world" || y == "hello") { -LL | println!("Hello world!"); -LL | } - | - -error: this if statement can be collapsed - --> $DIR/collapsible_if.rs:27:5 - | -LL | / if x == "hello" || x == "world" { -LL | | if y == "world" && y == "hello" { -LL | | println!("Hello world!"); -LL | | } -LL | | } - | |_____^ -help: try - | -LL | if (x == "hello" || x == "world") && y == "world" && y == "hello" { -LL | println!("Hello world!"); -LL | } - | - -error: this if statement can be collapsed - --> $DIR/collapsible_if.rs:33:5 - | -LL | / if x == "hello" && x == "world" { -LL | | if y == "world" && y == "hello" { -LL | | println!("Hello world!"); -LL | | } -LL | | } - | |_____^ -help: try - | -LL | if x == "hello" && x == "world" && y == "world" && y == "hello" { -LL | println!("Hello world!"); -LL | } - | - -error: this if statement can be collapsed - --> $DIR/collapsible_if.rs:39:5 - | -LL | / if 42 == 1337 { -LL | | if 'a' != 'A' { -LL | | println!("world!") -LL | | } -LL | | } - | |_____^ -help: try - | -LL | if 42 == 1337 && 'a' != 'A' { -LL | println!("world!") -LL | } - | - -error: this `else { if .. }` block can be collapsed - --> $DIR/collapsible_if.rs:48:12 - | -LL | } else { - | ____________^ -LL | | if y == "world" { -LL | | println!("world!") -LL | | } -LL | | } - | |_____^ -help: try - | -LL | } else if y == "world" { -LL | println!("world!") -LL | } - | - -error: this `else { if .. }` block can be collapsed - --> $DIR/collapsible_if.rs:56:12 - | -LL | } else { - | ____________^ -LL | | if let Some(42) = Some(42) { -LL | | println!("world!") -LL | | } -LL | | } - | |_____^ -help: try - | -LL | } else if let Some(42) = Some(42) { -LL | println!("world!") -LL | } - | - -error: this `else { if .. }` block can be collapsed - --> $DIR/collapsible_if.rs:64:12 - | -LL | } else { - | ____________^ -LL | | if y == "world" { -LL | | println!("world") -LL | | } -... | -LL | | } -LL | | } - | |_____^ -help: try - | -LL | } else if y == "world" { -LL | println!("world") -LL | } -LL | else { -LL | println!("!") -LL | } - | - -error: this `else { if .. }` block can be collapsed - --> $DIR/collapsible_if.rs:75:12 - | -LL | } else { - | ____________^ -LL | | if let Some(42) = Some(42) { -LL | | println!("world") -LL | | } -... | -LL | | } -LL | | } - | |_____^ -help: try - | -LL | } else if let Some(42) = Some(42) { -LL | println!("world") -LL | } -LL | else { -LL | println!("!") -LL | } - | - -error: this `else { if .. }` block can be collapsed - --> $DIR/collapsible_if.rs:86:12 - | -LL | } else { - | ____________^ -LL | | if let Some(42) = Some(42) { -LL | | println!("world") -LL | | } -... | -LL | | } -LL | | } - | |_____^ -help: try - | -LL | } else if let Some(42) = Some(42) { -LL | println!("world") -LL | } -LL | else { -LL | println!("!") -LL | } - | - -error: this `else { if .. }` block can be collapsed - --> $DIR/collapsible_if.rs:97:12 - | -LL | } else { - | ____________^ -LL | | if x == "hello" { -LL | | println!("world") -LL | | } -... | -LL | | } -LL | | } - | |_____^ -help: try - | -LL | } else if x == "hello" { -LL | println!("world") -LL | } -LL | else { -LL | println!("!") -LL | } - | - -error: this `else { if .. }` block can be collapsed - --> $DIR/collapsible_if.rs:108:12 - | -LL | } else { - | ____________^ -LL | | if let Some(42) = Some(42) { -LL | | println!("world") -LL | | } -... | -LL | | } -LL | | } - | |_____^ -help: try - | -LL | } else if let Some(42) = Some(42) { -LL | println!("world") -LL | } -LL | else { -LL | println!("!") -LL | } - | - -error: this if statement can be collapsed - --> $DIR/collapsible_if.rs:167:5 - | -LL | / if x == "hello" { -LL | | if y == "world" { // Collapsible -LL | | println!("Hello world!"); -LL | | } -LL | | } - | |_____^ -help: try - | -LL | if x == "hello" && y == "world" { // Collapsible -LL | println!("Hello world!"); -LL | } - | - -error: aborting due to 14 previous errors - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/collapsible_if.stderr normalized fixed: // run-rustfix #![allow(clippy::cognitive_complexity, clippy::assertions_on_constants)] #[rustfmt::skip] #[warn(clippy::collapsible_if)] fn main() { let x = "hello"; let y = "world"; if x == "hello" && y == "world" { println!("Hello world!"); } if x == "hello" || x == "world" { if y == "world" || y == "hello" { println!("Hello world!"); } } if x == "hello" && x == "world" { if y == "world" || y == "hello" { println!("Hello world!"); } } if x == "hello" || x == "world" { if y == "world" && y == "hello" { println!("Hello world!"); } } if x == "hello" && x == "world" { if y == "world" && y == "hello" { println!("Hello world!"); } } if 42 == 1337 { if 'a' != 'A' { println!("world!") } } // Collapse `else { if .. }` to `else if ..` if x == "hello" { print!("Hello "); } else { if y == "world" { println!("world!") } } if x == "hello" { print!("Hello "); } else { if let Some(42) = Some(42) { println!("world!") } } if x == "hello" { print!("Hello "); } else { if y == "world" { println!("world") } else { println!("!") } } if x == "hello" { print!("Hello "); } else { if let Some(42) = Some(42) { println!("world") } else { println!("!") } } if let Some(42) = Some(42) { print!("Hello "); } else { if let Some(42) = Some(42) { println!("world") } else { println!("!") } } if let Some(42) = Some(42) { print!("Hello "); } else { if x == "hello" { println!("world") } else { println!("!") } } if let Some(42) = Some(42) { print!("Hello "); } else { if let Some(42) = Some(42) { println!("world") } else { println!("!") } } // Works because any if with an else statement cannot be collapsed. if x == "hello" { if y == "world" { println!("Hello world!"); } } else { println!("Not Hello world"); } if x == "hello" { if y == "world" { println!("Hello world!"); } else { println!("Hello something else"); } } if x == "hello" { print!("Hello "); if y == "world" { println!("world!") } } if true { } else { assert!(true); // assert! is just an `if` } // The following tests check for the fix of https://github.com/rust-lang/rust-clippy/issues/798 if x == "hello" {// Not collapsible if y == "world" { println!("Hello world!"); } } if x == "hello" { // Not collapsible if y == "world" { println!("Hello world!"); } } if x == "hello" { // Not collapsible if y == "world" { println!("Hello world!"); } } if x == "hello" { if y == "world" { // Collapsible println!("Hello world!"); } } if x == "hello" { print!("Hello "); } else { // Not collapsible if y == "world" { println!("world!") } } if x == "hello" { print!("Hello "); } else { // Not collapsible if let Some(42) = Some(42) { println!("world!") } } if x == "hello" { /* Not collapsible */ if y == "world" { println!("Hello world!"); } } if x == "hello" { /* Not collapsible */ if y == "world" { println!("Hello world!"); } } } expected fixed: // run-rustfix #![allow(clippy::cognitive_complexity, clippy::assertions_on_constants)] #[rustfmt::skip] #[warn(clippy::collapsible_if)] fn main() { let x = "hello"; let y = "world"; if x == "hello" && y == "world" { println!("Hello world!"); } if (x == "hello" || x == "world") && (y == "world" || y == "hello") { println!("Hello world!"); } if x == "hello" && x == "world" && (y == "world" || y == "hello") { println!("Hello world!"); } if (x == "hello" || x == "world") && y == "world" && y == "hello" { println!("Hello world!"); } if x == "hello" && x == "world" && y == "world" && y == "hello" { println!("Hello world!"); } if 42 == 1337 && 'a' != 'A' { println!("world!") } // Collapse `else { if .. }` to `else if ..` if x == "hello" { print!("Hello "); } else if y == "world" { println!("world!") } if x == "hello" { print!("Hello "); } else if let Some(42) = Some(42) { println!("world!") } if x == "hello" { print!("Hello "); } else if y == "world" { println!("world") } else { println!("!") } if x == "hello" { print!("Hello "); } else if let Some(42) = Some(42) { println!("world") } else { println!("!") } if let Some(42) = Some(42) { print!("Hello "); } else if let Some(42) = Some(42) { println!("world") } else { println!("!") } if let Some(42) = Some(42) { print!("Hello "); } else if x == "hello" { println!("world") } else { println!("!") } if let Some(42) = Some(42) { print!("Hello "); } else if let Some(42) = Some(42) { println!("world") } else { println!("!") } // Works because any if with an else statement cannot be collapsed. if x == "hello" { if y == "world" { println!("Hello world!"); } } else { println!("Not Hello world"); } if x == "hello" { if y == "world" { println!("Hello world!"); } else { println!("Hello something else"); } } if x == "hello" { print!("Hello "); if y == "world" { println!("world!") } } if true { } else { assert!(true); // assert! is just an `if` } // The following tests check for the fix of https://github.com/rust-lang/rust-clippy/issues/798 if x == "hello" {// Not collapsible if y == "world" { println!("Hello world!"); } } if x == "hello" { // Not collapsible if y == "world" { println!("Hello world!"); } } if x == "hello" { // Not collapsible if y == "world" { println!("Hello world!"); } } if x == "hello" && y == "world" { // Collapsible println!("Hello world!"); } if x == "hello" { print!("Hello "); } else { // Not collapsible if y == "world" { println!("world!") } } if x == "hello" { print!("Hello "); } else { // Not collapsible if let Some(42) = Some(42) { println!("world!") } } if x == "hello" { /* Not collapsible */ if y == "world" { println!("Hello world!"); } } if x == "hello" { /* Not collapsible */ if y == "world" { println!("Hello world!"); } } } diff of fixed: // run-rustfix #![allow(clippy::cognitive_complexity, clippy::assertions_on_constants)] #[rustfmt::skip] #[warn(clippy::collapsible_if)] fn main() { let x = "hello"; let y = "world"; if x == "hello" && y == "world" { println!("Hello world!"); } - if (x == "hello" || x == "world") && (y == "world" || y == "hello") { - println!("Hello world!"); -} + if x == "hello" || x == "world" { + if y == "world" || y == "hello" { + println!("Hello world!"); + } + } - if x == "hello" && x == "world" && (y == "world" || y == "hello") { - println!("Hello world!"); -} + if x == "hello" && x == "world" { + if y == "world" || y == "hello" { + println!("Hello world!"); + } + } - if (x == "hello" || x == "world") && y == "world" && y == "hello" { - println!("Hello world!"); -} + if x == "hello" || x == "world" { + if y == "world" && y == "hello" { + println!("Hello world!"); + } + } - if x == "hello" && x == "world" && y == "world" && y == "hello" { - println!("Hello world!"); -} + if x == "hello" && x == "world" { + if y == "world" && y == "hello" { + println!("Hello world!"); + } + } - if 42 == 1337 && 'a' != 'A' { - println!("world!") -} + if 42 == 1337 { + if 'a' != 'A' { + println!("world!") + } + } // Collapse `else { if .. }` to `else if ..` if x == "hello" { print!("Hello "); - } else if y == "world" { - println!("world!") -} + } else { + if y == "world" { + println!("world!") + } + } if x == "hello" { print!("Hello "); - } else if let Some(42) = Some(42) { - println!("world!") -} + } else { + if let Some(42) = Some(42) { + println!("world!") + } + } if x == "hello" { print!("Hello "); - } else if y == "world" { - println!("world") -} -else { - println!("!") -} + } else { + if y == "world" { + println!("world") + } + else { + println!("!") + } + } if x == "hello" { print!("Hello "); - } else if let Some(42) = Some(42) { - println!("world") -} -else { - println!("!") -} + } else { + if let Some(42) = Some(42) { + println!("world") + } + else { + println!("!") + } + } if let Some(42) = Some(42) { print!("Hello "); - } else if let Some(42) = Some(42) { - println!("world") -} -else { - println!("!") -} + } else { + if let Some(42) = Some(42) { + println!("world") + } + else { + println!("!") + } + } if let Some(42) = Some(42) { print!("Hello "); - } else if x == "hello" { - println!("world") -} -else { - println!("!") -} + } else { + if x == "hello" { + println!("world") + } + else { + println!("!") + } + } if let Some(42) = Some(42) { print!("Hello "); - } else if let Some(42) = Some(42) { - println!("world") -} -else { - println!("!") -} + } else { + if let Some(42) = Some(42) { + println!("world") + } + else { + println!("!") + } + } // Works because any if with an else statement cannot be collapsed. if x == "hello" { if y == "world" { println!("Hello world!"); } } else { println!("Not Hello world"); } if x == "hello" { if y == "world" { println!("Hello world!"); } else { println!("Hello something else"); } } if x == "hello" { print!("Hello "); if y == "world" { println!("world!") } } if true { } else { assert!(true); // assert! is just an `if` } // The following tests check for the fix of https://github.com/rust-lang/rust-clippy/issues/798 if x == "hello" {// Not collapsible if y == "world" { println!("Hello world!"); } } if x == "hello" { // Not collapsible if y == "world" { println!("Hello world!"); } } if x == "hello" { // Not collapsible if y == "world" { println!("Hello world!"); } } - if x == "hello" && y == "world" { // Collapsible - println!("Hello world!"); -} + if x == "hello" { + if y == "world" { // Collapsible + println!("Hello world!"); + } + } if x == "hello" { print!("Hello "); } else { // Not collapsible if y == "world" { println!("world!") } } if x == "hello" { print!("Hello "); } else { // Not collapsible if let Some(42) = Some(42) { println!("world!") } } if x == "hello" { /* Not collapsible */ if y == "world" { println!("Hello world!"); } } if x == "hello" { /* Not collapsible */ if y == "world" { println!("Hello world!"); } } } The actual fixed differed from the expected fixed. Actual fixed saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/collapsible_if.fixed To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'collapsible_if.rs' error: 2 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/collapsible_if.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/collapsible_if.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/collapsible_if.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ {"message":"this if statement can be collapsed","code":{"code":"clippy::collapsible_if","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/collapsible_if.rs","byte_start":196,"byte_end":293,"line_start":9,"line_end":13,"column_start":5,"column_end":6,"is_primary":true,"text":[{"text":" if x == \"hello\" {","highlight_start":5,"highlight_end":22},{"text":" if y == \"world\" {","highlight_start":1,"highlight_end":26},{"text":" println!(\"Hello world!\");","highlight_start":1,"highlight_end":38},{"text":" }","highlight_start":1,"highlight_end":10},{"text":" }","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D clippy::collapsible-if` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"try","code":null,"level":"help","spans":[{"file_name":"tests/ui/collapsible_if.rs","byte_start":196,"byte_end":293,"line_start":9,"line_end":13,"column_start":5,"column_end":6,"is_primary":true,"text":[{"text":" if x == \"hello\" {","highlight_start":5,"highlight_end":22},{"text":" if y == \"world\" {","highlight_start":1,"highlight_end":26},{"text":" println!(\"Hello world!\");","highlight_start":1,"highlight_end":38},{"text":" }","highlight_start":1,"highlight_end":10},{"text":" }","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":"if x == \"hello\" && y == \"world\" {\n println!(\"Hello world!\");\n}","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: this if statement can be collapsed\n --> tests/ui/collapsible_if.rs:9:5\n |\nLL | / if x == \"hello\" {\nLL | | if y == \"world\" {\nLL | | println!(\"Hello world!\");\nLL | | }\nLL | | }\n | |_____^\n |\n = note: `-D clippy::collapsible-if` implied by `-D warnings`\nhelp: try\n |\nLL | if x == \"hello\" && y == \"world\" {\nLL | println!(\"Hello world!\");\nLL | }\n |\n\n"} ------------------------------------------ thread '[ui] ui/collapsible_if.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/cast_size.rs stdout ---- normalized stderr: error: casting isize to i8 may truncate the value --> $DIR/cast_size.rs:11:5 | LL | 1isize as i8; | ^^^^^^^^^^^^ | = note: `-D clippy::cast-possible-truncation` implied by `-D warnings` error: casting isize to f64 causes a loss of precision on targets with 64-bit wide pointers (isize is 64 bits wide, but f64's mantissa is only 52 bits wide) --> $DIR/cast_size.rs:14:5 | LL | x0 as f64; | ^^^^^^^^^ | = note: `-D clippy::cast-precision-loss` implied by `-D warnings` error: casting isize to f64 may become silently lossy if types change --> $DIR/cast_size.rs:14:5 | LL | x0 as f64; | ^^^^^^^^^ help: try: `f64::from(x0)` | = note: `-D clippy::cast-lossless` implied by `-D warnings` error: casting usize to f64 causes a loss of precision on targets with 64-bit wide pointers (usize is 64 bits wide, but f64's mantissa is only 52 bits wide) --> $DIR/cast_size.rs:15:5 | LL | x1 as f64; | ^^^^^^^^^ error: casting usize to f64 may become silently lossy if types change --> $DIR/cast_size.rs:15:5 | LL | x1 as f64; | ^^^^^^^^^ help: try: `f64::from(x1)` error: casting isize to f32 causes a loss of precision (isize is 32 or 64 bits wide, but f32's mantissa is only 23 bits wide) --> $DIR/cast_size.rs:16:5 | LL | x0 as f32; | ^^^^^^^^^ error: casting usize to f32 causes a loss of precision (usize is 32 or 64 bits wide, but f32's mantissa is only 23 bits wide) --> $DIR/cast_size.rs:17:5 | LL | x1 as f32; | ^^^^^^^^^ error: casting isize to i32 may truncate the value on targets with 64-bit wide pointers --> $DIR/cast_size.rs:18:5 | LL | 1isize as i32; | ^^^^^^^^^^^^^ error: casting isize to u32 may truncate the value on targets with 64-bit wide pointers --> $DIR/cast_size.rs:19:5 | LL | 1isize as u32; | ^^^^^^^^^^^^^ error: casting usize to u32 may truncate the value on targets with 64-bit wide pointers --> $DIR/cast_size.rs:20:5 | LL | 1usize as u32; | ^^^^^^^^^^^^^ error: casting usize to i32 may truncate the value on targets with 64-bit wide pointers --> $DIR/cast_size.rs:21:5 | LL | 1usize as i32; | ^^^^^^^^^^^^^ error: casting usize to i32 may wrap around the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:21:5 | LL | 1usize as i32; | ^^^^^^^^^^^^^ | = note: `-D clippy::cast-possible-wrap` implied by `-D warnings` error: casting i64 to isize may truncate the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:23:5 | LL | 1i64 as isize; | ^^^^^^^^^^^^^ error: casting i64 to usize may truncate the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:24:5 | LL | 1i64 as usize; | ^^^^^^^^^^^^^ error: casting u64 to isize may truncate the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:25:5 | LL | 1u64 as isize; | ^^^^^^^^^^^^^ error: casting u64 to isize may wrap around the value on targets with 64-bit wide pointers --> $DIR/cast_size.rs:25:5 | LL | 1u64 as isize; | ^^^^^^^^^^^^^ error: casting u64 to usize may truncate the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:26:5 | LL | 1u64 as usize; | ^^^^^^^^^^^^^ error: casting u32 to isize may wrap around the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:27:5 | LL | 1u32 as isize; | ^^^^^^^^^^^^^ error: casting i32 to f32 causes a loss of precision (i32 is 32 bits wide, but f32's mantissa is only 23 bits wide) --> $DIR/cast_size.rs:32:5 | LL | 999_999_999 as f32; | ^^^^^^^^^^^^^^^^^^ error: casting usize to f64 causes a loss of precision on targets with 64-bit wide pointers (usize is 64 bits wide, but f64's mantissa is only 52 bits wide) --> $DIR/cast_size.rs:33:5 | LL | 9_999_999_999_999_999usize as f64; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: casting usize to f64 may become silently lossy if types change --> $DIR/cast_size.rs:33:5 | LL | 9_999_999_999_999_999usize as f64; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(9_999_999_999_999_999usize)` error: literal out of range for usize --> $DIR/cast_size.rs:33:5 | LL | 9_999_999_999_999_999usize as f64; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: #[deny(overflowing_literals)] on by default error: aborting due to 22 previous errors expected stderr: error: casting isize to i8 may truncate the value --> $DIR/cast_size.rs:11:5 | LL | 1isize as i8; | ^^^^^^^^^^^^ | = note: `-D clippy::cast-possible-truncation` implied by `-D warnings` error: casting isize to f64 causes a loss of precision on targets with 64-bit wide pointers (isize is 64 bits wide, but f64's mantissa is only 52 bits wide) --> $DIR/cast_size.rs:14:5 | LL | x0 as f64; | ^^^^^^^^^ | = note: `-D clippy::cast-precision-loss` implied by `-D warnings` error: casting usize to f64 causes a loss of precision on targets with 64-bit wide pointers (usize is 64 bits wide, but f64's mantissa is only 52 bits wide) --> $DIR/cast_size.rs:15:5 | LL | x1 as f64; | ^^^^^^^^^ error: casting isize to f32 causes a loss of precision (isize is 32 or 64 bits wide, but f32's mantissa is only 23 bits wide) --> $DIR/cast_size.rs:16:5 | LL | x0 as f32; | ^^^^^^^^^ error: casting usize to f32 causes a loss of precision (usize is 32 or 64 bits wide, but f32's mantissa is only 23 bits wide) --> $DIR/cast_size.rs:17:5 | LL | x1 as f32; | ^^^^^^^^^ error: casting isize to i32 may truncate the value on targets with 64-bit wide pointers --> $DIR/cast_size.rs:18:5 | LL | 1isize as i32; | ^^^^^^^^^^^^^ error: casting isize to u32 may truncate the value on targets with 64-bit wide pointers --> $DIR/cast_size.rs:19:5 | LL | 1isize as u32; | ^^^^^^^^^^^^^ error: casting usize to u32 may truncate the value on targets with 64-bit wide pointers --> $DIR/cast_size.rs:20:5 | LL | 1usize as u32; | ^^^^^^^^^^^^^ error: casting usize to i32 may truncate the value on targets with 64-bit wide pointers --> $DIR/cast_size.rs:21:5 | LL | 1usize as i32; | ^^^^^^^^^^^^^ error: casting usize to i32 may wrap around the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:21:5 | LL | 1usize as i32; | ^^^^^^^^^^^^^ | = note: `-D clippy::cast-possible-wrap` implied by `-D warnings` error: casting i64 to isize may truncate the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:23:5 | LL | 1i64 as isize; | ^^^^^^^^^^^^^ error: casting i64 to usize may truncate the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:24:5 | LL | 1i64 as usize; | ^^^^^^^^^^^^^ error: casting u64 to isize may truncate the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:25:5 | LL | 1u64 as isize; | ^^^^^^^^^^^^^ error: casting u64 to isize may wrap around the value on targets with 64-bit wide pointers --> $DIR/cast_size.rs:25:5 | LL | 1u64 as isize; | ^^^^^^^^^^^^^ error: casting u64 to usize may truncate the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:26:5 | LL | 1u64 as usize; | ^^^^^^^^^^^^^ error: casting u32 to isize may wrap around the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:27:5 | LL | 1u32 as isize; | ^^^^^^^^^^^^^ error: casting i32 to f32 causes a loss of precision (i32 is 32 bits wide, but f32's mantissa is only 23 bits wide) --> $DIR/cast_size.rs:32:5 | LL | 999_999_999 as f32; | ^^^^^^^^^^^^^^^^^^ error: casting usize to f64 causes a loss of precision on targets with 64-bit wide pointers (usize is 64 bits wide, but f64's mantissa is only 52 bits wide) --> $DIR/cast_size.rs:33:5 | LL | 9_999_999_999_999_999usize as f64; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 18 previous errors diff of stderr: error: casting isize to i8 may truncate the value --> $DIR/cast_size.rs:11:5 | LL | 1isize as i8; | ^^^^^^^^^^^^ | = note: `-D clippy::cast-possible-truncation` implied by `-D warnings` error: casting isize to f64 causes a loss of precision on targets with 64-bit wide pointers (isize is 64 bits wide, but f64's mantissa is only 52 bits wide) --> $DIR/cast_size.rs:14:5 | LL | x0 as f64; | ^^^^^^^^^ | = note: `-D clippy::cast-precision-loss` implied by `-D warnings` +error: casting isize to f64 may become silently lossy if types change + --> $DIR/cast_size.rs:14:5 + | +LL | x0 as f64; + | ^^^^^^^^^ help: try: `f64::from(x0)` + | + = note: `-D clippy::cast-lossless` implied by `-D warnings` + error: casting usize to f64 causes a loss of precision on targets with 64-bit wide pointers (usize is 64 bits wide, but f64's mantissa is only 52 bits wide) --> $DIR/cast_size.rs:15:5 | LL | x1 as f64; | ^^^^^^^^^ +error: casting usize to f64 may become silently lossy if types change + --> $DIR/cast_size.rs:15:5 + | +LL | x1 as f64; + | ^^^^^^^^^ help: try: `f64::from(x1)` + error: casting isize to f32 causes a loss of precision (isize is 32 or 64 bits wide, but f32's mantissa is only 23 bits wide) --> $DIR/cast_size.rs:16:5 | LL | x0 as f32; | ^^^^^^^^^ error: casting usize to f32 causes a loss of precision (usize is 32 or 64 bits wide, but f32's mantissa is only 23 bits wide) --> $DIR/cast_size.rs:17:5 | LL | x1 as f32; | ^^^^^^^^^ error: casting isize to i32 may truncate the value on targets with 64-bit wide pointers --> $DIR/cast_size.rs:18:5 | LL | 1isize as i32; | ^^^^^^^^^^^^^ error: casting isize to u32 may truncate the value on targets with 64-bit wide pointers --> $DIR/cast_size.rs:19:5 | LL | 1isize as u32; | ^^^^^^^^^^^^^ error: casting usize to u32 may truncate the value on targets with 64-bit wide pointers --> $DIR/cast_size.rs:20:5 | LL | 1usize as u32; | ^^^^^^^^^^^^^ error: casting usize to i32 may truncate the value on targets with 64-bit wide pointers --> $DIR/cast_size.rs:21:5 | LL | 1usize as i32; | ^^^^^^^^^^^^^ error: casting usize to i32 may wrap around the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:21:5 | LL | 1usize as i32; | ^^^^^^^^^^^^^ | = note: `-D clippy::cast-possible-wrap` implied by `-D warnings` error: casting i64 to isize may truncate the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:23:5 | LL | 1i64 as isize; | ^^^^^^^^^^^^^ error: casting i64 to usize may truncate the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:24:5 | LL | 1i64 as usize; | ^^^^^^^^^^^^^ error: casting u64 to isize may truncate the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:25:5 | LL | 1u64 as isize; | ^^^^^^^^^^^^^ error: casting u64 to isize may wrap around the value on targets with 64-bit wide pointers --> $DIR/cast_size.rs:25:5 | LL | 1u64 as isize; | ^^^^^^^^^^^^^ error: casting u64 to usize may truncate the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:26:5 | LL | 1u64 as usize; | ^^^^^^^^^^^^^ error: casting u32 to isize may wrap around the value on targets with 32-bit wide pointers --> $DIR/cast_size.rs:27:5 | LL | 1u32 as isize; | ^^^^^^^^^^^^^ error: casting i32 to f32 causes a loss of precision (i32 is 32 bits wide, but f32's mantissa is only 23 bits wide) --> $DIR/cast_size.rs:32:5 | LL | 999_999_999 as f32; | ^^^^^^^^^^^^^^^^^^ error: casting usize to f64 causes a loss of precision on targets with 64-bit wide pointers (usize is 64 bits wide, but f64's mantissa is only 52 bits wide) --> $DIR/cast_size.rs:33:5 | LL | 9_999_999_999_999_999usize as f64; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: aborting due to 18 previous errors +error: casting usize to f64 may become silently lossy if types change + --> $DIR/cast_size.rs:33:5 + | +LL | 9_999_999_999_999_999usize as f64; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(9_999_999_999_999_999usize)` + +error: literal out of range for usize + --> $DIR/cast_size.rs:33:5 + | +LL | 9_999_999_999_999_999usize as f64; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: #[deny(overflowing_literals)] on by default + +error: aborting due to 22 previous errors The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cast_size.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'cast_size.rs' error: 1 errors occurred comparing output. status: exit code: 1 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/cast_size.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cast_size.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cast_size.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ {"message":"casting isize to i8 may truncate the value","code":{"code":"clippy::cast_possible_truncation","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":269,"byte_end":281,"line_start":11,"line_end":11,"column_start":5,"column_end":17,"is_primary":true,"text":[{"text":" 1isize as i8;","highlight_start":5,"highlight_end":17}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D clippy::cast-possible-truncation` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: casting isize to i8 may truncate the value\n --> tests/ui/cast_size.rs:11:5\n |\nLL | 1isize as i8;\n | ^^^^^^^^^^^^\n |\n = note: `-D clippy::cast-possible-truncation` implied by `-D warnings`\n\n"} {"message":"casting isize to f64 causes a loss of precision on targets with 64-bit wide pointers (isize is 64 bits wide, but f64's mantissa is only 52 bits wide)","code":{"code":"clippy::cast_precision_loss","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":329,"byte_end":338,"line_start":14,"line_end":14,"column_start":5,"column_end":14,"is_primary":true,"text":[{"text":" x0 as f64;","highlight_start":5,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D clippy::cast-precision-loss` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: casting isize to f64 causes a loss of precision on targets with 64-bit wide pointers (isize is 64 bits wide, but f64's mantissa is only 52 bits wide)\n --> tests/ui/cast_size.rs:14:5\n |\nLL | x0 as f64;\n | ^^^^^^^^^\n |\n = note: `-D clippy::cast-precision-loss` implied by `-D warnings`\n\n"} {"message":"casting isize to f64 may become silently lossy if types change","code":{"code":"clippy::cast_lossless","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":329,"byte_end":338,"line_start":14,"line_end":14,"column_start":5,"column_end":14,"is_primary":true,"text":[{"text":" x0 as f64;","highlight_start":5,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D clippy::cast-lossless` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"try","code":null,"level":"help","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":329,"byte_end":338,"line_start":14,"line_end":14,"column_start":5,"column_end":14,"is_primary":true,"text":[{"text":" x0 as f64;","highlight_start":5,"highlight_end":14}],"label":null,"suggested_replacement":"f64::from(x0)","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: casting isize to f64 may become silently lossy if types change\n --> tests/ui/cast_size.rs:14:5\n |\nLL | x0 as f64;\n | ^^^^^^^^^ help: try: `f64::from(x0)`\n |\n = note: `-D clippy::cast-lossless` implied by `-D warnings`\n\n"} {"message":"casting usize to f64 causes a loss of precision on targets with 64-bit wide pointers (usize is 64 bits wide, but f64's mantissa is only 52 bits wide)","code":{"code":"clippy::cast_precision_loss","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":344,"byte_end":353,"line_start":15,"line_end":15,"column_start":5,"column_end":14,"is_primary":true,"text":[{"text":" x1 as f64;","highlight_start":5,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: casting usize to f64 causes a loss of precision on targets with 64-bit wide pointers (usize is 64 bits wide, but f64's mantissa is only 52 bits wide)\n --> tests/ui/cast_size.rs:15:5\n |\nLL | x1 as f64;\n | ^^^^^^^^^\n\n"} {"message":"casting usize to f64 may become silently lossy if types change","code":{"code":"clippy::cast_lossless","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":344,"byte_end":353,"line_start":15,"line_end":15,"column_start":5,"column_end":14,"is_primary":true,"text":[{"text":" x1 as f64;","highlight_start":5,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try","code":null,"level":"help","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":344,"byte_end":353,"line_start":15,"line_end":15,"column_start":5,"column_end":14,"is_primary":true,"text":[{"text":" x1 as f64;","highlight_start":5,"highlight_end":14}],"label":null,"suggested_replacement":"f64::from(x1)","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: casting usize to f64 may become silently lossy if types change\n --> tests/ui/cast_size.rs:15:5\n |\nLL | x1 as f64;\n | ^^^^^^^^^ help: try: `f64::from(x1)`\n\n"} {"message":"casting isize to f32 causes a loss of precision (isize is 32 or 64 bits wide, but f32's mantissa is only 23 bits wide)","code":{"code":"clippy::cast_precision_loss","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":359,"byte_end":368,"line_start":16,"line_end":16,"column_start":5,"column_end":14,"is_primary":true,"text":[{"text":" x0 as f32;","highlight_start":5,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: casting isize to f32 causes a loss of precision (isize is 32 or 64 bits wide, but f32's mantissa is only 23 bits wide)\n --> tests/ui/cast_size.rs:16:5\n |\nLL | x0 as f32;\n | ^^^^^^^^^\n\n"} {"message":"casting usize to f32 causes a loss of precision (usize is 32 or 64 bits wide, but f32's mantissa is only 23 bits wide)","code":{"code":"clippy::cast_precision_loss","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":374,"byte_end":383,"line_start":17,"line_end":17,"column_start":5,"column_end":14,"is_primary":true,"text":[{"text":" x1 as f32;","highlight_start":5,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: casting usize to f32 causes a loss of precision (usize is 32 or 64 bits wide, but f32's mantissa is only 23 bits wide)\n --> tests/ui/cast_size.rs:17:5\n |\nLL | x1 as f32;\n | ^^^^^^^^^\n\n"} {"message":"casting isize to i32 may truncate the value on targets with 64-bit wide pointers","code":{"code":"clippy::cast_possible_truncation","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":389,"byte_end":402,"line_start":18,"line_end":18,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":" 1isize as i32;","highlight_start":5,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: casting isize to i32 may truncate the value on targets with 64-bit wide pointers\n --> tests/ui/cast_size.rs:18:5\n |\nLL | 1isize as i32;\n | ^^^^^^^^^^^^^\n\n"} {"message":"casting isize to u32 may truncate the value on targets with 64-bit wide pointers","code":{"code":"clippy::cast_possible_truncation","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":408,"byte_end":421,"line_start":19,"line_end":19,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":" 1isize as u32;","highlight_start":5,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: casting isize to u32 may truncate the value on targets with 64-bit wide pointers\n --> tests/ui/cast_size.rs:19:5\n |\nLL | 1isize as u32;\n | ^^^^^^^^^^^^^\n\n"} {"message":"casting usize to u32 may truncate the value on targets with 64-bit wide pointers","code":{"code":"clippy::cast_possible_truncation","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":427,"byte_end":440,"line_start":20,"line_end":20,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":" 1usize as u32;","highlight_start":5,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: casting usize to u32 may truncate the value on targets with 64-bit wide pointers\n --> tests/ui/cast_size.rs:20:5\n |\nLL | 1usize as u32;\n | ^^^^^^^^^^^^^\n\n"} {"message":"casting usize to i32 may truncate the value on targets with 64-bit wide pointers","code":{"code":"clippy::cast_possible_truncation","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":446,"byte_end":459,"line_start":21,"line_end":21,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":" 1usize as i32;","highlight_start":5,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: casting usize to i32 may truncate the value on targets with 64-bit wide pointers\n --> tests/ui/cast_size.rs:21:5\n |\nLL | 1usize as i32;\n | ^^^^^^^^^^^^^\n\n"} {"message":"casting usize to i32 may wrap around the value on targets with 32-bit wide pointers","code":{"code":"clippy::cast_possible_wrap","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":446,"byte_end":459,"line_start":21,"line_end":21,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":" 1usize as i32;","highlight_start":5,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D clippy::cast-possible-wrap` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: casting usize to i32 may wrap around the value on targets with 32-bit wide pointers\n --> tests/ui/cast_size.rs:21:5\n |\nLL | 1usize as i32;\n | ^^^^^^^^^^^^^\n |\n = note: `-D clippy::cast-possible-wrap` implied by `-D warnings`\n\n"} {"message":"casting i64 to isize may truncate the value on targets with 32-bit wide pointers","code":{"code":"clippy::cast_possible_truncation","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":489,"byte_end":502,"line_start":23,"line_end":23,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":" 1i64 as isize;","highlight_start":5,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: casting i64 to isize may truncate the value on targets with 32-bit wide pointers\n --> tests/ui/cast_size.rs:23:5\n |\nLL | 1i64 as isize;\n | ^^^^^^^^^^^^^\n\n"} {"message":"casting i64 to usize may truncate the value on targets with 32-bit wide pointers","code":{"code":"clippy::cast_possible_truncation","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":508,"byte_end":521,"line_start":24,"line_end":24,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":" 1i64 as usize;","highlight_start":5,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: casting i64 to usize may truncate the value on targets with 32-bit wide pointers\n --> tests/ui/cast_size.rs:24:5\n |\nLL | 1i64 as usize;\n | ^^^^^^^^^^^^^\n\n"} {"message":"casting u64 to isize may truncate the value on targets with 32-bit wide pointers","code":{"code":"clippy::cast_possible_truncation","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":527,"byte_end":540,"line_start":25,"line_end":25,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":" 1u64 as isize;","highlight_start":5,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: casting u64 to isize may truncate the value on targets with 32-bit wide pointers\n --> tests/ui/cast_size.rs:25:5\n |\nLL | 1u64 as isize;\n | ^^^^^^^^^^^^^\n\n"} {"message":"casting u64 to isize may wrap around the value on targets with 64-bit wide pointers","code":{"code":"clippy::cast_possible_wrap","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":527,"byte_end":540,"line_start":25,"line_end":25,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":" 1u64 as isize;","highlight_start":5,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: casting u64 to isize may wrap around the value on targets with 64-bit wide pointers\n --> tests/ui/cast_size.rs:25:5\n |\nLL | 1u64 as isize;\n | ^^^^^^^^^^^^^\n\n"} {"message":"casting u64 to usize may truncate the value on targets with 32-bit wide pointers","code":{"code":"clippy::cast_possible_truncation","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":546,"byte_end":559,"line_start":26,"line_end":26,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":" 1u64 as usize;","highlight_start":5,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: casting u64 to usize may truncate the value on targets with 32-bit wide pointers\n --> tests/ui/cast_size.rs:26:5\n |\nLL | 1u64 as usize;\n | ^^^^^^^^^^^^^\n\n"} {"message":"casting u32 to isize may wrap around the value on targets with 32-bit wide pointers","code":{"code":"clippy::cast_possible_wrap","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":565,"byte_end":578,"line_start":27,"line_end":27,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":" 1u32 as isize;","highlight_start":5,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: casting u32 to isize may wrap around the value on targets with 32-bit wide pointers\n --> tests/ui/cast_size.rs:27:5\n |\nLL | 1u32 as isize;\n | ^^^^^^^^^^^^^\n\n"} {"message":"casting i32 to f32 causes a loss of precision (i32 is 32 bits wide, but f32's mantissa is only 23 bits wide)","code":{"code":"clippy::cast_precision_loss","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":731,"byte_end":749,"line_start":32,"line_end":32,"column_start":5,"column_end":23,"is_primary":true,"text":[{"text":" 999_999_999 as f32;","highlight_start":5,"highlight_end":23}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: casting i32 to f32 causes a loss of precision (i32 is 32 bits wide, but f32's mantissa is only 23 bits wide)\n --> tests/ui/cast_size.rs:32:5\n |\nLL | 999_999_999 as f32;\n | ^^^^^^^^^^^^^^^^^^\n\n"} {"message":"casting usize to f64 causes a loss of precision on targets with 64-bit wide pointers (usize is 64 bits wide, but f64's mantissa is only 52 bits wide)","code":{"code":"clippy::cast_precision_loss","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":755,"byte_end":788,"line_start":33,"line_end":33,"column_start":5,"column_end":38,"is_primary":true,"text":[{"text":" 9_999_999_999_999_999usize as f64;","highlight_start":5,"highlight_end":38}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: casting usize to f64 causes a loss of precision on targets with 64-bit wide pointers (usize is 64 bits wide, but f64's mantissa is only 52 bits wide)\n --> tests/ui/cast_size.rs:33:5\n |\nLL | 9_999_999_999_999_999usize as f64;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n"} {"message":"casting usize to f64 may become silently lossy if types change","code":{"code":"clippy::cast_lossless","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":755,"byte_end":788,"line_start":33,"line_end":33,"column_start":5,"column_end":38,"is_primary":true,"text":[{"text":" 9_999_999_999_999_999usize as f64;","highlight_start":5,"highlight_end":38}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try","code":null,"level":"help","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":755,"byte_end":788,"line_start":33,"line_end":33,"column_start":5,"column_end":38,"is_primary":true,"text":[{"text":" 9_999_999_999_999_999usize as f64;","highlight_start":5,"highlight_end":38}],"label":null,"suggested_replacement":"f64::from(9_999_999_999_999_999usize)","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: casting usize to f64 may become silently lossy if types change\n --> tests/ui/cast_size.rs:33:5\n |\nLL | 9_999_999_999_999_999usize as f64;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(9_999_999_999_999_999usize)`\n\n"} {"message":"literal out of range for usize","code":{"code":"overflowing_literals","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_size.rs","byte_start":755,"byte_end":781,"line_start":33,"line_end":33,"column_start":5,"column_end":31,"is_primary":true,"text":[{"text":" 9_999_999_999_999_999usize as f64;","highlight_start":5,"highlight_end":31}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"#[deny(overflowing_literals)] on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: literal out of range for usize\n --> tests/ui/cast_size.rs:33:5\n |\nLL | 9_999_999_999_999_999usize as f64;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: #[deny(overflowing_literals)] on by default\n\n"} {"message":"aborting due to 22 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 22 previous errors\n\n"} ------------------------------------------ thread '[ui] ui/cast_size.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/cognitive_complexity.rs stdout ---- normalized stderr: expected stderr: error: the function has a cognitive complexity of 28 --> $DIR/cognitive_complexity.rs:6:1 | LL | / fn main() { LL | | if true { LL | | println!("a"); LL | | } ... | LL | | } LL | | } | |_^ | = note: `-D clippy::cognitive-complexity` implied by `-D warnings` = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 7 --> $DIR/cognitive_complexity.rs:91:1 | LL | / fn kaboom() { LL | | let n = 0; LL | | 'a: for i in 0..20 { LL | | 'b: for j in i..20 { ... | LL | | } LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 1 --> $DIR/cognitive_complexity.rs:137:1 | LL | / fn lots_of_short_circuits() -> bool { LL | | true && false && true && false && true && false && true LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 1 --> $DIR/cognitive_complexity.rs:142:1 | LL | / fn lots_of_short_circuits2() -> bool { LL | | true || false || true || false || true || false || true LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 2 --> $DIR/cognitive_complexity.rs:147:1 | LL | / fn baa() { LL | | let x = || match 99 { LL | | 0 => 0, LL | | 1 => 1, ... | LL | | } LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 2 --> $DIR/cognitive_complexity.rs:148:13 | LL | let x = || match 99 { | _____________^ LL | | 0 => 0, LL | | 1 => 1, LL | | 2 => 2, ... | LL | | _ => 42, LL | | }; | |_____^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 2 --> $DIR/cognitive_complexity.rs:165:1 | LL | / fn bar() { LL | | match 99 { LL | | 0 => println!("hi"), LL | | _ => println!("bye"), LL | | } LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 2 --> $DIR/cognitive_complexity.rs:184:1 | LL | / fn barr() { LL | | match 99 { LL | | 0 => println!("hi"), LL | | 1 => println!("bla"), ... | LL | | } LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 3 --> $DIR/cognitive_complexity.rs:194:1 | LL | / fn barr2() { LL | | match 99 { LL | | 0 => println!("hi"), LL | | 1 => println!("bla"), ... | LL | | } LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 2 --> $DIR/cognitive_complexity.rs:210:1 | LL | / fn barrr() { LL | | match 99 { LL | | 0 => println!("hi"), LL | | 1 => panic!("bla"), ... | LL | | } LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 3 --> $DIR/cognitive_complexity.rs:220:1 | LL | / fn barrr2() { LL | | match 99 { LL | | 0 => println!("hi"), LL | | 1 => panic!("bla"), ... | LL | | } LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 2 --> $DIR/cognitive_complexity.rs:236:1 | LL | / fn barrrr() { LL | | match 99 { LL | | 0 => println!("hi"), LL | | 1 => println!("bla"), ... | LL | | } LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 3 --> $DIR/cognitive_complexity.rs:246:1 | LL | / fn barrrr2() { LL | | match 99 { LL | | 0 => println!("hi"), LL | | 1 => println!("bla"), ... | LL | | } LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 2 --> $DIR/cognitive_complexity.rs:262:1 | LL | / fn cake() { LL | | if 4 == 5 { LL | | println!("yea"); LL | | } else { ... | LL | | println!("whee"); LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 4 --> $DIR/cognitive_complexity.rs:272:1 | LL | / pub fn read_file(input_path: &str) -> String { LL | | use std::fs::File; LL | | use std::io::{Read, Write}; LL | | use std::path::Path; ... | LL | | } LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 1 --> $DIR/cognitive_complexity.rs:303:1 | LL | / fn void(void: Void) { LL | | if true { LL | | match void {} LL | | } LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 1 --> $DIR/cognitive_complexity.rs:316:1 | LL | / fn try() -> Result { LL | | match 5 { LL | | 5 => Ok(5), LL | | _ => return Err("bla"), LL | | } LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 1 --> $DIR/cognitive_complexity.rs:324:1 | LL | / fn try_again() -> Result { LL | | let _ = try!(Ok(42)); LL | | let _ = try!(Ok(43)); LL | | let _ = try!(Ok(44)); ... | LL | | } LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 1 --> $DIR/cognitive_complexity.rs:340:1 | LL | / fn early() -> Result { LL | | return Ok(5); LL | | return Ok(5); LL | | return Ok(5); ... | LL | | return Ok(5); LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of 8 --> $DIR/cognitive_complexity.rs:354:1 | LL | / fn early_ret() -> i32 { LL | | let a = if true { 42 } else { return 0; }; LL | | let a = if a < 99 { 42 } else { return 0; }; LL | | let a = if a < 99 { 42 } else { return 0; }; ... | LL | | } LL | | } | |_^ | = help: you could split it up into multiple smaller functions error: aborting due to 20 previous errors diff of stderr: -error: the function has a cognitive complexity of 28 - --> $DIR/cognitive_complexity.rs:6:1 - | -LL | / fn main() { -LL | | if true { -LL | | println!("a"); -LL | | } -... | -LL | | } -LL | | } - | |_^ - | - = note: `-D clippy::cognitive-complexity` implied by `-D warnings` - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 7 - --> $DIR/cognitive_complexity.rs:91:1 - | -LL | / fn kaboom() { -LL | | let n = 0; -LL | | 'a: for i in 0..20 { -LL | | 'b: for j in i..20 { -... | -LL | | } -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 1 - --> $DIR/cognitive_complexity.rs:137:1 - | -LL | / fn lots_of_short_circuits() -> bool { -LL | | true && false && true && false && true && false && true -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 1 - --> $DIR/cognitive_complexity.rs:142:1 - | -LL | / fn lots_of_short_circuits2() -> bool { -LL | | true || false || true || false || true || false || true -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 2 - --> $DIR/cognitive_complexity.rs:147:1 - | -LL | / fn baa() { -LL | | let x = || match 99 { -LL | | 0 => 0, -LL | | 1 => 1, -... | -LL | | } -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 2 - --> $DIR/cognitive_complexity.rs:148:13 - | -LL | let x = || match 99 { - | _____________^ -LL | | 0 => 0, -LL | | 1 => 1, -LL | | 2 => 2, -... | -LL | | _ => 42, -LL | | }; - | |_____^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 2 - --> $DIR/cognitive_complexity.rs:165:1 - | -LL | / fn bar() { -LL | | match 99 { -LL | | 0 => println!("hi"), -LL | | _ => println!("bye"), -LL | | } -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 2 - --> $DIR/cognitive_complexity.rs:184:1 - | -LL | / fn barr() { -LL | | match 99 { -LL | | 0 => println!("hi"), -LL | | 1 => println!("bla"), -... | -LL | | } -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 3 - --> $DIR/cognitive_complexity.rs:194:1 - | -LL | / fn barr2() { -LL | | match 99 { -LL | | 0 => println!("hi"), -LL | | 1 => println!("bla"), -... | -LL | | } -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 2 - --> $DIR/cognitive_complexity.rs:210:1 - | -LL | / fn barrr() { -LL | | match 99 { -LL | | 0 => println!("hi"), -LL | | 1 => panic!("bla"), -... | -LL | | } -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 3 - --> $DIR/cognitive_complexity.rs:220:1 - | -LL | / fn barrr2() { -LL | | match 99 { -LL | | 0 => println!("hi"), -LL | | 1 => panic!("bla"), -... | -LL | | } -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 2 - --> $DIR/cognitive_complexity.rs:236:1 - | -LL | / fn barrrr() { -LL | | match 99 { -LL | | 0 => println!("hi"), -LL | | 1 => println!("bla"), -... | -LL | | } -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 3 - --> $DIR/cognitive_complexity.rs:246:1 - | -LL | / fn barrrr2() { -LL | | match 99 { -LL | | 0 => println!("hi"), -LL | | 1 => println!("bla"), -... | -LL | | } -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 2 - --> $DIR/cognitive_complexity.rs:262:1 - | -LL | / fn cake() { -LL | | if 4 == 5 { -LL | | println!("yea"); -LL | | } else { -... | -LL | | println!("whee"); -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 4 - --> $DIR/cognitive_complexity.rs:272:1 - | -LL | / pub fn read_file(input_path: &str) -> String { -LL | | use std::fs::File; -LL | | use std::io::{Read, Write}; -LL | | use std::path::Path; -... | -LL | | } -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 1 - --> $DIR/cognitive_complexity.rs:303:1 - | -LL | / fn void(void: Void) { -LL | | if true { -LL | | match void {} -LL | | } -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 1 - --> $DIR/cognitive_complexity.rs:316:1 - | -LL | / fn try() -> Result { -LL | | match 5 { -LL | | 5 => Ok(5), -LL | | _ => return Err("bla"), -LL | | } -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 1 - --> $DIR/cognitive_complexity.rs:324:1 - | -LL | / fn try_again() -> Result { -LL | | let _ = try!(Ok(42)); -LL | | let _ = try!(Ok(43)); -LL | | let _ = try!(Ok(44)); -... | -LL | | } -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 1 - --> $DIR/cognitive_complexity.rs:340:1 - | -LL | / fn early() -> Result { -LL | | return Ok(5); -LL | | return Ok(5); -LL | | return Ok(5); -... | -LL | | return Ok(5); -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: the function has a cognitive complexity of 8 - --> $DIR/cognitive_complexity.rs:354:1 - | -LL | / fn early_ret() -> i32 { -LL | | let a = if true { 42 } else { return 0; }; -LL | | let a = if a < 99 { 42 } else { return 0; }; -LL | | let a = if a < 99 { 42 } else { return 0; }; -... | -LL | | } -LL | | } - | |_^ - | - = help: you could split it up into multiple smaller functions - -error: aborting due to 20 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cognitive_complexity.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'cognitive_complexity.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/cognitive_complexity.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cognitive_complexity.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/cognitive_complexity.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/cognitive_complexity.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/crashes/ice-1782.rs stdout ---- thread '[ui] ui/crashes/ice-1782.rs' panicked at 'failed to exec `"/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/crashes/ice-1782.stage-id"`: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5 ---- [ui] ui/crashes/ice-1969.rs stdout ---- thread '[ui] ui/crashes/ice-1969.rs' panicked at 'failed to exec `"/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/crashes/ice-1969.stage-id"`: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5 ---- [ui] ui/crashes/cc_seme.rs stdout ---- thread '[ui] ui/crashes/cc_seme.rs' panicked at 'failed to exec `"/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/crashes/cc_seme.stage-id"`: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5 ---- [ui] ui/crashes/ice-2499.rs stdout ---- thread '[ui] ui/crashes/ice-2499.rs' panicked at 'failed to exec `"/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/crashes/ice-2499.stage-id"`: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5 ---- [ui] ui/crashes/if_same_then_else.rs stdout ---- thread '[ui] ui/crashes/if_same_then_else.rs' panicked at 'failed to exec `"/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/crashes/if_same_then_else.stage-id"`: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5 ---- [ui] ui/crashes/ice-2774.rs stdout ---- thread '[ui] ui/crashes/ice-2774.rs' panicked at 'failed to exec `"/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/crashes/ice-2774.stage-id"`: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5 ---- [ui] ui/crashes/issue-2862.rs stdout ---- thread '[ui] ui/crashes/issue-2862.rs' panicked at 'failed to exec `"/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/crashes/issue-2862.stage-id"`: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5 ---- [ui] ui/crashes/issues_loop_mut_cond.rs stdout ---- thread '[ui] ui/crashes/issues_loop_mut_cond.rs' panicked at 'failed to exec `"/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/crashes/issues_loop_mut_cond.stage-id"`: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5 ---- [ui] ui/crashes/match_same_arms_const.rs stdout ---- thread '[ui] ui/crashes/match_same_arms_const.rs' panicked at 'failed to exec `"/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/crashes/match_same_arms_const.stage-id"`: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5 ---- [ui] ui/crashes/issue-825.rs stdout ---- thread '[ui] ui/crashes/issue-825.rs' panicked at 'failed to exec `"/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/crashes/issue-825.stage-id"`: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5 ---- [ui] ui/crashes/needless_borrow_fp.rs stdout ---- thread '[ui] ui/crashes/needless_borrow_fp.rs' panicked at 'failed to exec `"/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/crashes/needless_borrow_fp.stage-id"`: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5 ---- [ui] ui/crashes/procedural_macro.rs stdout ---- thread '[ui] ui/crashes/procedural_macro.rs' panicked at 'failed to exec `"/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/crashes/procedural_macro.stage-id"`: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5 ---- [ui] ui/dbg_macro.rs stdout ---- normalized stderr: error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:4:22 | LL | if let Some(n) = dbg!(n.checked_sub(4)) { | ^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::dbg-macro` implied by `-D warnings` help: ensure to avoid having uses of it in version control | LL | if let Some(n) = n.checked_sub(4) { | ^^^^^^^^^^^^^^^^ error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:12:8 | LL | if dbg!(n <= 1) { | ^^^^^^^^^^^^ help: ensure to avoid having uses of it in version control | LL | if n <= 1 { | ^^^^^^ error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:13:9 | LL | dbg!(1) | ^^^^^^^ help: ensure to avoid having uses of it in version control | LL | 1 | error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:15:9 | LL | dbg!(n * factorial(n - 1)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: ensure to avoid having uses of it in version control | LL | n * factorial(n - 1) | error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:20:5 | LL | dbg!(42); | ^^^^^^^^ help: ensure to avoid having uses of it in version control | LL | 42; | ^^ error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:21:5 | LL | dbg!(dbg!(dbg!(42))); | ^^^^^^^^^^^^^^^^^^^^ help: ensure to avoid having uses of it in version control | LL | dbg!(dbg!(42)); | ^^^^^^^^^^^^^^ error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:22:14 | LL | foo(3) + dbg!(factorial(4)); | ^^^^^^^^^^^^^^^^^^ help: ensure to avoid having uses of it in version control | LL | foo(3) + factorial(4); | ^^^^^^^^^^^^ expected stderr: error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:4:22 | LL | if let Some(n) = dbg!(n.checked_sub(4)) { | ^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::dbg-macro` implied by `-D warnings` help: ensure to avoid having uses of it in version control | LL | if let Some(n) = n.checked_sub(4) { | ^^^^^^^^^^^^^^^^ error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:12:8 | LL | if dbg!(n <= 1) { | ^^^^^^^^^^^^ help: ensure to avoid having uses of it in version control | LL | if n <= 1 { | ^^^^^^ error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:13:9 | LL | dbg!(1) | ^^^^^^^ help: ensure to avoid having uses of it in version control | LL | 1 | error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:15:9 | LL | dbg!(n * factorial(n - 1)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: ensure to avoid having uses of it in version control | LL | n * factorial(n - 1) | error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:20:5 | LL | dbg!(42); | ^^^^^^^^ help: ensure to avoid having uses of it in version control | LL | 42; | ^^ error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:21:5 | LL | dbg!(dbg!(dbg!(42))); | ^^^^^^^^^^^^^^^^^^^^ help: ensure to avoid having uses of it in version control | LL | dbg!(dbg!(42)); | ^^^^^^^^^^^^^^ error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:22:14 | LL | foo(3) + dbg!(factorial(4)); | ^^^^^^^^^^^^^^^^^^ help: ensure to avoid having uses of it in version control | LL | foo(3) + factorial(4); | ^^^^^^^^^^^^ error: aborting due to 7 previous errors diff of stderr: error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:4:22 | LL | if let Some(n) = dbg!(n.checked_sub(4)) { | ^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::dbg-macro` implied by `-D warnings` help: ensure to avoid having uses of it in version control | LL | if let Some(n) = n.checked_sub(4) { | ^^^^^^^^^^^^^^^^ error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:12:8 | LL | if dbg!(n <= 1) { | ^^^^^^^^^^^^ help: ensure to avoid having uses of it in version control | LL | if n <= 1 { | ^^^^^^ error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:13:9 | LL | dbg!(1) | ^^^^^^^ help: ensure to avoid having uses of it in version control | LL | 1 | error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:15:9 | LL | dbg!(n * factorial(n - 1)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: ensure to avoid having uses of it in version control | LL | n * factorial(n - 1) | error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:20:5 | LL | dbg!(42); | ^^^^^^^^ help: ensure to avoid having uses of it in version control | LL | 42; | ^^ error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:21:5 | LL | dbg!(dbg!(dbg!(42))); | ^^^^^^^^^^^^^^^^^^^^ help: ensure to avoid having uses of it in version control | LL | dbg!(dbg!(42)); | ^^^^^^^^^^^^^^ error: `dbg!` macro is intended as a debugging tool --> $DIR/dbg_macro.rs:22:14 | LL | foo(3) + dbg!(factorial(4)); | ^^^^^^^^^^^^^^^^^^ help: ensure to avoid having uses of it in version control | LL | foo(3) + factorial(4); | ^^^^^^^^^^^^ -error: aborting due to 7 previous errors - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/dbg_macro.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'dbg_macro.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/dbg_macro.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/dbg_macro.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/dbg_macro.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ {"message":"`dbg!` macro is intended as a debugging tool","code":{"code":"clippy::dbg_macro","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/dbg_macro.rs","byte_start":74,"byte_end":96,"line_start":4,"line_end":4,"column_start":22,"column_end":44,"is_primary":true,"text":[{"text":" if let Some(n) = dbg!(n.checked_sub(4)) {","highlight_start":22,"highlight_end":44}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D clippy::dbg-macro` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"ensure to avoid having uses of it in version control","code":null,"level":"help","spans":[{"file_name":"tests/ui/dbg_macro.rs","byte_start":74,"byte_end":96,"line_start":4,"line_end":4,"column_start":22,"column_end":44,"is_primary":true,"text":[{"text":" if let Some(n) = dbg!(n.checked_sub(4)) {","highlight_start":22,"highlight_end":44}],"label":null,"suggested_replacement":"n.checked_sub(4)","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error: `dbg!` macro is intended as a debugging tool\n --> tests/ui/dbg_macro.rs:4:22\n |\nLL | if let Some(n) = dbg!(n.checked_sub(4)) {\n | ^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: `-D clippy::dbg-macro` implied by `-D warnings`\nhelp: ensure to avoid having uses of it in version control\n |\nLL | if let Some(n) = n.checked_sub(4) {\n | ^^^^^^^^^^^^^^^^\n\n"} {"message":"`dbg!` macro is intended as a debugging tool","code":{"code":"clippy::dbg_macro","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/dbg_macro.rs","byte_start":178,"byte_end":190,"line_start":12,"line_end":12,"column_start":8,"column_end":20,"is_primary":true,"text":[{"text":" if dbg!(n <= 1) {","highlight_start":8,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"ensure to avoid having uses of it in version control","code":null,"level":"help","spans":[{"file_name":"tests/ui/dbg_macro.rs","byte_start":178,"byte_end":190,"line_start":12,"line_end":12,"column_start":8,"column_end":20,"is_primary":true,"text":[{"text":" if dbg!(n <= 1) {","highlight_start":8,"highlight_end":20}],"label":null,"suggested_replacement":"n <= 1","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error: `dbg!` macro is intended as a debugging tool\n --> tests/ui/dbg_macro.rs:12:8\n |\nLL | if dbg!(n <= 1) {\n | ^^^^^^^^^^^^\nhelp: ensure to avoid having uses of it in version control\n |\nLL | if n <= 1 {\n | ^^^^^^\n\n"} {"message":"`dbg!` macro is intended as a debugging tool","code":{"code":"clippy::dbg_macro","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/dbg_macro.rs","byte_start":201,"byte_end":208,"line_start":13,"line_end":13,"column_start":9,"column_end":16,"is_primary":true,"text":[{"text":" dbg!(1)","highlight_start":9,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"ensure to avoid having uses of it in version control","code":null,"level":"help","spans":[{"file_name":"tests/ui/dbg_macro.rs","byte_start":201,"byte_end":208,"line_start":13,"line_end":13,"column_start":9,"column_end":16,"is_primary":true,"text":[{"text":" dbg!(1)","highlight_start":9,"highlight_end":16}],"label":null,"suggested_replacement":"1","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error: `dbg!` macro is intended as a debugging tool\n --> tests/ui/dbg_macro.rs:13:9\n |\nLL | dbg!(1)\n | ^^^^^^^\nhelp: ensure to avoid having uses of it in version control\n |\nLL | 1\n |\n\n"} {"message":"`dbg!` macro is intended as a debugging tool","code":{"code":"clippy::dbg_macro","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/dbg_macro.rs","byte_start":230,"byte_end":256,"line_start":15,"line_end":15,"column_start":9,"column_end":35,"is_primary":true,"text":[{"text":" dbg!(n * factorial(n - 1))","highlight_start":9,"highlight_end":35}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"ensure to avoid having uses of it in version control","code":null,"level":"help","spans":[{"file_name":"tests/ui/dbg_macro.rs","byte_start":230,"byte_end":256,"line_start":15,"line_end":15,"column_start":9,"column_end":35,"is_primary":true,"text":[{"text":" dbg!(n * factorial(n - 1))","highlight_start":9,"highlight_end":35}],"label":null,"suggested_replacement":"n * factorial(n - 1)","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error: `dbg!` macro is intended as a debugging tool\n --> tests/ui/dbg_macro.rs:15:9\n |\nLL | dbg!(n * factorial(n - 1))\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^\nhelp: ensure to avoid having uses of it in version control\n |\nLL | n * factorial(n - 1)\n |\n\n"} {"message":"`dbg!` macro is intended as a debugging tool","code":{"code":"clippy::dbg_macro","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/dbg_macro.rs","byte_start":282,"byte_end":290,"line_start":20,"line_end":20,"column_start":5,"column_end":13,"is_primary":true,"text":[{"text":" dbg!(42);","highlight_start":5,"highlight_end":13}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"ensure to avoid having uses of it in version control","code":null,"level":"help","spans":[{"file_name":"tests/ui/dbg_macro.rs","byte_start":282,"byte_end":290,"line_start":20,"line_end":20,"column_start":5,"column_end":13,"is_primary":true,"text":[{"text":" dbg!(42);","highlight_start":5,"highlight_end":13}],"label":null,"suggested_replacement":"42","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error: `dbg!` macro is intended as a debugging tool\n --> tests/ui/dbg_macro.rs:20:5\n |\nLL | dbg!(42);\n | ^^^^^^^^\nhelp: ensure to avoid having uses of it in version control\n |\nLL | 42;\n | ^^\n\n"} {"message":"`dbg!` macro is intended as a debugging tool","code":{"code":"clippy::dbg_macro","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/dbg_macro.rs","byte_start":296,"byte_end":316,"line_start":21,"line_end":21,"column_start":5,"column_end":25,"is_primary":true,"text":[{"text":" dbg!(dbg!(dbg!(42)));","highlight_start":5,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"ensure to avoid having uses of it in version control","code":null,"level":"help","spans":[{"file_name":"tests/ui/dbg_macro.rs","byte_start":296,"byte_end":316,"line_start":21,"line_end":21,"column_start":5,"column_end":25,"is_primary":true,"text":[{"text":" dbg!(dbg!(dbg!(42)));","highlight_start":5,"highlight_end":25}],"label":null,"suggested_replacement":"dbg!(dbg!(42))","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error: `dbg!` macro is intended as a debugging tool\n --> tests/ui/dbg_macro.rs:21:5\n |\nLL | dbg!(dbg!(dbg!(42)));\n | ^^^^^^^^^^^^^^^^^^^^\nhelp: ensure to avoid having uses of it in version control\n |\nLL | dbg!(dbg!(42));\n | ^^^^^^^^^^^^^^\n\n"} {"message":"`dbg!` macro is intended as a debugging tool","code":{"code":"clippy::dbg_macro","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/dbg_macro.rs","byte_start":331,"byte_end":349,"line_start":22,"line_end":22,"column_start":14,"column_end":32,"is_primary":true,"text":[{"text":" foo(3) + dbg!(factorial(4));","highlight_start":14,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"ensure to avoid having uses of it in version control","code":null,"level":"help","spans":[{"file_name":"tests/ui/dbg_macro.rs","byte_start":331,"byte_end":349,"line_start":22,"line_end":22,"column_start":14,"column_end":32,"is_primary":true,"text":[{"text":" foo(3) + dbg!(factorial(4));","highlight_start":14,"highlight_end":32}],"label":null,"suggested_replacement":"factorial(4)","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error: `dbg!` macro is intended as a debugging tool\n --> tests/ui/dbg_macro.rs:22:14\n |\nLL | foo(3) + dbg!(factorial(4));\n | ^^^^^^^^^^^^^^^^^^\nhelp: ensure to avoid having uses of it in version control\n |\nLL | foo(3) + factorial(4);\n | ^^^^^^^^^^^^\n\n"} ------------------------------------------ thread '[ui] ui/dbg_macro.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/crashes/used_underscore_binding_macro.rs stdout ---- thread '[ui] ui/crashes/used_underscore_binding_macro.rs' panicked at 'failed to exec `"/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/crashes/used_underscore_binding_macro.stage-id"`: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5 ---- [ui] ui/default_trait_access.rs stdout ---- normalized stderr: expected stderr: error: Calling std::string::String::default() is more clear than this expression --> $DIR/default_trait_access.rs:8:22 | LL | let s1: String = Default::default(); | ^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()` | = note: `-D clippy::default-trait-access` implied by `-D warnings` error: Calling std::string::String::default() is more clear than this expression --> $DIR/default_trait_access.rs:12:22 | LL | let s3: String = D2::default(); | ^^^^^^^^^^^^^ help: try: `std::string::String::default()` error: Calling std::string::String::default() is more clear than this expression --> $DIR/default_trait_access.rs:14:22 | LL | let s4: String = std::default::Default::default(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()` error: Calling std::string::String::default() is more clear than this expression --> $DIR/default_trait_access.rs:18:22 | LL | let s6: String = default::Default::default(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()` error: Calling GenericDerivedDefault::default() is more clear than this expression --> $DIR/default_trait_access.rs:28:46 | LL | let s11: GenericDerivedDefault = Default::default(); | ^^^^^^^^^^^^^^^^^^ help: try: `GenericDerivedDefault::default()` error: Calling TupleDerivedDefault::default() is more clear than this expression --> $DIR/default_trait_access.rs:34:36 | LL | let s14: TupleDerivedDefault = Default::default(); | ^^^^^^^^^^^^^^^^^^ help: try: `TupleDerivedDefault::default()` error: Calling ArrayDerivedDefault::default() is more clear than this expression --> $DIR/default_trait_access.rs:36:36 | LL | let s15: ArrayDerivedDefault = Default::default(); | ^^^^^^^^^^^^^^^^^^ help: try: `ArrayDerivedDefault::default()` error: Calling TupleStructDerivedDefault::default() is more clear than this expression --> $DIR/default_trait_access.rs:40:42 | LL | let s17: TupleStructDerivedDefault = Default::default(); | ^^^^^^^^^^^^^^^^^^ help: try: `TupleStructDerivedDefault::default()` error: aborting due to 8 previous errors diff of stderr: -error: Calling std::string::String::default() is more clear than this expression - --> $DIR/default_trait_access.rs:8:22 - | -LL | let s1: String = Default::default(); - | ^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()` - | - = note: `-D clippy::default-trait-access` implied by `-D warnings` - -error: Calling std::string::String::default() is more clear than this expression - --> $DIR/default_trait_access.rs:12:22 - | -LL | let s3: String = D2::default(); - | ^^^^^^^^^^^^^ help: try: `std::string::String::default()` - -error: Calling std::string::String::default() is more clear than this expression - --> $DIR/default_trait_access.rs:14:22 - | -LL | let s4: String = std::default::Default::default(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()` - -error: Calling std::string::String::default() is more clear than this expression - --> $DIR/default_trait_access.rs:18:22 - | -LL | let s6: String = default::Default::default(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()` - -error: Calling GenericDerivedDefault::default() is more clear than this expression - --> $DIR/default_trait_access.rs:28:46 - | -LL | let s11: GenericDerivedDefault = Default::default(); - | ^^^^^^^^^^^^^^^^^^ help: try: `GenericDerivedDefault::default()` - -error: Calling TupleDerivedDefault::default() is more clear than this expression - --> $DIR/default_trait_access.rs:34:36 - | -LL | let s14: TupleDerivedDefault = Default::default(); - | ^^^^^^^^^^^^^^^^^^ help: try: `TupleDerivedDefault::default()` - -error: Calling ArrayDerivedDefault::default() is more clear than this expression - --> $DIR/default_trait_access.rs:36:36 - | -LL | let s15: ArrayDerivedDefault = Default::default(); - | ^^^^^^^^^^^^^^^^^^ help: try: `ArrayDerivedDefault::default()` - -error: Calling TupleStructDerivedDefault::default() is more clear than this expression - --> $DIR/default_trait_access.rs:40:42 - | -LL | let s17: TupleStructDerivedDefault = Default::default(); - | ^^^^^^^^^^^^^^^^^^ help: try: `TupleStructDerivedDefault::default()` - -error: aborting due to 8 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/default_trait_access.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'default_trait_access.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/default_trait_access.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/default_trait_access.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/default_trait_access.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/default_trait_access.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/diverging_sub_expression.rs stdout ---- normalized stderr: expected stderr: error: sub-expression diverges --> $DIR/diverging_sub_expression.rs:21:10 | LL | b || diverge(); | ^^^^^^^^^ | = note: `-D clippy::diverging-sub-expression` implied by `-D warnings` error: sub-expression diverges --> $DIR/diverging_sub_expression.rs:22:10 | LL | b || A.foo(); | ^^^^^^^ error: sub-expression diverges --> $DIR/diverging_sub_expression.rs:31:26 | LL | 6 => true || return, | ^^^^^^ error: sub-expression diverges --> $DIR/diverging_sub_expression.rs:32:26 | LL | 7 => true || continue, | ^^^^^^^^ error: sub-expression diverges --> $DIR/diverging_sub_expression.rs:35:26 | LL | 3 => true || diverge(), | ^^^^^^^^^ error: sub-expression diverges --> $DIR/diverging_sub_expression.rs:40:26 | LL | _ => true || break, | ^^^^^ error: aborting due to 6 previous errors diff of stderr: -error: sub-expression diverges - --> $DIR/diverging_sub_expression.rs:21:10 - | -LL | b || diverge(); - | ^^^^^^^^^ - | - = note: `-D clippy::diverging-sub-expression` implied by `-D warnings` - -error: sub-expression diverges - --> $DIR/diverging_sub_expression.rs:22:10 - | -LL | b || A.foo(); - | ^^^^^^^ - -error: sub-expression diverges - --> $DIR/diverging_sub_expression.rs:31:26 - | -LL | 6 => true || return, - | ^^^^^^ - -error: sub-expression diverges - --> $DIR/diverging_sub_expression.rs:32:26 - | -LL | 7 => true || continue, - | ^^^^^^^^ - -error: sub-expression diverges - --> $DIR/diverging_sub_expression.rs:35:26 - | -LL | 3 => true || diverge(), - | ^^^^^^^^^ - -error: sub-expression diverges - --> $DIR/diverging_sub_expression.rs:40:26 - | -LL | _ => true || break, - | ^^^^^ - -error: aborting due to 6 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/diverging_sub_expression.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'diverging_sub_expression.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/diverging_sub_expression.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/diverging_sub_expression.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/diverging_sub_expression.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/diverging_sub_expression.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/derive.rs stdout ---- normalized stderr: expected stderr: error: you are deriving `Hash` but have implemented `PartialEq` explicitly --> $DIR/derive.rs:16:10 | LL | #[derive(Hash)] | ^^^^ | = note: #[deny(clippy::derive_hash_xor_eq)] on by default note: `PartialEq` implemented here --> $DIR/derive.rs:19:1 | LL | / impl PartialEq for Bar { LL | | fn eq(&self, _: &Bar) -> bool { LL | | true LL | | } LL | | } | |_^ error: you are deriving `Hash` but have implemented `PartialEq` explicitly --> $DIR/derive.rs:25:10 | LL | #[derive(Hash)] | ^^^^ | note: `PartialEq` implemented here --> $DIR/derive.rs:28:1 | LL | / impl PartialEq for Baz { LL | | fn eq(&self, _: &Baz) -> bool { LL | | true LL | | } LL | | } | |_^ error: you are implementing `Hash` explicitly but have derived `PartialEq` --> $DIR/derive.rs:37:1 | LL | / impl Hash for Bah { LL | | fn hash(&self, _: &mut H) {} LL | | } | |_^ | note: `PartialEq` implemented here --> $DIR/derive.rs:34:10 | LL | #[derive(PartialEq)] | ^^^^^^^^^ error: you are implementing `Clone` explicitly on a `Copy` type --> $DIR/derive.rs:44:1 | LL | / impl Clone for Qux { LL | | fn clone(&self) -> Self { LL | | Qux LL | | } LL | | } | |_^ | = note: `-D clippy::expl-impl-clone-on-copy` implied by `-D warnings` note: consider deriving `Clone` or removing `Copy` --> $DIR/derive.rs:44:1 | LL | / impl Clone for Qux { LL | | fn clone(&self) -> Self { LL | | Qux LL | | } LL | | } | |_^ error: you are implementing `Clone` explicitly on a `Copy` type --> $DIR/derive.rs:68:1 | LL | / impl<'a> Clone for Lt<'a> { LL | | fn clone(&self) -> Self { LL | | unimplemented!() LL | | } LL | | } | |_^ | note: consider deriving `Clone` or removing `Copy` --> $DIR/derive.rs:68:1 | LL | / impl<'a> Clone for Lt<'a> { LL | | fn clone(&self) -> Self { LL | | unimplemented!() LL | | } LL | | } | |_^ error: you are implementing `Clone` explicitly on a `Copy` type --> $DIR/derive.rs:80:1 | LL | / impl Clone for BigArray { LL | | fn clone(&self) -> Self { LL | | unimplemented!() LL | | } LL | | } | |_^ | note: consider deriving `Clone` or removing `Copy` --> $DIR/derive.rs:80:1 | LL | / impl Clone for BigArray { LL | | fn clone(&self) -> Self { LL | | unimplemented!() LL | | } LL | | } | |_^ error: you are implementing `Clone` explicitly on a `Copy` type --> $DIR/derive.rs:92:1 | LL | / impl Clone for FnPtr { LL | | fn clone(&self) -> Self { LL | | unimplemented!() LL | | } LL | | } | |_^ | note: consider deriving `Clone` or removing `Copy` --> $DIR/derive.rs:92:1 | LL | / impl Clone for FnPtr { LL | | fn clone(&self) -> Self { LL | | unimplemented!() LL | | } LL | | } | |_^ error: aborting due to 7 previous errors diff of stderr: -error: you are deriving `Hash` but have implemented `PartialEq` explicitly - --> $DIR/derive.rs:16:10 - | -LL | #[derive(Hash)] - | ^^^^ - | - = note: #[deny(clippy::derive_hash_xor_eq)] on by default -note: `PartialEq` implemented here - --> $DIR/derive.rs:19:1 - | -LL | / impl PartialEq for Bar { -LL | | fn eq(&self, _: &Bar) -> bool { -LL | | true -LL | | } -LL | | } - | |_^ - -error: you are deriving `Hash` but have implemented `PartialEq` explicitly - --> $DIR/derive.rs:25:10 - | -LL | #[derive(Hash)] - | ^^^^ - | -note: `PartialEq` implemented here - --> $DIR/derive.rs:28:1 - | -LL | / impl PartialEq for Baz { -LL | | fn eq(&self, _: &Baz) -> bool { -LL | | true -LL | | } -LL | | } - | |_^ - -error: you are implementing `Hash` explicitly but have derived `PartialEq` - --> $DIR/derive.rs:37:1 - | -LL | / impl Hash for Bah { -LL | | fn hash(&self, _: &mut H) {} -LL | | } - | |_^ - | -note: `PartialEq` implemented here - --> $DIR/derive.rs:34:10 - | -LL | #[derive(PartialEq)] - | ^^^^^^^^^ - -error: you are implementing `Clone` explicitly on a `Copy` type - --> $DIR/derive.rs:44:1 - | -LL | / impl Clone for Qux { -LL | | fn clone(&self) -> Self { -LL | | Qux -LL | | } -LL | | } - | |_^ - | - = note: `-D clippy::expl-impl-clone-on-copy` implied by `-D warnings` -note: consider deriving `Clone` or removing `Copy` - --> $DIR/derive.rs:44:1 - | -LL | / impl Clone for Qux { -LL | | fn clone(&self) -> Self { -LL | | Qux -LL | | } -LL | | } - | |_^ - -error: you are implementing `Clone` explicitly on a `Copy` type - --> $DIR/derive.rs:68:1 - | -LL | / impl<'a> Clone for Lt<'a> { -LL | | fn clone(&self) -> Self { -LL | | unimplemented!() -LL | | } -LL | | } - | |_^ - | -note: consider deriving `Clone` or removing `Copy` - --> $DIR/derive.rs:68:1 - | -LL | / impl<'a> Clone for Lt<'a> { -LL | | fn clone(&self) -> Self { -LL | | unimplemented!() -LL | | } -LL | | } - | |_^ - -error: you are implementing `Clone` explicitly on a `Copy` type - --> $DIR/derive.rs:80:1 - | -LL | / impl Clone for BigArray { -LL | | fn clone(&self) -> Self { -LL | | unimplemented!() -LL | | } -LL | | } - | |_^ - | -note: consider deriving `Clone` or removing `Copy` - --> $DIR/derive.rs:80:1 - | -LL | / impl Clone for BigArray { -LL | | fn clone(&self) -> Self { -LL | | unimplemented!() -LL | | } -LL | | } - | |_^ - -error: you are implementing `Clone` explicitly on a `Copy` type - --> $DIR/derive.rs:92:1 - | -LL | / impl Clone for FnPtr { -LL | | fn clone(&self) -> Self { -LL | | unimplemented!() -LL | | } -LL | | } - | |_^ - | -note: consider deriving `Clone` or removing `Copy` - --> $DIR/derive.rs:92:1 - | -LL | / impl Clone for FnPtr { -LL | | fn clone(&self) -> Self { -LL | | unimplemented!() -LL | | } -LL | | } - | |_^ - -error: aborting due to 7 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/derive.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'derive.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/derive.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/derive.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/derive.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/derive.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/dlist.rs stdout ---- normalized stderr: expected stderr: error: I see you're using a LinkedList! Perhaps you meant some other data structure? --> $DIR/dlist.rs:10:16 | LL | type Baz = LinkedList; | ^^^^^^^^^^^^^^ | = note: `-D clippy::linkedlist` implied by `-D warnings` = help: a VecDeque might work error: I see you're using a LinkedList! Perhaps you meant some other data structure? --> $DIR/dlist.rs:11:12 | LL | fn foo(LinkedList); | ^^^^^^^^^^^^^^ | = help: a VecDeque might work error: I see you're using a LinkedList! Perhaps you meant some other data structure? --> $DIR/dlist.rs:12:23 | LL | const BAR: Option>; | ^^^^^^^^^^^^^^ | = help: a VecDeque might work error: I see you're using a LinkedList! Perhaps you meant some other data structure? --> $DIR/dlist.rs:23:15 | LL | fn foo(_: LinkedList) {} | ^^^^^^^^^^^^^^ | = help: a VecDeque might work error: I see you're using a LinkedList! Perhaps you meant some other data structure? --> $DIR/dlist.rs:26:39 | LL | pub fn test(my_favourite_linked_list: LinkedList) { | ^^^^^^^^^^^^^^ | = help: a VecDeque might work error: I see you're using a LinkedList! Perhaps you meant some other data structure? --> $DIR/dlist.rs:30:29 | LL | pub fn test_ret() -> Option> { | ^^^^^^^^^^^^^^ | = help: a VecDeque might work error: aborting due to 6 previous errors diff of stderr: -error: I see you're using a LinkedList! Perhaps you meant some other data structure? - --> $DIR/dlist.rs:10:16 - | -LL | type Baz = LinkedList; - | ^^^^^^^^^^^^^^ - | - = note: `-D clippy::linkedlist` implied by `-D warnings` - = help: a VecDeque might work - -error: I see you're using a LinkedList! Perhaps you meant some other data structure? - --> $DIR/dlist.rs:11:12 - | -LL | fn foo(LinkedList); - | ^^^^^^^^^^^^^^ - | - = help: a VecDeque might work - -error: I see you're using a LinkedList! Perhaps you meant some other data structure? - --> $DIR/dlist.rs:12:23 - | -LL | const BAR: Option>; - | ^^^^^^^^^^^^^^ - | - = help: a VecDeque might work - -error: I see you're using a LinkedList! Perhaps you meant some other data structure? - --> $DIR/dlist.rs:23:15 - | -LL | fn foo(_: LinkedList) {} - | ^^^^^^^^^^^^^^ - | - = help: a VecDeque might work - -error: I see you're using a LinkedList! Perhaps you meant some other data structure? - --> $DIR/dlist.rs:26:39 - | -LL | pub fn test(my_favourite_linked_list: LinkedList) { - | ^^^^^^^^^^^^^^ - | - = help: a VecDeque might work - -error: I see you're using a LinkedList! Perhaps you meant some other data structure? - --> $DIR/dlist.rs:30:29 - | -LL | pub fn test_ret() -> Option> { - | ^^^^^^^^^^^^^^ - | - = help: a VecDeque might work - -error: aborting due to 6 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/dlist.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'dlist.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/dlist.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/dlist.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/dlist.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/dlist.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/double_parens.rs stdout ---- normalized stderr: expected stderr: error: Consider removing unnecessary double parentheses --> $DIR/double_parens.rs:15:5 | LL | ((0)) | ^^^^^ | = note: `-D clippy::double-parens` implied by `-D warnings` error: Consider removing unnecessary double parentheses --> $DIR/double_parens.rs:19:14 | LL | dummy_fn((0)); | ^^^ error: Consider removing unnecessary double parentheses --> $DIR/double_parens.rs:23:20 | LL | x.dummy_method((0)); | ^^^ error: Consider removing unnecessary double parentheses --> $DIR/double_parens.rs:27:5 | LL | ((1, 2)) | ^^^^^^^^ error: Consider removing unnecessary double parentheses --> $DIR/double_parens.rs:31:5 | LL | (()) | ^^^^ error: Consider removing unnecessary double parentheses --> $DIR/double_parens.rs:53:16 | LL | assert_eq!(((1, 2)), (1, 2), "Error"); | ^^^^^^^^ error: aborting due to 6 previous errors diff of stderr: -error: Consider removing unnecessary double parentheses - --> $DIR/double_parens.rs:15:5 - | -LL | ((0)) - | ^^^^^ - | - = note: `-D clippy::double-parens` implied by `-D warnings` - -error: Consider removing unnecessary double parentheses - --> $DIR/double_parens.rs:19:14 - | -LL | dummy_fn((0)); - | ^^^ - -error: Consider removing unnecessary double parentheses - --> $DIR/double_parens.rs:23:20 - | -LL | x.dummy_method((0)); - | ^^^ - -error: Consider removing unnecessary double parentheses - --> $DIR/double_parens.rs:27:5 - | -LL | ((1, 2)) - | ^^^^^^^^ - -error: Consider removing unnecessary double parentheses - --> $DIR/double_parens.rs:31:5 - | -LL | (()) - | ^^^^ - -error: Consider removing unnecessary double parentheses - --> $DIR/double_parens.rs:53:16 - | -LL | assert_eq!(((1, 2)), (1, 2), "Error"); - | ^^^^^^^^ - -error: aborting due to 6 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/double_parens.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'double_parens.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/double_parens.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/double_parens.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/double_parens.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/double_parens.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/drop_forget_copy.rs stdout ---- normalized stderr: expected stderr: error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact. --> $DIR/drop_forget_copy.rs:33:5 | LL | drop(s1); | ^^^^^^^^ | = note: `-D clippy::drop-copy` implied by `-D warnings` note: argument has type SomeStruct --> $DIR/drop_forget_copy.rs:33:10 | LL | drop(s1); | ^^ error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact. --> $DIR/drop_forget_copy.rs:34:5 | LL | drop(s2); | ^^^^^^^^ | note: argument has type SomeStruct --> $DIR/drop_forget_copy.rs:34:10 | LL | drop(s2); | ^^ error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact. --> $DIR/drop_forget_copy.rs:36:5 | LL | drop(s4); | ^^^^^^^^ | note: argument has type SomeStruct --> $DIR/drop_forget_copy.rs:36:10 | LL | drop(s4); | ^^ error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact. --> $DIR/drop_forget_copy.rs:39:5 | LL | forget(s1); | ^^^^^^^^^^ | = note: `-D clippy::forget-copy` implied by `-D warnings` note: argument has type SomeStruct --> $DIR/drop_forget_copy.rs:39:12 | LL | forget(s1); | ^^ error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact. --> $DIR/drop_forget_copy.rs:40:5 | LL | forget(s2); | ^^^^^^^^^^ | note: argument has type SomeStruct --> $DIR/drop_forget_copy.rs:40:12 | LL | forget(s2); | ^^ error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact. --> $DIR/drop_forget_copy.rs:42:5 | LL | forget(s4); | ^^^^^^^^^^ | note: argument has type SomeStruct --> $DIR/drop_forget_copy.rs:42:12 | LL | forget(s4); | ^^ error: aborting due to 6 previous errors diff of stderr: -error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact. - --> $DIR/drop_forget_copy.rs:33:5 - | -LL | drop(s1); - | ^^^^^^^^ - | - = note: `-D clippy::drop-copy` implied by `-D warnings` -note: argument has type SomeStruct - --> $DIR/drop_forget_copy.rs:33:10 - | -LL | drop(s1); - | ^^ - -error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact. - --> $DIR/drop_forget_copy.rs:34:5 - | -LL | drop(s2); - | ^^^^^^^^ - | -note: argument has type SomeStruct - --> $DIR/drop_forget_copy.rs:34:10 - | -LL | drop(s2); - | ^^ - -error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact. - --> $DIR/drop_forget_copy.rs:36:5 - | -LL | drop(s4); - | ^^^^^^^^ - | -note: argument has type SomeStruct - --> $DIR/drop_forget_copy.rs:36:10 - | -LL | drop(s4); - | ^^ - -error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact. - --> $DIR/drop_forget_copy.rs:39:5 - | -LL | forget(s1); - | ^^^^^^^^^^ - | - = note: `-D clippy::forget-copy` implied by `-D warnings` -note: argument has type SomeStruct - --> $DIR/drop_forget_copy.rs:39:12 - | -LL | forget(s1); - | ^^ - -error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact. - --> $DIR/drop_forget_copy.rs:40:5 - | -LL | forget(s2); - | ^^^^^^^^^^ - | -note: argument has type SomeStruct - --> $DIR/drop_forget_copy.rs:40:12 - | -LL | forget(s2); - | ^^ - -error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact. - --> $DIR/drop_forget_copy.rs:42:5 - | -LL | forget(s4); - | ^^^^^^^^^^ - | -note: argument has type SomeStruct - --> $DIR/drop_forget_copy.rs:42:12 - | -LL | forget(s4); - | ^^ - -error: aborting due to 6 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/drop_forget_copy.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'drop_forget_copy.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/drop_forget_copy.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/drop_forget_copy.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/drop_forget_copy.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/drop_forget_copy.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/duration_subsec.rs stdout ---- normalized stderr: expected stderr: error: Calling `subsec_millis()` is more concise than this calculation --> $DIR/duration_subsec.rs:10:24 | LL | let bad_millis_1 = dur.subsec_micros() / 1_000; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_millis()` | = note: `-D clippy::duration-subsec` implied by `-D warnings` error: Calling `subsec_millis()` is more concise than this calculation --> $DIR/duration_subsec.rs:11:24 | LL | let bad_millis_2 = dur.subsec_nanos() / 1_000_000; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_millis()` error: Calling `subsec_micros()` is more concise than this calculation --> $DIR/duration_subsec.rs:16:22 | LL | let bad_micros = dur.subsec_nanos() / 1_000; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_micros()` error: Calling `subsec_micros()` is more concise than this calculation --> $DIR/duration_subsec.rs:21:13 | LL | let _ = (&dur).subsec_nanos() / 1_000; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&dur).subsec_micros()` error: Calling `subsec_micros()` is more concise than this calculation --> $DIR/duration_subsec.rs:25:13 | LL | let _ = dur.subsec_nanos() / NANOS_IN_MICRO; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_micros()` error: aborting due to 5 previous errors diff of stderr: -error: Calling `subsec_millis()` is more concise than this calculation - --> $DIR/duration_subsec.rs:10:24 - | -LL | let bad_millis_1 = dur.subsec_micros() / 1_000; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_millis()` - | - = note: `-D clippy::duration-subsec` implied by `-D warnings` - -error: Calling `subsec_millis()` is more concise than this calculation - --> $DIR/duration_subsec.rs:11:24 - | -LL | let bad_millis_2 = dur.subsec_nanos() / 1_000_000; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_millis()` - -error: Calling `subsec_micros()` is more concise than this calculation - --> $DIR/duration_subsec.rs:16:22 - | -LL | let bad_micros = dur.subsec_nanos() / 1_000; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_micros()` - -error: Calling `subsec_micros()` is more concise than this calculation - --> $DIR/duration_subsec.rs:21:13 - | -LL | let _ = (&dur).subsec_nanos() / 1_000; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&dur).subsec_micros()` - -error: Calling `subsec_micros()` is more concise than this calculation - --> $DIR/duration_subsec.rs:25:13 - | -LL | let _ = dur.subsec_nanos() / NANOS_IN_MICRO; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_micros()` - -error: aborting due to 5 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/duration_subsec.stderr normalized fixed: // run-rustfix #![allow(dead_code)] #![warn(clippy::duration_subsec)] use std::time::Duration; fn main() { let dur = Duration::new(5, 0); let bad_millis_1 = dur.subsec_micros() / 1_000; let bad_millis_2 = dur.subsec_nanos() / 1_000_000; let good_millis = dur.subsec_millis(); assert_eq!(bad_millis_1, good_millis); assert_eq!(bad_millis_2, good_millis); let bad_micros = dur.subsec_nanos() / 1_000; let good_micros = dur.subsec_micros(); assert_eq!(bad_micros, good_micros); // Handle refs let _ = (&dur).subsec_nanos() / 1_000; // Handle constants const NANOS_IN_MICRO: u32 = 1_000; let _ = dur.subsec_nanos() / NANOS_IN_MICRO; // Other literals aren't linted let _ = dur.subsec_nanos() / 699; } expected fixed: // run-rustfix #![allow(dead_code)] #![warn(clippy::duration_subsec)] use std::time::Duration; fn main() { let dur = Duration::new(5, 0); let bad_millis_1 = dur.subsec_millis(); let bad_millis_2 = dur.subsec_millis(); let good_millis = dur.subsec_millis(); assert_eq!(bad_millis_1, good_millis); assert_eq!(bad_millis_2, good_millis); let bad_micros = dur.subsec_micros(); let good_micros = dur.subsec_micros(); assert_eq!(bad_micros, good_micros); // Handle refs let _ = (&dur).subsec_micros(); // Handle constants const NANOS_IN_MICRO: u32 = 1_000; let _ = dur.subsec_micros(); // Other literals aren't linted let _ = dur.subsec_nanos() / 699; } diff of fixed: // run-rustfix #![allow(dead_code)] #![warn(clippy::duration_subsec)] use std::time::Duration; fn main() { let dur = Duration::new(5, 0); - let bad_millis_1 = dur.subsec_millis(); - let bad_millis_2 = dur.subsec_millis(); + let bad_millis_1 = dur.subsec_micros() / 1_000; + let bad_millis_2 = dur.subsec_nanos() / 1_000_000; let good_millis = dur.subsec_millis(); assert_eq!(bad_millis_1, good_millis); assert_eq!(bad_millis_2, good_millis); - let bad_micros = dur.subsec_micros(); + let bad_micros = dur.subsec_nanos() / 1_000; let good_micros = dur.subsec_micros(); assert_eq!(bad_micros, good_micros); // Handle refs - let _ = (&dur).subsec_micros(); + let _ = (&dur).subsec_nanos() / 1_000; // Handle constants const NANOS_IN_MICRO: u32 = 1_000; - let _ = dur.subsec_micros(); + let _ = dur.subsec_nanos() / NANOS_IN_MICRO; // Other literals aren't linted let _ = dur.subsec_nanos() / 699; } The actual fixed differed from the expected fixed. Actual fixed saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/duration_subsec.fixed To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'duration_subsec.rs' error: 2 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/duration_subsec.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/duration_subsec.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/duration_subsec.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/duration_subsec.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/else_if_without_else.rs stdout ---- normalized stderr: expected stderr: error: if expression with an `else if`, but without a final `else` --> $DIR/else_if_without_else.rs:45:12 | LL | } else if bla2() { | ____________^ LL | | //~ ERROR else if without else LL | | println!("else if"); LL | | } | |_____^ | = note: `-D clippy::else-if-without-else` implied by `-D warnings` = help: add an `else` block here error: if expression with an `else if`, but without a final `else` --> $DIR/else_if_without_else.rs:54:12 | LL | } else if bla3() { | ____________^ LL | | //~ ERROR else if without else LL | | println!("else if 2"); LL | | } | |_____^ | = help: add an `else` block here error: aborting due to 2 previous errors diff of stderr: -error: if expression with an `else if`, but without a final `else` - --> $DIR/else_if_without_else.rs:45:12 - | -LL | } else if bla2() { - | ____________^ -LL | | //~ ERROR else if without else -LL | | println!("else if"); -LL | | } - | |_____^ - | - = note: `-D clippy::else-if-without-else` implied by `-D warnings` - = help: add an `else` block here - -error: if expression with an `else if`, but without a final `else` - --> $DIR/else_if_without_else.rs:54:12 - | -LL | } else if bla3() { - | ____________^ -LL | | //~ ERROR else if without else -LL | | println!("else if 2"); -LL | | } - | |_____^ - | - = help: add an `else` block here - -error: aborting due to 2 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/else_if_without_else.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'else_if_without_else.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/else_if_without_else.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/else_if_without_else.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/else_if_without_else.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/else_if_without_else.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/entry.rs stdout ---- normalized stderr: expected stderr: error: usage of `contains_key` followed by `insert` on a `HashMap` --> $DIR/entry.rs:10:5 | LL | / if !m.contains_key(&k) { LL | | m.insert(k, v); LL | | } | |_____^ help: consider using: `m.entry(k).or_insert(v)` | = note: `-D clippy::map-entry` implied by `-D warnings` error: usage of `contains_key` followed by `insert` on a `HashMap` --> $DIR/entry.rs:16:5 | LL | / if !m.contains_key(&k) { LL | | foo(); LL | | m.insert(k, v); LL | | } | |_____^ help: consider using: `m.entry(k)` error: usage of `contains_key` followed by `insert` on a `HashMap` --> $DIR/entry.rs:23:5 | LL | / if !m.contains_key(&k) { LL | | m.insert(k, v) LL | | } else { LL | | None LL | | }; | |_____^ help: consider using: `m.entry(k)` error: usage of `contains_key` followed by `insert` on a `HashMap` --> $DIR/entry.rs:31:5 | LL | / if m.contains_key(&k) { LL | | None LL | | } else { LL | | m.insert(k, v) LL | | }; | |_____^ help: consider using: `m.entry(k)` error: usage of `contains_key` followed by `insert` on a `HashMap` --> $DIR/entry.rs:39:5 | LL | / if !m.contains_key(&k) { LL | | foo(); LL | | m.insert(k, v) LL | | } else { LL | | None LL | | }; | |_____^ help: consider using: `m.entry(k)` error: usage of `contains_key` followed by `insert` on a `HashMap` --> $DIR/entry.rs:48:5 | LL | / if m.contains_key(&k) { LL | | None LL | | } else { LL | | foo(); LL | | m.insert(k, v) LL | | }; | |_____^ help: consider using: `m.entry(k)` error: usage of `contains_key` followed by `insert` on a `BTreeMap` --> $DIR/entry.rs:57:5 | LL | / if !m.contains_key(&k) { LL | | foo(); LL | | m.insert(k, v) LL | | } else { LL | | None LL | | }; | |_____^ help: consider using: `m.entry(k)` error: aborting due to 7 previous errors diff of stderr: -error: usage of `contains_key` followed by `insert` on a `HashMap` - --> $DIR/entry.rs:10:5 - | -LL | / if !m.contains_key(&k) { -LL | | m.insert(k, v); -LL | | } - | |_____^ help: consider using: `m.entry(k).or_insert(v)` - | - = note: `-D clippy::map-entry` implied by `-D warnings` - -error: usage of `contains_key` followed by `insert` on a `HashMap` - --> $DIR/entry.rs:16:5 - | -LL | / if !m.contains_key(&k) { -LL | | foo(); -LL | | m.insert(k, v); -LL | | } - | |_____^ help: consider using: `m.entry(k)` - -error: usage of `contains_key` followed by `insert` on a `HashMap` - --> $DIR/entry.rs:23:5 - | -LL | / if !m.contains_key(&k) { -LL | | m.insert(k, v) -LL | | } else { -LL | | None -LL | | }; - | |_____^ help: consider using: `m.entry(k)` - -error: usage of `contains_key` followed by `insert` on a `HashMap` - --> $DIR/entry.rs:31:5 - | -LL | / if m.contains_key(&k) { -LL | | None -LL | | } else { -LL | | m.insert(k, v) -LL | | }; - | |_____^ help: consider using: `m.entry(k)` - -error: usage of `contains_key` followed by `insert` on a `HashMap` - --> $DIR/entry.rs:39:5 - | -LL | / if !m.contains_key(&k) { -LL | | foo(); -LL | | m.insert(k, v) -LL | | } else { -LL | | None -LL | | }; - | |_____^ help: consider using: `m.entry(k)` - -error: usage of `contains_key` followed by `insert` on a `HashMap` - --> $DIR/entry.rs:48:5 - | -LL | / if m.contains_key(&k) { -LL | | None -LL | | } else { -LL | | foo(); -LL | | m.insert(k, v) -LL | | }; - | |_____^ help: consider using: `m.entry(k)` - -error: usage of `contains_key` followed by `insert` on a `BTreeMap` - --> $DIR/entry.rs:57:5 - | -LL | / if !m.contains_key(&k) { -LL | | foo(); -LL | | m.insert(k, v) -LL | | } else { -LL | | None -LL | | }; - | |_____^ help: consider using: `m.entry(k)` - -error: aborting due to 7 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/entry.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'entry.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/entry.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/entry.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/entry.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/entry.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/empty_line_after_outer_attribute.rs stdout ---- normalized stderr: expected stderr: error: Found an empty line after an outer attribute. Perhaps you forgot to add a '!' to make it an inner attribute? --> $DIR/empty_line_after_outer_attribute.rs:7:1 | LL | / #[crate_type = "lib"] LL | | LL | | /// some comment LL | | fn with_one_newline_and_comment() { assert!(true) } | |_ | = note: `-D clippy::empty-line-after-outer-attr` implied by `-D warnings` error: Found an empty line after an outer attribute. Perhaps you forgot to add a '!' to make it an inner attribute? --> $DIR/empty_line_after_outer_attribute.rs:19:1 | LL | / #[crate_type = "lib"] LL | | LL | | fn with_one_newline() { assert!(true) } | |_ error: Found an empty line after an outer attribute. Perhaps you forgot to add a '!' to make it an inner attribute? --> $DIR/empty_line_after_outer_attribute.rs:24:1 | LL | / #[crate_type = "lib"] LL | | LL | | LL | | fn with_two_newlines() { assert!(true) } | |_ error: Found an empty line after an outer attribute. Perhaps you forgot to add a '!' to make it an inner attribute? --> $DIR/empty_line_after_outer_attribute.rs:31:1 | LL | / #[crate_type = "lib"] LL | | LL | | enum Baz { | |_ error: Found an empty line after an outer attribute. Perhaps you forgot to add a '!' to make it an inner attribute? --> $DIR/empty_line_after_outer_attribute.rs:39:1 | LL | / #[crate_type = "lib"] LL | | LL | | struct Foo { | |_ error: Found an empty line after an outer attribute. Perhaps you forgot to add a '!' to make it an inner attribute? --> $DIR/empty_line_after_outer_attribute.rs:47:1 | LL | / #[crate_type = "lib"] LL | | LL | | mod foo { | |_ error: aborting due to 6 previous errors diff of stderr: -error: Found an empty line after an outer attribute. Perhaps you forgot to add a '!' to make it an inner attribute? - --> $DIR/empty_line_after_outer_attribute.rs:7:1 - | -LL | / #[crate_type = "lib"] -LL | | -LL | | /// some comment -LL | | fn with_one_newline_and_comment() { assert!(true) } - | |_ - | - = note: `-D clippy::empty-line-after-outer-attr` implied by `-D warnings` - -error: Found an empty line after an outer attribute. Perhaps you forgot to add a '!' to make it an inner attribute? - --> $DIR/empty_line_after_outer_attribute.rs:19:1 - | -LL | / #[crate_type = "lib"] -LL | | -LL | | fn with_one_newline() { assert!(true) } - | |_ - -error: Found an empty line after an outer attribute. Perhaps you forgot to add a '!' to make it an inner attribute? - --> $DIR/empty_line_after_outer_attribute.rs:24:1 - | -LL | / #[crate_type = "lib"] -LL | | -LL | | -LL | | fn with_two_newlines() { assert!(true) } - | |_ - -error: Found an empty line after an outer attribute. Perhaps you forgot to add a '!' to make it an inner attribute? - --> $DIR/empty_line_after_outer_attribute.rs:31:1 - | -LL | / #[crate_type = "lib"] -LL | | -LL | | enum Baz { - | |_ - -error: Found an empty line after an outer attribute. Perhaps you forgot to add a '!' to make it an inner attribute? - --> $DIR/empty_line_after_outer_attribute.rs:39:1 - | -LL | / #[crate_type = "lib"] -LL | | -LL | | struct Foo { - | |_ - -error: Found an empty line after an outer attribute. Perhaps you forgot to add a '!' to make it an inner attribute? - --> $DIR/empty_line_after_outer_attribute.rs:47:1 - | -LL | / #[crate_type = "lib"] -LL | | -LL | | mod foo { - | |_ - -error: aborting due to 6 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/empty_line_after_outer_attribute.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'empty_line_after_outer_attribute.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/empty_line_after_outer_attribute.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/empty_line_after_outer_attribute.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/empty_line_after_outer_attribute.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/empty_line_after_outer_attribute.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/eq_op.rs stdout ---- normalized stderr: expected stderr: error: this boolean expression can be simplified --> $DIR/eq_op.rs:35:5 | LL | true && true; | ^^^^^^^^^^^^ help: try: `true` | = note: `-D clippy::nonminimal-bool` implied by `-D warnings` error: this boolean expression can be simplified --> $DIR/eq_op.rs:37:5 | LL | true || true; | ^^^^^^^^^^^^ help: try: `true` error: this boolean expression can be simplified --> $DIR/eq_op.rs:43:5 | LL | a == b && b == a; | ^^^^^^^^^^^^^^^^ help: try: `a == b` error: this boolean expression can be simplified --> $DIR/eq_op.rs:44:5 | LL | a != b && b != a; | ^^^^^^^^^^^^^^^^ help: try: `a != b` error: this boolean expression can be simplified --> $DIR/eq_op.rs:45:5 | LL | a < b && b > a; | ^^^^^^^^^^^^^^ help: try: `a < b` error: this boolean expression can be simplified --> $DIR/eq_op.rs:46:5 | LL | a <= b && b >= a; | ^^^^^^^^^^^^^^^^ help: try: `a <= b` error: equal expressions as operands to `==` --> $DIR/eq_op.rs:8:5 | LL | 1 == 1; | ^^^^^^ | = note: `-D clippy::eq-op` implied by `-D warnings` error: equal expressions as operands to `==` --> $DIR/eq_op.rs:9:5 | LL | "no" == "no"; | ^^^^^^^^^^^^ error: equal expressions as operands to `!=` --> $DIR/eq_op.rs:11:5 | LL | false != false; | ^^^^^^^^^^^^^^ error: equal expressions as operands to `<` --> $DIR/eq_op.rs:12:5 | LL | 1.5 < 1.5; | ^^^^^^^^^ error: equal expressions as operands to `>=` --> $DIR/eq_op.rs:13:5 | LL | 1u64 >= 1u64; | ^^^^^^^^^^^^ error: equal expressions as operands to `&` --> $DIR/eq_op.rs:16:5 | LL | (1 as u64) & (1 as u64); | ^^^^^^^^^^^^^^^^^^^^^^^ error: equal expressions as operands to `^` --> $DIR/eq_op.rs:17:5 | LL | 1 ^ ((((((1)))))); | ^^^^^^^^^^^^^^^^^ error: equal expressions as operands to `<` --> $DIR/eq_op.rs:20:5 | LL | (-(2) < -(2)); | ^^^^^^^^^^^^^ error: equal expressions as operands to `==` --> $DIR/eq_op.rs:21:5 | LL | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: equal expressions as operands to `&` --> $DIR/eq_op.rs:21:6 | LL | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1)); | ^^^^^^^^^^^^^^^^^ error: equal expressions as operands to `&` --> $DIR/eq_op.rs:21:27 | LL | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1)); | ^^^^^^^^^^^^^^^^^ error: equal expressions as operands to `==` --> $DIR/eq_op.rs:22:5 | LL | (1 * 2) + (3 * 4) == 1 * 2 + 3 * 4; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: equal expressions as operands to `!=` --> $DIR/eq_op.rs:25:5 | LL | ([1] != [1]); | ^^^^^^^^^^^^ error: equal expressions as operands to `!=` --> $DIR/eq_op.rs:26:5 | LL | ((1, 2) != (1, 2)); | ^^^^^^^^^^^^^^^^^^ error: equal expressions as operands to `==` --> $DIR/eq_op.rs:30:5 | LL | 1 + 1 == 2; | ^^^^^^^^^^ error: equal expressions as operands to `==` --> $DIR/eq_op.rs:31:5 | LL | 1 - 1 == 0; | ^^^^^^^^^^ error: equal expressions as operands to `-` --> $DIR/eq_op.rs:31:5 | LL | 1 - 1 == 0; | ^^^^^ error: equal expressions as operands to `-` --> $DIR/eq_op.rs:33:5 | LL | 1 - 1; | ^^^^^ error: equal expressions as operands to `/` --> $DIR/eq_op.rs:34:5 | LL | 1 / 1; | ^^^^^ error: equal expressions as operands to `&&` --> $DIR/eq_op.rs:35:5 | LL | true && true; | ^^^^^^^^^^^^ error: equal expressions as operands to `||` --> $DIR/eq_op.rs:37:5 | LL | true || true; | ^^^^^^^^^^^^ error: equal expressions as operands to `&&` --> $DIR/eq_op.rs:43:5 | LL | a == b && b == a; | ^^^^^^^^^^^^^^^^ error: equal expressions as operands to `&&` --> $DIR/eq_op.rs:44:5 | LL | a != b && b != a; | ^^^^^^^^^^^^^^^^ error: equal expressions as operands to `&&` --> $DIR/eq_op.rs:45:5 | LL | a < b && b > a; | ^^^^^^^^^^^^^^ error: equal expressions as operands to `&&` --> $DIR/eq_op.rs:46:5 | LL | a <= b && b >= a; | ^^^^^^^^^^^^^^^^ error: equal expressions as operands to `==` --> $DIR/eq_op.rs:49:5 | LL | a == a; | ^^^^^^ error: taken reference of right operand --> $DIR/eq_op.rs:87:13 | LL | let z = x & &y; | ^^^^-- | | | help: use the right value directly: `y` | = note: `-D clippy::op-ref` implied by `-D warnings` error: equal expressions as operands to `/` --> $DIR/eq_op.rs:95:20 | LL | const D: u32 = A / A; | ^^^^^ error: aborting due to 34 previous errors diff of stderr: -error: this boolean expression can be simplified - --> $DIR/eq_op.rs:35:5 - | -LL | true && true; - | ^^^^^^^^^^^^ help: try: `true` - | - = note: `-D clippy::nonminimal-bool` implied by `-D warnings` - -error: this boolean expression can be simplified - --> $DIR/eq_op.rs:37:5 - | -LL | true || true; - | ^^^^^^^^^^^^ help: try: `true` - -error: this boolean expression can be simplified - --> $DIR/eq_op.rs:43:5 - | -LL | a == b && b == a; - | ^^^^^^^^^^^^^^^^ help: try: `a == b` - -error: this boolean expression can be simplified - --> $DIR/eq_op.rs:44:5 - | -LL | a != b && b != a; - | ^^^^^^^^^^^^^^^^ help: try: `a != b` - -error: this boolean expression can be simplified - --> $DIR/eq_op.rs:45:5 - | -LL | a < b && b > a; - | ^^^^^^^^^^^^^^ help: try: `a < b` - -error: this boolean expression can be simplified - --> $DIR/eq_op.rs:46:5 - | -LL | a <= b && b >= a; - | ^^^^^^^^^^^^^^^^ help: try: `a <= b` - -error: equal expressions as operands to `==` - --> $DIR/eq_op.rs:8:5 - | -LL | 1 == 1; - | ^^^^^^ - | - = note: `-D clippy::eq-op` implied by `-D warnings` - -error: equal expressions as operands to `==` - --> $DIR/eq_op.rs:9:5 - | -LL | "no" == "no"; - | ^^^^^^^^^^^^ - -error: equal expressions as operands to `!=` - --> $DIR/eq_op.rs:11:5 - | -LL | false != false; - | ^^^^^^^^^^^^^^ - -error: equal expressions as operands to `<` - --> $DIR/eq_op.rs:12:5 - | -LL | 1.5 < 1.5; - | ^^^^^^^^^ - -error: equal expressions as operands to `>=` - --> $DIR/eq_op.rs:13:5 - | -LL | 1u64 >= 1u64; - | ^^^^^^^^^^^^ - -error: equal expressions as operands to `&` - --> $DIR/eq_op.rs:16:5 - | -LL | (1 as u64) & (1 as u64); - | ^^^^^^^^^^^^^^^^^^^^^^^ - -error: equal expressions as operands to `^` - --> $DIR/eq_op.rs:17:5 - | -LL | 1 ^ ((((((1)))))); - | ^^^^^^^^^^^^^^^^^ - -error: equal expressions as operands to `<` - --> $DIR/eq_op.rs:20:5 - | -LL | (-(2) < -(2)); - | ^^^^^^^^^^^^^ - -error: equal expressions as operands to `==` - --> $DIR/eq_op.rs:21:5 - | -LL | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: equal expressions as operands to `&` - --> $DIR/eq_op.rs:21:6 - | -LL | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1)); - | ^^^^^^^^^^^^^^^^^ - -error: equal expressions as operands to `&` - --> $DIR/eq_op.rs:21:27 - | -LL | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1)); - | ^^^^^^^^^^^^^^^^^ - -error: equal expressions as operands to `==` - --> $DIR/eq_op.rs:22:5 - | -LL | (1 * 2) + (3 * 4) == 1 * 2 + 3 * 4; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: equal expressions as operands to `!=` - --> $DIR/eq_op.rs:25:5 - | -LL | ([1] != [1]); - | ^^^^^^^^^^^^ - -error: equal expressions as operands to `!=` - --> $DIR/eq_op.rs:26:5 - | -LL | ((1, 2) != (1, 2)); - | ^^^^^^^^^^^^^^^^^^ - -error: equal expressions as operands to `==` - --> $DIR/eq_op.rs:30:5 - | -LL | 1 + 1 == 2; - | ^^^^^^^^^^ - -error: equal expressions as operands to `==` - --> $DIR/eq_op.rs:31:5 - | -LL | 1 - 1 == 0; - | ^^^^^^^^^^ - -error: equal expressions as operands to `-` - --> $DIR/eq_op.rs:31:5 - | -LL | 1 - 1 == 0; - | ^^^^^ - -error: equal expressions as operands to `-` - --> $DIR/eq_op.rs:33:5 - | -LL | 1 - 1; - | ^^^^^ - -error: equal expressions as operands to `/` - --> $DIR/eq_op.rs:34:5 - | -LL | 1 / 1; - | ^^^^^ - -error: equal expressions as operands to `&&` - --> $DIR/eq_op.rs:35:5 - | -LL | true && true; - | ^^^^^^^^^^^^ - -error: equal expressions as operands to `||` - --> $DIR/eq_op.rs:37:5 - | -LL | true || true; - | ^^^^^^^^^^^^ - -error: equal expressions as operands to `&&` - --> $DIR/eq_op.rs:43:5 - | -LL | a == b && b == a; - | ^^^^^^^^^^^^^^^^ - -error: equal expressions as operands to `&&` - --> $DIR/eq_op.rs:44:5 - | -LL | a != b && b != a; - | ^^^^^^^^^^^^^^^^ - -error: equal expressions as operands to `&&` - --> $DIR/eq_op.rs:45:5 - | -LL | a < b && b > a; - | ^^^^^^^^^^^^^^ - -error: equal expressions as operands to `&&` - --> $DIR/eq_op.rs:46:5 - | -LL | a <= b && b >= a; - | ^^^^^^^^^^^^^^^^ - -error: equal expressions as operands to `==` - --> $DIR/eq_op.rs:49:5 - | -LL | a == a; - | ^^^^^^ - -error: taken reference of right operand - --> $DIR/eq_op.rs:87:13 - | -LL | let z = x & &y; - | ^^^^-- - | | - | help: use the right value directly: `y` - | - = note: `-D clippy::op-ref` implied by `-D warnings` - -error: equal expressions as operands to `/` - --> $DIR/eq_op.rs:95:20 - | -LL | const D: u32 = A / A; - | ^^^^^ - -error: aborting due to 34 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/eq_op.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'eq_op.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/eq_op.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/eq_op.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/eq_op.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/eq_op.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/escape_analysis.rs stdout ---- normalized stderr: expected stderr: error: local variable doesn't need to be boxed here --> $DIR/escape_analysis.rs:34:13 | LL | fn warn_arg(x: Box) { | ^ | = note: `-D clippy::boxed-local` implied by `-D warnings` error: local variable doesn't need to be boxed here --> $DIR/escape_analysis.rs:125:12 | LL | pub fn new(_needs_name: Box>) -> () {} | ^^^^^^^^^^^ error: local variable doesn't need to be boxed here --> $DIR/escape_analysis.rs:165:23 | LL | fn closure_borrow(x: Box) { | ^ error: aborting due to 3 previous errors diff of stderr: -error: local variable doesn't need to be boxed here - --> $DIR/escape_analysis.rs:34:13 - | -LL | fn warn_arg(x: Box) { - | ^ - | - = note: `-D clippy::boxed-local` implied by `-D warnings` - -error: local variable doesn't need to be boxed here - --> $DIR/escape_analysis.rs:125:12 - | -LL | pub fn new(_needs_name: Box>) -> () {} - | ^^^^^^^^^^^ - -error: local variable doesn't need to be boxed here - --> $DIR/escape_analysis.rs:165:23 - | -LL | fn closure_borrow(x: Box) { - | ^ - -error: aborting due to 3 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/escape_analysis.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'escape_analysis.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/escape_analysis.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/escape_analysis.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/escape_analysis.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/escape_analysis.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/eta.rs stdout ---- normalized stderr: expected stderr: error: redundant closure found --> $DIR/eta.rs:19:27 | LL | let a = Some(1u8).map(|a| foo(a)); | ^^^^^^^^^^ help: remove closure as shown: `foo` | = note: `-D clippy::redundant-closure` implied by `-D warnings` error: redundant closure found --> $DIR/eta.rs:20:10 | LL | meta(|a| foo(a)); | ^^^^^^^^^^ help: remove closure as shown: `foo` error: redundant closure found --> $DIR/eta.rs:21:27 | LL | let c = Some(1u8).map(|a| {1+2; foo}(a)); | ^^^^^^^^^^^^^^^^^ help: remove closure as shown: `{1+2; foo}` error: this expression borrows a reference that is immediately dereferenced by the compiler --> $DIR/eta.rs:23:21 | LL | all(&[1, 2, 3], &&2, |x, y| below(x, y)); //is adjusted | ^^^ help: change this to: `&2` | = note: `-D clippy::needless-borrow` implied by `-D warnings` error: redundant closure found --> $DIR/eta.rs:30:27 | LL | let e = Some(1u8).map(|a| generic(a)); | ^^^^^^^^^^^^^^ help: remove closure as shown: `generic` error: redundant closure found --> $DIR/eta.rs:73:51 | LL | let e = Some(TestStruct { some_ref: &i }).map(|a| a.foo()); | ^^^^^^^^^^^ help: remove closure as shown: `TestStruct::foo` | = note: `-D clippy::redundant-closure-for-method-calls` implied by `-D warnings` error: redundant closure found --> $DIR/eta.rs:75:51 | LL | let e = Some(TestStruct { some_ref: &i }).map(|a| a.trait_foo()); | ^^^^^^^^^^^^^^^^^ help: remove closure as shown: `TestTrait::trait_foo` error: redundant closure found --> $DIR/eta.rs:78:42 | LL | let e = Some(&mut vec![1, 2, 3]).map(|v| v.clear()); | ^^^^^^^^^^^^^ help: remove closure as shown: `std::vec::Vec::clear` error: redundant closure found --> $DIR/eta.rs:83:29 | LL | let e = Some("str").map(|s| s.to_string()); | ^^^^^^^^^^^^^^^^^ help: remove closure as shown: `std::string::ToString::to_string` error: redundant closure found --> $DIR/eta.rs:85:27 | LL | let e = Some('a').map(|s| s.to_uppercase()); | ^^^^^^^^^^^^^^^^^^^^ help: remove closure as shown: `char::to_uppercase` error: redundant closure found --> $DIR/eta.rs:88:65 | LL | let e: std::vec::Vec = vec!['a', 'b', 'c'].iter().map(|c| c.to_ascii_uppercase()).collect(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove closure as shown: `char::to_ascii_uppercase` error: aborting due to 11 previous errors diff of stderr: -error: redundant closure found - --> $DIR/eta.rs:19:27 - | -LL | let a = Some(1u8).map(|a| foo(a)); - | ^^^^^^^^^^ help: remove closure as shown: `foo` - | - = note: `-D clippy::redundant-closure` implied by `-D warnings` - -error: redundant closure found - --> $DIR/eta.rs:20:10 - | -LL | meta(|a| foo(a)); - | ^^^^^^^^^^ help: remove closure as shown: `foo` - -error: redundant closure found - --> $DIR/eta.rs:21:27 - | -LL | let c = Some(1u8).map(|a| {1+2; foo}(a)); - | ^^^^^^^^^^^^^^^^^ help: remove closure as shown: `{1+2; foo}` - -error: this expression borrows a reference that is immediately dereferenced by the compiler - --> $DIR/eta.rs:23:21 - | -LL | all(&[1, 2, 3], &&2, |x, y| below(x, y)); //is adjusted - | ^^^ help: change this to: `&2` - | - = note: `-D clippy::needless-borrow` implied by `-D warnings` - -error: redundant closure found - --> $DIR/eta.rs:30:27 - | -LL | let e = Some(1u8).map(|a| generic(a)); - | ^^^^^^^^^^^^^^ help: remove closure as shown: `generic` - -error: redundant closure found - --> $DIR/eta.rs:73:51 - | -LL | let e = Some(TestStruct { some_ref: &i }).map(|a| a.foo()); - | ^^^^^^^^^^^ help: remove closure as shown: `TestStruct::foo` - | - = note: `-D clippy::redundant-closure-for-method-calls` implied by `-D warnings` - -error: redundant closure found - --> $DIR/eta.rs:75:51 - | -LL | let e = Some(TestStruct { some_ref: &i }).map(|a| a.trait_foo()); - | ^^^^^^^^^^^^^^^^^ help: remove closure as shown: `TestTrait::trait_foo` - -error: redundant closure found - --> $DIR/eta.rs:78:42 - | -LL | let e = Some(&mut vec![1, 2, 3]).map(|v| v.clear()); - | ^^^^^^^^^^^^^ help: remove closure as shown: `std::vec::Vec::clear` - -error: redundant closure found - --> $DIR/eta.rs:83:29 - | -LL | let e = Some("str").map(|s| s.to_string()); - | ^^^^^^^^^^^^^^^^^ help: remove closure as shown: `std::string::ToString::to_string` - -error: redundant closure found - --> $DIR/eta.rs:85:27 - | -LL | let e = Some('a').map(|s| s.to_uppercase()); - | ^^^^^^^^^^^^^^^^^^^^ help: remove closure as shown: `char::to_uppercase` - -error: redundant closure found - --> $DIR/eta.rs:88:65 - | -LL | let e: std::vec::Vec = vec!['a', 'b', 'c'].iter().map(|c| c.to_ascii_uppercase()).collect(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove closure as shown: `char::to_ascii_uppercase` - -error: aborting due to 11 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/eta.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'eta.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/eta.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/eta.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/eta.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/eta.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/float_cmp_const.rs stdout ---- normalized stderr: expected stderr: error: strict comparison of f32 or f64 constant --> $DIR/float_cmp_const.rs:18:5 | LL | 1f32 == ONE; | ^^^^^^^^^^^ help: consider comparing them within some error: `(1f32 - ONE).abs() < error` | = note: `-D clippy::float-cmp-const` implied by `-D warnings` note: std::f32::EPSILON and std::f64::EPSILON are available. --> $DIR/float_cmp_const.rs:18:5 | LL | 1f32 == ONE; | ^^^^^^^^^^^ error: strict comparison of f32 or f64 constant --> $DIR/float_cmp_const.rs:19:5 | LL | TWO == ONE; | ^^^^^^^^^^ help: consider comparing them within some error: `(TWO - ONE).abs() < error` | note: std::f32::EPSILON and std::f64::EPSILON are available. --> $DIR/float_cmp_const.rs:19:5 | LL | TWO == ONE; | ^^^^^^^^^^ error: strict comparison of f32 or f64 constant --> $DIR/float_cmp_const.rs:20:5 | LL | TWO != ONE; | ^^^^^^^^^^ help: consider comparing them within some error: `(TWO - ONE).abs() < error` | note: std::f32::EPSILON and std::f64::EPSILON are available. --> $DIR/float_cmp_const.rs:20:5 | LL | TWO != ONE; | ^^^^^^^^^^ error: strict comparison of f32 or f64 constant --> $DIR/float_cmp_const.rs:21:5 | LL | ONE + ONE == TWO; | ^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(ONE + ONE - TWO).abs() < error` | note: std::f32::EPSILON and std::f64::EPSILON are available. --> $DIR/float_cmp_const.rs:21:5 | LL | ONE + ONE == TWO; | ^^^^^^^^^^^^^^^^ error: strict comparison of f32 or f64 constant --> $DIR/float_cmp_const.rs:23:5 | LL | x as f32 == ONE; | ^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(x as f32 - ONE).abs() < error` | note: std::f32::EPSILON and std::f64::EPSILON are available. --> $DIR/float_cmp_const.rs:23:5 | LL | x as f32 == ONE; | ^^^^^^^^^^^^^^^ error: strict comparison of f32 or f64 constant --> $DIR/float_cmp_const.rs:26:5 | LL | v == ONE; | ^^^^^^^^ help: consider comparing them within some error: `(v - ONE).abs() < error` | note: std::f32::EPSILON and std::f64::EPSILON are available. --> $DIR/float_cmp_const.rs:26:5 | LL | v == ONE; | ^^^^^^^^ error: strict comparison of f32 or f64 constant --> $DIR/float_cmp_const.rs:27:5 | LL | v != ONE; | ^^^^^^^^ help: consider comparing them within some error: `(v - ONE).abs() < error` | note: std::f32::EPSILON and std::f64::EPSILON are available. --> $DIR/float_cmp_const.rs:27:5 | LL | v != ONE; | ^^^^^^^^ error: aborting due to 7 previous errors diff of stderr: -error: strict comparison of f32 or f64 constant - --> $DIR/float_cmp_const.rs:18:5 - | -LL | 1f32 == ONE; - | ^^^^^^^^^^^ help: consider comparing them within some error: `(1f32 - ONE).abs() < error` - | - = note: `-D clippy::float-cmp-const` implied by `-D warnings` -note: std::f32::EPSILON and std::f64::EPSILON are available. - --> $DIR/float_cmp_const.rs:18:5 - | -LL | 1f32 == ONE; - | ^^^^^^^^^^^ - -error: strict comparison of f32 or f64 constant - --> $DIR/float_cmp_const.rs:19:5 - | -LL | TWO == ONE; - | ^^^^^^^^^^ help: consider comparing them within some error: `(TWO - ONE).abs() < error` - | -note: std::f32::EPSILON and std::f64::EPSILON are available. - --> $DIR/float_cmp_const.rs:19:5 - | -LL | TWO == ONE; - | ^^^^^^^^^^ - -error: strict comparison of f32 or f64 constant - --> $DIR/float_cmp_const.rs:20:5 - | -LL | TWO != ONE; - | ^^^^^^^^^^ help: consider comparing them within some error: `(TWO - ONE).abs() < error` - | -note: std::f32::EPSILON and std::f64::EPSILON are available. - --> $DIR/float_cmp_const.rs:20:5 - | -LL | TWO != ONE; - | ^^^^^^^^^^ - -error: strict comparison of f32 or f64 constant - --> $DIR/float_cmp_const.rs:21:5 - | -LL | ONE + ONE == TWO; - | ^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(ONE + ONE - TWO).abs() < error` - | -note: std::f32::EPSILON and std::f64::EPSILON are available. - --> $DIR/float_cmp_const.rs:21:5 - | -LL | ONE + ONE == TWO; - | ^^^^^^^^^^^^^^^^ - -error: strict comparison of f32 or f64 constant - --> $DIR/float_cmp_const.rs:23:5 - | -LL | x as f32 == ONE; - | ^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(x as f32 - ONE).abs() < error` - | -note: std::f32::EPSILON and std::f64::EPSILON are available. - --> $DIR/float_cmp_const.rs:23:5 - | -LL | x as f32 == ONE; - | ^^^^^^^^^^^^^^^ - -error: strict comparison of f32 or f64 constant - --> $DIR/float_cmp_const.rs:26:5 - | -LL | v == ONE; - | ^^^^^^^^ help: consider comparing them within some error: `(v - ONE).abs() < error` - | -note: std::f32::EPSILON and std::f64::EPSILON are available. - --> $DIR/float_cmp_const.rs:26:5 - | -LL | v == ONE; - | ^^^^^^^^ - -error: strict comparison of f32 or f64 constant - --> $DIR/float_cmp_const.rs:27:5 - | -LL | v != ONE; - | ^^^^^^^^ help: consider comparing them within some error: `(v - ONE).abs() < error` - | -note: std::f32::EPSILON and std::f64::EPSILON are available. - --> $DIR/float_cmp_const.rs:27:5 - | -LL | v != ONE; - | ^^^^^^^^ - -error: aborting due to 7 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/float_cmp_const.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'float_cmp_const.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/float_cmp_const.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/float_cmp_const.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/float_cmp_const.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/float_cmp_const.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/explicit_counter_loop.rs stdout ---- normalized stderr: expected stderr: error: the variable `_index` is used as a loop counter. --> $DIR/explicit_counter_loop.rs:6:15 | LL | for _v in &vec { | ^^^^ help: consider using: `for (_index, _v) in (&vec).enumerate()` | = note: `-D clippy::explicit-counter-loop` implied by `-D warnings` error: the variable `_index` is used as a loop counter. --> $DIR/explicit_counter_loop.rs:12:15 | LL | for _v in &vec { | ^^^^ help: consider using: `for (_index, _v) in (&vec).enumerate()` error: the variable `count` is used as a loop counter. --> $DIR/explicit_counter_loop.rs:51:19 | LL | for ch in text.chars() { | ^^^^^^^^^^^^ help: consider using: `for (count, ch) in text.chars().enumerate()` error: the variable `count` is used as a loop counter. --> $DIR/explicit_counter_loop.rs:62:19 | LL | for ch in text.chars() { | ^^^^^^^^^^^^ help: consider using: `for (count, ch) in text.chars().enumerate()` error: the variable `count` is used as a loop counter. --> $DIR/explicit_counter_loop.rs:120:19 | LL | for _i in 3..10 { | ^^^^^ help: consider using: `for (count, _i) in (3..10).enumerate()` error: aborting due to 5 previous errors diff of stderr: -error: the variable `_index` is used as a loop counter. - --> $DIR/explicit_counter_loop.rs:6:15 - | -LL | for _v in &vec { - | ^^^^ help: consider using: `for (_index, _v) in (&vec).enumerate()` - | - = note: `-D clippy::explicit-counter-loop` implied by `-D warnings` - -error: the variable `_index` is used as a loop counter. - --> $DIR/explicit_counter_loop.rs:12:15 - | -LL | for _v in &vec { - | ^^^^ help: consider using: `for (_index, _v) in (&vec).enumerate()` - -error: the variable `count` is used as a loop counter. - --> $DIR/explicit_counter_loop.rs:51:19 - | -LL | for ch in text.chars() { - | ^^^^^^^^^^^^ help: consider using: `for (count, ch) in text.chars().enumerate()` - -error: the variable `count` is used as a loop counter. - --> $DIR/explicit_counter_loop.rs:62:19 - | -LL | for ch in text.chars() { - | ^^^^^^^^^^^^ help: consider using: `for (count, ch) in text.chars().enumerate()` - -error: the variable `count` is used as a loop counter. - --> $DIR/explicit_counter_loop.rs:120:19 - | -LL | for _i in 3..10 { - | ^^^^^ help: consider using: `for (count, _i) in (3..10).enumerate()` - -error: aborting due to 5 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/explicit_counter_loop.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'explicit_counter_loop.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/explicit_counter_loop.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/explicit_counter_loop.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/explicit_counter_loop.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/explicit_counter_loop.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/float_cmp.rs stdout ---- normalized stderr: expected stderr: error: strict comparison of f32 or f64 --> $DIR/float_cmp.rs:60:5 | LL | ONE as f64 != 2.0; | ^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(ONE as f64 - 2.0).abs() < error` | = note: `-D clippy::float-cmp` implied by `-D warnings` note: std::f32::EPSILON and std::f64::EPSILON are available. --> $DIR/float_cmp.rs:60:5 | LL | ONE as f64 != 2.0; | ^^^^^^^^^^^^^^^^^ error: strict comparison of f32 or f64 --> $DIR/float_cmp.rs:65:5 | LL | x == 1.0; | ^^^^^^^^ help: consider comparing them within some error: `(x - 1.0).abs() < error` | note: std::f32::EPSILON and std::f64::EPSILON are available. --> $DIR/float_cmp.rs:65:5 | LL | x == 1.0; | ^^^^^^^^ error: strict comparison of f32 or f64 --> $DIR/float_cmp.rs:68:5 | LL | twice(x) != twice(ONE as f64); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(twice(x) - twice(ONE as f64)).abs() < error` | note: std::f32::EPSILON and std::f64::EPSILON are available. --> $DIR/float_cmp.rs:68:5 | LL | twice(x) != twice(ONE as f64); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 3 previous errors diff of stderr: -error: strict comparison of f32 or f64 - --> $DIR/float_cmp.rs:60:5 - | -LL | ONE as f64 != 2.0; - | ^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(ONE as f64 - 2.0).abs() < error` - | - = note: `-D clippy::float-cmp` implied by `-D warnings` -note: std::f32::EPSILON and std::f64::EPSILON are available. - --> $DIR/float_cmp.rs:60:5 - | -LL | ONE as f64 != 2.0; - | ^^^^^^^^^^^^^^^^^ - -error: strict comparison of f32 or f64 - --> $DIR/float_cmp.rs:65:5 - | -LL | x == 1.0; - | ^^^^^^^^ help: consider comparing them within some error: `(x - 1.0).abs() < error` - | -note: std::f32::EPSILON and std::f64::EPSILON are available. - --> $DIR/float_cmp.rs:65:5 - | -LL | x == 1.0; - | ^^^^^^^^ - -error: strict comparison of f32 or f64 - --> $DIR/float_cmp.rs:68:5 - | -LL | twice(x) != twice(ONE as f64); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(twice(x) - twice(ONE as f64)).abs() < error` - | -note: std::f32::EPSILON and std::f64::EPSILON are available. - --> $DIR/float_cmp.rs:68:5 - | -LL | twice(x) != twice(ONE as f64); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: aborting due to 3 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/float_cmp.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'float_cmp.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/float_cmp.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/float_cmp.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/float_cmp.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/float_cmp.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/fallible_impl_from.rs stdout ---- normalized stderr: expected stderr: error: consider implementing `TryFrom` instead --> $DIR/fallible_impl_from.rs:5:1 | LL | / impl From for Foo { LL | | fn from(s: String) -> Self { LL | | Foo(s.parse().unwrap()) LL | | } LL | | } | |_^ | note: lint level defined here --> $DIR/fallible_impl_from.rs:1:9 | LL | #![deny(clippy::fallible_impl_from)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: `From` is intended for infallible conversions only. Use `TryFrom` if there's a possibility for the conversion to fail. note: potential failure(s) --> $DIR/fallible_impl_from.rs:7:13 | LL | Foo(s.parse().unwrap()) | ^^^^^^^^^^^^^^^^^^ error: consider implementing `TryFrom` instead --> $DIR/fallible_impl_from.rs:26:1 | LL | / impl From for Invalid { LL | | fn from(i: usize) -> Invalid { LL | | if i != 42 { LL | | panic!(); ... | LL | | } LL | | } | |_^ | = help: `From` is intended for infallible conversions only. Use `TryFrom` if there's a possibility for the conversion to fail. note: potential failure(s) --> $DIR/fallible_impl_from.rs:29:13 | LL | panic!(); | ^^^^^^^^^ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: consider implementing `TryFrom` instead --> $DIR/fallible_impl_from.rs:35:1 | LL | / impl From> for Invalid { LL | | fn from(s: Option) -> Invalid { LL | | let s = s.unwrap(); LL | | if !s.is_empty() { ... | LL | | } LL | | } | |_^ | = help: `From` is intended for infallible conversions only. Use `TryFrom` if there's a possibility for the conversion to fail. note: potential failure(s) --> $DIR/fallible_impl_from.rs:37:17 | LL | let s = s.unwrap(); | ^^^^^^^^^^ LL | if !s.is_empty() { LL | panic!(42); | ^^^^^^^^^^^ LL | } else if s.parse::().unwrap() != 42 { | ^^^^^^^^^^^^^^^^^^^^^^^^^ LL | panic!("{:?}", s); | ^^^^^^^^^^^^^^^^^^ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: consider implementing `TryFrom` instead --> $DIR/fallible_impl_from.rs:53:1 | LL | / impl<'a> From<&'a mut as ProjStrTrait>::ProjString> for Invalid { LL | | fn from(s: &'a mut as ProjStrTrait>::ProjString) -> Invalid { LL | | if s.parse::().ok().unwrap() != 42 { LL | | panic!("{:?}", s); ... | LL | | } LL | | } | |_^ | = help: `From` is intended for infallible conversions only. Use `TryFrom` if there's a possibility for the conversion to fail. note: potential failure(s) --> $DIR/fallible_impl_from.rs:55:12 | LL | if s.parse::().ok().unwrap() != 42 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ LL | panic!("{:?}", s); | ^^^^^^^^^^^^^^^^^^ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: aborting due to 4 previous errors diff of stderr: -error: consider implementing `TryFrom` instead - --> $DIR/fallible_impl_from.rs:5:1 - | -LL | / impl From for Foo { -LL | | fn from(s: String) -> Self { -LL | | Foo(s.parse().unwrap()) -LL | | } -LL | | } - | |_^ - | -note: lint level defined here - --> $DIR/fallible_impl_from.rs:1:9 - | -LL | #![deny(clippy::fallible_impl_from)] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - = help: `From` is intended for infallible conversions only. Use `TryFrom` if there's a possibility for the conversion to fail. -note: potential failure(s) - --> $DIR/fallible_impl_from.rs:7:13 - | -LL | Foo(s.parse().unwrap()) - | ^^^^^^^^^^^^^^^^^^ - -error: consider implementing `TryFrom` instead - --> $DIR/fallible_impl_from.rs:26:1 - | -LL | / impl From for Invalid { -LL | | fn from(i: usize) -> Invalid { -LL | | if i != 42 { -LL | | panic!(); -... | -LL | | } -LL | | } - | |_^ - | - = help: `From` is intended for infallible conversions only. Use `TryFrom` if there's a possibility for the conversion to fail. -note: potential failure(s) - --> $DIR/fallible_impl_from.rs:29:13 - | -LL | panic!(); - | ^^^^^^^^^ - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -error: consider implementing `TryFrom` instead - --> $DIR/fallible_impl_from.rs:35:1 - | -LL | / impl From> for Invalid { -LL | | fn from(s: Option) -> Invalid { -LL | | let s = s.unwrap(); -LL | | if !s.is_empty() { -... | -LL | | } -LL | | } - | |_^ - | - = help: `From` is intended for infallible conversions only. Use `TryFrom` if there's a possibility for the conversion to fail. -note: potential failure(s) - --> $DIR/fallible_impl_from.rs:37:17 - | -LL | let s = s.unwrap(); - | ^^^^^^^^^^ -LL | if !s.is_empty() { -LL | panic!(42); - | ^^^^^^^^^^^ -LL | } else if s.parse::().unwrap() != 42 { - | ^^^^^^^^^^^^^^^^^^^^^^^^^ -LL | panic!("{:?}", s); - | ^^^^^^^^^^^^^^^^^^ - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -error: consider implementing `TryFrom` instead - --> $DIR/fallible_impl_from.rs:53:1 - | -LL | / impl<'a> From<&'a mut as ProjStrTrait>::ProjString> for Invalid { -LL | | fn from(s: &'a mut as ProjStrTrait>::ProjString) -> Invalid { -LL | | if s.parse::().ok().unwrap() != 42 { -LL | | panic!("{:?}", s); -... | -LL | | } -LL | | } - | |_^ - | - = help: `From` is intended for infallible conversions only. Use `TryFrom` if there's a possibility for the conversion to fail. -note: potential failure(s) - --> $DIR/fallible_impl_from.rs:55:12 - | -LL | if s.parse::().ok().unwrap() != 42 { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -LL | panic!("{:?}", s); - | ^^^^^^^^^^^^^^^^^^ - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -error: aborting due to 4 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/fallible_impl_from.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'fallible_impl_from.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/fallible_impl_from.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/fallible_impl_from.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/fallible_impl_from.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/fallible_impl_from.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/explicit_write.rs stdout ---- normalized stderr: expected stderr: error: use of `write!(stdout(), ...).unwrap()` --> $DIR/explicit_write.rs:17:9 | LL | write!(std::io::stdout(), "test").unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `print!("test")` | = note: `-D clippy::explicit-write` implied by `-D warnings` error: use of `write!(stderr(), ...).unwrap()` --> $DIR/explicit_write.rs:18:9 | LL | write!(std::io::stderr(), "test").unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprint!("test")` error: use of `writeln!(stdout(), ...).unwrap()` --> $DIR/explicit_write.rs:19:9 | LL | writeln!(std::io::stdout(), "test").unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `println!("test")` error: use of `writeln!(stderr(), ...).unwrap()` --> $DIR/explicit_write.rs:20:9 | LL | writeln!(std::io::stderr(), "test").unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("test")` error: use of `stdout().write_fmt(...).unwrap()` --> $DIR/explicit_write.rs:21:9 | LL | std::io::stdout().write_fmt(format_args!("test")).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `print!("test")` error: use of `stderr().write_fmt(...).unwrap()` --> $DIR/explicit_write.rs:22:9 | LL | std::io::stderr().write_fmt(format_args!("test")).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprint!("test")` error: use of `writeln!(stdout(), ...).unwrap()` --> $DIR/explicit_write.rs:25:9 | LL | writeln!(std::io::stdout(), "test/ntest").unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `println!("test/ntest")` error: use of `writeln!(stderr(), ...).unwrap()` --> $DIR/explicit_write.rs:26:9 | LL | writeln!(std::io::stderr(), "test/ntest").unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("test/ntest")` error: aborting due to 8 previous errors diff of stderr: -error: use of `write!(stdout(), ...).unwrap()` - --> $DIR/explicit_write.rs:17:9 - | -LL | write!(std::io::stdout(), "test").unwrap(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `print!("test")` - | - = note: `-D clippy::explicit-write` implied by `-D warnings` - -error: use of `write!(stderr(), ...).unwrap()` - --> $DIR/explicit_write.rs:18:9 - | -LL | write!(std::io::stderr(), "test").unwrap(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprint!("test")` - -error: use of `writeln!(stdout(), ...).unwrap()` - --> $DIR/explicit_write.rs:19:9 - | -LL | writeln!(std::io::stdout(), "test").unwrap(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `println!("test")` - -error: use of `writeln!(stderr(), ...).unwrap()` - --> $DIR/explicit_write.rs:20:9 - | -LL | writeln!(std::io::stderr(), "test").unwrap(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("test")` - -error: use of `stdout().write_fmt(...).unwrap()` - --> $DIR/explicit_write.rs:21:9 - | -LL | std::io::stdout().write_fmt(format_args!("test")).unwrap(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `print!("test")` - -error: use of `stderr().write_fmt(...).unwrap()` - --> $DIR/explicit_write.rs:22:9 - | -LL | std::io::stderr().write_fmt(format_args!("test")).unwrap(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprint!("test")` - -error: use of `writeln!(stdout(), ...).unwrap()` - --> $DIR/explicit_write.rs:25:9 - | -LL | writeln!(std::io::stdout(), "test/ntest").unwrap(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `println!("test/ntest")` - -error: use of `writeln!(stderr(), ...).unwrap()` - --> $DIR/explicit_write.rs:26:9 - | -LL | writeln!(std::io::stderr(), "test/ntest").unwrap(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("test/ntest")` - -error: aborting due to 8 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/explicit_write.stderr normalized fixed: // run-rustfix #![allow(unused_imports)] #![warn(clippy::explicit_write)] fn stdout() -> String { String::new() } fn stderr() -> String { String::new() } fn main() { // these should warn { use std::io::Write; write!(std::io::stdout(), "test").unwrap(); write!(std::io::stderr(), "test").unwrap(); writeln!(std::io::stdout(), "test").unwrap(); writeln!(std::io::stderr(), "test").unwrap(); std::io::stdout().write_fmt(format_args!("test")).unwrap(); std::io::stderr().write_fmt(format_args!("test")).unwrap(); // including newlines writeln!(std::io::stdout(), "test\ntest").unwrap(); writeln!(std::io::stderr(), "test\ntest").unwrap(); } // these should not warn, different destination { use std::fmt::Write; let mut s = String::new(); write!(s, "test").unwrap(); write!(s, "test").unwrap(); writeln!(s, "test").unwrap(); writeln!(s, "test").unwrap(); s.write_fmt(format_args!("test")).unwrap(); s.write_fmt(format_args!("test")).unwrap(); write!(stdout(), "test").unwrap(); write!(stderr(), "test").unwrap(); writeln!(stdout(), "test").unwrap(); writeln!(stderr(), "test").unwrap(); stdout().write_fmt(format_args!("test")).unwrap(); stderr().write_fmt(format_args!("test")).unwrap(); } // these should not warn, no unwrap { use std::io::Write; std::io::stdout().write_fmt(format_args!("test")).expect("no stdout"); std::io::stderr().write_fmt(format_args!("test")).expect("no stderr"); } } expected fixed: // run-rustfix #![allow(unused_imports)] #![warn(clippy::explicit_write)] fn stdout() -> String { String::new() } fn stderr() -> String { String::new() } fn main() { // these should warn { use std::io::Write; print!("test"); eprint!("test"); println!("test"); eprintln!("test"); print!("test"); eprint!("test"); // including newlines println!("test\ntest"); eprintln!("test\ntest"); } // these should not warn, different destination { use std::fmt::Write; let mut s = String::new(); write!(s, "test").unwrap(); write!(s, "test").unwrap(); writeln!(s, "test").unwrap(); writeln!(s, "test").unwrap(); s.write_fmt(format_args!("test")).unwrap(); s.write_fmt(format_args!("test")).unwrap(); write!(stdout(), "test").unwrap(); write!(stderr(), "test").unwrap(); writeln!(stdout(), "test").unwrap(); writeln!(stderr(), "test").unwrap(); stdout().write_fmt(format_args!("test")).unwrap(); stderr().write_fmt(format_args!("test")).unwrap(); } // these should not warn, no unwrap { use std::io::Write; std::io::stdout().write_fmt(format_args!("test")).expect("no stdout"); std::io::stderr().write_fmt(format_args!("test")).expect("no stderr"); } } diff of fixed: // run-rustfix #![allow(unused_imports)] #![warn(clippy::explicit_write)] fn stdout() -> String { String::new() } fn stderr() -> String { String::new() } fn main() { // these should warn { use std::io::Write; - print!("test"); - eprint!("test"); - println!("test"); - eprintln!("test"); - print!("test"); - eprint!("test"); + write!(std::io::stdout(), "test").unwrap(); + write!(std::io::stderr(), "test").unwrap(); + writeln!(std::io::stdout(), "test").unwrap(); + writeln!(std::io::stderr(), "test").unwrap(); + std::io::stdout().write_fmt(format_args!("test")).unwrap(); + std::io::stderr().write_fmt(format_args!("test")).unwrap(); // including newlines - println!("test\ntest"); - eprintln!("test\ntest"); + writeln!(std::io::stdout(), "test\ntest").unwrap(); + writeln!(std::io::stderr(), "test\ntest").unwrap(); } // these should not warn, different destination { use std::fmt::Write; let mut s = String::new(); write!(s, "test").unwrap(); write!(s, "test").unwrap(); writeln!(s, "test").unwrap(); writeln!(s, "test").unwrap(); s.write_fmt(format_args!("test")).unwrap(); s.write_fmt(format_args!("test")).unwrap(); write!(stdout(), "test").unwrap(); write!(stderr(), "test").unwrap(); writeln!(stdout(), "test").unwrap(); writeln!(stderr(), "test").unwrap(); stdout().write_fmt(format_args!("test")).unwrap(); stderr().write_fmt(format_args!("test")).unwrap(); } // these should not warn, no unwrap { use std::io::Write; std::io::stdout().write_fmt(format_args!("test")).expect("no stdout"); std::io::stderr().write_fmt(format_args!("test")).expect("no stderr"); } } The actual fixed differed from the expected fixed. Actual fixed saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/explicit_write.fixed To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'explicit_write.rs' error: 2 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/explicit_write.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/explicit_write.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/explicit_write.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/explicit_write.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/expect_fun_call.rs stdout ---- normalized stderr: expected stderr: error: use of `expect` followed by a function call --> $DIR/expect_fun_call.rs:28:26 | LL | with_none_and_format.expect(&format!("Error {}: fake error", error_code)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| panic!("Error {}: fake error", error_code))` | = note: `-D clippy::expect-fun-call` implied by `-D warnings` error: use of `expect` followed by a function call --> $DIR/expect_fun_call.rs:31:26 | LL | with_none_and_as_str.expect(format!("Error {}: fake error", error_code).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| panic!("Error {}: fake error", error_code))` error: use of `expect` followed by a function call --> $DIR/expect_fun_call.rs:41:25 | LL | with_err_and_format.expect(&format!("Error {}: fake error", error_code)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|_| panic!("Error {}: fake error", error_code))` error: use of `expect` followed by a function call --> $DIR/expect_fun_call.rs:44:25 | LL | with_err_and_as_str.expect(format!("Error {}: fake error", error_code).as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|_| panic!("Error {}: fake error", error_code))` error: use of `expect` followed by a function call --> $DIR/expect_fun_call.rs:56:17 | LL | Some("foo").expect(format!("{} {}", 1, 2).as_ref()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| panic!("{} {}", 1, 2))` error: use of `expect` followed by a function call --> $DIR/expect_fun_call.rs:77:21 | LL | Some("foo").expect(&get_string()); | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| { panic!(get_string()) })` error: use of `expect` followed by a function call --> $DIR/expect_fun_call.rs:78:21 | LL | Some("foo").expect(get_string().as_ref()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| { panic!(get_string()) })` error: use of `expect` followed by a function call --> $DIR/expect_fun_call.rs:79:21 | LL | Some("foo").expect(get_string().as_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| { panic!(get_string()) })` error: use of `expect` followed by a function call --> $DIR/expect_fun_call.rs:81:21 | LL | Some("foo").expect(get_static_str()); | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| { panic!(get_static_str()) })` error: use of `expect` followed by a function call --> $DIR/expect_fun_call.rs:82:21 | LL | Some("foo").expect(get_non_static_str(&0)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| { panic!(get_non_static_str(&0).to_string()) })` error: use of `expect` followed by a function call --> $DIR/expect_fun_call.rs:86:16 | LL | Some(true).expect(&format!("key {}, {}", 1, 2)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| panic!("key {}, {}", 1, 2))` error: aborting due to 11 previous errors diff of stderr: -error: use of `expect` followed by a function call - --> $DIR/expect_fun_call.rs:28:26 - | -LL | with_none_and_format.expect(&format!("Error {}: fake error", error_code)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| panic!("Error {}: fake error", error_code))` - | - = note: `-D clippy::expect-fun-call` implied by `-D warnings` - -error: use of `expect` followed by a function call - --> $DIR/expect_fun_call.rs:31:26 - | -LL | with_none_and_as_str.expect(format!("Error {}: fake error", error_code).as_str()); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| panic!("Error {}: fake error", error_code))` - -error: use of `expect` followed by a function call - --> $DIR/expect_fun_call.rs:41:25 - | -LL | with_err_and_format.expect(&format!("Error {}: fake error", error_code)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|_| panic!("Error {}: fake error", error_code))` - -error: use of `expect` followed by a function call - --> $DIR/expect_fun_call.rs:44:25 - | -LL | with_err_and_as_str.expect(format!("Error {}: fake error", error_code).as_str()); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|_| panic!("Error {}: fake error", error_code))` - -error: use of `expect` followed by a function call - --> $DIR/expect_fun_call.rs:56:17 - | -LL | Some("foo").expect(format!("{} {}", 1, 2).as_ref()); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| panic!("{} {}", 1, 2))` - -error: use of `expect` followed by a function call - --> $DIR/expect_fun_call.rs:77:21 - | -LL | Some("foo").expect(&get_string()); - | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| { panic!(get_string()) })` - -error: use of `expect` followed by a function call - --> $DIR/expect_fun_call.rs:78:21 - | -LL | Some("foo").expect(get_string().as_ref()); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| { panic!(get_string()) })` - -error: use of `expect` followed by a function call - --> $DIR/expect_fun_call.rs:79:21 - | -LL | Some("foo").expect(get_string().as_str()); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| { panic!(get_string()) })` - -error: use of `expect` followed by a function call - --> $DIR/expect_fun_call.rs:81:21 - | -LL | Some("foo").expect(get_static_str()); - | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| { panic!(get_static_str()) })` - -error: use of `expect` followed by a function call - --> $DIR/expect_fun_call.rs:82:21 - | -LL | Some("foo").expect(get_non_static_str(&0)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| { panic!(get_non_static_str(&0).to_string()) })` - -error: use of `expect` followed by a function call - --> $DIR/expect_fun_call.rs:86:16 - | -LL | Some(true).expect(&format!("key {}, {}", 1, 2)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| panic!("key {}, {}", 1, 2))` - -error: aborting due to 11 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/expect_fun_call.stderr normalized fixed: // run-rustfix #![warn(clippy::expect_fun_call)] /// Checks implementation of the `EXPECT_FUN_CALL` lint fn main() { struct Foo; impl Foo { fn new() -> Self { Foo } fn expect(&self, msg: &str) { panic!("{}", msg) } } let with_some = Some("value"); with_some.expect("error"); let with_none: Option = None; with_none.expect("error"); let error_code = 123_i32; let with_none_and_format: Option = None; with_none_and_format.expect(&format!("Error {}: fake error", error_code)); let with_none_and_as_str: Option = None; with_none_and_as_str.expect(format!("Error {}: fake error", error_code).as_str()); let with_ok: Result<(), ()> = Ok(()); with_ok.expect("error"); let with_err: Result<(), ()> = Err(()); with_err.expect("error"); let error_code = 123_i32; let with_err_and_format: Result<(), ()> = Err(()); with_err_and_format.expect(&format!("Error {}: fake error", error_code)); let with_err_and_as_str: Result<(), ()> = Err(()); with_err_and_as_str.expect(format!("Error {}: fake error", error_code).as_str()); let with_dummy_type = Foo::new(); with_dummy_type.expect("another test string"); let with_dummy_type_and_format = Foo::new(); with_dummy_type_and_format.expect(&format!("Error {}: fake error", error_code)); let with_dummy_type_and_as_str = Foo::new(); with_dummy_type_and_as_str.expect(format!("Error {}: fake error", error_code).as_str()); //Issue #2937 Some("foo").expect(format!("{} {}", 1, 2).as_ref()); //Issue #2979 - this should not lint { let msg = "bar"; Some("foo").expect(msg); } { fn get_string() -> String { "foo".to_string() } fn get_static_str() -> &'static str { "foo" } fn get_non_static_str(_: &u32) -> &str { "foo" } Some("foo").expect(&get_string()); Some("foo").expect(get_string().as_ref()); Some("foo").expect(get_string().as_str()); Some("foo").expect(get_static_str()); Some("foo").expect(get_non_static_str(&0)); } //Issue #3839 Some(true).expect(&format!("key {}, {}", 1, 2)); } expected fixed: // run-rustfix #![warn(clippy::expect_fun_call)] /// Checks implementation of the `EXPECT_FUN_CALL` lint fn main() { struct Foo; impl Foo { fn new() -> Self { Foo } fn expect(&self, msg: &str) { panic!("{}", msg) } } let with_some = Some("value"); with_some.expect("error"); let with_none: Option = None; with_none.expect("error"); let error_code = 123_i32; let with_none_and_format: Option = None; with_none_and_format.unwrap_or_else(|| panic!("Error {}: fake error", error_code)); let with_none_and_as_str: Option = None; with_none_and_as_str.unwrap_or_else(|| panic!("Error {}: fake error", error_code)); let with_ok: Result<(), ()> = Ok(()); with_ok.expect("error"); let with_err: Result<(), ()> = Err(()); with_err.expect("error"); let error_code = 123_i32; let with_err_and_format: Result<(), ()> = Err(()); with_err_and_format.unwrap_or_else(|_| panic!("Error {}: fake error", error_code)); let with_err_and_as_str: Result<(), ()> = Err(()); with_err_and_as_str.unwrap_or_else(|_| panic!("Error {}: fake error", error_code)); let with_dummy_type = Foo::new(); with_dummy_type.expect("another test string"); let with_dummy_type_and_format = Foo::new(); with_dummy_type_and_format.expect(&format!("Error {}: fake error", error_code)); let with_dummy_type_and_as_str = Foo::new(); with_dummy_type_and_as_str.expect(format!("Error {}: fake error", error_code).as_str()); //Issue #2937 Some("foo").unwrap_or_else(|| panic!("{} {}", 1, 2)); //Issue #2979 - this should not lint { let msg = "bar"; Some("foo").expect(msg); } { fn get_string() -> String { "foo".to_string() } fn get_static_str() -> &'static str { "foo" } fn get_non_static_str(_: &u32) -> &str { "foo" } Some("foo").unwrap_or_else(|| { panic!(get_string()) }); Some("foo").unwrap_or_else(|| { panic!(get_string()) }); Some("foo").unwrap_or_else(|| { panic!(get_string()) }); Some("foo").unwrap_or_else(|| { panic!(get_static_str()) }); Some("foo").unwrap_or_else(|| { panic!(get_non_static_str(&0).to_string()) }); } //Issue #3839 Some(true).unwrap_or_else(|| panic!("key {}, {}", 1, 2)); } diff of fixed: // run-rustfix #![warn(clippy::expect_fun_call)] /// Checks implementation of the `EXPECT_FUN_CALL` lint fn main() { struct Foo; impl Foo { fn new() -> Self { Foo } fn expect(&self, msg: &str) { panic!("{}", msg) } } let with_some = Some("value"); with_some.expect("error"); let with_none: Option = None; with_none.expect("error"); let error_code = 123_i32; let with_none_and_format: Option = None; - with_none_and_format.unwrap_or_else(|| panic!("Error {}: fake error", error_code)); + with_none_and_format.expect(&format!("Error {}: fake error", error_code)); let with_none_and_as_str: Option = None; - with_none_and_as_str.unwrap_or_else(|| panic!("Error {}: fake error", error_code)); + with_none_and_as_str.expect(format!("Error {}: fake error", error_code).as_str()); let with_ok: Result<(), ()> = Ok(()); with_ok.expect("error"); let with_err: Result<(), ()> = Err(()); with_err.expect("error"); let error_code = 123_i32; let with_err_and_format: Result<(), ()> = Err(()); - with_err_and_format.unwrap_or_else(|_| panic!("Error {}: fake error", error_code)); + with_err_and_format.expect(&format!("Error {}: fake error", error_code)); let with_err_and_as_str: Result<(), ()> = Err(()); - with_err_and_as_str.unwrap_or_else(|_| panic!("Error {}: fake error", error_code)); + with_err_and_as_str.expect(format!("Error {}: fake error", error_code).as_str()); let with_dummy_type = Foo::new(); with_dummy_type.expect("another test string"); let with_dummy_type_and_format = Foo::new(); with_dummy_type_and_format.expect(&format!("Error {}: fake error", error_code)); let with_dummy_type_and_as_str = Foo::new(); with_dummy_type_and_as_str.expect(format!("Error {}: fake error", error_code).as_str()); //Issue #2937 - Some("foo").unwrap_or_else(|| panic!("{} {}", 1, 2)); + Some("foo").expect(format!("{} {}", 1, 2).as_ref()); //Issue #2979 - this should not lint { let msg = "bar"; Some("foo").expect(msg); } { fn get_string() -> String { "foo".to_string() } fn get_static_str() -> &'static str { "foo" } fn get_non_static_str(_: &u32) -> &str { "foo" } - Some("foo").unwrap_or_else(|| { panic!(get_string()) }); - Some("foo").unwrap_or_else(|| { panic!(get_string()) }); - Some("foo").unwrap_or_else(|| { panic!(get_string()) }); + Some("foo").expect(&get_string()); + Some("foo").expect(get_string().as_ref()); + Some("foo").expect(get_string().as_str()); - Some("foo").unwrap_or_else(|| { panic!(get_static_str()) }); - Some("foo").unwrap_or_else(|| { panic!(get_non_static_str(&0).to_string()) }); + Some("foo").expect(get_static_str()); + Some("foo").expect(get_non_static_str(&0)); } //Issue #3839 - Some(true).unwrap_or_else(|| panic!("key {}, {}", 1, 2)); + Some(true).expect(&format!("key {}, {}", 1, 2)); } The actual fixed differed from the expected fixed. Actual fixed saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/expect_fun_call.fixed To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'expect_fun_call.rs' error: 2 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/expect_fun_call.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/expect_fun_call.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/expect_fun_call.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/expect_fun_call.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/formatting.rs stdout ---- normalized stderr: expected stderr: error: this looks like an `else {..}` but the `else` is missing --> $DIR/formatting.rs:15:6 | LL | } { | ^ | = note: `-D clippy::suspicious-else-formatting` implied by `-D warnings` = note: to remove this lint, add the missing `else` or add a new line before the next block error: this looks like an `else if` but the `else` is missing --> $DIR/formatting.rs:19:6 | LL | } if foo() { | ^ | = note: to remove this lint, add the missing `else` or add a new line before the second `if` error: this looks like an `else if` but the `else` is missing --> $DIR/formatting.rs:26:10 | LL | } if foo() { | ^ | = note: to remove this lint, add the missing `else` or add a new line before the second `if` error: this looks like an `else if` but the `else` is missing --> $DIR/formatting.rs:34:10 | LL | } if foo() { | ^ | = note: to remove this lint, add the missing `else` or add a new line before the second `if` error: this is an `else {..}` but the formatting might hide it --> $DIR/formatting.rs:43:6 | LL | } else | ______^ LL | | { | |____^ | = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}` error: this is an `else {..}` but the formatting might hide it --> $DIR/formatting.rs:48:6 | LL | } | ______^ LL | | else LL | | { | |____^ | = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}` error: this is an `else if` but the formatting might hide it --> $DIR/formatting.rs:54:6 | LL | } else | ______^ LL | | if foo() { // the span of the above error should continue here | |____^ | = note: to remove this lint, remove the `else` or remove the new line between `else` and `if` error: this is an `else if` but the formatting might hide it --> $DIR/formatting.rs:59:6 | LL | } | ______^ LL | | else LL | | if foo() { // the span of the above error should continue here | |____^ | = note: to remove this lint, remove the `else` or remove the new line between `else` and `if` error: this looks like you are trying to use `.. -= ..`, but you really are doing `.. = (- ..)` --> $DIR/formatting.rs:100:6 | LL | a =- 35; | ^^^^ | = note: `-D clippy::suspicious-assignment-formatting` implied by `-D warnings` = note: to remove this lint, use either `-=` or `= -` error: this looks like you are trying to use `.. *= ..`, but you really are doing `.. = (* ..)` --> $DIR/formatting.rs:101:6 | LL | a =* &191; | ^^^^ | = note: to remove this lint, use either `*=` or `= *` error: this looks like you are trying to use `.. != ..`, but you really are doing `.. = (! ..)` --> $DIR/formatting.rs:104:6 | LL | b =! false; | ^^^^ | = note: to remove this lint, use either `!=` or `= !` error: possibly missing a comma here --> $DIR/formatting.rs:113:19 | LL | -1, -2, -3 // <= no comma here | ^ | = note: `-D clippy::possible-missing-comma` implied by `-D warnings` = note: to remove this lint, add a comma or write the expr in a single line error: possibly missing a comma here --> $DIR/formatting.rs:117:19 | LL | -1, -2, -3 // <= no comma here | ^ | = note: to remove this lint, add a comma or write the expr in a single line error: aborting due to 13 previous errors diff of stderr: -error: this looks like an `else {..}` but the `else` is missing - --> $DIR/formatting.rs:15:6 - | -LL | } { - | ^ - | - = note: `-D clippy::suspicious-else-formatting` implied by `-D warnings` - = note: to remove this lint, add the missing `else` or add a new line before the next block - -error: this looks like an `else if` but the `else` is missing - --> $DIR/formatting.rs:19:6 - | -LL | } if foo() { - | ^ - | - = note: to remove this lint, add the missing `else` or add a new line before the second `if` - -error: this looks like an `else if` but the `else` is missing - --> $DIR/formatting.rs:26:10 - | -LL | } if foo() { - | ^ - | - = note: to remove this lint, add the missing `else` or add a new line before the second `if` - -error: this looks like an `else if` but the `else` is missing - --> $DIR/formatting.rs:34:10 - | -LL | } if foo() { - | ^ - | - = note: to remove this lint, add the missing `else` or add a new line before the second `if` - -error: this is an `else {..}` but the formatting might hide it - --> $DIR/formatting.rs:43:6 - | -LL | } else - | ______^ -LL | | { - | |____^ - | - = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}` - -error: this is an `else {..}` but the formatting might hide it - --> $DIR/formatting.rs:48:6 - | -LL | } - | ______^ -LL | | else -LL | | { - | |____^ - | - = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}` - -error: this is an `else if` but the formatting might hide it - --> $DIR/formatting.rs:54:6 - | -LL | } else - | ______^ -LL | | if foo() { // the span of the above error should continue here - | |____^ - | - = note: to remove this lint, remove the `else` or remove the new line between `else` and `if` - -error: this is an `else if` but the formatting might hide it - --> $DIR/formatting.rs:59:6 - | -LL | } - | ______^ -LL | | else -LL | | if foo() { // the span of the above error should continue here - | |____^ - | - = note: to remove this lint, remove the `else` or remove the new line between `else` and `if` - -error: this looks like you are trying to use `.. -= ..`, but you really are doing `.. = (- ..)` - --> $DIR/formatting.rs:100:6 - | -LL | a =- 35; - | ^^^^ - | - = note: `-D clippy::suspicious-assignment-formatting` implied by `-D warnings` - = note: to remove this lint, use either `-=` or `= -` - -error: this looks like you are trying to use `.. *= ..`, but you really are doing `.. = (* ..)` - --> $DIR/formatting.rs:101:6 - | -LL | a =* &191; - | ^^^^ - | - = note: to remove this lint, use either `*=` or `= *` - -error: this looks like you are trying to use `.. != ..`, but you really are doing `.. = (! ..)` - --> $DIR/formatting.rs:104:6 - | -LL | b =! false; - | ^^^^ - | - = note: to remove this lint, use either `!=` or `= !` - -error: possibly missing a comma here - --> $DIR/formatting.rs:113:19 - | -LL | -1, -2, -3 // <= no comma here - | ^ - | - = note: `-D clippy::possible-missing-comma` implied by `-D warnings` - = note: to remove this lint, add a comma or write the expr in a single line - -error: possibly missing a comma here - --> $DIR/formatting.rs:117:19 - | -LL | -1, -2, -3 // <= no comma here - | ^ - | - = note: to remove this lint, add a comma or write the expr in a single line - -error: aborting due to 13 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/formatting.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'formatting.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/formatting.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/formatting.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/formatting.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/formatting.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/fn_to_numeric_cast.rs stdout ---- normalized stderr: expected stderr: error: casting function pointer `foo` to `i8`, which truncates the value --> $DIR/fn_to_numeric_cast.rs:10:13 | LL | let _ = foo as i8; | ^^^^^^^^^ help: try: `foo as usize` | = note: `-D clippy::fn-to-numeric-cast-with-truncation` implied by `-D warnings` error: casting function pointer `foo` to `i16`, which truncates the value --> $DIR/fn_to_numeric_cast.rs:11:13 | LL | let _ = foo as i16; | ^^^^^^^^^^ help: try: `foo as usize` error: casting function pointer `foo` to `i32`, which truncates the value --> $DIR/fn_to_numeric_cast.rs:12:13 | LL | let _ = foo as i32; | ^^^^^^^^^^ help: try: `foo as usize` error: casting function pointer `foo` to `i64` --> $DIR/fn_to_numeric_cast.rs:13:13 | LL | let _ = foo as i64; | ^^^^^^^^^^ help: try: `foo as usize` | = note: `-D clippy::fn-to-numeric-cast` implied by `-D warnings` error: casting function pointer `foo` to `i128` --> $DIR/fn_to_numeric_cast.rs:14:13 | LL | let _ = foo as i128; | ^^^^^^^^^^^ help: try: `foo as usize` error: casting function pointer `foo` to `isize` --> $DIR/fn_to_numeric_cast.rs:15:13 | LL | let _ = foo as isize; | ^^^^^^^^^^^^ help: try: `foo as usize` error: casting function pointer `foo` to `u8`, which truncates the value --> $DIR/fn_to_numeric_cast.rs:17:13 | LL | let _ = foo as u8; | ^^^^^^^^^ help: try: `foo as usize` error: casting function pointer `foo` to `u16`, which truncates the value --> $DIR/fn_to_numeric_cast.rs:18:13 | LL | let _ = foo as u16; | ^^^^^^^^^^ help: try: `foo as usize` error: casting function pointer `foo` to `u32`, which truncates the value --> $DIR/fn_to_numeric_cast.rs:19:13 | LL | let _ = foo as u32; | ^^^^^^^^^^ help: try: `foo as usize` error: casting function pointer `foo` to `u64` --> $DIR/fn_to_numeric_cast.rs:20:13 | LL | let _ = foo as u64; | ^^^^^^^^^^ help: try: `foo as usize` error: casting function pointer `foo` to `u128` --> $DIR/fn_to_numeric_cast.rs:21:13 | LL | let _ = foo as u128; | ^^^^^^^^^^^ help: try: `foo as usize` error: casting function pointer `abc` to `i8`, which truncates the value --> $DIR/fn_to_numeric_cast.rs:34:13 | LL | let _ = abc as i8; | ^^^^^^^^^ help: try: `abc as usize` error: casting function pointer `abc` to `i16`, which truncates the value --> $DIR/fn_to_numeric_cast.rs:35:13 | LL | let _ = abc as i16; | ^^^^^^^^^^ help: try: `abc as usize` error: casting function pointer `abc` to `i32`, which truncates the value --> $DIR/fn_to_numeric_cast.rs:36:13 | LL | let _ = abc as i32; | ^^^^^^^^^^ help: try: `abc as usize` error: casting function pointer `abc` to `i64` --> $DIR/fn_to_numeric_cast.rs:37:13 | LL | let _ = abc as i64; | ^^^^^^^^^^ help: try: `abc as usize` error: casting function pointer `abc` to `i128` --> $DIR/fn_to_numeric_cast.rs:38:13 | LL | let _ = abc as i128; | ^^^^^^^^^^^ help: try: `abc as usize` error: casting function pointer `abc` to `isize` --> $DIR/fn_to_numeric_cast.rs:39:13 | LL | let _ = abc as isize; | ^^^^^^^^^^^^ help: try: `abc as usize` error: casting function pointer `abc` to `u8`, which truncates the value --> $DIR/fn_to_numeric_cast.rs:41:13 | LL | let _ = abc as u8; | ^^^^^^^^^ help: try: `abc as usize` error: casting function pointer `abc` to `u16`, which truncates the value --> $DIR/fn_to_numeric_cast.rs:42:13 | LL | let _ = abc as u16; | ^^^^^^^^^^ help: try: `abc as usize` error: casting function pointer `abc` to `u32`, which truncates the value --> $DIR/fn_to_numeric_cast.rs:43:13 | LL | let _ = abc as u32; | ^^^^^^^^^^ help: try: `abc as usize` error: casting function pointer `abc` to `u64` --> $DIR/fn_to_numeric_cast.rs:44:13 | LL | let _ = abc as u64; | ^^^^^^^^^^ help: try: `abc as usize` error: casting function pointer `abc` to `u128` --> $DIR/fn_to_numeric_cast.rs:45:13 | LL | let _ = abc as u128; | ^^^^^^^^^^^ help: try: `abc as usize` error: casting function pointer `f` to `i32`, which truncates the value --> $DIR/fn_to_numeric_cast.rs:52:5 | LL | f as i32 | ^^^^^^^^ help: try: `f as usize` error: aborting due to 23 previous errors diff of stderr: -error: casting function pointer `foo` to `i8`, which truncates the value - --> $DIR/fn_to_numeric_cast.rs:10:13 - | -LL | let _ = foo as i8; - | ^^^^^^^^^ help: try: `foo as usize` - | - = note: `-D clippy::fn-to-numeric-cast-with-truncation` implied by `-D warnings` - -error: casting function pointer `foo` to `i16`, which truncates the value - --> $DIR/fn_to_numeric_cast.rs:11:13 - | -LL | let _ = foo as i16; - | ^^^^^^^^^^ help: try: `foo as usize` - -error: casting function pointer `foo` to `i32`, which truncates the value - --> $DIR/fn_to_numeric_cast.rs:12:13 - | -LL | let _ = foo as i32; - | ^^^^^^^^^^ help: try: `foo as usize` - -error: casting function pointer `foo` to `i64` - --> $DIR/fn_to_numeric_cast.rs:13:13 - | -LL | let _ = foo as i64; - | ^^^^^^^^^^ help: try: `foo as usize` - | - = note: `-D clippy::fn-to-numeric-cast` implied by `-D warnings` - -error: casting function pointer `foo` to `i128` - --> $DIR/fn_to_numeric_cast.rs:14:13 - | -LL | let _ = foo as i128; - | ^^^^^^^^^^^ help: try: `foo as usize` - -error: casting function pointer `foo` to `isize` - --> $DIR/fn_to_numeric_cast.rs:15:13 - | -LL | let _ = foo as isize; - | ^^^^^^^^^^^^ help: try: `foo as usize` - -error: casting function pointer `foo` to `u8`, which truncates the value - --> $DIR/fn_to_numeric_cast.rs:17:13 - | -LL | let _ = foo as u8; - | ^^^^^^^^^ help: try: `foo as usize` - -error: casting function pointer `foo` to `u16`, which truncates the value - --> $DIR/fn_to_numeric_cast.rs:18:13 - | -LL | let _ = foo as u16; - | ^^^^^^^^^^ help: try: `foo as usize` - -error: casting function pointer `foo` to `u32`, which truncates the value - --> $DIR/fn_to_numeric_cast.rs:19:13 - | -LL | let _ = foo as u32; - | ^^^^^^^^^^ help: try: `foo as usize` - -error: casting function pointer `foo` to `u64` - --> $DIR/fn_to_numeric_cast.rs:20:13 - | -LL | let _ = foo as u64; - | ^^^^^^^^^^ help: try: `foo as usize` - -error: casting function pointer `foo` to `u128` - --> $DIR/fn_to_numeric_cast.rs:21:13 - | -LL | let _ = foo as u128; - | ^^^^^^^^^^^ help: try: `foo as usize` - -error: casting function pointer `abc` to `i8`, which truncates the value - --> $DIR/fn_to_numeric_cast.rs:34:13 - | -LL | let _ = abc as i8; - | ^^^^^^^^^ help: try: `abc as usize` - -error: casting function pointer `abc` to `i16`, which truncates the value - --> $DIR/fn_to_numeric_cast.rs:35:13 - | -LL | let _ = abc as i16; - | ^^^^^^^^^^ help: try: `abc as usize` - -error: casting function pointer `abc` to `i32`, which truncates the value - --> $DIR/fn_to_numeric_cast.rs:36:13 - | -LL | let _ = abc as i32; - | ^^^^^^^^^^ help: try: `abc as usize` - -error: casting function pointer `abc` to `i64` - --> $DIR/fn_to_numeric_cast.rs:37:13 - | -LL | let _ = abc as i64; - | ^^^^^^^^^^ help: try: `abc as usize` - -error: casting function pointer `abc` to `i128` - --> $DIR/fn_to_numeric_cast.rs:38:13 - | -LL | let _ = abc as i128; - | ^^^^^^^^^^^ help: try: `abc as usize` - -error: casting function pointer `abc` to `isize` - --> $DIR/fn_to_numeric_cast.rs:39:13 - | -LL | let _ = abc as isize; - | ^^^^^^^^^^^^ help: try: `abc as usize` - -error: casting function pointer `abc` to `u8`, which truncates the value - --> $DIR/fn_to_numeric_cast.rs:41:13 - | -LL | let _ = abc as u8; - | ^^^^^^^^^ help: try: `abc as usize` - -error: casting function pointer `abc` to `u16`, which truncates the value - --> $DIR/fn_to_numeric_cast.rs:42:13 - | -LL | let _ = abc as u16; - | ^^^^^^^^^^ help: try: `abc as usize` - -error: casting function pointer `abc` to `u32`, which truncates the value - --> $DIR/fn_to_numeric_cast.rs:43:13 - | -LL | let _ = abc as u32; - | ^^^^^^^^^^ help: try: `abc as usize` - -error: casting function pointer `abc` to `u64` - --> $DIR/fn_to_numeric_cast.rs:44:13 - | -LL | let _ = abc as u64; - | ^^^^^^^^^^ help: try: `abc as usize` - -error: casting function pointer `abc` to `u128` - --> $DIR/fn_to_numeric_cast.rs:45:13 - | -LL | let _ = abc as u128; - | ^^^^^^^^^^^ help: try: `abc as usize` - -error: casting function pointer `f` to `i32`, which truncates the value - --> $DIR/fn_to_numeric_cast.rs:52:5 - | -LL | f as i32 - | ^^^^^^^^ help: try: `f as usize` - -error: aborting due to 23 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/fn_to_numeric_cast.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'fn_to_numeric_cast.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/fn_to_numeric_cast.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/fn_to_numeric_cast.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/fn_to_numeric_cast.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/fn_to_numeric_cast.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/for_loop.rs stdout ---- normalized stderr: expected stderr: error: the loop variable `i` is only used to index `vec`. --> $DIR/for_loop.rs:41:14 | LL | for i in 0..vec.len() { | ^^^^^^^^^^^^ | = note: `-D clippy::needless-range-loop` implied by `-D warnings` help: consider using an iterator | LL | for in &vec { | ^^^^^^ ^^^^ error: the loop variable `i` is only used to index `vec`. --> $DIR/for_loop.rs:50:14 | LL | for i in 0..vec.len() { | ^^^^^^^^^^^^ help: consider using an iterator | LL | for in &vec { | ^^^^^^ ^^^^ error: the loop variable `j` is only used to index `STATIC`. --> $DIR/for_loop.rs:55:14 | LL | for j in 0..4 { | ^^^^ help: consider using an iterator | LL | for in &STATIC { | ^^^^^^ ^^^^^^^ error: the loop variable `j` is only used to index `CONST`. --> $DIR/for_loop.rs:59:14 | LL | for j in 0..4 { | ^^^^ help: consider using an iterator | LL | for in &CONST { | ^^^^^^ ^^^^^^ error: the loop variable `i` is used to index `vec` --> $DIR/for_loop.rs:63:14 | LL | for i in 0..vec.len() { | ^^^^^^^^^^^^ help: consider using an iterator | LL | for (i, ) in vec.iter().enumerate() { | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ error: the loop variable `i` is only used to index `vec2`. --> $DIR/for_loop.rs:71:14 | LL | for i in 0..vec.len() { | ^^^^^^^^^^^^ help: consider using an iterator | LL | for in vec2.iter().take(vec.len()) { | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: the loop variable `i` is only used to index `vec`. --> $DIR/for_loop.rs:75:14 | LL | for i in 5..vec.len() { | ^^^^^^^^^^^^ help: consider using an iterator | LL | for in vec.iter().skip(5) { | ^^^^^^ ^^^^^^^^^^^^^^^^^^ error: the loop variable `i` is only used to index `vec`. --> $DIR/for_loop.rs:79:14 | LL | for i in 0..MAX_LEN { | ^^^^^^^^^^ help: consider using an iterator | LL | for in vec.iter().take(MAX_LEN) { | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ error: the loop variable `i` is only used to index `vec`. --> $DIR/for_loop.rs:83:14 | LL | for i in 0..=MAX_LEN { | ^^^^^^^^^^^ help: consider using an iterator | LL | for in vec.iter().take(MAX_LEN + 1) { | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: the loop variable `i` is only used to index `vec`. --> $DIR/for_loop.rs:87:14 | LL | for i in 5..10 { | ^^^^^ help: consider using an iterator | LL | for in vec.iter().take(10).skip(5) { | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: the loop variable `i` is only used to index `vec`. --> $DIR/for_loop.rs:91:14 | LL | for i in 5..=10 { | ^^^^^^ help: consider using an iterator | LL | for in vec.iter().take(10 + 1).skip(5) { | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: the loop variable `i` is used to index `vec` --> $DIR/for_loop.rs:95:14 | LL | for i in 5..vec.len() { | ^^^^^^^^^^^^ help: consider using an iterator | LL | for (i, ) in vec.iter().enumerate().skip(5) { | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: the loop variable `i` is used to index `vec` --> $DIR/for_loop.rs:99:14 | LL | for i in 5..10 { | ^^^^^ help: consider using an iterator | LL | for (i, ) in vec.iter().enumerate().take(10).skip(5) { | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: this range is empty so this for loop will never run --> $DIR/for_loop.rs:103:14 | LL | for i in 10..0 { | ^^^^^ | = note: `-D clippy::reverse-range-loop` implied by `-D warnings` help: consider using the following if you are attempting to iterate over this range in reverse | LL | for i in (0..10).rev() { | ^^^^^^^^^^^^^ error: this range is empty so this for loop will never run --> $DIR/for_loop.rs:107:14 | LL | for i in 10..=0 { | ^^^^^^ help: consider using the following if you are attempting to iterate over this range in reverse | LL | for i in (0...10).rev() { | ^^^^^^^^^^^^^^ error: this range is empty so this for loop will never run --> $DIR/for_loop.rs:111:14 | LL | for i in MAX_LEN..0 { | ^^^^^^^^^^ help: consider using the following if you are attempting to iterate over this range in reverse | LL | for i in (0..MAX_LEN).rev() { | ^^^^^^^^^^^^^^^^^^ error: this range is empty so this for loop will never run --> $DIR/for_loop.rs:115:14 | LL | for i in 5..5 { | ^^^^ error: this range is empty so this for loop will never run --> $DIR/for_loop.rs:140:14 | LL | for i in 10..5 + 4 { | ^^^^^^^^^ help: consider using the following if you are attempting to iterate over this range in reverse | LL | for i in (5 + 4..10).rev() { | ^^^^^^^^^^^^^^^^^ error: this range is empty so this for loop will never run --> $DIR/for_loop.rs:144:14 | LL | for i in (5 + 2)..(3 - 1) { | ^^^^^^^^^^^^^^^^ help: consider using the following if you are attempting to iterate over this range in reverse | LL | for i in ((3 - 1)..(5 + 2)).rev() { | ^^^^^^^^^^^^^^^^^^^^^^^^ error: this range is empty so this for loop will never run --> $DIR/for_loop.rs:148:14 | LL | for i in (5 + 2)..(8 - 1) { | ^^^^^^^^^^^^^^^^ error: it is more concise to loop over references to containers instead of using explicit iteration methods --> $DIR/for_loop.rs:170:15 | LL | for _v in vec.iter() {} | ^^^^^^^^^^ | = note: `-D clippy::explicit-iter-loop` implied by `-D warnings` error: it is more concise to loop over references to containers instead of using explicit iteration methods --> $DIR/for_loop.rs:172:15 | LL | for _v in vec.iter_mut() {} | ^^^^^^^^^^^^^^ error: it is more concise to loop over containers instead of using explicit iteration methods` --> $DIR/for_loop.rs:175:15 | LL | for _v in out_vec.into_iter() {} | ^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::explicit-into-iter-loop` implied by `-D warnings` error: it is more concise to loop over references to containers instead of using explicit iteration methods --> $DIR/for_loop.rs:178:15 | LL | for _v in array.into_iter() {} | ^^^^^^^^^^^^^^^^^ error: it is more concise to loop over references to containers instead of using explicit iteration methods --> $DIR/for_loop.rs:183:15 | LL | for _v in [1, 2, 3].iter() {} | ^^^^^^^^^^^^^^^^ error: it is more concise to loop over references to containers instead of using explicit iteration methods --> $DIR/for_loop.rs:187:15 | LL | for _v in [0; 32].iter() {} | ^^^^^^^^^^^^^^ error: it is more concise to loop over references to containers instead of using explicit iteration methods --> $DIR/for_loop.rs:192:15 | LL | for _v in ll.iter() {} | ^^^^^^^^^ error: it is more concise to loop over references to containers instead of using explicit iteration methods --> $DIR/for_loop.rs:195:15 | LL | for _v in vd.iter() {} | ^^^^^^^^^ error: it is more concise to loop over references to containers instead of using explicit iteration methods --> $DIR/for_loop.rs:198:15 | LL | for _v in bh.iter() {} | ^^^^^^^^^ error: it is more concise to loop over references to containers instead of using explicit iteration methods --> $DIR/for_loop.rs:201:15 | LL | for _v in hm.iter() {} | ^^^^^^^^^ error: it is more concise to loop over references to containers instead of using explicit iteration methods --> $DIR/for_loop.rs:204:15 | LL | for _v in bt.iter() {} | ^^^^^^^^^ error: it is more concise to loop over references to containers instead of using explicit iteration methods --> $DIR/for_loop.rs:207:15 | LL | for _v in hs.iter() {} | ^^^^^^^^^ error: it is more concise to loop over references to containers instead of using explicit iteration methods --> $DIR/for_loop.rs:210:15 | LL | for _v in bs.iter() {} | ^^^^^^^^^ error: you are iterating over `Iterator::next()` which is an Option; this will compile but is probably not what you want --> $DIR/for_loop.rs:212:15 | LL | for _v in vec.iter().next() {} | ^^^^^^^^^^^^^^^^^ | = note: `-D clippy::iter-next-loop` implied by `-D warnings` error: you are collect()ing an iterator and throwing away the result. Consider using an explicit for loop to exhaust the iterator --> $DIR/for_loop.rs:219:5 | LL | vec.iter().cloned().map(|x| out.push(x)).collect::>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::unused-collect` implied by `-D warnings` error: aborting due to 35 previous errors diff of stderr: -error: the loop variable `i` is only used to index `vec`. - --> $DIR/for_loop.rs:41:14 - | -LL | for i in 0..vec.len() { - | ^^^^^^^^^^^^ - | - = note: `-D clippy::needless-range-loop` implied by `-D warnings` -help: consider using an iterator - | -LL | for in &vec { - | ^^^^^^ ^^^^ - -error: the loop variable `i` is only used to index `vec`. - --> $DIR/for_loop.rs:50:14 - | -LL | for i in 0..vec.len() { - | ^^^^^^^^^^^^ -help: consider using an iterator - | -LL | for in &vec { - | ^^^^^^ ^^^^ - -error: the loop variable `j` is only used to index `STATIC`. - --> $DIR/for_loop.rs:55:14 - | -LL | for j in 0..4 { - | ^^^^ -help: consider using an iterator - | -LL | for in &STATIC { - | ^^^^^^ ^^^^^^^ - -error: the loop variable `j` is only used to index `CONST`. - --> $DIR/for_loop.rs:59:14 - | -LL | for j in 0..4 { - | ^^^^ -help: consider using an iterator - | -LL | for in &CONST { - | ^^^^^^ ^^^^^^ - -error: the loop variable `i` is used to index `vec` - --> $DIR/for_loop.rs:63:14 - | -LL | for i in 0..vec.len() { - | ^^^^^^^^^^^^ -help: consider using an iterator - | -LL | for (i, ) in vec.iter().enumerate() { - | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ - -error: the loop variable `i` is only used to index `vec2`. - --> $DIR/for_loop.rs:71:14 - | -LL | for i in 0..vec.len() { - | ^^^^^^^^^^^^ -help: consider using an iterator - | -LL | for in vec2.iter().take(vec.len()) { - | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: the loop variable `i` is only used to index `vec`. - --> $DIR/for_loop.rs:75:14 - | -LL | for i in 5..vec.len() { - | ^^^^^^^^^^^^ -help: consider using an iterator - | -LL | for in vec.iter().skip(5) { - | ^^^^^^ ^^^^^^^^^^^^^^^^^^ - -error: the loop variable `i` is only used to index `vec`. - --> $DIR/for_loop.rs:79:14 - | -LL | for i in 0..MAX_LEN { - | ^^^^^^^^^^ -help: consider using an iterator - | -LL | for in vec.iter().take(MAX_LEN) { - | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ - -error: the loop variable `i` is only used to index `vec`. - --> $DIR/for_loop.rs:83:14 - | -LL | for i in 0..=MAX_LEN { - | ^^^^^^^^^^^ -help: consider using an iterator - | -LL | for in vec.iter().take(MAX_LEN + 1) { - | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: the loop variable `i` is only used to index `vec`. - --> $DIR/for_loop.rs:87:14 - | -LL | for i in 5..10 { - | ^^^^^ -help: consider using an iterator - | -LL | for in vec.iter().take(10).skip(5) { - | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: the loop variable `i` is only used to index `vec`. - --> $DIR/for_loop.rs:91:14 - | -LL | for i in 5..=10 { - | ^^^^^^ -help: consider using an iterator - | -LL | for in vec.iter().take(10 + 1).skip(5) { - | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: the loop variable `i` is used to index `vec` - --> $DIR/for_loop.rs:95:14 - | -LL | for i in 5..vec.len() { - | ^^^^^^^^^^^^ -help: consider using an iterator - | -LL | for (i, ) in vec.iter().enumerate().skip(5) { - | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: the loop variable `i` is used to index `vec` - --> $DIR/for_loop.rs:99:14 - | -LL | for i in 5..10 { - | ^^^^^ -help: consider using an iterator - | -LL | for (i, ) in vec.iter().enumerate().take(10).skip(5) { - | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: this range is empty so this for loop will never run - --> $DIR/for_loop.rs:103:14 - | -LL | for i in 10..0 { - | ^^^^^ - | - = note: `-D clippy::reverse-range-loop` implied by `-D warnings` -help: consider using the following if you are attempting to iterate over this range in reverse - | -LL | for i in (0..10).rev() { - | ^^^^^^^^^^^^^ - -error: this range is empty so this for loop will never run - --> $DIR/for_loop.rs:107:14 - | -LL | for i in 10..=0 { - | ^^^^^^ -help: consider using the following if you are attempting to iterate over this range in reverse - | -LL | for i in (0...10).rev() { - | ^^^^^^^^^^^^^^ - -error: this range is empty so this for loop will never run - --> $DIR/for_loop.rs:111:14 - | -LL | for i in MAX_LEN..0 { - | ^^^^^^^^^^ -help: consider using the following if you are attempting to iterate over this range in reverse - | -LL | for i in (0..MAX_LEN).rev() { - | ^^^^^^^^^^^^^^^^^^ - -error: this range is empty so this for loop will never run - --> $DIR/for_loop.rs:115:14 - | -LL | for i in 5..5 { - | ^^^^ - -error: this range is empty so this for loop will never run - --> $DIR/for_loop.rs:140:14 - | -LL | for i in 10..5 + 4 { - | ^^^^^^^^^ -help: consider using the following if you are attempting to iterate over this range in reverse - | -LL | for i in (5 + 4..10).rev() { - | ^^^^^^^^^^^^^^^^^ - -error: this range is empty so this for loop will never run - --> $DIR/for_loop.rs:144:14 - | -LL | for i in (5 + 2)..(3 - 1) { - | ^^^^^^^^^^^^^^^^ -help: consider using the following if you are attempting to iterate over this range in reverse - | -LL | for i in ((3 - 1)..(5 + 2)).rev() { - | ^^^^^^^^^^^^^^^^^^^^^^^^ - -error: this range is empty so this for loop will never run - --> $DIR/for_loop.rs:148:14 - | -LL | for i in (5 + 2)..(8 - 1) { - | ^^^^^^^^^^^^^^^^ - -error: it is more concise to loop over references to containers instead of using explicit iteration methods - --> $DIR/for_loop.rs:170:15 - | -LL | for _v in vec.iter() {} - | ^^^^^^^^^^ - | - = note: `-D clippy::explicit-iter-loop` implied by `-D warnings` - -error: it is more concise to loop over references to containers instead of using explicit iteration methods - --> $DIR/for_loop.rs:172:15 - | -LL | for _v in vec.iter_mut() {} - | ^^^^^^^^^^^^^^ - -error: it is more concise to loop over containers instead of using explicit iteration methods` - --> $DIR/for_loop.rs:175:15 - | -LL | for _v in out_vec.into_iter() {} - | ^^^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::explicit-into-iter-loop` implied by `-D warnings` - -error: it is more concise to loop over references to containers instead of using explicit iteration methods - --> $DIR/for_loop.rs:178:15 - | -LL | for _v in array.into_iter() {} - | ^^^^^^^^^^^^^^^^^ - -error: it is more concise to loop over references to containers instead of using explicit iteration methods - --> $DIR/for_loop.rs:183:15 - | -LL | for _v in [1, 2, 3].iter() {} - | ^^^^^^^^^^^^^^^^ - -error: it is more concise to loop over references to containers instead of using explicit iteration methods - --> $DIR/for_loop.rs:187:15 - | -LL | for _v in [0; 32].iter() {} - | ^^^^^^^^^^^^^^ - -error: it is more concise to loop over references to containers instead of using explicit iteration methods - --> $DIR/for_loop.rs:192:15 - | -LL | for _v in ll.iter() {} - | ^^^^^^^^^ - -error: it is more concise to loop over references to containers instead of using explicit iteration methods - --> $DIR/for_loop.rs:195:15 - | -LL | for _v in vd.iter() {} - | ^^^^^^^^^ - -error: it is more concise to loop over references to containers instead of using explicit iteration methods - --> $DIR/for_loop.rs:198:15 - | -LL | for _v in bh.iter() {} - | ^^^^^^^^^ - -error: it is more concise to loop over references to containers instead of using explicit iteration methods - --> $DIR/for_loop.rs:201:15 - | -LL | for _v in hm.iter() {} - | ^^^^^^^^^ - -error: it is more concise to loop over references to containers instead of using explicit iteration methods - --> $DIR/for_loop.rs:204:15 - | -LL | for _v in bt.iter() {} - | ^^^^^^^^^ - -error: it is more concise to loop over references to containers instead of using explicit iteration methods - --> $DIR/for_loop.rs:207:15 - | -LL | for _v in hs.iter() {} - | ^^^^^^^^^ - -error: it is more concise to loop over references to containers instead of using explicit iteration methods - --> $DIR/for_loop.rs:210:15 - | -LL | for _v in bs.iter() {} - | ^^^^^^^^^ - -error: you are iterating over `Iterator::next()` which is an Option; this will compile but is probably not what you want - --> $DIR/for_loop.rs:212:15 - | -LL | for _v in vec.iter().next() {} - | ^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::iter-next-loop` implied by `-D warnings` - -error: you are collect()ing an iterator and throwing away the result. Consider using an explicit for loop to exhaust the iterator - --> $DIR/for_loop.rs:219:5 - | -LL | vec.iter().cloned().map(|x| out.push(x)).collect::>(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::unused-collect` implied by `-D warnings` - -error: aborting due to 35 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/for_loop.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'for_loop.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/for_loop.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/for_loop.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/for_loop.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/for_loop.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/functions.rs stdout ---- normalized stderr: expected stderr: error: this function has too many arguments (8/7) --> $DIR/functions.rs:8:1 | LL | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::too-many-arguments` implied by `-D warnings` error: this function has too many arguments (8/7) --> $DIR/functions.rs:25:5 | LL | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: this function has too many arguments (8/7) --> $DIR/functions.rs:34:5 | LL | fn bad_method(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: this public function dereferences a raw pointer but is not marked `unsafe` --> $DIR/functions.rs:43:34 | LL | println!("{}", unsafe { *p }); | ^ | = note: `-D clippy::not-unsafe-ptr-arg-deref` implied by `-D warnings` error: this public function dereferences a raw pointer but is not marked `unsafe` --> $DIR/functions.rs:44:35 | LL | println!("{:?}", unsafe { p.as_ref() }); | ^ error: this public function dereferences a raw pointer but is not marked `unsafe` --> $DIR/functions.rs:45:33 | LL | unsafe { std::ptr::read(p) }; | ^ error: this public function dereferences a raw pointer but is not marked `unsafe` --> $DIR/functions.rs:56:30 | LL | println!("{}", unsafe { *p }); | ^ error: this public function dereferences a raw pointer but is not marked `unsafe` --> $DIR/functions.rs:57:31 | LL | println!("{:?}", unsafe { p.as_ref() }); | ^ error: this public function dereferences a raw pointer but is not marked `unsafe` --> $DIR/functions.rs:58:29 | LL | unsafe { std::ptr::read(p) }; | ^ error: this public function dereferences a raw pointer but is not marked `unsafe` --> $DIR/functions.rs:67:34 | LL | println!("{}", unsafe { *p }); | ^ error: this public function dereferences a raw pointer but is not marked `unsafe` --> $DIR/functions.rs:68:35 | LL | println!("{:?}", unsafe { p.as_ref() }); | ^ error: this public function dereferences a raw pointer but is not marked `unsafe` --> $DIR/functions.rs:69:33 | LL | unsafe { std::ptr::read(p) }; | ^ error: aborting due to 12 previous errors diff of stderr: -error: this function has too many arguments (8/7) - --> $DIR/functions.rs:8:1 - | -LL | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::too-many-arguments` implied by `-D warnings` - -error: this function has too many arguments (8/7) - --> $DIR/functions.rs:25:5 - | -LL | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: this function has too many arguments (8/7) - --> $DIR/functions.rs:34:5 - | -LL | fn bad_method(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: this public function dereferences a raw pointer but is not marked `unsafe` - --> $DIR/functions.rs:43:34 - | -LL | println!("{}", unsafe { *p }); - | ^ - | - = note: `-D clippy::not-unsafe-ptr-arg-deref` implied by `-D warnings` - -error: this public function dereferences a raw pointer but is not marked `unsafe` - --> $DIR/functions.rs:44:35 - | -LL | println!("{:?}", unsafe { p.as_ref() }); - | ^ - -error: this public function dereferences a raw pointer but is not marked `unsafe` - --> $DIR/functions.rs:45:33 - | -LL | unsafe { std::ptr::read(p) }; - | ^ - -error: this public function dereferences a raw pointer but is not marked `unsafe` - --> $DIR/functions.rs:56:30 - | -LL | println!("{}", unsafe { *p }); - | ^ - -error: this public function dereferences a raw pointer but is not marked `unsafe` - --> $DIR/functions.rs:57:31 - | -LL | println!("{:?}", unsafe { p.as_ref() }); - | ^ - -error: this public function dereferences a raw pointer but is not marked `unsafe` - --> $DIR/functions.rs:58:29 - | -LL | unsafe { std::ptr::read(p) }; - | ^ - -error: this public function dereferences a raw pointer but is not marked `unsafe` - --> $DIR/functions.rs:67:34 - | -LL | println!("{}", unsafe { *p }); - | ^ - -error: this public function dereferences a raw pointer but is not marked `unsafe` - --> $DIR/functions.rs:68:35 - | -LL | println!("{:?}", unsafe { p.as_ref() }); - | ^ - -error: this public function dereferences a raw pointer but is not marked `unsafe` - --> $DIR/functions.rs:69:33 - | -LL | unsafe { std::ptr::read(p) }; - | ^ - -error: aborting due to 12 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/functions.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'functions.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/functions.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/functions.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/functions.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/functions.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/get_unwrap.rs stdout ---- normalized stderr: expected stderr: error: called `.get().unwrap()` on a slice. Using `[]` is more clear and more concise --> $DIR/get_unwrap.rs:34:17 | LL | let _ = boxed_slice.get(1).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&boxed_slice[1]` | note: lint level defined here --> $DIR/get_unwrap.rs:3:9 | LL | #![deny(clippy::get_unwrap)] | ^^^^^^^^^^^^^^^^^^ error: called `.get().unwrap()` on a slice. Using `[]` is more clear and more concise --> $DIR/get_unwrap.rs:35:17 | LL | let _ = some_slice.get(0).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_slice[0]` error: called `.get().unwrap()` on a Vec. Using `[]` is more clear and more concise --> $DIR/get_unwrap.rs:36:17 | LL | let _ = some_vec.get(0).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_vec[0]` error: called `.get().unwrap()` on a VecDeque. Using `[]` is more clear and more concise --> $DIR/get_unwrap.rs:37:17 | LL | let _ = some_vecdeque.get(0).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_vecdeque[0]` error: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise --> $DIR/get_unwrap.rs:38:17 | LL | let _ = some_hashmap.get(&1).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_hashmap[&1]` error: called `.get().unwrap()` on a BTreeMap. Using `[]` is more clear and more concise --> $DIR/get_unwrap.rs:39:17 | LL | let _ = some_btreemap.get(&1).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_btreemap[&1]` error: called `.get().unwrap()` on a slice. Using `[]` is more clear and more concise --> $DIR/get_unwrap.rs:42:21 | LL | let _: u8 = *boxed_slice.get(1).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `boxed_slice[1]` error: called `.get_mut().unwrap()` on a slice. Using `[]` is more clear and more concise --> $DIR/get_unwrap.rs:47:9 | LL | *boxed_slice.get_mut(0).unwrap() = 1; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `boxed_slice[0]` error: called `.get_mut().unwrap()` on a slice. Using `[]` is more clear and more concise --> $DIR/get_unwrap.rs:48:9 | LL | *some_slice.get_mut(0).unwrap() = 1; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_slice[0]` error: called `.get_mut().unwrap()` on a Vec. Using `[]` is more clear and more concise --> $DIR/get_unwrap.rs:49:9 | LL | *some_vec.get_mut(0).unwrap() = 1; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vec[0]` error: called `.get_mut().unwrap()` on a VecDeque. Using `[]` is more clear and more concise --> $DIR/get_unwrap.rs:50:9 | LL | *some_vecdeque.get_mut(0).unwrap() = 1; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vecdeque[0]` error: called `.get().unwrap()` on a Vec. Using `[]` is more clear and more concise --> $DIR/get_unwrap.rs:59:17 | LL | let _ = some_vec.get(0..1).unwrap().to_vec(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vec[0..1]` error: called `.get_mut().unwrap()` on a Vec. Using `[]` is more clear and more concise --> $DIR/get_unwrap.rs:60:17 | LL | let _ = some_vec.get_mut(0..1).unwrap().to_vec(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vec[0..1]` error: aborting due to 13 previous errors diff of stderr: -error: called `.get().unwrap()` on a slice. Using `[]` is more clear and more concise - --> $DIR/get_unwrap.rs:34:17 - | -LL | let _ = boxed_slice.get(1).unwrap(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&boxed_slice[1]` - | -note: lint level defined here - --> $DIR/get_unwrap.rs:3:9 - | -LL | #![deny(clippy::get_unwrap)] - | ^^^^^^^^^^^^^^^^^^ - -error: called `.get().unwrap()` on a slice. Using `[]` is more clear and more concise - --> $DIR/get_unwrap.rs:35:17 - | -LL | let _ = some_slice.get(0).unwrap(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_slice[0]` - -error: called `.get().unwrap()` on a Vec. Using `[]` is more clear and more concise - --> $DIR/get_unwrap.rs:36:17 - | -LL | let _ = some_vec.get(0).unwrap(); - | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_vec[0]` - -error: called `.get().unwrap()` on a VecDeque. Using `[]` is more clear and more concise - --> $DIR/get_unwrap.rs:37:17 - | -LL | let _ = some_vecdeque.get(0).unwrap(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_vecdeque[0]` - -error: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise - --> $DIR/get_unwrap.rs:38:17 - | -LL | let _ = some_hashmap.get(&1).unwrap(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_hashmap[&1]` - -error: called `.get().unwrap()` on a BTreeMap. Using `[]` is more clear and more concise - --> $DIR/get_unwrap.rs:39:17 - | -LL | let _ = some_btreemap.get(&1).unwrap(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_btreemap[&1]` - -error: called `.get().unwrap()` on a slice. Using `[]` is more clear and more concise - --> $DIR/get_unwrap.rs:42:21 - | -LL | let _: u8 = *boxed_slice.get(1).unwrap(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `boxed_slice[1]` - -error: called `.get_mut().unwrap()` on a slice. Using `[]` is more clear and more concise - --> $DIR/get_unwrap.rs:47:9 - | -LL | *boxed_slice.get_mut(0).unwrap() = 1; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `boxed_slice[0]` - -error: called `.get_mut().unwrap()` on a slice. Using `[]` is more clear and more concise - --> $DIR/get_unwrap.rs:48:9 - | -LL | *some_slice.get_mut(0).unwrap() = 1; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_slice[0]` - -error: called `.get_mut().unwrap()` on a Vec. Using `[]` is more clear and more concise - --> $DIR/get_unwrap.rs:49:9 - | -LL | *some_vec.get_mut(0).unwrap() = 1; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vec[0]` - -error: called `.get_mut().unwrap()` on a VecDeque. Using `[]` is more clear and more concise - --> $DIR/get_unwrap.rs:50:9 - | -LL | *some_vecdeque.get_mut(0).unwrap() = 1; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vecdeque[0]` - -error: called `.get().unwrap()` on a Vec. Using `[]` is more clear and more concise - --> $DIR/get_unwrap.rs:59:17 - | -LL | let _ = some_vec.get(0..1).unwrap().to_vec(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vec[0..1]` - -error: called `.get_mut().unwrap()` on a Vec. Using `[]` is more clear and more concise - --> $DIR/get_unwrap.rs:60:17 - | -LL | let _ = some_vec.get_mut(0..1).unwrap().to_vec(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vec[0..1]` - -error: aborting due to 13 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/get_unwrap.stderr normalized fixed: // run-rustfix #![allow(unused_mut)] #![deny(clippy::get_unwrap)] use std::collections::BTreeMap; use std::collections::HashMap; use std::collections::VecDeque; use std::iter::FromIterator; struct GetFalsePositive { arr: [u32; 3], } impl GetFalsePositive { fn get(&self, pos: usize) -> Option<&u32> { self.arr.get(pos) } fn get_mut(&mut self, pos: usize) -> Option<&mut u32> { self.arr.get_mut(pos) } } fn main() { let mut boxed_slice: Box<[u8]> = Box::new([0, 1, 2, 3]); let mut some_slice = &mut [0, 1, 2, 3]; let mut some_vec = vec![0, 1, 2, 3]; let mut some_vecdeque: VecDeque<_> = some_vec.iter().cloned().collect(); let mut some_hashmap: HashMap = HashMap::from_iter(vec![(1, 'a'), (2, 'b')]); let mut some_btreemap: BTreeMap = BTreeMap::from_iter(vec![(1, 'a'), (2, 'b')]); let mut false_positive = GetFalsePositive { arr: [0, 1, 2] }; { // Test `get().unwrap()` let _ = boxed_slice.get(1).unwrap(); let _ = some_slice.get(0).unwrap(); let _ = some_vec.get(0).unwrap(); let _ = some_vecdeque.get(0).unwrap(); let _ = some_hashmap.get(&1).unwrap(); let _ = some_btreemap.get(&1).unwrap(); let _ = false_positive.get(0).unwrap(); // Test with deref let _: u8 = *boxed_slice.get(1).unwrap(); } { // Test `get_mut().unwrap()` *boxed_slice.get_mut(0).unwrap() = 1; *some_slice.get_mut(0).unwrap() = 1; *some_vec.get_mut(0).unwrap() = 1; *some_vecdeque.get_mut(0).unwrap() = 1; // Check false positives *some_hashmap.get_mut(&1).unwrap() = 'b'; *some_btreemap.get_mut(&1).unwrap() = 'b'; *false_positive.get_mut(0).unwrap() = 1; } { // Test `get().unwrap().foo()` and `get_mut().unwrap().bar()` let _ = some_vec.get(0..1).unwrap().to_vec(); let _ = some_vec.get_mut(0..1).unwrap().to_vec(); } } expected fixed: // run-rustfix #![allow(unused_mut)] #![deny(clippy::get_unwrap)] use std::collections::BTreeMap; use std::collections::HashMap; use std::collections::VecDeque; use std::iter::FromIterator; struct GetFalsePositive { arr: [u32; 3], } impl GetFalsePositive { fn get(&self, pos: usize) -> Option<&u32> { self.arr.get(pos) } fn get_mut(&mut self, pos: usize) -> Option<&mut u32> { self.arr.get_mut(pos) } } fn main() { let mut boxed_slice: Box<[u8]> = Box::new([0, 1, 2, 3]); let mut some_slice = &mut [0, 1, 2, 3]; let mut some_vec = vec![0, 1, 2, 3]; let mut some_vecdeque: VecDeque<_> = some_vec.iter().cloned().collect(); let mut some_hashmap: HashMap = HashMap::from_iter(vec![(1, 'a'), (2, 'b')]); let mut some_btreemap: BTreeMap = BTreeMap::from_iter(vec![(1, 'a'), (2, 'b')]); let mut false_positive = GetFalsePositive { arr: [0, 1, 2] }; { // Test `get().unwrap()` let _ = &boxed_slice[1]; let _ = &some_slice[0]; let _ = &some_vec[0]; let _ = &some_vecdeque[0]; let _ = &some_hashmap[&1]; let _ = &some_btreemap[&1]; let _ = false_positive.get(0).unwrap(); // Test with deref let _: u8 = boxed_slice[1]; } { // Test `get_mut().unwrap()` boxed_slice[0] = 1; some_slice[0] = 1; some_vec[0] = 1; some_vecdeque[0] = 1; // Check false positives *some_hashmap.get_mut(&1).unwrap() = 'b'; *some_btreemap.get_mut(&1).unwrap() = 'b'; *false_positive.get_mut(0).unwrap() = 1; } { // Test `get().unwrap().foo()` and `get_mut().unwrap().bar()` let _ = some_vec[0..1].to_vec(); let _ = some_vec[0..1].to_vec(); } } diff of fixed: // run-rustfix #![allow(unused_mut)] #![deny(clippy::get_unwrap)] use std::collections::BTreeMap; use std::collections::HashMap; use std::collections::VecDeque; use std::iter::FromIterator; struct GetFalsePositive { arr: [u32; 3], } impl GetFalsePositive { fn get(&self, pos: usize) -> Option<&u32> { self.arr.get(pos) } fn get_mut(&mut self, pos: usize) -> Option<&mut u32> { self.arr.get_mut(pos) } } fn main() { let mut boxed_slice: Box<[u8]> = Box::new([0, 1, 2, 3]); let mut some_slice = &mut [0, 1, 2, 3]; let mut some_vec = vec![0, 1, 2, 3]; let mut some_vecdeque: VecDeque<_> = some_vec.iter().cloned().collect(); let mut some_hashmap: HashMap = HashMap::from_iter(vec![(1, 'a'), (2, 'b')]); let mut some_btreemap: BTreeMap = BTreeMap::from_iter(vec![(1, 'a'), (2, 'b')]); let mut false_positive = GetFalsePositive { arr: [0, 1, 2] }; { // Test `get().unwrap()` - let _ = &boxed_slice[1]; - let _ = &some_slice[0]; - let _ = &some_vec[0]; - let _ = &some_vecdeque[0]; - let _ = &some_hashmap[&1]; - let _ = &some_btreemap[&1]; + let _ = boxed_slice.get(1).unwrap(); + let _ = some_slice.get(0).unwrap(); + let _ = some_vec.get(0).unwrap(); + let _ = some_vecdeque.get(0).unwrap(); + let _ = some_hashmap.get(&1).unwrap(); + let _ = some_btreemap.get(&1).unwrap(); let _ = false_positive.get(0).unwrap(); // Test with deref - let _: u8 = boxed_slice[1]; + let _: u8 = *boxed_slice.get(1).unwrap(); } { // Test `get_mut().unwrap()` - boxed_slice[0] = 1; - some_slice[0] = 1; - some_vec[0] = 1; - some_vecdeque[0] = 1; + *boxed_slice.get_mut(0).unwrap() = 1; + *some_slice.get_mut(0).unwrap() = 1; + *some_vec.get_mut(0).unwrap() = 1; + *some_vecdeque.get_mut(0).unwrap() = 1; // Check false positives *some_hashmap.get_mut(&1).unwrap() = 'b'; *some_btreemap.get_mut(&1).unwrap() = 'b'; *false_positive.get_mut(0).unwrap() = 1; } { // Test `get().unwrap().foo()` and `get_mut().unwrap().bar()` - let _ = some_vec[0..1].to_vec(); - let _ = some_vec[0..1].to_vec(); + let _ = some_vec.get(0..1).unwrap().to_vec(); + let _ = some_vec.get_mut(0..1).unwrap().to_vec(); } } The actual fixed differed from the expected fixed. Actual fixed saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/get_unwrap.fixed To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'get_unwrap.rs' error: 2 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/get_unwrap.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/get_unwrap.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/get_unwrap.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/get_unwrap.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/if_not_else.rs stdout ---- normalized stderr: expected stderr: error: Unnecessary boolean `not` operation --> $DIR/if_not_else.rs:9:5 | LL | / if !bla() { LL | | println!("Bugs"); LL | | } else { LL | | println!("Bunny"); LL | | } | |_____^ | = note: `-D clippy::if-not-else` implied by `-D warnings` = help: remove the `!` and swap the blocks of the if/else error: Unnecessary `!=` operation --> $DIR/if_not_else.rs:14:5 | LL | / if 4 != 5 { LL | | println!("Bugs"); LL | | } else { LL | | println!("Bunny"); LL | | } | |_____^ | = help: change to `==` and swap the blocks of the if/else error: aborting due to 2 previous errors diff of stderr: -error: Unnecessary boolean `not` operation - --> $DIR/if_not_else.rs:9:5 - | -LL | / if !bla() { -LL | | println!("Bugs"); -LL | | } else { -LL | | println!("Bunny"); -LL | | } - | |_____^ - | - = note: `-D clippy::if-not-else` implied by `-D warnings` - = help: remove the `!` and swap the blocks of the if/else - -error: Unnecessary `!=` operation - --> $DIR/if_not_else.rs:14:5 - | -LL | / if 4 != 5 { -LL | | println!("Bugs"); -LL | | } else { -LL | | println!("Bunny"); -LL | | } - | |_____^ - | - = help: change to `==` and swap the blocks of the if/else - -error: aborting due to 2 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/if_not_else.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'if_not_else.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/if_not_else.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/if_not_else.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/if_not_else.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/if_not_else.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/if_same_then_else.rs stdout ---- normalized stderr: expected stderr: error: this `if` has identical blocks --> $DIR/if_same_then_else.rs:31:12 | LL | } else { | ____________^ LL | | //~ ERROR same body as `if` block LL | | Foo { bar: 42 }; LL | | 0..10; ... | LL | | foo(); LL | | } | |_____^ | = note: `-D clippy::if-same-then-else` implied by `-D warnings` note: same as this --> $DIR/if_same_then_else.rs:23:13 | LL | if true { | _____________^ LL | | Foo { bar: 42 }; LL | | 0..10; LL | | ..; ... | LL | | foo(); LL | | } else { | |_____^ error: this `if` has identical blocks --> $DIR/if_same_then_else.rs:69:12 | LL | } else { | ____________^ LL | | //~ ERROR same body as `if` block LL | | 0.0 LL | | }; | |_____^ | note: same as this --> $DIR/if_same_then_else.rs:67:21 | LL | let _ = if true { | _____________________^ LL | | 0.0 LL | | } else { | |_____^ error: this `if` has identical blocks --> $DIR/if_same_then_else.rs:76:12 | LL | } else { | ____________^ LL | | //~ ERROR same body as `if` block LL | | -0.0 LL | | }; | |_____^ | note: same as this --> $DIR/if_same_then_else.rs:74:21 | LL | let _ = if true { | _____________________^ LL | | -0.0 LL | | } else { | |_____^ error: this `if` has identical blocks --> $DIR/if_same_then_else.rs:92:12 | LL | } else { | ____________^ LL | | //~ ERROR same body as `if` block LL | | 42 LL | | }; | |_____^ | note: same as this --> $DIR/if_same_then_else.rs:90:21 | LL | let _ = if true { | _____________________^ LL | | 42 LL | | } else { | |_____^ error: this `if` has identical blocks --> $DIR/if_same_then_else.rs:106:12 | LL | } else { | ____________^ LL | | //~ ERROR same body as `if` block LL | | for _ in &[42] { LL | | let foo: &Option<_> = &Some::(42); ... | LL | | } LL | | } | |_____^ | note: same as this --> $DIR/if_same_then_else.rs:97:13 | LL | if true { | _____________^ LL | | for _ in &[42] { LL | | let foo: &Option<_> = &Some::(42); LL | | if true { ... | LL | | } LL | | } else { | |_____^ error: this `if` has identical blocks --> $DIR/if_same_then_else.rs:125:12 | LL | } else { | ____________^ LL | | //~ ERROR same body as `if` block LL | | let bar = if true { 42 } else { 43 }; LL | | ... | LL | | bar + 1; LL | | } | |_____^ | note: same as this --> $DIR/if_same_then_else.rs:118:13 | LL | if true { | _____________^ LL | | let bar = if true { 42 } else { 43 }; LL | | LL | | while foo() { ... | LL | | bar + 1; LL | | } else { | |_____^ error: this `if` has identical blocks --> $DIR/if_same_then_else.rs:155:12 | LL | } else { | ____________^ LL | | //~ ERROR same body as `if` block LL | | if let Some(a) = Some(42) {} LL | | } | |_____^ | note: same as this --> $DIR/if_same_then_else.rs:153:13 | LL | if true { | _____________^ LL | | if let Some(a) = Some(42) {} LL | | } else { | |_____^ error: this `if` has identical blocks --> $DIR/if_same_then_else.rs:162:12 | LL | } else { | ____________^ LL | | //~ ERROR same body as `if` block LL | | if let (1, .., 3) = (1, 2, 3) {} LL | | } | |_____^ | note: same as this --> $DIR/if_same_then_else.rs:160:13 | LL | if true { | _____________^ LL | | if let (1, .., 3) = (1, 2, 3) {} LL | | } else { | |_____^ error: this `if` has identical blocks --> $DIR/if_same_then_else.rs:212:12 | LL | } else { | ____________^ LL | | //~ ERROR same body as `if` block LL | | std::f32::NAN LL | | }; | |_____^ | note: same as this --> $DIR/if_same_then_else.rs:210:21 | LL | let _ = if true { | _____________________^ LL | | std::f32::NAN LL | | } else { | |_____^ error: this `if` has identical blocks --> $DIR/if_same_then_else.rs:219:12 | LL | } else { | ____________^ LL | | //~ ERROR same body as `if` block LL | | try!(Ok("foo")); LL | | } | |_____^ | note: same as this --> $DIR/if_same_then_else.rs:217:13 | LL | if true { | _____________^ LL | | try!(Ok("foo")); LL | | } else { | |_____^ error: aborting due to 10 previous errors diff of stderr: -error: this `if` has identical blocks - --> $DIR/if_same_then_else.rs:31:12 - | -LL | } else { - | ____________^ -LL | | //~ ERROR same body as `if` block -LL | | Foo { bar: 42 }; -LL | | 0..10; -... | -LL | | foo(); -LL | | } - | |_____^ - | - = note: `-D clippy::if-same-then-else` implied by `-D warnings` -note: same as this - --> $DIR/if_same_then_else.rs:23:13 - | -LL | if true { - | _____________^ -LL | | Foo { bar: 42 }; -LL | | 0..10; -LL | | ..; -... | -LL | | foo(); -LL | | } else { - | |_____^ - -error: this `if` has identical blocks - --> $DIR/if_same_then_else.rs:69:12 - | -LL | } else { - | ____________^ -LL | | //~ ERROR same body as `if` block -LL | | 0.0 -LL | | }; - | |_____^ - | -note: same as this - --> $DIR/if_same_then_else.rs:67:21 - | -LL | let _ = if true { - | _____________________^ -LL | | 0.0 -LL | | } else { - | |_____^ - -error: this `if` has identical blocks - --> $DIR/if_same_then_else.rs:76:12 - | -LL | } else { - | ____________^ -LL | | //~ ERROR same body as `if` block -LL | | -0.0 -LL | | }; - | |_____^ - | -note: same as this - --> $DIR/if_same_then_else.rs:74:21 - | -LL | let _ = if true { - | _____________________^ -LL | | -0.0 -LL | | } else { - | |_____^ - -error: this `if` has identical blocks - --> $DIR/if_same_then_else.rs:92:12 - | -LL | } else { - | ____________^ -LL | | //~ ERROR same body as `if` block -LL | | 42 -LL | | }; - | |_____^ - | -note: same as this - --> $DIR/if_same_then_else.rs:90:21 - | -LL | let _ = if true { - | _____________________^ -LL | | 42 -LL | | } else { - | |_____^ - -error: this `if` has identical blocks - --> $DIR/if_same_then_else.rs:106:12 - | -LL | } else { - | ____________^ -LL | | //~ ERROR same body as `if` block -LL | | for _ in &[42] { -LL | | let foo: &Option<_> = &Some::(42); -... | -LL | | } -LL | | } - | |_____^ - | -note: same as this - --> $DIR/if_same_then_else.rs:97:13 - | -LL | if true { - | _____________^ -LL | | for _ in &[42] { -LL | | let foo: &Option<_> = &Some::(42); -LL | | if true { -... | -LL | | } -LL | | } else { - | |_____^ - -error: this `if` has identical blocks - --> $DIR/if_same_then_else.rs:125:12 - | -LL | } else { - | ____________^ -LL | | //~ ERROR same body as `if` block -LL | | let bar = if true { 42 } else { 43 }; -LL | | -... | -LL | | bar + 1; -LL | | } - | |_____^ - | -note: same as this - --> $DIR/if_same_then_else.rs:118:13 - | -LL | if true { - | _____________^ -LL | | let bar = if true { 42 } else { 43 }; -LL | | -LL | | while foo() { -... | -LL | | bar + 1; -LL | | } else { - | |_____^ - -error: this `if` has identical blocks - --> $DIR/if_same_then_else.rs:155:12 - | -LL | } else { - | ____________^ -LL | | //~ ERROR same body as `if` block -LL | | if let Some(a) = Some(42) {} -LL | | } - | |_____^ - | -note: same as this - --> $DIR/if_same_then_else.rs:153:13 - | -LL | if true { - | _____________^ -LL | | if let Some(a) = Some(42) {} -LL | | } else { - | |_____^ - -error: this `if` has identical blocks - --> $DIR/if_same_then_else.rs:162:12 - | -LL | } else { - | ____________^ -LL | | //~ ERROR same body as `if` block -LL | | if let (1, .., 3) = (1, 2, 3) {} -LL | | } - | |_____^ - | -note: same as this - --> $DIR/if_same_then_else.rs:160:13 - | -LL | if true { - | _____________^ -LL | | if let (1, .., 3) = (1, 2, 3) {} -LL | | } else { - | |_____^ - -error: this `if` has identical blocks - --> $DIR/if_same_then_else.rs:212:12 - | -LL | } else { - | ____________^ -LL | | //~ ERROR same body as `if` block -LL | | std::f32::NAN -LL | | }; - | |_____^ - | -note: same as this - --> $DIR/if_same_then_else.rs:210:21 - | -LL | let _ = if true { - | _____________________^ -LL | | std::f32::NAN -LL | | } else { - | |_____^ - -error: this `if` has identical blocks - --> $DIR/if_same_then_else.rs:219:12 - | -LL | } else { - | ____________^ -LL | | //~ ERROR same body as `if` block -LL | | try!(Ok("foo")); -LL | | } - | |_____^ - | -note: same as this - --> $DIR/if_same_then_else.rs:217:13 - | -LL | if true { - | _____________^ -LL | | try!(Ok("foo")); -LL | | } else { - | |_____^ - -error: aborting due to 10 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/if_same_then_else.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'if_same_then_else.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/if_same_then_else.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/if_same_then_else.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/if_same_then_else.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/if_same_then_else.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/implicit_hasher.rs stdout ---- normalized stderr: expected stderr: error: impl for `HashMap` should be generalized over different hashers --> $DIR/implicit_hasher.rs:11:35 | LL | impl Foo for HashMap { | ^^^^^^^^^^^^^ | = note: `-D clippy::implicit-hasher` implied by `-D warnings` help: consider adding a type parameter | LL | impl Foo for HashMap { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ help: ...and use generic constructor | LL | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default::default())) | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: impl for `HashMap` should be generalized over different hashers --> $DIR/implicit_hasher.rs:20:36 | LL | impl Foo for (HashMap,) { | ^^^^^^^^^^^^^ help: consider adding a type parameter | LL | impl Foo for (HashMap,) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ help: ...and use generic constructor | LL | ((HashMap::default(),), (HashMap::with_capacity_and_hasher(10, Default::default()),)) | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: impl for `HashMap` should be generalized over different hashers --> $DIR/implicit_hasher.rs:25:19 | LL | impl Foo for HashMap { | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider adding a type parameter | LL | impl Foo for HashMap { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: ...and use generic constructor | LL | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default::default())) | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: impl for `HashSet` should be generalized over different hashers --> $DIR/implicit_hasher.rs:42:32 | LL | impl Foo for HashSet { | ^^^^^^^^^^ help: consider adding a type parameter | LL | impl Foo for HashSet { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ help: ...and use generic constructor | LL | (HashSet::default(), HashSet::with_capacity_and_hasher(10, Default::default())) | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: impl for `HashSet` should be generalized over different hashers --> $DIR/implicit_hasher.rs:47:19 | LL | impl Foo for HashSet { | ^^^^^^^^^^^^^^^ help: consider adding a type parameter | LL | impl Foo for HashSet { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ help: ...and use generic constructor | LL | (HashSet::default(), HashSet::with_capacity_and_hasher(10, Default::default())) | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: parameter of type `HashMap` should be generalized over different hashers --> $DIR/implicit_hasher.rs:64:23 | LL | pub fn foo(_map: &mut HashMap, _set: &mut HashSet) {} | ^^^^^^^^^^^^^^^^^ help: consider adding a type parameter | LL | pub fn foo(_map: &mut HashMap, _set: &mut HashSet) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ error: parameter of type `HashSet` should be generalized over different hashers --> $DIR/implicit_hasher.rs:64:53 | LL | pub fn foo(_map: &mut HashMap, _set: &mut HashSet) {} | ^^^^^^^^^^^^ help: consider adding a type parameter | LL | pub fn foo(_map: &mut HashMap, _set: &mut HashSet) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ error: impl for `HashMap` should be generalized over different hashers --> $DIR/implicit_hasher.rs:68:43 | LL | impl Foo for HashMap { | ^^^^^^^^^^^^^ ... LL | gen!(impl); | ----------- in this macro invocation help: consider adding a type parameter | LL | impl Foo for HashMap { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ help: ...and use generic constructor | LL | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default::default())) | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: parameter of type `HashMap` should be generalized over different hashers --> $DIR/implicit_hasher.rs:76:33 | LL | pub fn $name(_map: &mut HashMap, _set: &mut HashSet) {} | ^^^^^^^^^^^^^^^^^ ... LL | gen!(fn bar); | ------------- in this macro invocation help: consider adding a type parameter | LL | pub fn $name(_map: &mut HashMap, _set: &mut HashSet) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ error: parameter of type `HashSet` should be generalized over different hashers --> $DIR/implicit_hasher.rs:76:63 | LL | pub fn $name(_map: &mut HashMap, _set: &mut HashSet) {} | ^^^^^^^^^^^^ ... LL | gen!(fn bar); | ------------- in this macro invocation help: consider adding a type parameter | LL | pub fn $name(_map: &mut HashMap, _set: &mut HashSet) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ error: aborting due to 10 previous errors diff of stderr: -error: impl for `HashMap` should be generalized over different hashers - --> $DIR/implicit_hasher.rs:11:35 - | -LL | impl Foo for HashMap { - | ^^^^^^^^^^^^^ - | - = note: `-D clippy::implicit-hasher` implied by `-D warnings` -help: consider adding a type parameter - | -LL | impl Foo for HashMap { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ -help: ...and use generic constructor - | -LL | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default::default())) - | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: impl for `HashMap` should be generalized over different hashers - --> $DIR/implicit_hasher.rs:20:36 - | -LL | impl Foo for (HashMap,) { - | ^^^^^^^^^^^^^ -help: consider adding a type parameter - | -LL | impl Foo for (HashMap,) { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ -help: ...and use generic constructor - | -LL | ((HashMap::default(),), (HashMap::with_capacity_and_hasher(10, Default::default()),)) - | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: impl for `HashMap` should be generalized over different hashers - --> $DIR/implicit_hasher.rs:25:19 - | -LL | impl Foo for HashMap { - | ^^^^^^^^^^^^^^^^^^^^^^^ -help: consider adding a type parameter - | -LL | impl Foo for HashMap { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ -help: ...and use generic constructor - | -LL | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default::default())) - | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: impl for `HashSet` should be generalized over different hashers - --> $DIR/implicit_hasher.rs:42:32 - | -LL | impl Foo for HashSet { - | ^^^^^^^^^^ -help: consider adding a type parameter - | -LL | impl Foo for HashSet { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ -help: ...and use generic constructor - | -LL | (HashSet::default(), HashSet::with_capacity_and_hasher(10, Default::default())) - | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: impl for `HashSet` should be generalized over different hashers - --> $DIR/implicit_hasher.rs:47:19 - | -LL | impl Foo for HashSet { - | ^^^^^^^^^^^^^^^ -help: consider adding a type parameter - | -LL | impl Foo for HashSet { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ -help: ...and use generic constructor - | -LL | (HashSet::default(), HashSet::with_capacity_and_hasher(10, Default::default())) - | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: parameter of type `HashMap` should be generalized over different hashers - --> $DIR/implicit_hasher.rs:64:23 - | -LL | pub fn foo(_map: &mut HashMap, _set: &mut HashSet) {} - | ^^^^^^^^^^^^^^^^^ -help: consider adding a type parameter - | -LL | pub fn foo(_map: &mut HashMap, _set: &mut HashSet) {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ - -error: parameter of type `HashSet` should be generalized over different hashers - --> $DIR/implicit_hasher.rs:64:53 - | -LL | pub fn foo(_map: &mut HashMap, _set: &mut HashSet) {} - | ^^^^^^^^^^^^ -help: consider adding a type parameter - | -LL | pub fn foo(_map: &mut HashMap, _set: &mut HashSet) {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ - -error: impl for `HashMap` should be generalized over different hashers - --> $DIR/implicit_hasher.rs:68:43 - | -LL | impl Foo for HashMap { - | ^^^^^^^^^^^^^ -... -LL | gen!(impl); - | ----------- in this macro invocation -help: consider adding a type parameter - | -LL | impl Foo for HashMap { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ -help: ...and use generic constructor - | -LL | (HashMap::default(), HashMap::with_capacity_and_hasher(10, Default::default())) - | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: parameter of type `HashMap` should be generalized over different hashers - --> $DIR/implicit_hasher.rs:76:33 - | -LL | pub fn $name(_map: &mut HashMap, _set: &mut HashSet) {} - | ^^^^^^^^^^^^^^^^^ -... -LL | gen!(fn bar); - | ------------- in this macro invocation -help: consider adding a type parameter - | -LL | pub fn $name(_map: &mut HashMap, _set: &mut HashSet) {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ - -error: parameter of type `HashSet` should be generalized over different hashers - --> $DIR/implicit_hasher.rs:76:63 - | -LL | pub fn $name(_map: &mut HashMap, _set: &mut HashSet) {} - | ^^^^^^^^^^^^ -... -LL | gen!(fn bar); - | ------------- in this macro invocation -help: consider adding a type parameter - | -LL | pub fn $name(_map: &mut HashMap, _set: &mut HashSet) {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ - -error: aborting due to 10 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/implicit_hasher.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'implicit_hasher.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/implicit_hasher.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/implicit_hasher.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/implicit_hasher.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/implicit_hasher.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/ifs_same_cond.rs stdout ---- normalized stderr: expected stderr: error: this `if` has the same condition as a previous if --> $DIR/ifs_same_cond.rs:9:15 | LL | } else if b { | ^ | = note: `-D clippy::ifs-same-cond` implied by `-D warnings` note: same as this --> $DIR/ifs_same_cond.rs:8:8 | LL | if b { | ^ error: this `if` has the same condition as a previous if --> $DIR/ifs_same_cond.rs:14:15 | LL | } else if a == 1 { | ^^^^^^ | note: same as this --> $DIR/ifs_same_cond.rs:13:8 | LL | if a == 1 { | ^^^^^^ error: this `if` has the same condition as a previous if --> $DIR/ifs_same_cond.rs:20:15 | LL | } else if 2 * a == 1 { | ^^^^^^^^^^ | note: same as this --> $DIR/ifs_same_cond.rs:18:8 | LL | if 2 * a == 1 { | ^^^^^^^^^^ error: aborting due to 3 previous errors diff of stderr: -error: this `if` has the same condition as a previous if - --> $DIR/ifs_same_cond.rs:9:15 - | -LL | } else if b { - | ^ - | - = note: `-D clippy::ifs-same-cond` implied by `-D warnings` -note: same as this - --> $DIR/ifs_same_cond.rs:8:8 - | -LL | if b { - | ^ - -error: this `if` has the same condition as a previous if - --> $DIR/ifs_same_cond.rs:14:15 - | -LL | } else if a == 1 { - | ^^^^^^ - | -note: same as this - --> $DIR/ifs_same_cond.rs:13:8 - | -LL | if a == 1 { - | ^^^^^^ - -error: this `if` has the same condition as a previous if - --> $DIR/ifs_same_cond.rs:20:15 - | -LL | } else if 2 * a == 1 { - | ^^^^^^^^^^ - | -note: same as this - --> $DIR/ifs_same_cond.rs:18:8 - | -LL | if 2 * a == 1 { - | ^^^^^^^^^^ - -error: aborting due to 3 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/ifs_same_cond.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'ifs_same_cond.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/ifs_same_cond.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/ifs_same_cond.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/ifs_same_cond.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/ifs_same_cond.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/implicit_return.rs stdout ---- normalized stderr: expected stderr: error: missing return statement --> $DIR/implicit_return.rs:8:5 | LL | true | ^^^^ help: add `return` as shown: `return true` | = note: `-D clippy::implicit-return` implied by `-D warnings` error: missing return statement --> $DIR/implicit_return.rs:14:9 | LL | true | ^^^^ help: add `return` as shown: `return true` error: missing return statement --> $DIR/implicit_return.rs:16:9 | LL | false | ^^^^^ help: add `return` as shown: `return false` error: missing return statement --> $DIR/implicit_return.rs:24:17 | LL | true => false, | ^^^^^ help: add `return` as shown: `return false` error: missing return statement --> $DIR/implicit_return.rs:25:20 | LL | false => { true }, | ^^^^ help: add `return` as shown: `return true` error: missing return statement --> $DIR/implicit_return.rs:40:9 | LL | break true; | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true` error: missing return statement --> $DIR/implicit_return.rs:48:13 | LL | break true; | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true` error: missing return statement --> $DIR/implicit_return.rs:57:13 | LL | break true; | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true` error: missing return statement --> $DIR/implicit_return.rs:75:18 | LL | let _ = || { true }; | ^^^^ help: add `return` as shown: `return true` error: missing return statement --> $DIR/implicit_return.rs:76:16 | LL | let _ = || true; | ^^^^ help: add `return` as shown: `return true` error: aborting due to 10 previous errors diff of stderr: -error: missing return statement - --> $DIR/implicit_return.rs:8:5 - | -LL | true - | ^^^^ help: add `return` as shown: `return true` - | - = note: `-D clippy::implicit-return` implied by `-D warnings` - -error: missing return statement - --> $DIR/implicit_return.rs:14:9 - | -LL | true - | ^^^^ help: add `return` as shown: `return true` - -error: missing return statement - --> $DIR/implicit_return.rs:16:9 - | -LL | false - | ^^^^^ help: add `return` as shown: `return false` - -error: missing return statement - --> $DIR/implicit_return.rs:24:17 - | -LL | true => false, - | ^^^^^ help: add `return` as shown: `return false` - -error: missing return statement - --> $DIR/implicit_return.rs:25:20 - | -LL | false => { true }, - | ^^^^ help: add `return` as shown: `return true` - -error: missing return statement - --> $DIR/implicit_return.rs:40:9 - | -LL | break true; - | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true` - -error: missing return statement - --> $DIR/implicit_return.rs:48:13 - | -LL | break true; - | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true` - -error: missing return statement - --> $DIR/implicit_return.rs:57:13 - | -LL | break true; - | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true` - -error: missing return statement - --> $DIR/implicit_return.rs:75:18 - | -LL | let _ = || { true }; - | ^^^^ help: add `return` as shown: `return true` - -error: missing return statement - --> $DIR/implicit_return.rs:76:16 - | -LL | let _ = || true; - | ^^^^ help: add `return` as shown: `return true` - -error: aborting due to 10 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/implicit_return.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'implicit_return.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/implicit_return.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/implicit_return.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/implicit_return.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/implicit_return.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/infinite_iter.rs stdout ---- normalized stderr: expected stderr: error: you are collect()ing an iterator and throwing away the result. Consider using an explicit for loop to exhaust the iterator --> $DIR/infinite_iter.rs:10:5 | LL | repeat(0_u8).collect::>(); // infinite iter | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::unused-collect` implied by `-D warnings` error: infinite iteration detected --> $DIR/infinite_iter.rs:10:5 | LL | repeat(0_u8).collect::>(); // infinite iter | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: lint level defined here --> $DIR/infinite_iter.rs:8:8 | LL | #[deny(clippy::infinite_iter)] | ^^^^^^^^^^^^^^^^^^^^^ error: infinite iteration detected --> $DIR/infinite_iter.rs:11:5 | LL | (0..8_u32).take_while(square_is_lower_64).cycle().count(); // infinite iter | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: infinite iteration detected --> $DIR/infinite_iter.rs:12:5 | LL | (0..8_u64).chain(0..).max(); // infinite iter | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: infinite iteration detected --> $DIR/infinite_iter.rs:17:5 | LL | / (0..8_u32) LL | | .rev() LL | | .cycle() LL | | .map(|x| x + 1_u32) LL | | .for_each(|x| println!("{}", x)); // infinite iter | |________________________________________^ error: infinite iteration detected --> $DIR/infinite_iter.rs:23:5 | LL | (0_usize..).flat_map(|x| 0..x).product::(); // infinite iter | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: infinite iteration detected --> $DIR/infinite_iter.rs:24:5 | LL | (0_u64..).filter(|x| x % 2 == 0).last(); // infinite iter | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: possible infinite iteration detected --> $DIR/infinite_iter.rs:31:5 | LL | (0..).zip((0..).take_while(square_is_lower_64)).count(); // maybe infinite iter | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: lint level defined here --> $DIR/infinite_iter.rs:29:8 | LL | #[deny(clippy::maybe_infinite_iter)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: possible infinite iteration detected --> $DIR/infinite_iter.rs:32:5 | LL | repeat(42).take_while(|x| *x == 42).chain(0..42).max(); // maybe infinite iter | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: possible infinite iteration detected --> $DIR/infinite_iter.rs:33:5 | LL | / (1..) LL | | .scan(0, |state, x| { LL | | *state += x; LL | | Some(*state) LL | | }) LL | | .min(); // maybe infinite iter | |______________^ error: possible infinite iteration detected --> $DIR/infinite_iter.rs:39:5 | LL | (0..).find(|x| *x == 24); // maybe infinite iter | ^^^^^^^^^^^^^^^^^^^^^^^^ error: possible infinite iteration detected --> $DIR/infinite_iter.rs:40:5 | LL | (0..).position(|x| x == 24); // maybe infinite iter | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: possible infinite iteration detected --> $DIR/infinite_iter.rs:41:5 | LL | (0..).any(|x| x == 24); // maybe infinite iter | ^^^^^^^^^^^^^^^^^^^^^^ error: possible infinite iteration detected --> $DIR/infinite_iter.rs:42:5 | LL | (0..).all(|x| x == 24); // maybe infinite iter | ^^^^^^^^^^^^^^^^^^^^^^ error: infinite iteration detected --> $DIR/infinite_iter.rs:65:31 | LL | let _: HashSet = (0..).collect(); // Infinite iter | ^^^^^^^^^^^^^^^ | = note: #[deny(clippy::infinite_iter)] on by default error: aborting due to 15 previous errors diff of stderr: -error: you are collect()ing an iterator and throwing away the result. Consider using an explicit for loop to exhaust the iterator - --> $DIR/infinite_iter.rs:10:5 - | -LL | repeat(0_u8).collect::>(); // infinite iter - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::unused-collect` implied by `-D warnings` - -error: infinite iteration detected - --> $DIR/infinite_iter.rs:10:5 - | -LL | repeat(0_u8).collect::>(); // infinite iter - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | -note: lint level defined here - --> $DIR/infinite_iter.rs:8:8 - | -LL | #[deny(clippy::infinite_iter)] - | ^^^^^^^^^^^^^^^^^^^^^ - -error: infinite iteration detected - --> $DIR/infinite_iter.rs:11:5 - | -LL | (0..8_u32).take_while(square_is_lower_64).cycle().count(); // infinite iter - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: infinite iteration detected - --> $DIR/infinite_iter.rs:12:5 - | -LL | (0..8_u64).chain(0..).max(); // infinite iter - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: infinite iteration detected - --> $DIR/infinite_iter.rs:17:5 - | -LL | / (0..8_u32) -LL | | .rev() -LL | | .cycle() -LL | | .map(|x| x + 1_u32) -LL | | .for_each(|x| println!("{}", x)); // infinite iter - | |________________________________________^ - -error: infinite iteration detected - --> $DIR/infinite_iter.rs:23:5 - | -LL | (0_usize..).flat_map(|x| 0..x).product::(); // infinite iter - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: infinite iteration detected - --> $DIR/infinite_iter.rs:24:5 - | -LL | (0_u64..).filter(|x| x % 2 == 0).last(); // infinite iter - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: possible infinite iteration detected - --> $DIR/infinite_iter.rs:31:5 - | -LL | (0..).zip((0..).take_while(square_is_lower_64)).count(); // maybe infinite iter - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | -note: lint level defined here - --> $DIR/infinite_iter.rs:29:8 - | -LL | #[deny(clippy::maybe_infinite_iter)] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: possible infinite iteration detected - --> $DIR/infinite_iter.rs:32:5 - | -LL | repeat(42).take_while(|x| *x == 42).chain(0..42).max(); // maybe infinite iter - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: possible infinite iteration detected - --> $DIR/infinite_iter.rs:33:5 - | -LL | / (1..) -LL | | .scan(0, |state, x| { -LL | | *state += x; -LL | | Some(*state) -LL | | }) -LL | | .min(); // maybe infinite iter - | |______________^ - -error: possible infinite iteration detected - --> $DIR/infinite_iter.rs:39:5 - | -LL | (0..).find(|x| *x == 24); // maybe infinite iter - | ^^^^^^^^^^^^^^^^^^^^^^^^ - -error: possible infinite iteration detected - --> $DIR/infinite_iter.rs:40:5 - | -LL | (0..).position(|x| x == 24); // maybe infinite iter - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: possible infinite iteration detected - --> $DIR/infinite_iter.rs:41:5 - | -LL | (0..).any(|x| x == 24); // maybe infinite iter - | ^^^^^^^^^^^^^^^^^^^^^^ - -error: possible infinite iteration detected - --> $DIR/infinite_iter.rs:42:5 - | -LL | (0..).all(|x| x == 24); // maybe infinite iter - | ^^^^^^^^^^^^^^^^^^^^^^ - -error: infinite iteration detected - --> $DIR/infinite_iter.rs:65:31 - | -LL | let _: HashSet = (0..).collect(); // Infinite iter - | ^^^^^^^^^^^^^^^ - | - = note: #[deny(clippy::infinite_iter)] on by default - -error: aborting due to 15 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/infinite_iter.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'infinite_iter.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/infinite_iter.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/infinite_iter.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/infinite_iter.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/infinite_iter.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/invalid_upcast_comparisons.rs stdout ---- normalized stderr: expected stderr: error: because of the numeric bounds on `u8` prior to casting, this expression is always false --> $DIR/invalid_upcast_comparisons.rs:21:5 | LL | (u8 as u32) > 300; | ^^^^^^^^^^^^^^^^^ | = note: `-D clippy::invalid-upcast-comparisons` implied by `-D warnings` error: because of the numeric bounds on `u8` prior to casting, this expression is always false --> $DIR/invalid_upcast_comparisons.rs:22:5 | LL | (u8 as i32) > 300; | ^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always false --> $DIR/invalid_upcast_comparisons.rs:23:5 | LL | (u8 as u32) == 300; | ^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always false --> $DIR/invalid_upcast_comparisons.rs:24:5 | LL | (u8 as i32) == 300; | ^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always false --> $DIR/invalid_upcast_comparisons.rs:25:5 | LL | 300 < (u8 as u32); | ^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always false --> $DIR/invalid_upcast_comparisons.rs:26:5 | LL | 300 < (u8 as i32); | ^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always false --> $DIR/invalid_upcast_comparisons.rs:27:5 | LL | 300 == (u8 as u32); | ^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always false --> $DIR/invalid_upcast_comparisons.rs:28:5 | LL | 300 == (u8 as i32); | ^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always true --> $DIR/invalid_upcast_comparisons.rs:30:5 | LL | (u8 as u32) <= 300; | ^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always true --> $DIR/invalid_upcast_comparisons.rs:31:5 | LL | (u8 as i32) <= 300; | ^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always true --> $DIR/invalid_upcast_comparisons.rs:32:5 | LL | (u8 as u32) != 300; | ^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always true --> $DIR/invalid_upcast_comparisons.rs:33:5 | LL | (u8 as i32) != 300; | ^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always true --> $DIR/invalid_upcast_comparisons.rs:34:5 | LL | 300 >= (u8 as u32); | ^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always true --> $DIR/invalid_upcast_comparisons.rs:35:5 | LL | 300 >= (u8 as i32); | ^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always true --> $DIR/invalid_upcast_comparisons.rs:36:5 | LL | 300 != (u8 as u32); | ^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always true --> $DIR/invalid_upcast_comparisons.rs:37:5 | LL | 300 != (u8 as i32); | ^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always false --> $DIR/invalid_upcast_comparisons.rs:40:5 | LL | (u8 as i32) < 0; | ^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always true --> $DIR/invalid_upcast_comparisons.rs:41:5 | LL | -5 != (u8 as i32); | ^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always true --> $DIR/invalid_upcast_comparisons.rs:43:5 | LL | (u8 as i32) >= 0; | ^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always false --> $DIR/invalid_upcast_comparisons.rs:44:5 | LL | -5 == (u8 as i32); | ^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always false --> $DIR/invalid_upcast_comparisons.rs:47:5 | LL | 1337 == (u8 as i32); | ^^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always false --> $DIR/invalid_upcast_comparisons.rs:48:5 | LL | 1337 == (u8 as u32); | ^^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always true --> $DIR/invalid_upcast_comparisons.rs:50:5 | LL | 1337 != (u8 as i32); | ^^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always true --> $DIR/invalid_upcast_comparisons.rs:51:5 | LL | 1337 != (u8 as u32); | ^^^^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always true --> $DIR/invalid_upcast_comparisons.rs:65:5 | LL | (u8 as i32) > -1; | ^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always false --> $DIR/invalid_upcast_comparisons.rs:66:5 | LL | (u8 as i32) < -1; | ^^^^^^^^^^^^^^^^ error: because of the numeric bounds on `u8` prior to casting, this expression is always false --> $DIR/invalid_upcast_comparisons.rs:82:5 | LL | -5 >= (u8 as i32); | ^^^^^^^^^^^^^^^^^ error: aborting due to 27 previous errors diff of stderr: -error: because of the numeric bounds on `u8` prior to casting, this expression is always false - --> $DIR/invalid_upcast_comparisons.rs:21:5 - | -LL | (u8 as u32) > 300; - | ^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::invalid-upcast-comparisons` implied by `-D warnings` - -error: because of the numeric bounds on `u8` prior to casting, this expression is always false - --> $DIR/invalid_upcast_comparisons.rs:22:5 - | -LL | (u8 as i32) > 300; - | ^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always false - --> $DIR/invalid_upcast_comparisons.rs:23:5 - | -LL | (u8 as u32) == 300; - | ^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always false - --> $DIR/invalid_upcast_comparisons.rs:24:5 - | -LL | (u8 as i32) == 300; - | ^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always false - --> $DIR/invalid_upcast_comparisons.rs:25:5 - | -LL | 300 < (u8 as u32); - | ^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always false - --> $DIR/invalid_upcast_comparisons.rs:26:5 - | -LL | 300 < (u8 as i32); - | ^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always false - --> $DIR/invalid_upcast_comparisons.rs:27:5 - | -LL | 300 == (u8 as u32); - | ^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always false - --> $DIR/invalid_upcast_comparisons.rs:28:5 - | -LL | 300 == (u8 as i32); - | ^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always true - --> $DIR/invalid_upcast_comparisons.rs:30:5 - | -LL | (u8 as u32) <= 300; - | ^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always true - --> $DIR/invalid_upcast_comparisons.rs:31:5 - | -LL | (u8 as i32) <= 300; - | ^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always true - --> $DIR/invalid_upcast_comparisons.rs:32:5 - | -LL | (u8 as u32) != 300; - | ^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always true - --> $DIR/invalid_upcast_comparisons.rs:33:5 - | -LL | (u8 as i32) != 300; - | ^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always true - --> $DIR/invalid_upcast_comparisons.rs:34:5 - | -LL | 300 >= (u8 as u32); - | ^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always true - --> $DIR/invalid_upcast_comparisons.rs:35:5 - | -LL | 300 >= (u8 as i32); - | ^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always true - --> $DIR/invalid_upcast_comparisons.rs:36:5 - | -LL | 300 != (u8 as u32); - | ^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always true - --> $DIR/invalid_upcast_comparisons.rs:37:5 - | -LL | 300 != (u8 as i32); - | ^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always false - --> $DIR/invalid_upcast_comparisons.rs:40:5 - | -LL | (u8 as i32) < 0; - | ^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always true - --> $DIR/invalid_upcast_comparisons.rs:41:5 - | -LL | -5 != (u8 as i32); - | ^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always true - --> $DIR/invalid_upcast_comparisons.rs:43:5 - | -LL | (u8 as i32) >= 0; - | ^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always false - --> $DIR/invalid_upcast_comparisons.rs:44:5 - | -LL | -5 == (u8 as i32); - | ^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always false - --> $DIR/invalid_upcast_comparisons.rs:47:5 - | -LL | 1337 == (u8 as i32); - | ^^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always false - --> $DIR/invalid_upcast_comparisons.rs:48:5 - | -LL | 1337 == (u8 as u32); - | ^^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always true - --> $DIR/invalid_upcast_comparisons.rs:50:5 - | -LL | 1337 != (u8 as i32); - | ^^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always true - --> $DIR/invalid_upcast_comparisons.rs:51:5 - | -LL | 1337 != (u8 as u32); - | ^^^^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always true - --> $DIR/invalid_upcast_comparisons.rs:65:5 - | -LL | (u8 as i32) > -1; - | ^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always false - --> $DIR/invalid_upcast_comparisons.rs:66:5 - | -LL | (u8 as i32) < -1; - | ^^^^^^^^^^^^^^^^ - -error: because of the numeric bounds on `u8` prior to casting, this expression is always false - --> $DIR/invalid_upcast_comparisons.rs:82:5 - | -LL | -5 >= (u8 as i32); - | ^^^^^^^^^^^^^^^^^ - -error: aborting due to 27 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/invalid_upcast_comparisons.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'invalid_upcast_comparisons.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/invalid_upcast_comparisons.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/invalid_upcast_comparisons.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/invalid_upcast_comparisons.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/invalid_upcast_comparisons.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/iter_skip_next.rs stdout ---- error: auxiliary build of "tests/ui/auxiliary/option_helpers.rs" failed to compile: status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/auxiliary/option_helpers.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "--out-dir" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/iter_skip_next.stage-id.aux" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "--crate-type" "dylib" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/iter_skip_next.stage-id.aux" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/iter_skip_next.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/issue_3849.rs stdout ---- normalized stdout: expected stdout: if_chain! { if let StmtKind::Local(ref local) = stmt.node; if let Some(ref init) = local.init; if let ExprKind::Call(ref func, ref args) = init.node; if let ExprKind::Path(ref path) = func.node; if match_qpath(path, &["std", "mem", "transmute"]); if args.len() == 1; if let ExprKind::Path(ref path1) = args[0].node; if match_qpath(path1, &["ZPTR"]); if let PatKind::Wild = local.pat.node; then { // report your lint here } } diff of stdout: -if_chain! { - if let StmtKind::Local(ref local) = stmt.node; - if let Some(ref init) = local.init; - if let ExprKind::Call(ref func, ref args) = init.node; - if let ExprKind::Path(ref path) = func.node; - if match_qpath(path, &["std", "mem", "transmute"]); - if args.len() == 1; - if let ExprKind::Path(ref path1) = args[0].node; - if match_qpath(path1, &["ZPTR"]); - if let PatKind::Wild = local.pat.node; - then { - // report your lint here - } -} - The actual stdout differed from the expected stdout. Actual stdout saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/issue_3849.stdout To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'issue_3849.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/issue_3849.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/issue_3849.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/issue_3849.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/issue_3849.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/infinite_loop.rs stdout ---- normalized stderr: expected stderr: error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. --> $DIR/infinite_loop.rs:23:11 | LL | while y < 10 { | ^^^^^^ | = note: #[deny(clippy::while_immutable_condition)] on by default error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. --> $DIR/infinite_loop.rs:28:11 | LL | while y < 10 && x < 3 { | ^^^^^^^^^^^^^^^ error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. --> $DIR/infinite_loop.rs:35:11 | LL | while !cond { | ^^^^^ error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. --> $DIR/infinite_loop.rs:79:11 | LL | while i < 3 { | ^^^^^ error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. --> $DIR/infinite_loop.rs:84:11 | LL | while i < 3 && j > 0 { | ^^^^^^^^^^^^^^ error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. --> $DIR/infinite_loop.rs:88:11 | LL | while i < 3 { | ^^^^^ error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. --> $DIR/infinite_loop.rs:103:11 | LL | while i < 3 { | ^^^^^ error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. --> $DIR/infinite_loop.rs:108:11 | LL | while i < 3 { | ^^^^^ error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. --> $DIR/infinite_loop.rs:174:15 | LL | while self.count < n { | ^^^^^^^^^^^^^^ error: aborting due to 9 previous errors diff of stderr: -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. - --> $DIR/infinite_loop.rs:23:11 - | -LL | while y < 10 { - | ^^^^^^ - | - = note: #[deny(clippy::while_immutable_condition)] on by default - -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. - --> $DIR/infinite_loop.rs:28:11 - | -LL | while y < 10 && x < 3 { - | ^^^^^^^^^^^^^^^ - -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. - --> $DIR/infinite_loop.rs:35:11 - | -LL | while !cond { - | ^^^^^ - -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. - --> $DIR/infinite_loop.rs:79:11 - | -LL | while i < 3 { - | ^^^^^ - -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. - --> $DIR/infinite_loop.rs:84:11 - | -LL | while i < 3 && j > 0 { - | ^^^^^^^^^^^^^^ - -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. - --> $DIR/infinite_loop.rs:88:11 - | -LL | while i < 3 { - | ^^^^^ - -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. - --> $DIR/infinite_loop.rs:103:11 - | -LL | while i < 3 { - | ^^^^^ - -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. - --> $DIR/infinite_loop.rs:108:11 - | -LL | while i < 3 { - | ^^^^^ - -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. - --> $DIR/infinite_loop.rs:174:15 - | -LL | while self.count < n { - | ^^^^^^^^^^^^^^ - -error: aborting due to 9 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/infinite_loop.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'infinite_loop.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/infinite_loop.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/infinite_loop.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/infinite_loop.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/infinite_loop.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/issue_2356.rs stdout ---- normalized stderr: expected stderr: error: this loop could be written as a `for` loop --> $DIR/issue_2356.rs:15:29 | LL | while let Some(e) = it.next() { | ^^^^^^^^^ help: try: `for e in it { .. }` | note: lint level defined here --> $DIR/issue_2356.rs:1:9 | LL | #![deny(clippy::while_let_on_iterator)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to previous error diff of stderr: -error: this loop could be written as a `for` loop - --> $DIR/issue_2356.rs:15:29 - | -LL | while let Some(e) = it.next() { - | ^^^^^^^^^ help: try: `for e in it { .. }` - | -note: lint level defined here - --> $DIR/issue_2356.rs:1:9 - | -LL | #![deny(clippy::while_let_on_iterator)] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: aborting due to previous error - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/issue_2356.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'issue_2356.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/issue_2356.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/issue_2356.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/issue_2356.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/issue_2356.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/len_zero.rs stdout ---- normalized stderr: expected stderr: error: item `PubOne` has a public `len` method but no corresponding `is_empty` method --> $DIR/len_zero.rs:6:1 | LL | / impl PubOne { LL | | pub fn len(self: &Self) -> isize { LL | | 1 LL | | } LL | | } | |_^ | = note: `-D clippy::len-without-is-empty` implied by `-D warnings` error: trait `PubTraitsToo` has a `len` method but no (possibly inherited) `is_empty` method --> $DIR/len_zero.rs:55:1 | LL | / pub trait PubTraitsToo { LL | | fn len(self: &Self) -> isize; LL | | } | |_^ error: item `HasIsEmpty` has a public `len` method but a private `is_empty` method --> $DIR/len_zero.rs:90:1 | LL | / impl HasIsEmpty { LL | | pub fn len(self: &Self) -> isize { LL | | 1 LL | | } ... | LL | | } LL | | } | |_^ error: item `HasWrongIsEmpty` has a public `len` method but no corresponding `is_empty` method --> $DIR/len_zero.rs:119:1 | LL | / impl HasWrongIsEmpty { LL | | pub fn len(self: &Self) -> isize { LL | | 1 LL | | } ... | LL | | } LL | | } | |_^ error: length comparison to zero --> $DIR/len_zero.rs:140:8 | LL | if x.len() == 0 { | ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `x.is_empty()` | = note: `-D clippy::len-zero` implied by `-D warnings` error: length comparison to zero --> $DIR/len_zero.rs:144:8 | LL | if "".len() == 0 {} | ^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `"".is_empty()` error: length comparison to zero --> $DIR/len_zero.rs:159:8 | LL | if has_is_empty.len() == 0 { | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()` error: length comparison to zero --> $DIR/len_zero.rs:162:8 | LL | if has_is_empty.len() != 0 { | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` error: length comparison to zero --> $DIR/len_zero.rs:165:8 | LL | if has_is_empty.len() > 0 { | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` error: length comparison to one --> $DIR/len_zero.rs:168:8 | LL | if has_is_empty.len() < 1 { | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()` error: length comparison to one --> $DIR/len_zero.rs:171:8 | LL | if has_is_empty.len() >= 1 { | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` error: length comparison to zero --> $DIR/len_zero.rs:182:8 | LL | if 0 == has_is_empty.len() { | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()` error: length comparison to zero --> $DIR/len_zero.rs:185:8 | LL | if 0 != has_is_empty.len() { | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` error: length comparison to zero --> $DIR/len_zero.rs:188:8 | LL | if 0 < has_is_empty.len() { | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` error: length comparison to one --> $DIR/len_zero.rs:191:8 | LL | if 1 <= has_is_empty.len() { | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` error: length comparison to one --> $DIR/len_zero.rs:194:8 | LL | if 1 > has_is_empty.len() { | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()` error: length comparison to zero --> $DIR/len_zero.rs:208:8 | LL | if with_is_empty.len() == 0 { | ^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `with_is_empty.is_empty()` error: length comparison to zero --> $DIR/len_zero.rs:221:8 | LL | if b.len() != 0 {} | ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!b.is_empty()` error: trait `DependsOnFoo` has a `len` method but no (possibly inherited) `is_empty` method --> $DIR/len_zero.rs:227:1 | LL | / pub trait DependsOnFoo: Foo { LL | | fn len(&mut self) -> usize; LL | | } | |_^ error: aborting due to 19 previous errors diff of stderr: -error: item `PubOne` has a public `len` method but no corresponding `is_empty` method - --> $DIR/len_zero.rs:6:1 - | -LL | / impl PubOne { -LL | | pub fn len(self: &Self) -> isize { -LL | | 1 -LL | | } -LL | | } - | |_^ - | - = note: `-D clippy::len-without-is-empty` implied by `-D warnings` - -error: trait `PubTraitsToo` has a `len` method but no (possibly inherited) `is_empty` method - --> $DIR/len_zero.rs:55:1 - | -LL | / pub trait PubTraitsToo { -LL | | fn len(self: &Self) -> isize; -LL | | } - | |_^ - -error: item `HasIsEmpty` has a public `len` method but a private `is_empty` method - --> $DIR/len_zero.rs:90:1 - | -LL | / impl HasIsEmpty { -LL | | pub fn len(self: &Self) -> isize { -LL | | 1 -LL | | } -... | -LL | | } -LL | | } - | |_^ - -error: item `HasWrongIsEmpty` has a public `len` method but no corresponding `is_empty` method - --> $DIR/len_zero.rs:119:1 - | -LL | / impl HasWrongIsEmpty { -LL | | pub fn len(self: &Self) -> isize { -LL | | 1 -LL | | } -... | -LL | | } -LL | | } - | |_^ - -error: length comparison to zero - --> $DIR/len_zero.rs:140:8 - | -LL | if x.len() == 0 { - | ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `x.is_empty()` - | - = note: `-D clippy::len-zero` implied by `-D warnings` - -error: length comparison to zero - --> $DIR/len_zero.rs:144:8 - | -LL | if "".len() == 0 {} - | ^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `"".is_empty()` - -error: length comparison to zero - --> $DIR/len_zero.rs:159:8 - | -LL | if has_is_empty.len() == 0 { - | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()` - -error: length comparison to zero - --> $DIR/len_zero.rs:162:8 - | -LL | if has_is_empty.len() != 0 { - | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` - -error: length comparison to zero - --> $DIR/len_zero.rs:165:8 - | -LL | if has_is_empty.len() > 0 { - | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` - -error: length comparison to one - --> $DIR/len_zero.rs:168:8 - | -LL | if has_is_empty.len() < 1 { - | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()` - -error: length comparison to one - --> $DIR/len_zero.rs:171:8 - | -LL | if has_is_empty.len() >= 1 { - | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` - -error: length comparison to zero - --> $DIR/len_zero.rs:182:8 - | -LL | if 0 == has_is_empty.len() { - | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()` - -error: length comparison to zero - --> $DIR/len_zero.rs:185:8 - | -LL | if 0 != has_is_empty.len() { - | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` - -error: length comparison to zero - --> $DIR/len_zero.rs:188:8 - | -LL | if 0 < has_is_empty.len() { - | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` - -error: length comparison to one - --> $DIR/len_zero.rs:191:8 - | -LL | if 1 <= has_is_empty.len() { - | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` - -error: length comparison to one - --> $DIR/len_zero.rs:194:8 - | -LL | if 1 > has_is_empty.len() { - | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()` - -error: length comparison to zero - --> $DIR/len_zero.rs:208:8 - | -LL | if with_is_empty.len() == 0 { - | ^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `with_is_empty.is_empty()` - -error: length comparison to zero - --> $DIR/len_zero.rs:221:8 - | -LL | if b.len() != 0 {} - | ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!b.is_empty()` - -error: trait `DependsOnFoo` has a `len` method but no (possibly inherited) `is_empty` method - --> $DIR/len_zero.rs:227:1 - | -LL | / pub trait DependsOnFoo: Foo { -LL | | fn len(&mut self) -> usize; -LL | | } - | |_^ - -error: aborting due to 19 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/len_zero.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'len_zero.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/len_zero.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/len_zero.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/len_zero.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/len_zero.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/let_return.rs stdout ---- normalized stderr: error: returning the result of a let binding from a block. Consider returning the expression directly. --> $DIR/let_return.rs:7:5 | LL | x | ^ | = note: `-D clippy::let-and-return` implied by `-D warnings` note: this expression can be directly returned --> $DIR/let_return.rs:6:13 | LL | let x = 5; | ^ expected stderr: error: returning the result of a let binding from a block. Consider returning the expression directly. --> $DIR/let_return.rs:7:5 | LL | x | ^ | = note: `-D clippy::let-and-return` implied by `-D warnings` note: this expression can be directly returned --> $DIR/let_return.rs:6:13 | LL | let x = 5; | ^ error: returning the result of a let binding from a block. Consider returning the expression directly. --> $DIR/let_return.rs:13:9 | LL | x | ^ | note: this expression can be directly returned --> $DIR/let_return.rs:12:17 | LL | let x = 5; | ^ error: aborting due to 2 previous errors diff of stderr: error: returning the result of a let binding from a block. Consider returning the expression directly. --> $DIR/let_return.rs:7:5 | LL | x | ^ | = note: `-D clippy::let-and-return` implied by `-D warnings` note: this expression can be directly returned --> $DIR/let_return.rs:6:13 | LL | let x = 5; | ^ -error: returning the result of a let binding from a block. Consider returning the expression directly. - --> $DIR/let_return.rs:13:9 - | -LL | x - | ^ - | -note: this expression can be directly returned - --> $DIR/let_return.rs:12:17 - | -LL | let x = 5; - | ^ - -error: aborting due to 2 previous errors - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/let_return.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'let_return.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/let_return.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/let_return.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/let_return.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ {"message":"returning the result of a let binding from a block. Consider returning the expression directly.","code":{"code":"clippy::let_and_return","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/let_return.rs","byte_start":120,"byte_end":121,"line_start":7,"line_end":7,"column_start":5,"column_end":6,"is_primary":true,"text":[{"text":" x","highlight_start":5,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D clippy::let-and-return` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"this expression can be directly returned","code":null,"level":"note","spans":[{"file_name":"tests/ui/let_return.rs","byte_start":113,"byte_end":114,"line_start":6,"line_end":6,"column_start":13,"column_end":14,"is_primary":true,"text":[{"text":" let x = 5;","highlight_start":13,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error: returning the result of a let binding from a block. Consider returning the expression directly.\n --> tests/ui/let_return.rs:7:5\n |\nLL | x\n | ^\n |\n = note: `-D clippy::let-and-return` implied by `-D warnings`\nnote: this expression can be directly returned\n --> tests/ui/let_return.rs:6:13\n |\nLL | let x = 5;\n | ^\n\n"} ------------------------------------------ thread '[ui] ui/let_return.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/let_if_seq.rs stdout ---- normalized stderr: expected stderr: error: `if _ { .. } else { .. }` is an expression --> $DIR/let_if_seq.rs:63:5 | LL | / let mut foo = 0; LL | | if f() { LL | | foo = 42; LL | | } | |_____^ help: it is more idiomatic to write: `let foo = if f() { 42 } else { 0 };` | = note: `-D clippy::useless-let-if-seq` implied by `-D warnings` = note: you might not need `mut` at all error: `if _ { .. } else { .. }` is an expression --> $DIR/let_if_seq.rs:68:5 | LL | / let mut bar = 0; LL | | if f() { LL | | f(); LL | | bar = 42; LL | | } else { LL | | f(); LL | | } | |_____^ help: it is more idiomatic to write: `let bar = if f() { ..; 42 } else { ..; 0 };` | = note: you might not need `mut` at all error: `if _ { .. } else { .. }` is an expression --> $DIR/let_if_seq.rs:76:5 | LL | / let quz; LL | | if f() { LL | | quz = 42; LL | | } else { LL | | quz = 0; LL | | } | |_____^ help: it is more idiomatic to write: `let quz = if f() { 42 } else { 0 };` error: `if _ { .. } else { .. }` is an expression --> $DIR/let_if_seq.rs:105:5 | LL | / let mut baz = 0; LL | | if f() { LL | | baz = 42; LL | | } | |_____^ help: it is more idiomatic to write: `let baz = if f() { 42 } else { 0 };` | = note: you might not need `mut` at all error: aborting due to 4 previous errors diff of stderr: -error: `if _ { .. } else { .. }` is an expression - --> $DIR/let_if_seq.rs:63:5 - | -LL | / let mut foo = 0; -LL | | if f() { -LL | | foo = 42; -LL | | } - | |_____^ help: it is more idiomatic to write: `let foo = if f() { 42 } else { 0 };` - | - = note: `-D clippy::useless-let-if-seq` implied by `-D warnings` - = note: you might not need `mut` at all - -error: `if _ { .. } else { .. }` is an expression - --> $DIR/let_if_seq.rs:68:5 - | -LL | / let mut bar = 0; -LL | | if f() { -LL | | f(); -LL | | bar = 42; -LL | | } else { -LL | | f(); -LL | | } - | |_____^ help: it is more idiomatic to write: `let bar = if f() { ..; 42 } else { ..; 0 };` - | - = note: you might not need `mut` at all - -error: `if _ { .. } else { .. }` is an expression - --> $DIR/let_if_seq.rs:76:5 - | -LL | / let quz; -LL | | if f() { -LL | | quz = 42; -LL | | } else { -LL | | quz = 0; -LL | | } - | |_____^ help: it is more idiomatic to write: `let quz = if f() { 42 } else { 0 };` - -error: `if _ { .. } else { .. }` is an expression - --> $DIR/let_if_seq.rs:105:5 - | -LL | / let mut baz = 0; -LL | | if f() { -LL | | baz = 42; -LL | | } - | |_____^ help: it is more idiomatic to write: `let baz = if f() { 42 } else { 0 };` - | - = note: you might not need `mut` at all - -error: aborting due to 4 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/let_if_seq.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'let_if_seq.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/let_if_seq.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/let_if_seq.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/let_if_seq.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/let_if_seq.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/let_unit.rs stdout ---- normalized stderr: expected stderr: error: this let-binding has unit value. Consider omitting `let _x =` --> $DIR/let_unit.rs:11:5 | LL | let _x = println!("x"); | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::let-unit-value` implied by `-D warnings` error: this let-binding has unit value. Consider omitting `let _a =` --> $DIR/let_unit.rs:15:9 | LL | let _a = (); | ^^^^^^^^^^^^ error: aborting due to 2 previous errors diff of stderr: -error: this let-binding has unit value. Consider omitting `let _x =` - --> $DIR/let_unit.rs:11:5 - | -LL | let _x = println!("x"); - | ^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::let-unit-value` implied by `-D warnings` - -error: this let-binding has unit value. Consider omitting `let _a =` - --> $DIR/let_unit.rs:15:9 - | -LL | let _a = (); - | ^^^^^^^^^^^^ - -error: aborting due to 2 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/let_unit.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'let_unit.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/let_unit.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/let_unit.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/let_unit.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/let_unit.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/lifetimes.rs stdout ---- normalized stderr: expected stderr: error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) --> $DIR/lifetimes.rs:4:1 | LL | fn distinct_lifetimes<'a, 'b>(_x: &'a u8, _y: &'b u8, _z: u8) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::needless-lifetimes` implied by `-D warnings` error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) --> $DIR/lifetimes.rs:6:1 | LL | fn distinct_and_static<'a, 'b>(_x: &'a u8, _y: &'b u8, _z: &'static u8) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) --> $DIR/lifetimes.rs:16:1 | LL | / fn in_and_out<'a>(x: &'a u8, _y: u8) -> &'a u8 { LL | | x LL | | } | |_^ error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) --> $DIR/lifetimes.rs:45:1 | LL | / fn deep_reference_3<'a>(x: &'a u8, _y: u8) -> Result<&'a u8, ()> { LL | | Ok(x) LL | | } | |_^ error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) --> $DIR/lifetimes.rs:50:1 | LL | / fn where_clause_without_lt<'a, T>(x: &'a u8, _y: u8) -> Result<&'a u8, ()> LL | | where LL | | T: Copy, LL | | { LL | | Ok(x) LL | | } | |_^ error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) --> $DIR/lifetimes.rs:62:1 | LL | fn lifetime_param_2<'a, 'b>(_x: Ref<'a>, _y: &'b u8) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) --> $DIR/lifetimes.rs:86:1 | LL | / fn fn_bound_2<'a, F, I>(_m: Lt<'a, I>, _f: F) -> Lt<'a, I> LL | | where LL | | for<'x> F: Fn(Lt<'x, I>) -> Lt<'x, I>, LL | | { LL | | unreachable!() LL | | } | |_^ error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) --> $DIR/lifetimes.rs:120:5 | LL | / fn self_and_out<'s>(&'s self) -> &'s u8 { LL | | &self.x LL | | } | |_____^ error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) --> $DIR/lifetimes.rs:129:5 | LL | fn distinct_self_and_in<'s, 't>(&'s self, _x: &'t u8) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) --> $DIR/lifetimes.rs:148:1 | LL | / fn struct_with_lt<'a>(_foo: Foo<'a>) -> &'a str { LL | | unimplemented!() LL | | } | |_^ error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) --> $DIR/lifetimes.rs:178:1 | LL | / fn trait_obj_elided2<'a>(_arg: &'a Drop) -> &'a str { LL | | unimplemented!() LL | | } | |_^ error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) --> $DIR/lifetimes.rs:184:1 | LL | / fn alias_with_lt<'a>(_foo: FooAlias<'a>) -> &'a str { LL | | unimplemented!() LL | | } | |_^ error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) --> $DIR/lifetimes.rs:203:1 | LL | / fn named_input_elided_output<'a>(_arg: &'a str) -> &str { LL | | unimplemented!() LL | | } | |_^ error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) --> $DIR/lifetimes.rs:211:1 | LL | / fn trait_bound_ok<'a, T: WithLifetime<'static>>(_: &'a u8, _: T) { LL | | unimplemented!() LL | | } | |_^ error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) --> $DIR/lifetimes.rs:247:1 | LL | / fn out_return_type_lts<'a>(e: &'a str) -> Cow<'a> { LL | | unimplemented!() LL | | } | |_^ error: aborting due to 15 previous errors diff of stderr: -error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) - --> $DIR/lifetimes.rs:4:1 - | -LL | fn distinct_lifetimes<'a, 'b>(_x: &'a u8, _y: &'b u8, _z: u8) {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::needless-lifetimes` implied by `-D warnings` - -error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) - --> $DIR/lifetimes.rs:6:1 - | -LL | fn distinct_and_static<'a, 'b>(_x: &'a u8, _y: &'b u8, _z: &'static u8) {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) - --> $DIR/lifetimes.rs:16:1 - | -LL | / fn in_and_out<'a>(x: &'a u8, _y: u8) -> &'a u8 { -LL | | x -LL | | } - | |_^ - -error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) - --> $DIR/lifetimes.rs:45:1 - | -LL | / fn deep_reference_3<'a>(x: &'a u8, _y: u8) -> Result<&'a u8, ()> { -LL | | Ok(x) -LL | | } - | |_^ - -error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) - --> $DIR/lifetimes.rs:50:1 - | -LL | / fn where_clause_without_lt<'a, T>(x: &'a u8, _y: u8) -> Result<&'a u8, ()> -LL | | where -LL | | T: Copy, -LL | | { -LL | | Ok(x) -LL | | } - | |_^ - -error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) - --> $DIR/lifetimes.rs:62:1 - | -LL | fn lifetime_param_2<'a, 'b>(_x: Ref<'a>, _y: &'b u8) {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) - --> $DIR/lifetimes.rs:86:1 - | -LL | / fn fn_bound_2<'a, F, I>(_m: Lt<'a, I>, _f: F) -> Lt<'a, I> -LL | | where -LL | | for<'x> F: Fn(Lt<'x, I>) -> Lt<'x, I>, -LL | | { -LL | | unreachable!() -LL | | } - | |_^ - -error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) - --> $DIR/lifetimes.rs:120:5 - | -LL | / fn self_and_out<'s>(&'s self) -> &'s u8 { -LL | | &self.x -LL | | } - | |_____^ - -error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) - --> $DIR/lifetimes.rs:129:5 - | -LL | fn distinct_self_and_in<'s, 't>(&'s self, _x: &'t u8) {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) - --> $DIR/lifetimes.rs:148:1 - | -LL | / fn struct_with_lt<'a>(_foo: Foo<'a>) -> &'a str { -LL | | unimplemented!() -LL | | } - | |_^ - -error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) - --> $DIR/lifetimes.rs:178:1 - | -LL | / fn trait_obj_elided2<'a>(_arg: &'a Drop) -> &'a str { -LL | | unimplemented!() -LL | | } - | |_^ - -error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) - --> $DIR/lifetimes.rs:184:1 - | -LL | / fn alias_with_lt<'a>(_foo: FooAlias<'a>) -> &'a str { -LL | | unimplemented!() -LL | | } - | |_^ - -error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) - --> $DIR/lifetimes.rs:203:1 - | -LL | / fn named_input_elided_output<'a>(_arg: &'a str) -> &str { -LL | | unimplemented!() -LL | | } - | |_^ - -error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) - --> $DIR/lifetimes.rs:211:1 - | -LL | / fn trait_bound_ok<'a, T: WithLifetime<'static>>(_: &'a u8, _: T) { -LL | | unimplemented!() -LL | | } - | |_^ - -error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) - --> $DIR/lifetimes.rs:247:1 - | -LL | / fn out_return_type_lts<'a>(e: &'a str) -> Cow<'a> { -LL | | unimplemented!() -LL | | } - | |_^ - -error: aborting due to 15 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/lifetimes.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'lifetimes.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/lifetimes.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/lifetimes.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/lifetimes.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/lifetimes.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/manual_memcpy.rs stdout ---- normalized stderr: expected stderr: error: it looks like you're manually copying between slices --> $DIR/manual_memcpy.rs:7:14 | LL | for i in 0..src.len() { | ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[..])` | = note: `-D clippy::manual-memcpy` implied by `-D warnings` error: it looks like you're manually copying between slices --> $DIR/manual_memcpy.rs:12:14 | LL | for i in 0..src.len() { | ^^^^^^^^^^^^ help: try replacing the loop by: `dst[10..(src.len() + 10)].clone_from_slice(&src[..])` error: it looks like you're manually copying between slices --> $DIR/manual_memcpy.rs:17:14 | LL | for i in 0..src.len() { | ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[10..])` error: it looks like you're manually copying between slices --> $DIR/manual_memcpy.rs:22:14 | LL | for i in 11..src.len() { | ^^^^^^^^^^^^^ help: try replacing the loop by: `dst[11..src.len()].clone_from_slice(&src[(11 - 10)..(src.len() - 10)])` error: it looks like you're manually copying between slices --> $DIR/manual_memcpy.rs:27:14 | LL | for i in 0..dst.len() { | ^^^^^^^^^^^^ help: try replacing the loop by: `dst.clone_from_slice(&src[..dst.len()])` error: it looks like you're manually copying between slices --> $DIR/manual_memcpy.rs:40:14 | LL | for i in 10..256 { | ^^^^^^^ help: try replacing the loop by | LL | for i in dst[10..256].clone_from_slice(&src[(10 - 5)..(256 - 5)]) LL | dst2[(10 + 500)..(256 + 500)].clone_from_slice(&src[10..256]) { | error: it looks like you're manually copying between slices --> $DIR/manual_memcpy.rs:52:14 | LL | for i in 10..LOOP_OFFSET { | ^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[(10 + LOOP_OFFSET)..(LOOP_OFFSET + LOOP_OFFSET)].clone_from_slice(&src[(10 - some_var)..(LOOP_OFFSET - some_var)])` error: it looks like you're manually copying between slices --> $DIR/manual_memcpy.rs:65:14 | LL | for i in 0..src_vec.len() { | ^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst_vec[..src_vec.len()].clone_from_slice(&src_vec[..])` error: it looks like you're manually copying between slices --> $DIR/manual_memcpy.rs:94:14 | LL | for i in from..from + src.len() { | ^^^^^^^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..from + src.len()].clone_from_slice(&src[0..(from + src.len() - from)])` error: it looks like you're manually copying between slices --> $DIR/manual_memcpy.rs:98:14 | LL | for i in from..from + 3 { | ^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..from + 3].clone_from_slice(&src[0..(from + 3 - from)])` error: it looks like you're manually copying between slices --> $DIR/manual_memcpy.rs:105:14 | LL | for i in 0..src.len() { | ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[..])` error: aborting due to 11 previous errors diff of stderr: -error: it looks like you're manually copying between slices - --> $DIR/manual_memcpy.rs:7:14 - | -LL | for i in 0..src.len() { - | ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[..])` - | - = note: `-D clippy::manual-memcpy` implied by `-D warnings` - -error: it looks like you're manually copying between slices - --> $DIR/manual_memcpy.rs:12:14 - | -LL | for i in 0..src.len() { - | ^^^^^^^^^^^^ help: try replacing the loop by: `dst[10..(src.len() + 10)].clone_from_slice(&src[..])` - -error: it looks like you're manually copying between slices - --> $DIR/manual_memcpy.rs:17:14 - | -LL | for i in 0..src.len() { - | ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[10..])` - -error: it looks like you're manually copying between slices - --> $DIR/manual_memcpy.rs:22:14 - | -LL | for i in 11..src.len() { - | ^^^^^^^^^^^^^ help: try replacing the loop by: `dst[11..src.len()].clone_from_slice(&src[(11 - 10)..(src.len() - 10)])` - -error: it looks like you're manually copying between slices - --> $DIR/manual_memcpy.rs:27:14 - | -LL | for i in 0..dst.len() { - | ^^^^^^^^^^^^ help: try replacing the loop by: `dst.clone_from_slice(&src[..dst.len()])` - -error: it looks like you're manually copying between slices - --> $DIR/manual_memcpy.rs:40:14 - | -LL | for i in 10..256 { - | ^^^^^^^ -help: try replacing the loop by - | -LL | for i in dst[10..256].clone_from_slice(&src[(10 - 5)..(256 - 5)]) -LL | dst2[(10 + 500)..(256 + 500)].clone_from_slice(&src[10..256]) { - | - -error: it looks like you're manually copying between slices - --> $DIR/manual_memcpy.rs:52:14 - | -LL | for i in 10..LOOP_OFFSET { - | ^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[(10 + LOOP_OFFSET)..(LOOP_OFFSET + LOOP_OFFSET)].clone_from_slice(&src[(10 - some_var)..(LOOP_OFFSET - some_var)])` - -error: it looks like you're manually copying between slices - --> $DIR/manual_memcpy.rs:65:14 - | -LL | for i in 0..src_vec.len() { - | ^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst_vec[..src_vec.len()].clone_from_slice(&src_vec[..])` - -error: it looks like you're manually copying between slices - --> $DIR/manual_memcpy.rs:94:14 - | -LL | for i in from..from + src.len() { - | ^^^^^^^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..from + src.len()].clone_from_slice(&src[0..(from + src.len() - from)])` - -error: it looks like you're manually copying between slices - --> $DIR/manual_memcpy.rs:98:14 - | -LL | for i in from..from + 3 { - | ^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..from + 3].clone_from_slice(&src[0..(from + 3 - from)])` - -error: it looks like you're manually copying between slices - --> $DIR/manual_memcpy.rs:105:14 - | -LL | for i in 0..src.len() { - | ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[..])` - -error: aborting due to 11 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/manual_memcpy.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'manual_memcpy.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/manual_memcpy.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/manual_memcpy.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/manual_memcpy.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/manual_memcpy.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/matches.rs stdout ---- normalized stderr: expected stderr: error: you don't need to add `&` to all patterns --> $DIR/matches.rs:11:9 | LL | / match v { LL | | &Some(v) => println!("{:?}", v), LL | | &None => println!("none"), LL | | } | |_________^ | = note: `-D clippy::match-ref-pats` implied by `-D warnings` help: instead of prefixing all patterns with `&`, you can dereference the expression | LL | match *v { LL | Some(v) => println!("{:?}", v), LL | None => println!("none"), | error: you don't need to add `&` to all patterns --> $DIR/matches.rs:22:5 | LL | / match tup { LL | | &(v, 1) => println!("{}", v), LL | | _ => println!("none"), LL | | } | |_____^ help: instead of prefixing all patterns with `&`, you can dereference the expression | LL | match *tup { LL | (v, 1) => println!("{}", v), | error: you don't need to add `&` to both the expression and the patterns --> $DIR/matches.rs:28:5 | LL | / match &w { LL | | &Some(v) => println!("{:?}", v), LL | | &None => println!("none"), LL | | } | |_____^ help: try | LL | match w { LL | Some(v) => println!("{:?}", v), LL | None => println!("none"), | error: you don't need to add `&` to all patterns --> $DIR/matches.rs:39:5 | LL | / if let &None = a { LL | | println!("none"); LL | | } | |_____^ help: instead of prefixing all patterns with `&`, you can dereference the expression | LL | if let None = *a { | ^^^^ ^^ error: you don't need to add `&` to both the expression and the patterns --> $DIR/matches.rs:44:5 | LL | / if let &None = &b { LL | | println!("none"); LL | | } | |_____^ help: try | LL | if let None = b { | ^^^^ ^ error: Err(_) will match all errors, maybe not a good idea --> $DIR/matches.rs:55:9 | LL | Err(_) => panic!("err"), | ^^^^^^ | = note: `-D clippy::match-wild-err-arm` implied by `-D warnings` = note: to remove this warning, match each error separately or use unreachable macro error: this `match` has identical arm bodies --> $DIR/matches.rs:54:18 | LL | Ok(_) => println!("ok"), | ^^^^^^^^^^^^^^ | = note: `-D clippy::match-same-arms` implied by `-D warnings` note: same as this --> $DIR/matches.rs:53:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ note: consider refactoring into `Ok(3) | Ok(_)` --> $DIR/matches.rs:53:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: Err(_) will match all errors, maybe not a good idea --> $DIR/matches.rs:61:9 | LL | Err(_) => panic!(), | ^^^^^^ | = note: to remove this warning, match each error separately or use unreachable macro error: this `match` has identical arm bodies --> $DIR/matches.rs:60:18 | LL | Ok(_) => println!("ok"), | ^^^^^^^^^^^^^^ | note: same as this --> $DIR/matches.rs:59:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ note: consider refactoring into `Ok(3) | Ok(_)` --> $DIR/matches.rs:59:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: Err(_) will match all errors, maybe not a good idea --> $DIR/matches.rs:67:9 | LL | Err(_) => { | ^^^^^^ | = note: to remove this warning, match each error separately or use unreachable macro error: this `match` has identical arm bodies --> $DIR/matches.rs:66:18 | LL | Ok(_) => println!("ok"), | ^^^^^^^^^^^^^^ | note: same as this --> $DIR/matches.rs:65:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ note: consider refactoring into `Ok(3) | Ok(_)` --> $DIR/matches.rs:65:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: this `match` has identical arm bodies --> $DIR/matches.rs:75:18 | LL | Ok(_) => println!("ok"), | ^^^^^^^^^^^^^^ | note: same as this --> $DIR/matches.rs:74:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ note: consider refactoring into `Ok(3) | Ok(_)` --> $DIR/matches.rs:74:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: this `match` has identical arm bodies --> $DIR/matches.rs:82:18 | LL | Ok(_) => println!("ok"), | ^^^^^^^^^^^^^^ | note: same as this --> $DIR/matches.rs:81:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ note: consider refactoring into `Ok(3) | Ok(_)` --> $DIR/matches.rs:81:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: this `match` has identical arm bodies --> $DIR/matches.rs:88:18 | LL | Ok(_) => println!("ok"), | ^^^^^^^^^^^^^^ | note: same as this --> $DIR/matches.rs:87:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ note: consider refactoring into `Ok(3) | Ok(_)` --> $DIR/matches.rs:87:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: this `match` has identical arm bodies --> $DIR/matches.rs:94:18 | LL | Ok(_) => println!("ok"), | ^^^^^^^^^^^^^^ | note: same as this --> $DIR/matches.rs:93:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ note: consider refactoring into `Ok(3) | Ok(_)` --> $DIR/matches.rs:93:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: this `match` has identical arm bodies --> $DIR/matches.rs:117:29 | LL | (Ok(_), Some(x)) => println!("ok {}", x), | ^^^^^^^^^^^^^^^^^^^^ | note: same as this --> $DIR/matches.rs:116:29 | LL | (Ok(x), Some(_)) => println!("ok {}", x), | ^^^^^^^^^^^^^^^^^^^^ note: consider refactoring into `(Ok(x), Some(_)) | (Ok(_), Some(x))` --> $DIR/matches.rs:116:29 | LL | (Ok(x), Some(_)) => println!("ok {}", x), | ^^^^^^^^^^^^^^^^^^^^ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: this `match` has identical arm bodies --> $DIR/matches.rs:132:18 | LL | Ok(_) => println!("ok"), | ^^^^^^^^^^^^^^ | note: same as this --> $DIR/matches.rs:131:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ note: consider refactoring into `Ok(3) | Ok(_)` --> $DIR/matches.rs:131:18 | LL | Ok(3) => println!("ok"), | ^^^^^^^^^^^^^^ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: use as_ref() instead --> $DIR/matches.rs:141:33 | LL | let borrowed: Option<&()> = match owned { | _________________________________^ LL | | None => None, LL | | Some(ref v) => Some(v), LL | | }; | |_____^ help: try this: `owned.as_ref()` | = note: `-D clippy::match-as-ref` implied by `-D warnings` error: use as_mut() instead --> $DIR/matches.rs:147:39 | LL | let borrow_mut: Option<&mut ()> = match mut_owned { | _______________________________________^ LL | | None => None, LL | | Some(ref mut v) => Some(v), LL | | }; | |_____^ help: try this: `mut_owned.as_mut()` error: you don't need to add `&` to all patterns --> $DIR/matches.rs:174:5 | LL | / match foo_variant!(0) { LL | | &Foo::A => println!("A"), LL | | _ => println!("Wild"), LL | | } | |_____^ help: instead of prefixing all patterns with `&`, you can dereference the expression | LL | match *foo_variant!(0) { LL | Foo::A => println!("A"), | error: aborting due to 20 previous errors diff of stderr: -error: you don't need to add `&` to all patterns - --> $DIR/matches.rs:11:9 - | -LL | / match v { -LL | | &Some(v) => println!("{:?}", v), -LL | | &None => println!("none"), -LL | | } - | |_________^ - | - = note: `-D clippy::match-ref-pats` implied by `-D warnings` -help: instead of prefixing all patterns with `&`, you can dereference the expression - | -LL | match *v { -LL | Some(v) => println!("{:?}", v), -LL | None => println!("none"), - | - -error: you don't need to add `&` to all patterns - --> $DIR/matches.rs:22:5 - | -LL | / match tup { -LL | | &(v, 1) => println!("{}", v), -LL | | _ => println!("none"), -LL | | } - | |_____^ -help: instead of prefixing all patterns with `&`, you can dereference the expression - | -LL | match *tup { -LL | (v, 1) => println!("{}", v), - | - -error: you don't need to add `&` to both the expression and the patterns - --> $DIR/matches.rs:28:5 - | -LL | / match &w { -LL | | &Some(v) => println!("{:?}", v), -LL | | &None => println!("none"), -LL | | } - | |_____^ -help: try - | -LL | match w { -LL | Some(v) => println!("{:?}", v), -LL | None => println!("none"), - | - -error: you don't need to add `&` to all patterns - --> $DIR/matches.rs:39:5 - | -LL | / if let &None = a { -LL | | println!("none"); -LL | | } - | |_____^ -help: instead of prefixing all patterns with `&`, you can dereference the expression - | -LL | if let None = *a { - | ^^^^ ^^ - -error: you don't need to add `&` to both the expression and the patterns - --> $DIR/matches.rs:44:5 - | -LL | / if let &None = &b { -LL | | println!("none"); -LL | | } - | |_____^ -help: try - | -LL | if let None = b { - | ^^^^ ^ - -error: Err(_) will match all errors, maybe not a good idea - --> $DIR/matches.rs:55:9 - | -LL | Err(_) => panic!("err"), - | ^^^^^^ - | - = note: `-D clippy::match-wild-err-arm` implied by `-D warnings` - = note: to remove this warning, match each error separately or use unreachable macro - -error: this `match` has identical arm bodies - --> $DIR/matches.rs:54:18 - | -LL | Ok(_) => println!("ok"), - | ^^^^^^^^^^^^^^ - | - = note: `-D clippy::match-same-arms` implied by `-D warnings` -note: same as this - --> $DIR/matches.rs:53:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ -note: consider refactoring into `Ok(3) | Ok(_)` - --> $DIR/matches.rs:53:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -error: Err(_) will match all errors, maybe not a good idea - --> $DIR/matches.rs:61:9 - | -LL | Err(_) => panic!(), - | ^^^^^^ - | - = note: to remove this warning, match each error separately or use unreachable macro - -error: this `match` has identical arm bodies - --> $DIR/matches.rs:60:18 - | -LL | Ok(_) => println!("ok"), - | ^^^^^^^^^^^^^^ - | -note: same as this - --> $DIR/matches.rs:59:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ -note: consider refactoring into `Ok(3) | Ok(_)` - --> $DIR/matches.rs:59:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -error: Err(_) will match all errors, maybe not a good idea - --> $DIR/matches.rs:67:9 - | -LL | Err(_) => { - | ^^^^^^ - | - = note: to remove this warning, match each error separately or use unreachable macro - -error: this `match` has identical arm bodies - --> $DIR/matches.rs:66:18 - | -LL | Ok(_) => println!("ok"), - | ^^^^^^^^^^^^^^ - | -note: same as this - --> $DIR/matches.rs:65:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ -note: consider refactoring into `Ok(3) | Ok(_)` - --> $DIR/matches.rs:65:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -error: this `match` has identical arm bodies - --> $DIR/matches.rs:75:18 - | -LL | Ok(_) => println!("ok"), - | ^^^^^^^^^^^^^^ - | -note: same as this - --> $DIR/matches.rs:74:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ -note: consider refactoring into `Ok(3) | Ok(_)` - --> $DIR/matches.rs:74:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -error: this `match` has identical arm bodies - --> $DIR/matches.rs:82:18 - | -LL | Ok(_) => println!("ok"), - | ^^^^^^^^^^^^^^ - | -note: same as this - --> $DIR/matches.rs:81:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ -note: consider refactoring into `Ok(3) | Ok(_)` - --> $DIR/matches.rs:81:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -error: this `match` has identical arm bodies - --> $DIR/matches.rs:88:18 - | -LL | Ok(_) => println!("ok"), - | ^^^^^^^^^^^^^^ - | -note: same as this - --> $DIR/matches.rs:87:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ -note: consider refactoring into `Ok(3) | Ok(_)` - --> $DIR/matches.rs:87:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -error: this `match` has identical arm bodies - --> $DIR/matches.rs:94:18 - | -LL | Ok(_) => println!("ok"), - | ^^^^^^^^^^^^^^ - | -note: same as this - --> $DIR/matches.rs:93:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ -note: consider refactoring into `Ok(3) | Ok(_)` - --> $DIR/matches.rs:93:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -error: this `match` has identical arm bodies - --> $DIR/matches.rs:117:29 - | -LL | (Ok(_), Some(x)) => println!("ok {}", x), - | ^^^^^^^^^^^^^^^^^^^^ - | -note: same as this - --> $DIR/matches.rs:116:29 - | -LL | (Ok(x), Some(_)) => println!("ok {}", x), - | ^^^^^^^^^^^^^^^^^^^^ -note: consider refactoring into `(Ok(x), Some(_)) | (Ok(_), Some(x))` - --> $DIR/matches.rs:116:29 - | -LL | (Ok(x), Some(_)) => println!("ok {}", x), - | ^^^^^^^^^^^^^^^^^^^^ - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -error: this `match` has identical arm bodies - --> $DIR/matches.rs:132:18 - | -LL | Ok(_) => println!("ok"), - | ^^^^^^^^^^^^^^ - | -note: same as this - --> $DIR/matches.rs:131:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ -note: consider refactoring into `Ok(3) | Ok(_)` - --> $DIR/matches.rs:131:18 - | -LL | Ok(3) => println!("ok"), - | ^^^^^^^^^^^^^^ - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -error: use as_ref() instead - --> $DIR/matches.rs:141:33 - | -LL | let borrowed: Option<&()> = match owned { - | _________________________________^ -LL | | None => None, -LL | | Some(ref v) => Some(v), -LL | | }; - | |_____^ help: try this: `owned.as_ref()` - | - = note: `-D clippy::match-as-ref` implied by `-D warnings` - -error: use as_mut() instead - --> $DIR/matches.rs:147:39 - | -LL | let borrow_mut: Option<&mut ()> = match mut_owned { - | _______________________________________^ -LL | | None => None, -LL | | Some(ref mut v) => Some(v), -LL | | }; - | |_____^ help: try this: `mut_owned.as_mut()` - -error: you don't need to add `&` to all patterns - --> $DIR/matches.rs:174:5 - | -LL | / match foo_variant!(0) { -LL | | &Foo::A => println!("A"), -LL | | _ => println!("Wild"), -LL | | } - | |_____^ -help: instead of prefixing all patterns with `&`, you can dereference the expression - | -LL | match *foo_variant!(0) { -LL | Foo::A => println!("A"), - | - -error: aborting due to 20 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/matches.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'matches.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/matches.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/matches.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/matches.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/matches.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/methods.rs stdout ---- error: auxiliary build of "tests/ui/auxiliary/option_helpers.rs" failed to compile: status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/auxiliary/option_helpers.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "--out-dir" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/methods.stage-id.aux" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "--crate-type" "dylib" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/methods.stage-id.aux" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/methods.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/mut_from_ref.rs stdout ---- normalized stderr: expected stderr: error: mutable borrow from immutable input(s) --> $DIR/mut_from_ref.rs:7:39 | LL | fn this_wont_hurt_a_bit(&self) -> &mut Foo { | ^^^^^^^^ | = note: `-D clippy::mut-from-ref` implied by `-D warnings` note: immutable borrow here --> $DIR/mut_from_ref.rs:7:29 | LL | fn this_wont_hurt_a_bit(&self) -> &mut Foo { | ^^^^^ error: mutable borrow from immutable input(s) --> $DIR/mut_from_ref.rs:13:25 | LL | fn ouch(x: &Foo) -> &mut Foo; | ^^^^^^^^ | note: immutable borrow here --> $DIR/mut_from_ref.rs:13:16 | LL | fn ouch(x: &Foo) -> &mut Foo; | ^^^^ error: mutable borrow from immutable input(s) --> $DIR/mut_from_ref.rs:22:21 | LL | fn fail(x: &u32) -> &mut u16 { | ^^^^^^^^ | note: immutable borrow here --> $DIR/mut_from_ref.rs:22:12 | LL | fn fail(x: &u32) -> &mut u16 { | ^^^^ error: mutable borrow from immutable input(s) --> $DIR/mut_from_ref.rs:26:50 | LL | fn fail_lifetime<'a>(x: &'a u32, y: &mut u32) -> &'a mut u32 { | ^^^^^^^^^^^ | note: immutable borrow here --> $DIR/mut_from_ref.rs:26:25 | LL | fn fail_lifetime<'a>(x: &'a u32, y: &mut u32) -> &'a mut u32 { | ^^^^^^^ error: mutable borrow from immutable input(s) --> $DIR/mut_from_ref.rs:30:67 | LL | fn fail_double<'a, 'b>(x: &'a u32, y: &'a u32, z: &'b mut u32) -> &'a mut u32 { | ^^^^^^^^^^^ | note: immutable borrow here --> $DIR/mut_from_ref.rs:30:27 | LL | fn fail_double<'a, 'b>(x: &'a u32, y: &'a u32, z: &'b mut u32) -> &'a mut u32 { | ^^^^^^^ ^^^^^^^ error: aborting due to 5 previous errors diff of stderr: -error: mutable borrow from immutable input(s) - --> $DIR/mut_from_ref.rs:7:39 - | -LL | fn this_wont_hurt_a_bit(&self) -> &mut Foo { - | ^^^^^^^^ - | - = note: `-D clippy::mut-from-ref` implied by `-D warnings` -note: immutable borrow here - --> $DIR/mut_from_ref.rs:7:29 - | -LL | fn this_wont_hurt_a_bit(&self) -> &mut Foo { - | ^^^^^ - -error: mutable borrow from immutable input(s) - --> $DIR/mut_from_ref.rs:13:25 - | -LL | fn ouch(x: &Foo) -> &mut Foo; - | ^^^^^^^^ - | -note: immutable borrow here - --> $DIR/mut_from_ref.rs:13:16 - | -LL | fn ouch(x: &Foo) -> &mut Foo; - | ^^^^ - -error: mutable borrow from immutable input(s) - --> $DIR/mut_from_ref.rs:22:21 - | -LL | fn fail(x: &u32) -> &mut u16 { - | ^^^^^^^^ - | -note: immutable borrow here - --> $DIR/mut_from_ref.rs:22:12 - | -LL | fn fail(x: &u32) -> &mut u16 { - | ^^^^ - -error: mutable borrow from immutable input(s) - --> $DIR/mut_from_ref.rs:26:50 - | -LL | fn fail_lifetime<'a>(x: &'a u32, y: &mut u32) -> &'a mut u32 { - | ^^^^^^^^^^^ - | -note: immutable borrow here - --> $DIR/mut_from_ref.rs:26:25 - | -LL | fn fail_lifetime<'a>(x: &'a u32, y: &mut u32) -> &'a mut u32 { - | ^^^^^^^ - -error: mutable borrow from immutable input(s) - --> $DIR/mut_from_ref.rs:30:67 - | -LL | fn fail_double<'a, 'b>(x: &'a u32, y: &'a u32, z: &'b mut u32) -> &'a mut u32 { - | ^^^^^^^^^^^ - | -note: immutable borrow here - --> $DIR/mut_from_ref.rs:30:27 - | -LL | fn fail_double<'a, 'b>(x: &'a u32, y: &'a u32, z: &'b mut u32) -> &'a mut u32 { - | ^^^^^^^ ^^^^^^^ - -error: aborting due to 5 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/mut_from_ref.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'mut_from_ref.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/mut_from_ref.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/mut_from_ref.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/mut_from_ref.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/mut_from_ref.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/missing_const_for_fn/could_be_const.rs stdout ---- normalized stderr: expected stderr: error: this could be a const_fn --> $DIR/could_be_const.rs:12:5 | LL | / pub fn new() -> Self { LL | | Self { guess: 42 } LL | | } | |_____^ | = note: `-D clippy::missing-const-for-fn` implied by `-D warnings` error: this could be a const_fn --> $DIR/could_be_const.rs:18:1 | LL | / fn one() -> i32 { LL | | 1 LL | | } | |_^ error: this could be a const_fn --> $DIR/could_be_const.rs:23:1 | LL | / fn two() -> i32 { LL | | let abc = 2; LL | | abc LL | | } | |_^ error: this could be a const_fn --> $DIR/could_be_const.rs:30:1 | LL | / fn string() -> String { LL | | String::new() LL | | } | |_^ error: this could be a const_fn --> $DIR/could_be_const.rs:35:1 | LL | / unsafe fn four() -> i32 { LL | | 4 LL | | } | |_^ error: this could be a const_fn --> $DIR/could_be_const.rs:40:1 | LL | / fn generic(t: T) -> T { LL | | t LL | | } | |_^ error: aborting due to 6 previous errors diff of stderr: -error: this could be a const_fn - --> $DIR/could_be_const.rs:12:5 - | -LL | / pub fn new() -> Self { -LL | | Self { guess: 42 } -LL | | } - | |_____^ - | - = note: `-D clippy::missing-const-for-fn` implied by `-D warnings` - -error: this could be a const_fn - --> $DIR/could_be_const.rs:18:1 - | -LL | / fn one() -> i32 { -LL | | 1 -LL | | } - | |_^ - -error: this could be a const_fn - --> $DIR/could_be_const.rs:23:1 - | -LL | / fn two() -> i32 { -LL | | let abc = 2; -LL | | abc -LL | | } - | |_^ - -error: this could be a const_fn - --> $DIR/could_be_const.rs:30:1 - | -LL | / fn string() -> String { -LL | | String::new() -LL | | } - | |_^ - -error: this could be a const_fn - --> $DIR/could_be_const.rs:35:1 - | -LL | / unsafe fn four() -> i32 { -LL | | 4 -LL | | } - | |_^ - -error: this could be a const_fn - --> $DIR/could_be_const.rs:40:1 - | -LL | / fn generic(t: T) -> T { -LL | | t -LL | | } - | |_^ - -error: aborting due to 6 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/missing_const_for_fn/could_be_const.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'missing_const_for_fn/could_be_const.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/missing_const_for_fn/could_be_const.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/missing_const_for_fn/could_be_const.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/missing_const_for_fn/could_be_const.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/missing_const_for_fn/could_be_const.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/mut_mut.rs stdout ---- normalized stderr: expected stderr: error: generally you want to avoid `&mut &mut _` if possible --> $DIR/mut_mut.rs:4:11 | LL | fn fun(x: &mut &mut u32) -> bool { | ^^^^^^^^^^^^^ | = note: `-D clippy::mut-mut` implied by `-D warnings` error: generally you want to avoid `&mut &mut _` if possible --> $DIR/mut_mut.rs:20:17 | LL | let mut x = &mut &mut 1u32; | ^^^^^^^^^^^^^^ error: generally you want to avoid `&mut &mut _` if possible --> $DIR/mut_mut.rs:14:9 | LL | &mut $p | ^^^^^^^ ... LL | let mut z = mut_ptr!(&mut 3u32); | ------------------- in this macro invocation error: this expression mutably borrows a mutable reference. Consider reborrowing --> $DIR/mut_mut.rs:22:21 | LL | let mut y = &mut x; | ^^^^^^ error: generally you want to avoid `&mut &mut _` if possible --> $DIR/mut_mut.rs:26:32 | LL | let y: &mut &mut u32 = &mut &mut 2; | ^^^^^^^^^^^ error: generally you want to avoid `&mut &mut _` if possible --> $DIR/mut_mut.rs:26:16 | LL | let y: &mut &mut u32 = &mut &mut 2; | ^^^^^^^^^^^^^ error: generally you want to avoid `&mut &mut _` if possible --> $DIR/mut_mut.rs:31:37 | LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2; | ^^^^^^^^^^^^^^^^ error: generally you want to avoid `&mut &mut _` if possible --> $DIR/mut_mut.rs:31:16 | LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2; | ^^^^^^^^^^^^^^^^^^ error: generally you want to avoid `&mut &mut _` if possible --> $DIR/mut_mut.rs:31:21 | LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2; | ^^^^^^^^^^^^^ error: aborting due to 9 previous errors diff of stderr: -error: generally you want to avoid `&mut &mut _` if possible - --> $DIR/mut_mut.rs:4:11 - | -LL | fn fun(x: &mut &mut u32) -> bool { - | ^^^^^^^^^^^^^ - | - = note: `-D clippy::mut-mut` implied by `-D warnings` - -error: generally you want to avoid `&mut &mut _` if possible - --> $DIR/mut_mut.rs:20:17 - | -LL | let mut x = &mut &mut 1u32; - | ^^^^^^^^^^^^^^ - -error: generally you want to avoid `&mut &mut _` if possible - --> $DIR/mut_mut.rs:14:9 - | -LL | &mut $p - | ^^^^^^^ -... -LL | let mut z = mut_ptr!(&mut 3u32); - | ------------------- in this macro invocation - -error: this expression mutably borrows a mutable reference. Consider reborrowing - --> $DIR/mut_mut.rs:22:21 - | -LL | let mut y = &mut x; - | ^^^^^^ - -error: generally you want to avoid `&mut &mut _` if possible - --> $DIR/mut_mut.rs:26:32 - | -LL | let y: &mut &mut u32 = &mut &mut 2; - | ^^^^^^^^^^^ - -error: generally you want to avoid `&mut &mut _` if possible - --> $DIR/mut_mut.rs:26:16 - | -LL | let y: &mut &mut u32 = &mut &mut 2; - | ^^^^^^^^^^^^^ - -error: generally you want to avoid `&mut &mut _` if possible - --> $DIR/mut_mut.rs:31:37 - | -LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2; - | ^^^^^^^^^^^^^^^^ - -error: generally you want to avoid `&mut &mut _` if possible - --> $DIR/mut_mut.rs:31:16 - | -LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2; - | ^^^^^^^^^^^^^^^^^^ - -error: generally you want to avoid `&mut &mut _` if possible - --> $DIR/mut_mut.rs:31:21 - | -LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2; - | ^^^^^^^^^^^^^ - -error: aborting due to 9 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/mut_mut.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'mut_mut.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/mut_mut.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/mut_mut.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/mut_mut.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/mut_mut.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/needless_borrow.rs stdout ---- normalized stderr: expected stderr: error: this expression borrows a reference that is immediately dereferenced by the compiler --> $DIR/needless_borrow.rs:13:15 | LL | let c = x(&&a); | ^^^ help: change this to: `&a` | = note: `-D clippy::needless-borrow` implied by `-D warnings` error: this pattern creates a reference to a reference --> $DIR/needless_borrow.rs:20:17 | LL | if let Some(ref cake) = Some(&5) {} | ^^^^^^^^ help: change this to: `cake` error: this expression borrows a reference that is immediately dereferenced by the compiler --> $DIR/needless_borrow.rs:27:15 | LL | 46 => &&a, | ^^^ help: change this to: `&a` error: this pattern takes a reference on something that is being de-referenced --> $DIR/needless_borrow.rs:49:34 | LL | let _ = v.iter_mut().filter(|&ref a| a.is_empty()); | ^^^^^^ help: try removing the `&ref` part and just keep: `a` | = note: `-D clippy::needless-borrowed-reference` implied by `-D warnings` error: this pattern takes a reference on something that is being de-referenced --> $DIR/needless_borrow.rs:50:30 | LL | let _ = v.iter().filter(|&ref a| a.is_empty()); | ^^^^^^ help: try removing the `&ref` part and just keep: `a` error: this pattern creates a reference to a reference --> $DIR/needless_borrow.rs:50:31 | LL | let _ = v.iter().filter(|&ref a| a.is_empty()); | ^^^^^ help: change this to: `a` error: aborting due to 6 previous errors diff of stderr: -error: this expression borrows a reference that is immediately dereferenced by the compiler - --> $DIR/needless_borrow.rs:13:15 - | -LL | let c = x(&&a); - | ^^^ help: change this to: `&a` - | - = note: `-D clippy::needless-borrow` implied by `-D warnings` - -error: this pattern creates a reference to a reference - --> $DIR/needless_borrow.rs:20:17 - | -LL | if let Some(ref cake) = Some(&5) {} - | ^^^^^^^^ help: change this to: `cake` - -error: this expression borrows a reference that is immediately dereferenced by the compiler - --> $DIR/needless_borrow.rs:27:15 - | -LL | 46 => &&a, - | ^^^ help: change this to: `&a` - -error: this pattern takes a reference on something that is being de-referenced - --> $DIR/needless_borrow.rs:49:34 - | -LL | let _ = v.iter_mut().filter(|&ref a| a.is_empty()); - | ^^^^^^ help: try removing the `&ref` part and just keep: `a` - | - = note: `-D clippy::needless-borrowed-reference` implied by `-D warnings` - -error: this pattern takes a reference on something that is being de-referenced - --> $DIR/needless_borrow.rs:50:30 - | -LL | let _ = v.iter().filter(|&ref a| a.is_empty()); - | ^^^^^^ help: try removing the `&ref` part and just keep: `a` - -error: this pattern creates a reference to a reference - --> $DIR/needless_borrow.rs:50:31 - | -LL | let _ = v.iter().filter(|&ref a| a.is_empty()); - | ^^^^^ help: change this to: `a` - -error: aborting due to 6 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_borrow.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'needless_borrow.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/needless_borrow.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_borrow.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_borrow.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/needless_borrow.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/needless_bool.rs stdout ---- normalized stderr: expected stderr: error: this if-then-else expression will always return true --> $DIR/needless_bool.rs:31:5 | LL | / if x { LL | | true LL | | } else { LL | | true LL | | }; | |_____^ | = note: `-D clippy::needless-bool` implied by `-D warnings` error: this if-then-else expression will always return false --> $DIR/needless_bool.rs:36:5 | LL | / if x { LL | | false LL | | } else { LL | | false LL | | }; | |_____^ error: this if-then-else expression returns a bool literal --> $DIR/needless_bool.rs:41:5 | LL | / if x { LL | | true LL | | } else { LL | | false LL | | }; | |_____^ help: you can reduce it to: `x` error: this if-then-else expression returns a bool literal --> $DIR/needless_bool.rs:46:5 | LL | / if x { LL | | false LL | | } else { LL | | true LL | | }; | |_____^ help: you can reduce it to: `!x` error: this if-then-else expression returns a bool literal --> $DIR/needless_bool.rs:51:5 | LL | / if x && y { LL | | false LL | | } else { LL | | true LL | | }; | |_____^ help: you can reduce it to: `!(x && y)` error: this if-then-else expression will always return true --> $DIR/needless_bool.rs:74:5 | LL | / if x { LL | | return true; LL | | } else { LL | | return true; LL | | }; | |_____^ error: this if-then-else expression will always return false --> $DIR/needless_bool.rs:83:5 | LL | / if x { LL | | return false; LL | | } else { LL | | return false; LL | | }; | |_____^ error: this if-then-else expression returns a bool literal --> $DIR/needless_bool.rs:92:5 | LL | / if x { LL | | return true; LL | | } else { LL | | return false; LL | | }; | |_____^ help: you can reduce it to: `return x` error: this if-then-else expression returns a bool literal --> $DIR/needless_bool.rs:101:5 | LL | / if x && y { LL | | return true; LL | | } else { LL | | return false; LL | | }; | |_____^ help: you can reduce it to: `return x && y` error: this if-then-else expression returns a bool literal --> $DIR/needless_bool.rs:110:5 | LL | / if x { LL | | return false; LL | | } else { LL | | return true; LL | | }; | |_____^ help: you can reduce it to: `return !x` error: this if-then-else expression returns a bool literal --> $DIR/needless_bool.rs:119:5 | LL | / if x && y { LL | | return false; LL | | } else { LL | | return true; LL | | }; | |_____^ help: you can reduce it to: `return !(x && y)` error: equality checks against true are unnecessary --> $DIR/needless_bool.rs:127:8 | LL | if x == true {}; | ^^^^^^^^^ help: try simplifying it as shown: `x` | = note: `-D clippy::bool-comparison` implied by `-D warnings` error: equality checks against false can be replaced by a negation --> $DIR/needless_bool.rs:131:8 | LL | if x == false {}; | ^^^^^^^^^^ help: try simplifying it as shown: `!x` error: equality checks against true are unnecessary --> $DIR/needless_bool.rs:141:8 | LL | if x == true {}; | ^^^^^^^^^ help: try simplifying it as shown: `x` error: equality checks against false can be replaced by a negation --> $DIR/needless_bool.rs:142:8 | LL | if x == false {}; | ^^^^^^^^^^ help: try simplifying it as shown: `!x` error: this if-then-else expression returns a bool literal --> $DIR/needless_bool.rs:151:12 | LL | } else if returns_bool() { | ____________^ LL | | false LL | | } else { LL | | true LL | | }; | |_____^ help: you can reduce it to: `{ !returns_bool() }` error: aborting due to 16 previous errors diff of stderr: -error: this if-then-else expression will always return true - --> $DIR/needless_bool.rs:31:5 - | -LL | / if x { -LL | | true -LL | | } else { -LL | | true -LL | | }; - | |_____^ - | - = note: `-D clippy::needless-bool` implied by `-D warnings` - -error: this if-then-else expression will always return false - --> $DIR/needless_bool.rs:36:5 - | -LL | / if x { -LL | | false -LL | | } else { -LL | | false -LL | | }; - | |_____^ - -error: this if-then-else expression returns a bool literal - --> $DIR/needless_bool.rs:41:5 - | -LL | / if x { -LL | | true -LL | | } else { -LL | | false -LL | | }; - | |_____^ help: you can reduce it to: `x` - -error: this if-then-else expression returns a bool literal - --> $DIR/needless_bool.rs:46:5 - | -LL | / if x { -LL | | false -LL | | } else { -LL | | true -LL | | }; - | |_____^ help: you can reduce it to: `!x` - -error: this if-then-else expression returns a bool literal - --> $DIR/needless_bool.rs:51:5 - | -LL | / if x && y { -LL | | false -LL | | } else { -LL | | true -LL | | }; - | |_____^ help: you can reduce it to: `!(x && y)` - -error: this if-then-else expression will always return true - --> $DIR/needless_bool.rs:74:5 - | -LL | / if x { -LL | | return true; -LL | | } else { -LL | | return true; -LL | | }; - | |_____^ - -error: this if-then-else expression will always return false - --> $DIR/needless_bool.rs:83:5 - | -LL | / if x { -LL | | return false; -LL | | } else { -LL | | return false; -LL | | }; - | |_____^ - -error: this if-then-else expression returns a bool literal - --> $DIR/needless_bool.rs:92:5 - | -LL | / if x { -LL | | return true; -LL | | } else { -LL | | return false; -LL | | }; - | |_____^ help: you can reduce it to: `return x` - -error: this if-then-else expression returns a bool literal - --> $DIR/needless_bool.rs:101:5 - | -LL | / if x && y { -LL | | return true; -LL | | } else { -LL | | return false; -LL | | }; - | |_____^ help: you can reduce it to: `return x && y` - -error: this if-then-else expression returns a bool literal - --> $DIR/needless_bool.rs:110:5 - | -LL | / if x { -LL | | return false; -LL | | } else { -LL | | return true; -LL | | }; - | |_____^ help: you can reduce it to: `return !x` - -error: this if-then-else expression returns a bool literal - --> $DIR/needless_bool.rs:119:5 - | -LL | / if x && y { -LL | | return false; -LL | | } else { -LL | | return true; -LL | | }; - | |_____^ help: you can reduce it to: `return !(x && y)` - -error: equality checks against true are unnecessary - --> $DIR/needless_bool.rs:127:8 - | -LL | if x == true {}; - | ^^^^^^^^^ help: try simplifying it as shown: `x` - | - = note: `-D clippy::bool-comparison` implied by `-D warnings` - -error: equality checks against false can be replaced by a negation - --> $DIR/needless_bool.rs:131:8 - | -LL | if x == false {}; - | ^^^^^^^^^^ help: try simplifying it as shown: `!x` - -error: equality checks against true are unnecessary - --> $DIR/needless_bool.rs:141:8 - | -LL | if x == true {}; - | ^^^^^^^^^ help: try simplifying it as shown: `x` - -error: equality checks against false can be replaced by a negation - --> $DIR/needless_bool.rs:142:8 - | -LL | if x == false {}; - | ^^^^^^^^^^ help: try simplifying it as shown: `!x` - -error: this if-then-else expression returns a bool literal - --> $DIR/needless_bool.rs:151:12 - | -LL | } else if returns_bool() { - | ____________^ -LL | | false -LL | | } else { -LL | | true -LL | | }; - | |_____^ help: you can reduce it to: `{ !returns_bool() }` - -error: aborting due to 16 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_bool.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'needless_bool.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/needless_bool.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_bool.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_bool.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/needless_bool.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/needless_borrowed_ref.rs stdout ---- normalized stderr: expected stderr: error: this pattern takes a reference on something that is being de-referenced --> $DIR/needless_borrowed_ref.rs:5:34 | LL | let _ = v.iter_mut().filter(|&ref a| a.is_empty()); | ^^^^^^ help: try removing the `&ref` part and just keep: `a` | = note: `-D clippy::needless-borrowed-reference` implied by `-D warnings` error: this pattern takes a reference on something that is being de-referenced --> $DIR/needless_borrowed_ref.rs:10:17 | LL | if let Some(&ref v) = thingy { | ^^^^^^ help: try removing the `&ref` part and just keep: `v` error: this pattern takes a reference on something that is being de-referenced --> $DIR/needless_borrowed_ref.rs:39:27 | LL | (&Animal::Cat(v), &ref k) | (&ref k, &Animal::Cat(v)) => (), // lifetime mismatch error if there is no '&ref' | ^^^^^^ help: try removing the `&ref` part and just keep: `k` error: this pattern takes a reference on something that is being de-referenced --> $DIR/needless_borrowed_ref.rs:39:38 | LL | (&Animal::Cat(v), &ref k) | (&ref k, &Animal::Cat(v)) => (), // lifetime mismatch error if there is no '&ref' | ^^^^^^ help: try removing the `&ref` part and just keep: `k` error: aborting due to 4 previous errors diff of stderr: -error: this pattern takes a reference on something that is being de-referenced - --> $DIR/needless_borrowed_ref.rs:5:34 - | -LL | let _ = v.iter_mut().filter(|&ref a| a.is_empty()); - | ^^^^^^ help: try removing the `&ref` part and just keep: `a` - | - = note: `-D clippy::needless-borrowed-reference` implied by `-D warnings` - -error: this pattern takes a reference on something that is being de-referenced - --> $DIR/needless_borrowed_ref.rs:10:17 - | -LL | if let Some(&ref v) = thingy { - | ^^^^^^ help: try removing the `&ref` part and just keep: `v` - -error: this pattern takes a reference on something that is being de-referenced - --> $DIR/needless_borrowed_ref.rs:39:27 - | -LL | (&Animal::Cat(v), &ref k) | (&ref k, &Animal::Cat(v)) => (), // lifetime mismatch error if there is no '&ref' - | ^^^^^^ help: try removing the `&ref` part and just keep: `k` - -error: this pattern takes a reference on something that is being de-referenced - --> $DIR/needless_borrowed_ref.rs:39:38 - | -LL | (&Animal::Cat(v), &ref k) | (&ref k, &Animal::Cat(v)) => (), // lifetime mismatch error if there is no '&ref' - | ^^^^^^ help: try removing the `&ref` part and just keep: `k` - -error: aborting due to 4 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_borrowed_ref.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'needless_borrowed_ref.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/needless_borrowed_ref.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_borrowed_ref.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_borrowed_ref.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/needless_borrowed_ref.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/lint_without_lint_pass.rs stdout ---- normalized stderr: expected stderr: error: the lint `TEST_LINT` is not added to any `LintPass` --> $DIR/lint_without_lint_pass.rs:11:1 | LL | / declare_clippy_lint! { LL | | pub TEST_LINT, LL | | correctness, LL | | "" LL | | } | |_^ | note: lint level defined here --> $DIR/lint_without_lint_pass.rs:1:9 | LL | #![deny(clippy::internal)] | ^^^^^^^^^^^^^^^^ = note: #[deny(clippy::lint_without_lint_pass)] implied by #[deny(clippy::internal)] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: aborting due to previous error diff of stderr: -error: the lint `TEST_LINT` is not added to any `LintPass` - --> $DIR/lint_without_lint_pass.rs:11:1 - | -LL | / declare_clippy_lint! { -LL | | pub TEST_LINT, -LL | | correctness, -LL | | "" -LL | | } - | |_^ - | -note: lint level defined here - --> $DIR/lint_without_lint_pass.rs:1:9 - | -LL | #![deny(clippy::internal)] - | ^^^^^^^^^^^^^^^^ - = note: #[deny(clippy::lint_without_lint_pass)] implied by #[deny(clippy::internal)] - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -error: aborting due to previous error - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/lint_without_lint_pass.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'lint_without_lint_pass.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/lint_without_lint_pass.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/lint_without_lint_pass.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/lint_without_lint_pass.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/lint_without_lint_pass.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/my_lint.rs stdout ---- normalized stdout: if_chain! { then { // report your lint here } } expected stdout: diff of stdout: +if_chain! { + then { + // report your lint here + } +} + The actual stdout differed from the expected stdout. Actual stdout saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/my_lint.stdout To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'my_lint.rs' error: 1 errors occurred comparing output. status: exit code: 0 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/my_lint.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/my_lint.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/my_lint.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ if_chain! { then { // report your lint here } } ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/my_lint.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/needless_continue.rs stdout ---- normalized stderr: error: This else block is redundant. --> $DIR/needless_continue.rs:28:16 | LL | } else { | ________________^ LL | | continue; LL | | } | |_________^ | = note: `-D clippy::needless-continue` implied by `-D warnings` = help: Consider dropping the else clause and merging the code that follows (in the loop) with the if block, like so: if i % 2 == 0 && i % 3 == 0 { println!("{}", i); println!("{}", i + 1); if i % 5 == 0 { println!("{}", i + 2); } let i = 0; println!("bar {} ", i); // Merged code follows...println!("bleh"); { println!("blah"); } if !(!(i == 2) || !(i == 5)) { println!("lama"); } if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 { continue; } else { println!("Blabber"); println!("Jabber"); } println!("bleh"); } error: There is no need for an explicit `else` block for this `if` expression --> $DIR/needless_continue.rs:43:9 | LL | / if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 { LL | | continue; LL | | } else { LL | | println!("Blabber"); LL | | println!("Jabber"); LL | | } | |_________^ | = help: Consider dropping the else clause, and moving out the code in the else block, like so: if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 { continue; } println!("Blabber"); println!("Jabber"); ... expected stderr: error: This else block is redundant. --> $DIR/needless_continue.rs:28:16 | LL | } else { | ________________^ LL | | continue; LL | | } | |_________^ | = note: `-D clippy::needless-continue` implied by `-D warnings` = help: Consider dropping the else clause and merging the code that follows (in the loop) with the if block, like so: if i % 2 == 0 && i % 3 == 0 { println!("{}", i); println!("{}", i + 1); if i % 5 == 0 { println!("{}", i + 2); } let i = 0; println!("bar {} ", i); // Merged code follows...println!("bleh"); { println!("blah"); } if !(!(i == 2) || !(i == 5)) { println!("lama"); } if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 { continue; } else { println!("Blabber"); println!("Jabber"); } println!("bleh"); } error: There is no need for an explicit `else` block for this `if` expression --> $DIR/needless_continue.rs:43:9 | LL | / if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 { LL | | continue; LL | | } else { LL | | println!("Blabber"); LL | | println!("Jabber"); LL | | } | |_________^ | = help: Consider dropping the else clause, and moving out the code in the else block, like so: if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 { continue; } println!("Blabber"); println!("Jabber"); ... error: This else block is redundant. --> $DIR/needless_continue.rs:100:24 | LL | } else { | ________________________^ LL | | continue 'inner; // should lint here LL | | } | |_________________^ | = help: Consider dropping the else clause and merging the code that follows (in the loop) with the if block, like so: if condition() { println!("bar-3"); // Merged code follows...println!("bar-4"); update_condition(); if condition() { continue; // should lint here } else { println!("bar-5"); } println!("bar-6"); } error: There is no need for an explicit `else` block for this `if` expression --> $DIR/needless_continue.rs:106:17 | LL | / if condition() { LL | | continue; // should lint here LL | | } else { LL | | println!("bar-5"); LL | | } | |_________________^ | = help: Consider dropping the else clause, and moving out the code in the else block, like so: if condition() { continue; } println!("bar-5"); ... error: aborting due to 4 previous errors diff of stderr: error: This else block is redundant. --> $DIR/needless_continue.rs:28:16 | LL | } else { | ________________^ LL | | continue; LL | | } | |_________^ | = note: `-D clippy::needless-continue` implied by `-D warnings` = help: Consider dropping the else clause and merging the code that follows (in the loop) with the if block, like so: if i % 2 == 0 && i % 3 == 0 { println!("{}", i); println!("{}", i + 1); if i % 5 == 0 { println!("{}", i + 2); } let i = 0; println!("bar {} ", i); // Merged code follows...println!("bleh"); { println!("blah"); } if !(!(i == 2) || !(i == 5)) { println!("lama"); } if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 { continue; } else { println!("Blabber"); println!("Jabber"); } println!("bleh"); } error: There is no need for an explicit `else` block for this `if` expression --> $DIR/needless_continue.rs:43:9 | LL | / if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 { LL | | continue; LL | | } else { LL | | println!("Blabber"); LL | | println!("Jabber"); LL | | } | |_________^ | = help: Consider dropping the else clause, and moving out the code in the else block, like so: if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 { continue; } println!("Blabber"); println!("Jabber"); ... -error: This else block is redundant. - - --> $DIR/needless_continue.rs:100:24 - | -LL | } else { - | ________________________^ -LL | | continue 'inner; // should lint here -LL | | } - | |_________________^ - | - = help: Consider dropping the else clause and merging the code that follows (in the loop) with the if block, like so: - if condition() { - println!("bar-3"); - // Merged code follows...println!("bar-4"); - update_condition(); - if condition() { - continue; // should lint here - } else { - println!("bar-5"); - } - println!("bar-6"); - } - - -error: There is no need for an explicit `else` block for this `if` expression - - --> $DIR/needless_continue.rs:106:17 - | -LL | / if condition() { -LL | | continue; // should lint here -LL | | } else { -LL | | println!("bar-5"); -LL | | } - | |_________________^ - | - = help: Consider dropping the else clause, and moving out the code in the else block, like so: - if condition() { - continue; - } - println!("bar-5"); - ... - -error: aborting due to 4 previous errors - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_continue.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'needless_continue.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/needless_continue.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_continue.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_continue.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ {"message":"This else block is redundant.\n","code":{"code":"clippy::needless_continue","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/needless_continue.rs","byte_start":499,"byte_end":532,"line_start":28,"line_end":30,"column_start":16,"column_end":10,"is_primary":true,"text":[{"text":" } else {","highlight_start":16,"highlight_end":17},{"text":" continue;","highlight_start":1,"highlight_end":22},{"text":" }","highlight_start":1,"highlight_end":10}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D clippy::needless-continue` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"Consider dropping the else clause and merging the code that follows (in the loop) with the if block, like so:\nif i % 2 == 0 && i % 3 == 0 {\nprintln!(\"{}\", i);\nprintln!(\"{}\", i + 1);\nif i % 5 == 0 {\n println!(\"{}\", i + 2);\n}\nlet i = 0;\nprintln!(\"bar {} \", i);\n// Merged code follows...println!(\"bleh\");\n{\n println!(\"blah\");\n}\nif !(!(i == 2) || !(i == 5)) {\n println!(\"lama\");\n}\nif (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 {\n continue;\n} else {\n println!(\"Blabber\");\n println!(\"Jabber\");\n}\nprintln!(\"bleh\");\n}\n","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error: This else block is redundant.\n\n --> tests/ui/needless_continue.rs:28:16\n |\nLL | } else {\n | ________________^\nLL | | continue;\nLL | | }\n | |_________^\n |\n = note: `-D clippy::needless-continue` implied by `-D warnings`\n = help: Consider dropping the else clause and merging the code that follows (in the loop) with the if block, like so:\n if i % 2 == 0 && i % 3 == 0 {\n println!(\"{}\", i);\n println!(\"{}\", i + 1);\n if i % 5 == 0 {\n println!(\"{}\", i + 2);\n }\n let i = 0;\n println!(\"bar {} \", i);\n // Merged code follows...println!(\"bleh\");\n {\n println!(\"blah\");\n }\n if !(!(i == 2) || !(i == 5)) {\n println!(\"lama\");\n }\n if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 {\n continue;\n } else {\n println!(\"Blabber\");\n println!(\"Jabber\");\n }\n println!(\"bleh\");\n }\n \n\n"} {"message":"There is no need for an explicit `else` block for this `if` expression\n","code":{"code":"clippy::needless_continue","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/needless_continue.rs","byte_start":822,"byte_end":988,"line_start":43,"line_end":48,"column_start":9,"column_end":10,"is_primary":true,"text":[{"text":" if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 {","highlight_start":9,"highlight_end":61},{"text":" continue;","highlight_start":1,"highlight_end":22},{"text":" } else {","highlight_start":1,"highlight_end":17},{"text":" println!(\"Blabber\");","highlight_start":1,"highlight_end":33},{"text":" println!(\"Jabber\");","highlight_start":1,"highlight_end":32},{"text":" }","highlight_start":1,"highlight_end":10}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"Consider dropping the else clause, and moving out the code in the else block, like so:\nif (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 {\n continue;\n}\nprintln!(\"Blabber\");\nprintln!(\"Jabber\");\n...","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error: There is no need for an explicit `else` block for this `if` expression\n\n --> tests/ui/needless_continue.rs:43:9\n |\nLL | / if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 {\nLL | | continue;\nLL | | } else {\nLL | | println!(\"Blabber\");\nLL | | println!(\"Jabber\");\nLL | | }\n | |_________^\n |\n = help: Consider dropping the else clause, and moving out the code in the else block, like so:\n if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 {\n continue;\n }\n println!(\"Blabber\");\n println!(\"Jabber\");\n ...\n\n"} ------------------------------------------ thread '[ui] ui/needless_continue.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/needless_pass_by_value.rs stdout ---- normalized stderr: expected stderr: error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:16:23 | LL | fn foo(v: Vec, w: Vec, mut x: Vec, y: Vec) -> Vec { | ^^^^^^ help: consider changing the type to: `&[T]` | = note: `-D clippy::needless-pass-by-value` implied by `-D warnings` error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:30:11 | LL | fn bar(x: String, y: Wrapper) { | ^^^^^^ help: consider changing the type to: `&str` error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:30:22 | LL | fn bar(x: String, y: Wrapper) { | ^^^^^^^ help: consider taking a reference instead: `&Wrapper` error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:36:71 | LL | fn test_borrow_trait, U: AsRef, V>(t: T, u: U, v: V) { | ^ help: consider taking a reference instead: `&V` error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:48:18 | LL | fn test_match(x: Option>, y: Option>) { | ^^^^^^^^^^^^^^^^^^^^^^ help: consider taking a reference instead | LL | fn test_match(x: &Option>, y: Option>) { LL | match *x { | error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:61:24 | LL | fn test_destructure(x: Wrapper, y: Wrapper, z: Wrapper) { | ^^^^^^^ help: consider taking a reference instead: `&Wrapper` error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:61:36 | LL | fn test_destructure(x: Wrapper, y: Wrapper, z: Wrapper) { | ^^^^^^^ help: consider taking a reference instead | LL | fn test_destructure(x: Wrapper, y: &Wrapper, z: Wrapper) { LL | let Wrapper(s) = z; // moved LL | let Wrapper(ref t) = *y; // not moved LL | let Wrapper(_) = *y; // still not moved | error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:77:49 | LL | fn test_blanket_ref(_foo: T, _serializable: S) {} | ^ help: consider taking a reference instead: `&T` error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:79:18 | LL | fn issue_2114(s: String, t: String, u: Vec, v: Vec) { | ^^^^^^ help: consider taking a reference instead: `&String` error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:79:29 | LL | fn issue_2114(s: String, t: String, u: Vec, v: Vec) { | ^^^^^^ help: consider changing the type to | LL | fn issue_2114(s: String, t: &str, u: Vec, v: Vec) { | ^^^^ help: change `t.clone()` to | LL | let _ = t.to_string(); | ^^^^^^^^^^^^^ error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:79:40 | LL | fn issue_2114(s: String, t: String, u: Vec, v: Vec) { | ^^^^^^^^ help: consider taking a reference instead: `&Vec` error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:79:53 | LL | fn issue_2114(s: String, t: String, u: Vec, v: Vec) { | ^^^^^^^^ help: consider changing the type to | LL | fn issue_2114(s: String, t: String, u: Vec, v: &[i32]) { | ^^^^^^ help: change `v.clone()` to | LL | let _ = v.to_owned(); | ^^^^^^^^^^^^ error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:92:12 | LL | s: String, | ^^^^^^ help: consider changing the type to: `&str` error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:93:12 | LL | t: String, | ^^^^^^ help: consider taking a reference instead: `&String` error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:102:23 | LL | fn baz(&self, _u: U, _s: Self) {} | ^ help: consider taking a reference instead: `&U` error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:102:30 | LL | fn baz(&self, _u: U, _s: Self) {} | ^^^^ help: consider taking a reference instead: `&Self` error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:124:24 | LL | fn bar_copy(x: u32, y: CopyWrapper) { | ^^^^^^^^^^^ help: consider taking a reference instead: `&CopyWrapper` | help: consider marking this type as Copy --> $DIR/needless_pass_by_value.rs:122:1 | LL | struct CopyWrapper(u32); | ^^^^^^^^^^^^^^^^^^^^^^^^ error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:130:29 | LL | fn test_destructure_copy(x: CopyWrapper, y: CopyWrapper, z: CopyWrapper) { | ^^^^^^^^^^^ help: consider taking a reference instead: `&CopyWrapper` | help: consider marking this type as Copy --> $DIR/needless_pass_by_value.rs:122:1 | LL | struct CopyWrapper(u32); | ^^^^^^^^^^^^^^^^^^^^^^^^ error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:130:45 | LL | fn test_destructure_copy(x: CopyWrapper, y: CopyWrapper, z: CopyWrapper) { | ^^^^^^^^^^^ | help: consider marking this type as Copy --> $DIR/needless_pass_by_value.rs:122:1 | LL | struct CopyWrapper(u32); | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider taking a reference instead | LL | fn test_destructure_copy(x: CopyWrapper, y: &CopyWrapper, z: CopyWrapper) { LL | let CopyWrapper(s) = z; // moved LL | let CopyWrapper(ref t) = *y; // not moved LL | let CopyWrapper(_) = *y; // still not moved | error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:130:61 | LL | fn test_destructure_copy(x: CopyWrapper, y: CopyWrapper, z: CopyWrapper) { | ^^^^^^^^^^^ | help: consider marking this type as Copy --> $DIR/needless_pass_by_value.rs:122:1 | LL | struct CopyWrapper(u32); | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider taking a reference instead | LL | fn test_destructure_copy(x: CopyWrapper, y: CopyWrapper, z: &CopyWrapper) { LL | let CopyWrapper(s) = *z; // moved | error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:142:40 | LL | fn some_fun<'b, S: Bar<'b, ()>>(_item: S) {} | ^ help: consider taking a reference instead: `&S` error: this argument is passed by value, but not consumed in the function body --> $DIR/needless_pass_by_value.rs:147:20 | LL | fn more_fun(_item: impl Club<'static, i32>) {} | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider taking a reference instead: `&impl Club<'static, i32>` error: aborting due to 22 previous errors diff of stderr: -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:16:23 - | -LL | fn foo(v: Vec, w: Vec, mut x: Vec, y: Vec) -> Vec { - | ^^^^^^ help: consider changing the type to: `&[T]` - | - = note: `-D clippy::needless-pass-by-value` implied by `-D warnings` - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:30:11 - | -LL | fn bar(x: String, y: Wrapper) { - | ^^^^^^ help: consider changing the type to: `&str` - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:30:22 - | -LL | fn bar(x: String, y: Wrapper) { - | ^^^^^^^ help: consider taking a reference instead: `&Wrapper` - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:36:71 - | -LL | fn test_borrow_trait, U: AsRef, V>(t: T, u: U, v: V) { - | ^ help: consider taking a reference instead: `&V` - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:48:18 - | -LL | fn test_match(x: Option>, y: Option>) { - | ^^^^^^^^^^^^^^^^^^^^^^ -help: consider taking a reference instead - | -LL | fn test_match(x: &Option>, y: Option>) { -LL | match *x { - | - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:61:24 - | -LL | fn test_destructure(x: Wrapper, y: Wrapper, z: Wrapper) { - | ^^^^^^^ help: consider taking a reference instead: `&Wrapper` - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:61:36 - | -LL | fn test_destructure(x: Wrapper, y: Wrapper, z: Wrapper) { - | ^^^^^^^ -help: consider taking a reference instead - | -LL | fn test_destructure(x: Wrapper, y: &Wrapper, z: Wrapper) { -LL | let Wrapper(s) = z; // moved -LL | let Wrapper(ref t) = *y; // not moved -LL | let Wrapper(_) = *y; // still not moved - | - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:77:49 - | -LL | fn test_blanket_ref(_foo: T, _serializable: S) {} - | ^ help: consider taking a reference instead: `&T` - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:79:18 - | -LL | fn issue_2114(s: String, t: String, u: Vec, v: Vec) { - | ^^^^^^ help: consider taking a reference instead: `&String` - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:79:29 - | -LL | fn issue_2114(s: String, t: String, u: Vec, v: Vec) { - | ^^^^^^ -help: consider changing the type to - | -LL | fn issue_2114(s: String, t: &str, u: Vec, v: Vec) { - | ^^^^ -help: change `t.clone()` to - | -LL | let _ = t.to_string(); - | ^^^^^^^^^^^^^ - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:79:40 - | -LL | fn issue_2114(s: String, t: String, u: Vec, v: Vec) { - | ^^^^^^^^ help: consider taking a reference instead: `&Vec` - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:79:53 - | -LL | fn issue_2114(s: String, t: String, u: Vec, v: Vec) { - | ^^^^^^^^ -help: consider changing the type to - | -LL | fn issue_2114(s: String, t: String, u: Vec, v: &[i32]) { - | ^^^^^^ -help: change `v.clone()` to - | -LL | let _ = v.to_owned(); - | ^^^^^^^^^^^^ - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:92:12 - | -LL | s: String, - | ^^^^^^ help: consider changing the type to: `&str` - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:93:12 - | -LL | t: String, - | ^^^^^^ help: consider taking a reference instead: `&String` - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:102:23 - | -LL | fn baz(&self, _u: U, _s: Self) {} - | ^ help: consider taking a reference instead: `&U` - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:102:30 - | -LL | fn baz(&self, _u: U, _s: Self) {} - | ^^^^ help: consider taking a reference instead: `&Self` - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:124:24 - | -LL | fn bar_copy(x: u32, y: CopyWrapper) { - | ^^^^^^^^^^^ help: consider taking a reference instead: `&CopyWrapper` - | -help: consider marking this type as Copy - --> $DIR/needless_pass_by_value.rs:122:1 - | -LL | struct CopyWrapper(u32); - | ^^^^^^^^^^^^^^^^^^^^^^^^ - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:130:29 - | -LL | fn test_destructure_copy(x: CopyWrapper, y: CopyWrapper, z: CopyWrapper) { - | ^^^^^^^^^^^ help: consider taking a reference instead: `&CopyWrapper` - | -help: consider marking this type as Copy - --> $DIR/needless_pass_by_value.rs:122:1 - | -LL | struct CopyWrapper(u32); - | ^^^^^^^^^^^^^^^^^^^^^^^^ - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:130:45 - | -LL | fn test_destructure_copy(x: CopyWrapper, y: CopyWrapper, z: CopyWrapper) { - | ^^^^^^^^^^^ - | -help: consider marking this type as Copy - --> $DIR/needless_pass_by_value.rs:122:1 - | -LL | struct CopyWrapper(u32); - | ^^^^^^^^^^^^^^^^^^^^^^^^ -help: consider taking a reference instead - | -LL | fn test_destructure_copy(x: CopyWrapper, y: &CopyWrapper, z: CopyWrapper) { -LL | let CopyWrapper(s) = z; // moved -LL | let CopyWrapper(ref t) = *y; // not moved -LL | let CopyWrapper(_) = *y; // still not moved - | - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:130:61 - | -LL | fn test_destructure_copy(x: CopyWrapper, y: CopyWrapper, z: CopyWrapper) { - | ^^^^^^^^^^^ - | -help: consider marking this type as Copy - --> $DIR/needless_pass_by_value.rs:122:1 - | -LL | struct CopyWrapper(u32); - | ^^^^^^^^^^^^^^^^^^^^^^^^ -help: consider taking a reference instead - | -LL | fn test_destructure_copy(x: CopyWrapper, y: CopyWrapper, z: &CopyWrapper) { -LL | let CopyWrapper(s) = *z; // moved - | - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:142:40 - | -LL | fn some_fun<'b, S: Bar<'b, ()>>(_item: S) {} - | ^ help: consider taking a reference instead: `&S` - -error: this argument is passed by value, but not consumed in the function body - --> $DIR/needless_pass_by_value.rs:147:20 - | -LL | fn more_fun(_item: impl Club<'static, i32>) {} - | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider taking a reference instead: `&impl Club<'static, i32>` - -error: aborting due to 22 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_pass_by_value.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'needless_pass_by_value.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/needless_pass_by_value.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_pass_by_value.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_pass_by_value.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/needless_pass_by_value.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/needless_range_loop.rs stdout ---- normalized stderr: expected stderr: error: the loop variable `i` is only used to index `ns`. --> $DIR/needless_range_loop.rs:8:14 | LL | for i in 3..10 { | ^^^^^ | = note: `-D clippy::needless-range-loop` implied by `-D warnings` help: consider using an iterator | LL | for in ns.iter().take(10).skip(3) { | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ error: the loop variable `i` is only used to index `ms`. --> $DIR/needless_range_loop.rs:29:14 | LL | for i in 0..ms.len() { | ^^^^^^^^^^^ help: consider using an iterator | LL | for in &mut ms { | ^^^^^^ ^^^^^^^ error: the loop variable `i` is only used to index `ms`. --> $DIR/needless_range_loop.rs:35:14 | LL | for i in 0..ms.len() { | ^^^^^^^^^^^ help: consider using an iterator | LL | for in &mut ms { | ^^^^^^ ^^^^^^^ error: the loop variable `i` is only used to index `vec`. --> $DIR/needless_range_loop.rs:59:14 | LL | for i in x..x + 4 { | ^^^^^^^^ help: consider using an iterator | LL | for in vec.iter_mut().skip(x).take(4) { | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: the loop variable `i` is only used to index `vec`. --> $DIR/needless_range_loop.rs:66:14 | LL | for i in x..=x + 4 { | ^^^^^^^^^ help: consider using an iterator | LL | for in vec.iter_mut().skip(x).take(4 + 1) { | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: the loop variable `i` is only used to index `arr`. --> $DIR/needless_range_loop.rs:72:14 | LL | for i in 0..3 { | ^^^^ help: consider using an iterator | LL | for in &arr { | ^^^^^^ ^^^^ error: the loop variable `i` is only used to index `arr`. --> $DIR/needless_range_loop.rs:76:14 | LL | for i in 0..2 { | ^^^^ help: consider using an iterator | LL | for in arr.iter().take(2) { | ^^^^^^ ^^^^^^^^^^^^^^^^^^ error: the loop variable `i` is only used to index `arr`. --> $DIR/needless_range_loop.rs:80:14 | LL | for i in 1..3 { | ^^^^ help: consider using an iterator | LL | for in arr.iter().skip(1) { | ^^^^^^ ^^^^^^^^^^^^^^^^^^ error: the loop variable `i` is used to index `vec` --> $DIR/needless_range_loop.rs:85:14 | LL | for i in 0..vec.len() { | ^^^^^^^^^^^^ help: consider using an iterator | LL | for (i, ) in vec.iter_mut().enumerate() { | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 9 previous errors diff of stderr: -error: the loop variable `i` is only used to index `ns`. - --> $DIR/needless_range_loop.rs:8:14 - | -LL | for i in 3..10 { - | ^^^^^ - | - = note: `-D clippy::needless-range-loop` implied by `-D warnings` -help: consider using an iterator - | -LL | for in ns.iter().take(10).skip(3) { - | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: the loop variable `i` is only used to index `ms`. - --> $DIR/needless_range_loop.rs:29:14 - | -LL | for i in 0..ms.len() { - | ^^^^^^^^^^^ -help: consider using an iterator - | -LL | for in &mut ms { - | ^^^^^^ ^^^^^^^ - -error: the loop variable `i` is only used to index `ms`. - --> $DIR/needless_range_loop.rs:35:14 - | -LL | for i in 0..ms.len() { - | ^^^^^^^^^^^ -help: consider using an iterator - | -LL | for in &mut ms { - | ^^^^^^ ^^^^^^^ - -error: the loop variable `i` is only used to index `vec`. - --> $DIR/needless_range_loop.rs:59:14 - | -LL | for i in x..x + 4 { - | ^^^^^^^^ -help: consider using an iterator - | -LL | for in vec.iter_mut().skip(x).take(4) { - | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: the loop variable `i` is only used to index `vec`. - --> $DIR/needless_range_loop.rs:66:14 - | -LL | for i in x..=x + 4 { - | ^^^^^^^^^ -help: consider using an iterator - | -LL | for in vec.iter_mut().skip(x).take(4 + 1) { - | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: the loop variable `i` is only used to index `arr`. - --> $DIR/needless_range_loop.rs:72:14 - | -LL | for i in 0..3 { - | ^^^^ -help: consider using an iterator - | -LL | for in &arr { - | ^^^^^^ ^^^^ - -error: the loop variable `i` is only used to index `arr`. - --> $DIR/needless_range_loop.rs:76:14 - | -LL | for i in 0..2 { - | ^^^^ -help: consider using an iterator - | -LL | for in arr.iter().take(2) { - | ^^^^^^ ^^^^^^^^^^^^^^^^^^ - -error: the loop variable `i` is only used to index `arr`. - --> $DIR/needless_range_loop.rs:80:14 - | -LL | for i in 1..3 { - | ^^^^ -help: consider using an iterator - | -LL | for in arr.iter().skip(1) { - | ^^^^^^ ^^^^^^^^^^^^^^^^^^ - -error: the loop variable `i` is used to index `vec` - --> $DIR/needless_range_loop.rs:85:14 - | -LL | for i in 0..vec.len() { - | ^^^^^^^^^^^^ -help: consider using an iterator - | -LL | for (i, ) in vec.iter_mut().enumerate() { - | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: aborting due to 9 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_range_loop.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'needless_range_loop.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/needless_range_loop.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_range_loop.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_range_loop.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/needless_range_loop.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/needless_return.rs stdout ---- normalized stderr: error: unneeded return statement --> $DIR/needless_return.rs:8:5 | LL | return true; | ^^^^^^^^^^^^ help: remove `return` as shown: `true` | = note: `-D clippy::needless-return` implied by `-D warnings` error: unneeded return statement --> $DIR/needless_return.rs:12:5 | LL | return true; | ^^^^^^^^^^^^ help: remove `return` as shown: `true` error: unneeded return statement --> $DIR/needless_return.rs:17:9 | LL | return true; | ^^^^^^^^^^^^ help: remove `return` as shown: `true` error: unneeded return statement --> $DIR/needless_return.rs:19:9 | LL | return false; | ^^^^^^^^^^^^^ help: remove `return` as shown: `false` error: unneeded return statement --> $DIR/needless_return.rs:25:17 | LL | true => return false, | ^^^^^^^^^^^^ help: remove `return` as shown: `false` error: unneeded return statement --> $DIR/needless_return.rs:27:13 | LL | return true; | ^^^^^^^^^^^^ help: remove `return` as shown: `true` expected stderr: error: unneeded return statement --> $DIR/needless_return.rs:8:5 | LL | return true; | ^^^^^^^^^^^^ help: remove `return` as shown: `true` | = note: `-D clippy::needless-return` implied by `-D warnings` error: unneeded return statement --> $DIR/needless_return.rs:12:5 | LL | return true; | ^^^^^^^^^^^^ help: remove `return` as shown: `true` error: unneeded return statement --> $DIR/needless_return.rs:17:9 | LL | return true; | ^^^^^^^^^^^^ help: remove `return` as shown: `true` error: unneeded return statement --> $DIR/needless_return.rs:19:9 | LL | return false; | ^^^^^^^^^^^^^ help: remove `return` as shown: `false` error: unneeded return statement --> $DIR/needless_return.rs:25:17 | LL | true => return false, | ^^^^^^^^^^^^ help: remove `return` as shown: `false` error: unneeded return statement --> $DIR/needless_return.rs:27:13 | LL | return true; | ^^^^^^^^^^^^ help: remove `return` as shown: `true` error: unneeded return statement --> $DIR/needless_return.rs:34:9 | LL | return true; | ^^^^^^^^^^^^ help: remove `return` as shown: `true` error: unneeded return statement --> $DIR/needless_return.rs:36:16 | LL | let _ = || return true; | ^^^^^^^^^^^ help: remove `return` as shown: `true` error: aborting due to 8 previous errors diff of stderr: error: unneeded return statement --> $DIR/needless_return.rs:8:5 | LL | return true; | ^^^^^^^^^^^^ help: remove `return` as shown: `true` | = note: `-D clippy::needless-return` implied by `-D warnings` error: unneeded return statement --> $DIR/needless_return.rs:12:5 | LL | return true; | ^^^^^^^^^^^^ help: remove `return` as shown: `true` error: unneeded return statement --> $DIR/needless_return.rs:17:9 | LL | return true; | ^^^^^^^^^^^^ help: remove `return` as shown: `true` error: unneeded return statement --> $DIR/needless_return.rs:19:9 | LL | return false; | ^^^^^^^^^^^^^ help: remove `return` as shown: `false` error: unneeded return statement --> $DIR/needless_return.rs:25:17 | LL | true => return false, | ^^^^^^^^^^^^ help: remove `return` as shown: `false` error: unneeded return statement --> $DIR/needless_return.rs:27:13 | LL | return true; | ^^^^^^^^^^^^ help: remove `return` as shown: `true` -error: unneeded return statement - --> $DIR/needless_return.rs:34:9 - | -LL | return true; - | ^^^^^^^^^^^^ help: remove `return` as shown: `true` - -error: unneeded return statement - --> $DIR/needless_return.rs:36:16 - | -LL | let _ = || return true; - | ^^^^^^^^^^^ help: remove `return` as shown: `true` - -error: aborting due to 8 previous errors - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_return.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'needless_return.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/needless_return.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_return.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/needless_return.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ {"message":"unneeded return statement","code":{"code":"clippy::needless_return","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/needless_return.rs","byte_start":131,"byte_end":143,"line_start":8,"line_end":8,"column_start":5,"column_end":17,"is_primary":true,"text":[{"text":" return true;","highlight_start":5,"highlight_end":17}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D clippy::needless-return` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove `return` as shown","code":null,"level":"help","spans":[{"file_name":"tests/ui/needless_return.rs","byte_start":131,"byte_end":143,"line_start":8,"line_end":8,"column_start":5,"column_end":17,"is_primary":true,"text":[{"text":" return true;","highlight_start":5,"highlight_end":17}],"label":null,"suggested_replacement":"true","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: unneeded return statement\n --> tests/ui/needless_return.rs:8:5\n |\nLL | return true;\n | ^^^^^^^^^^^^ help: remove `return` as shown: `true`\n |\n = note: `-D clippy::needless-return` implied by `-D warnings`\n\n"} {"message":"unneeded return statement","code":{"code":"clippy::needless_return","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/needless_return.rs","byte_start":184,"byte_end":196,"line_start":12,"line_end":12,"column_start":5,"column_end":17,"is_primary":true,"text":[{"text":" return true;","highlight_start":5,"highlight_end":17}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove `return` as shown","code":null,"level":"help","spans":[{"file_name":"tests/ui/needless_return.rs","byte_start":184,"byte_end":196,"line_start":12,"line_end":12,"column_start":5,"column_end":17,"is_primary":true,"text":[{"text":" return true;","highlight_start":5,"highlight_end":17}],"label":null,"suggested_replacement":"true","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: unneeded return statement\n --> tests/ui/needless_return.rs:12:5\n |\nLL | return true;\n | ^^^^^^^^^^^^ help: remove `return` as shown: `true`\n\n"} {"message":"unneeded return statement","code":{"code":"clippy::needless_return","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/needless_return.rs","byte_start":251,"byte_end":263,"line_start":17,"line_end":17,"column_start":9,"column_end":21,"is_primary":true,"text":[{"text":" return true;","highlight_start":9,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove `return` as shown","code":null,"level":"help","spans":[{"file_name":"tests/ui/needless_return.rs","byte_start":251,"byte_end":263,"line_start":17,"line_end":17,"column_start":9,"column_end":21,"is_primary":true,"text":[{"text":" return true;","highlight_start":9,"highlight_end":21}],"label":null,"suggested_replacement":"true","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: unneeded return statement\n --> tests/ui/needless_return.rs:17:9\n |\nLL | return true;\n | ^^^^^^^^^^^^ help: remove `return` as shown: `true`\n\n"} {"message":"unneeded return statement","code":{"code":"clippy::needless_return","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/needless_return.rs","byte_start":285,"byte_end":298,"line_start":19,"line_end":19,"column_start":9,"column_end":22,"is_primary":true,"text":[{"text":" return false;","highlight_start":9,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove `return` as shown","code":null,"level":"help","spans":[{"file_name":"tests/ui/needless_return.rs","byte_start":285,"byte_end":298,"line_start":19,"line_end":19,"column_start":9,"column_end":22,"is_primary":true,"text":[{"text":" return false;","highlight_start":9,"highlight_end":22}],"label":null,"suggested_replacement":"false","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: unneeded return statement\n --> tests/ui/needless_return.rs:19:9\n |\nLL | return false;\n | ^^^^^^^^^^^^^ help: remove `return` as shown: `false`\n\n"} {"message":"unneeded return statement","code":{"code":"clippy::needless_return","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/needless_return.rs","byte_start":371,"byte_end":383,"line_start":25,"line_end":25,"column_start":17,"column_end":29,"is_primary":true,"text":[{"text":" true => return false,","highlight_start":17,"highlight_end":29}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove `return` as shown","code":null,"level":"help","spans":[{"file_name":"tests/ui/needless_return.rs","byte_start":371,"byte_end":383,"line_start":25,"line_end":25,"column_start":17,"column_end":29,"is_primary":true,"text":[{"text":" true => return false,","highlight_start":17,"highlight_end":29}],"label":null,"suggested_replacement":"false","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: unneeded return statement\n --> tests/ui/needless_return.rs:25:17\n |\nLL | true => return false,\n | ^^^^^^^^^^^^ help: remove `return` as shown: `false`\n\n"} {"message":"unneeded return statement","code":{"code":"clippy::needless_return","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/needless_return.rs","byte_start":416,"byte_end":428,"line_start":27,"line_end":27,"column_start":13,"column_end":25,"is_primary":true,"text":[{"text":" return true;","highlight_start":13,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove `return` as shown","code":null,"level":"help","spans":[{"file_name":"tests/ui/needless_return.rs","byte_start":416,"byte_end":428,"line_start":27,"line_end":27,"column_start":13,"column_end":25,"is_primary":true,"text":[{"text":" return true;","highlight_start":13,"highlight_end":25}],"label":null,"suggested_replacement":"true","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: unneeded return statement\n --> tests/ui/needless_return.rs:27:13\n |\nLL | return true;\n | ^^^^^^^^^^^^ help: remove `return` as shown: `true`\n\n"} ------------------------------------------ thread '[ui] ui/needless_return.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/never_loop.rs stdout ---- normalized stderr: expected stderr: error: this loop never actually loops --> $DIR/never_loop.rs:10:5 | LL | / loop { LL | | // clippy::never_loop LL | | x += 1; LL | | if x == 1 { ... | LL | | break; LL | | } | |_____^ | = note: #[deny(clippy::never_loop)] on by default error: this loop never actually loops --> $DIR/never_loop.rs:32:5 | LL | / loop { LL | | // never loops LL | | x += 1; LL | | break; LL | | } | |_____^ error: this loop never actually loops --> $DIR/never_loop.rs:52:5 | LL | / loop { LL | | // never loops LL | | while i == 0 { LL | | // never loops ... | LL | | return; LL | | } | |_____^ error: this loop never actually loops --> $DIR/never_loop.rs:54:9 | LL | / while i == 0 { LL | | // never loops LL | | break; LL | | } | |_________^ error: this loop never actually loops --> $DIR/never_loop.rs:66:9 | LL | / loop { LL | | // never loops LL | | if x == 5 { LL | | break; LL | | } LL | | continue 'outer; LL | | } | |_________^ error: this loop never actually loops --> $DIR/never_loop.rs:102:5 | LL | / while let Some(y) = x { LL | | // never loops LL | | return; LL | | } | |_____^ error: this loop never actually loops --> $DIR/never_loop.rs:109:5 | LL | / for x in 0..10 { LL | | // never loops LL | | match x { LL | | 1 => break, LL | | _ => return, LL | | } LL | | } | |_____^ error: this loop never actually loops --> $DIR/never_loop.rs:157:5 | LL | / 'outer: while a { LL | | // never loops LL | | while a { LL | | if a { ... | LL | | break 'outer; LL | | } | |_____^ error: this loop never actually loops --> $DIR/never_loop.rs:172:9 | LL | / while false { LL | | break 'label; LL | | } | |_________^ error: aborting due to 9 previous errors diff of stderr: -error: this loop never actually loops - --> $DIR/never_loop.rs:10:5 - | -LL | / loop { -LL | | // clippy::never_loop -LL | | x += 1; -LL | | if x == 1 { -... | -LL | | break; -LL | | } - | |_____^ - | - = note: #[deny(clippy::never_loop)] on by default - -error: this loop never actually loops - --> $DIR/never_loop.rs:32:5 - | -LL | / loop { -LL | | // never loops -LL | | x += 1; -LL | | break; -LL | | } - | |_____^ - -error: this loop never actually loops - --> $DIR/never_loop.rs:52:5 - | -LL | / loop { -LL | | // never loops -LL | | while i == 0 { -LL | | // never loops -... | -LL | | return; -LL | | } - | |_____^ - -error: this loop never actually loops - --> $DIR/never_loop.rs:54:9 - | -LL | / while i == 0 { -LL | | // never loops -LL | | break; -LL | | } - | |_________^ - -error: this loop never actually loops - --> $DIR/never_loop.rs:66:9 - | -LL | / loop { -LL | | // never loops -LL | | if x == 5 { -LL | | break; -LL | | } -LL | | continue 'outer; -LL | | } - | |_________^ - -error: this loop never actually loops - --> $DIR/never_loop.rs:102:5 - | -LL | / while let Some(y) = x { -LL | | // never loops -LL | | return; -LL | | } - | |_____^ - -error: this loop never actually loops - --> $DIR/never_loop.rs:109:5 - | -LL | / for x in 0..10 { -LL | | // never loops -LL | | match x { -LL | | 1 => break, -LL | | _ => return, -LL | | } -LL | | } - | |_____^ - -error: this loop never actually loops - --> $DIR/never_loop.rs:157:5 - | -LL | / 'outer: while a { -LL | | // never loops -LL | | while a { -LL | | if a { -... | -LL | | break 'outer; -LL | | } - | |_____^ - -error: this loop never actually loops - --> $DIR/never_loop.rs:172:9 - | -LL | / while false { -LL | | break 'label; -LL | | } - | |_________^ - -error: aborting due to 9 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/never_loop.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'never_loop.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/never_loop.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/never_loop.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/never_loop.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/never_loop.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/new_ret_no_self.rs stdout ---- normalized stderr: expected stderr: error: methods called `new` usually return `Self` --> $DIR/new_ret_no_self.rs:49:5 | LL | / pub fn new(_: String) -> impl R { LL | | S3 LL | | } | |_____^ | = note: `-D clippy::new-ret-no-self` implied by `-D warnings` error: methods called `new` usually return `Self` --> $DIR/new_ret_no_self.rs:81:5 | LL | / pub fn new() -> u32 { LL | | unimplemented!(); LL | | } | |_____^ error: methods called `new` usually return `Self` --> $DIR/new_ret_no_self.rs:90:5 | LL | / pub fn new(_: String) -> u32 { LL | | unimplemented!(); LL | | } | |_____^ error: methods called `new` usually return `Self` --> $DIR/new_ret_no_self.rs:126:5 | LL | / pub fn new() -> (u32, u32) { LL | | unimplemented!(); LL | | } | |_____^ error: methods called `new` usually return `Self` --> $DIR/new_ret_no_self.rs:153:5 | LL | / pub fn new() -> *mut V { LL | | unimplemented!(); LL | | } | |_____^ error: methods called `new` usually return `Self` --> $DIR/new_ret_no_self.rs:171:5 | LL | / pub fn new() -> Option { LL | | unimplemented!(); LL | | } | |_____^ error: aborting due to 6 previous errors diff of stderr: -error: methods called `new` usually return `Self` - --> $DIR/new_ret_no_self.rs:49:5 - | -LL | / pub fn new(_: String) -> impl R { -LL | | S3 -LL | | } - | |_____^ - | - = note: `-D clippy::new-ret-no-self` implied by `-D warnings` - -error: methods called `new` usually return `Self` - --> $DIR/new_ret_no_self.rs:81:5 - | -LL | / pub fn new() -> u32 { -LL | | unimplemented!(); -LL | | } - | |_____^ - -error: methods called `new` usually return `Self` - --> $DIR/new_ret_no_self.rs:90:5 - | -LL | / pub fn new(_: String) -> u32 { -LL | | unimplemented!(); -LL | | } - | |_____^ - -error: methods called `new` usually return `Self` - --> $DIR/new_ret_no_self.rs:126:5 - | -LL | / pub fn new() -> (u32, u32) { -LL | | unimplemented!(); -LL | | } - | |_____^ - -error: methods called `new` usually return `Self` - --> $DIR/new_ret_no_self.rs:153:5 - | -LL | / pub fn new() -> *mut V { -LL | | unimplemented!(); -LL | | } - | |_____^ - -error: methods called `new` usually return `Self` - --> $DIR/new_ret_no_self.rs:171:5 - | -LL | / pub fn new() -> Option { -LL | | unimplemented!(); -LL | | } - | |_____^ - -error: aborting due to 6 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/new_ret_no_self.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'new_ret_no_self.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/new_ret_no_self.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/new_ret_no_self.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/new_ret_no_self.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/new_ret_no_self.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/neg_multiply.rs stdout ---- normalized stderr: expected stderr: error: Negation by multiplying with -1 --> $DIR/neg_multiply.rs:27:5 | LL | x * -1; | ^^^^^^ | = note: `-D clippy::neg-multiply` implied by `-D warnings` error: Negation by multiplying with -1 --> $DIR/neg_multiply.rs:29:5 | LL | -1 * x; | ^^^^^^ error: aborting due to 2 previous errors diff of stderr: -error: Negation by multiplying with -1 - --> $DIR/neg_multiply.rs:27:5 - | -LL | x * -1; - | ^^^^^^ - | - = note: `-D clippy::neg-multiply` implied by `-D warnings` - -error: Negation by multiplying with -1 - --> $DIR/neg_multiply.rs:29:5 - | -LL | -1 * x; - | ^^^^^^ - -error: aborting due to 2 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/neg_multiply.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'neg_multiply.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/neg_multiply.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/neg_multiply.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/neg_multiply.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/neg_multiply.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/no_effect.rs stdout ---- normalized stderr: expected stderr: error: statement with no effect --> $DIR/no_effect.rs:65:5 | LL | 0; | ^^ | = note: `-D clippy::no-effect` implied by `-D warnings` error: statement with no effect --> $DIR/no_effect.rs:66:5 | LL | s2; | ^^^ error: statement with no effect --> $DIR/no_effect.rs:67:5 | LL | Unit; | ^^^^^ error: statement with no effect --> $DIR/no_effect.rs:68:5 | LL | Tuple(0); | ^^^^^^^^^ error: statement with no effect --> $DIR/no_effect.rs:69:5 | LL | Struct { field: 0 }; | ^^^^^^^^^^^^^^^^^^^^ error: statement with no effect --> $DIR/no_effect.rs:70:5 | LL | Struct { ..s }; | ^^^^^^^^^^^^^^^ error: statement with no effect --> $DIR/no_effect.rs:71:5 | LL | Union { a: 0 }; | ^^^^^^^^^^^^^^^ error: statement with no effect --> $DIR/no_effect.rs:72:5 | LL | Enum::Tuple(0); | ^^^^^^^^^^^^^^^ error: statement with no effect --> $DIR/no_effect.rs:73:5 | LL | Enum::Struct { field: 0 }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ error: statement with no effect --> $DIR/no_effect.rs:74:5 | LL | 5 + 6; | ^^^^^^ error: statement with no effect --> $DIR/no_effect.rs:75:5 | LL | *&42; | ^^^^^ error: statement with no effect --> $DIR/no_effect.rs:76:5 | LL | &6; | ^^^ error: statement with no effect --> $DIR/no_effect.rs:77:5 | LL | (5, 6, 7); | ^^^^^^^^^^ error: statement with no effect --> $DIR/no_effect.rs:78:5 | LL | box 42; | ^^^^^^^ error: statement with no effect --> $DIR/no_effect.rs:79:5 | LL | ..; | ^^^ error: statement with no effect --> $DIR/no_effect.rs:80:5 | LL | 5..; | ^^^^ error: statement with no effect --> $DIR/no_effect.rs:81:5 | LL | ..5; | ^^^^ error: statement with no effect --> $DIR/no_effect.rs:82:5 | LL | 5..6; | ^^^^^ error: statement with no effect --> $DIR/no_effect.rs:84:5 | LL | [42, 55]; | ^^^^^^^^^ error: statement with no effect --> $DIR/no_effect.rs:85:5 | LL | [42, 55][1]; | ^^^^^^^^^^^^ error: statement with no effect --> $DIR/no_effect.rs:86:5 | LL | (42, 55).1; | ^^^^^^^^^^^ error: statement with no effect --> $DIR/no_effect.rs:87:5 | LL | [42; 55]; | ^^^^^^^^^ error: statement with no effect --> $DIR/no_effect.rs:88:5 | LL | [42; 55][13]; | ^^^^^^^^^^^^^ error: statement with no effect --> $DIR/no_effect.rs:90:5 | LL | || x += 5; | ^^^^^^^^^^ error: statement with no effect --> $DIR/no_effect.rs:92:5 | LL | FooString { s: s }; | ^^^^^^^^^^^^^^^^^^^ error: aborting due to 25 previous errors diff of stderr: -error: statement with no effect - --> $DIR/no_effect.rs:65:5 - | -LL | 0; - | ^^ - | - = note: `-D clippy::no-effect` implied by `-D warnings` - -error: statement with no effect - --> $DIR/no_effect.rs:66:5 - | -LL | s2; - | ^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:67:5 - | -LL | Unit; - | ^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:68:5 - | -LL | Tuple(0); - | ^^^^^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:69:5 - | -LL | Struct { field: 0 }; - | ^^^^^^^^^^^^^^^^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:70:5 - | -LL | Struct { ..s }; - | ^^^^^^^^^^^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:71:5 - | -LL | Union { a: 0 }; - | ^^^^^^^^^^^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:72:5 - | -LL | Enum::Tuple(0); - | ^^^^^^^^^^^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:73:5 - | -LL | Enum::Struct { field: 0 }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:74:5 - | -LL | 5 + 6; - | ^^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:75:5 - | -LL | *&42; - | ^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:76:5 - | -LL | &6; - | ^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:77:5 - | -LL | (5, 6, 7); - | ^^^^^^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:78:5 - | -LL | box 42; - | ^^^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:79:5 - | -LL | ..; - | ^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:80:5 - | -LL | 5..; - | ^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:81:5 - | -LL | ..5; - | ^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:82:5 - | -LL | 5..6; - | ^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:84:5 - | -LL | [42, 55]; - | ^^^^^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:85:5 - | -LL | [42, 55][1]; - | ^^^^^^^^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:86:5 - | -LL | (42, 55).1; - | ^^^^^^^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:87:5 - | -LL | [42; 55]; - | ^^^^^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:88:5 - | -LL | [42; 55][13]; - | ^^^^^^^^^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:90:5 - | -LL | || x += 5; - | ^^^^^^^^^^ - -error: statement with no effect - --> $DIR/no_effect.rs:92:5 - | -LL | FooString { s: s }; - | ^^^^^^^^^^^^^^^^^^^ - -error: aborting due to 25 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/no_effect.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'no_effect.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/no_effect.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/no_effect.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/no_effect.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/no_effect.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/non_expressive_names.rs stdout ---- normalized stderr: error: 5 bindings with single-character names in scope --> $DIR/non_expressive_names.rs:27:9 | LL | let a: i32; | ^ LL | let (b, c, d): (i32, i64, i16); | ^ ^ ^ ... LL | let e: i32; | ^ | = note: `-D clippy::many-single-char-names` implied by `-D warnings` error: 6 bindings with single-character names in scope --> $DIR/non_expressive_names.rs:27:9 | LL | let a: i32; | ^ LL | let (b, c, d): (i32, i64, i16); | ^ ^ ^ ... LL | let e: i32; | ^ LL | let f: i32; | ^ error: 5 bindings with single-character names in scope --> $DIR/non_expressive_names.rs:27:9 | LL | let a: i32; | ^ LL | let (b, c, d): (i32, i64, i16); | ^ ^ ^ ... LL | e => panic!(), | ^ error: 8 bindings with single-character names in scope --> $DIR/non_expressive_names.rs:52:13 | LL | fn bindings(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32, h: i32) {} | ^ ^ ^ ^ ^ ^ ^ ^ error: 8 bindings with single-character names in scope --> $DIR/non_expressive_names.rs:55:10 | LL | let (a, b, c, d, e, f, g, h) = unimplemented!(); | ^ ^ ^ ^ ^ ^ ^ ^ error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:92:9 | LL | let _1 = 1; //~ERROR Consider a more descriptive name | ^^ | = note: `-D clippy::just-underscores-and-digits` implied by `-D warnings` error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:93:9 | LL | let ____1 = 1; //~ERROR Consider a more descriptive name | ^^^^^ error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:94:9 | LL | let __1___2 = 12; //~ERROR Consider a more descriptive name | ^^^^^^^ error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:114:13 | LL | let _1 = 1; | ^^ error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:115:13 | LL | let ____1 = 1; | ^^^^^ error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:116:13 | LL | let __1___2 = 12; | ^^^^^^^ expected stderr: error: 5 bindings with single-character names in scope --> $DIR/non_expressive_names.rs:27:9 | LL | let a: i32; | ^ LL | let (b, c, d): (i32, i64, i16); | ^ ^ ^ ... LL | let e: i32; | ^ | = note: `-D clippy::many-single-char-names` implied by `-D warnings` error: 6 bindings with single-character names in scope --> $DIR/non_expressive_names.rs:27:9 | LL | let a: i32; | ^ LL | let (b, c, d): (i32, i64, i16); | ^ ^ ^ ... LL | let e: i32; | ^ LL | let f: i32; | ^ error: 5 bindings with single-character names in scope --> $DIR/non_expressive_names.rs:27:9 | LL | let a: i32; | ^ LL | let (b, c, d): (i32, i64, i16); | ^ ^ ^ ... LL | e => panic!(), | ^ error: 8 bindings with single-character names in scope --> $DIR/non_expressive_names.rs:52:13 | LL | fn bindings(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32, h: i32) {} | ^ ^ ^ ^ ^ ^ ^ ^ error: 8 bindings with single-character names in scope --> $DIR/non_expressive_names.rs:55:10 | LL | let (a, b, c, d, e, f, g, h) = unimplemented!(); | ^ ^ ^ ^ ^ ^ ^ ^ error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:92:9 | LL | let _1 = 1; //~ERROR Consider a more descriptive name | ^^ | = note: `-D clippy::just-underscores-and-digits` implied by `-D warnings` error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:93:9 | LL | let ____1 = 1; //~ERROR Consider a more descriptive name | ^^^^^ error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:94:9 | LL | let __1___2 = 12; //~ERROR Consider a more descriptive name | ^^^^^^^ error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:114:13 | LL | let _1 = 1; | ^^ error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:115:13 | LL | let ____1 = 1; | ^^^^^ error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:116:13 | LL | let __1___2 = 12; | ^^^^^^^ error: aborting due to 11 previous errors diff of stderr: error: 5 bindings with single-character names in scope --> $DIR/non_expressive_names.rs:27:9 | LL | let a: i32; | ^ LL | let (b, c, d): (i32, i64, i16); | ^ ^ ^ ... LL | let e: i32; | ^ | = note: `-D clippy::many-single-char-names` implied by `-D warnings` error: 6 bindings with single-character names in scope --> $DIR/non_expressive_names.rs:27:9 | LL | let a: i32; | ^ LL | let (b, c, d): (i32, i64, i16); | ^ ^ ^ ... LL | let e: i32; | ^ LL | let f: i32; | ^ error: 5 bindings with single-character names in scope --> $DIR/non_expressive_names.rs:27:9 | LL | let a: i32; | ^ LL | let (b, c, d): (i32, i64, i16); | ^ ^ ^ ... LL | e => panic!(), | ^ error: 8 bindings with single-character names in scope --> $DIR/non_expressive_names.rs:52:13 | LL | fn bindings(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32, h: i32) {} | ^ ^ ^ ^ ^ ^ ^ ^ error: 8 bindings with single-character names in scope --> $DIR/non_expressive_names.rs:55:10 | LL | let (a, b, c, d, e, f, g, h) = unimplemented!(); | ^ ^ ^ ^ ^ ^ ^ ^ error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:92:9 | LL | let _1 = 1; //~ERROR Consider a more descriptive name | ^^ | = note: `-D clippy::just-underscores-and-digits` implied by `-D warnings` error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:93:9 | LL | let ____1 = 1; //~ERROR Consider a more descriptive name | ^^^^^ error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:94:9 | LL | let __1___2 = 12; //~ERROR Consider a more descriptive name | ^^^^^^^ error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:114:13 | LL | let _1 = 1; | ^^ error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:115:13 | LL | let ____1 = 1; | ^^^^^ error: consider choosing a more descriptive name --> $DIR/non_expressive_names.rs:116:13 | LL | let __1___2 = 12; | ^^^^^^^ -error: aborting due to 11 previous errors - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/non_expressive_names.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'non_expressive_names.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/non_expressive_names.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/non_expressive_names.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/non_expressive_names.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ {"message":"5 bindings with single-character names in scope","code":{"code":"clippy::many_single_char_names","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/non_expressive_names.rs","byte_start":481,"byte_end":482,"line_start":27,"line_end":27,"column_start":9,"column_end":10,"is_primary":true,"text":[{"text":" let a: i32;","highlight_start":9,"highlight_end":10}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":498,"byte_end":499,"line_start":28,"line_end":28,"column_start":10,"column_end":11,"is_primary":true,"text":[{"text":" let (b, c, d): (i32, i64, i16);","highlight_start":10,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":501,"byte_end":502,"line_start":28,"line_end":28,"column_start":13,"column_end":14,"is_primary":true,"text":[{"text":" let (b, c, d): (i32, i64, i16);","highlight_start":13,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":504,"byte_end":505,"line_start":28,"line_end":28,"column_start":16,"column_end":17,"is_primary":true,"text":[{"text":" let (b, c, d): (i32, i64, i16);","highlight_start":16,"highlight_end":17}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":632,"byte_end":633,"line_start":35,"line_end":35,"column_start":17,"column_end":18,"is_primary":true,"text":[{"text":" let e: i32;","highlight_start":17,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D clippy::many-single-char-names` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: 5 bindings with single-character names in scope\n --> tests/ui/non_expressive_names.rs:27:9\n |\nLL | let a: i32;\n | ^\nLL | let (b, c, d): (i32, i64, i16);\n | ^ ^ ^\n...\nLL | let e: i32;\n | ^\n |\n = note: `-D clippy::many-single-char-names` implied by `-D warnings`\n\n"} {"message":"6 bindings with single-character names in scope","code":{"code":"clippy::many_single_char_names","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/non_expressive_names.rs","byte_start":481,"byte_end":482,"line_start":27,"line_end":27,"column_start":9,"column_end":10,"is_primary":true,"text":[{"text":" let a: i32;","highlight_start":9,"highlight_end":10}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":498,"byte_end":499,"line_start":28,"line_end":28,"column_start":10,"column_end":11,"is_primary":true,"text":[{"text":" let (b, c, d): (i32, i64, i16);","highlight_start":10,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":501,"byte_end":502,"line_start":28,"line_end":28,"column_start":13,"column_end":14,"is_primary":true,"text":[{"text":" let (b, c, d): (i32, i64, i16);","highlight_start":13,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":504,"byte_end":505,"line_start":28,"line_end":28,"column_start":16,"column_end":17,"is_primary":true,"text":[{"text":" let (b, c, d): (i32, i64, i16);","highlight_start":16,"highlight_end":17}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":676,"byte_end":677,"line_start":38,"line_end":38,"column_start":17,"column_end":18,"is_primary":true,"text":[{"text":" let e: i32;","highlight_start":17,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":700,"byte_end":701,"line_start":39,"line_end":39,"column_start":17,"column_end":18,"is_primary":true,"text":[{"text":" let f: i32;","highlight_start":17,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: 6 bindings with single-character names in scope\n --> tests/ui/non_expressive_names.rs:27:9\n |\nLL | let a: i32;\n | ^\nLL | let (b, c, d): (i32, i64, i16);\n | ^ ^ ^\n...\nLL | let e: i32;\n | ^\nLL | let f: i32;\n | ^\n\n"} {"message":"5 bindings with single-character names in scope","code":{"code":"clippy::many_single_char_names","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/non_expressive_names.rs","byte_start":481,"byte_end":482,"line_start":27,"line_end":27,"column_start":9,"column_end":10,"is_primary":true,"text":[{"text":" let a: i32;","highlight_start":9,"highlight_end":10}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":498,"byte_end":499,"line_start":28,"line_end":28,"column_start":10,"column_end":11,"is_primary":true,"text":[{"text":" let (b, c, d): (i32, i64, i16);","highlight_start":10,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":501,"byte_end":502,"line_start":28,"line_end":28,"column_start":13,"column_end":14,"is_primary":true,"text":[{"text":" let (b, c, d): (i32, i64, i16);","highlight_start":13,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":504,"byte_end":505,"line_start":28,"line_end":28,"column_start":16,"column_end":17,"is_primary":true,"text":[{"text":" let (b, c, d): (i32, i64, i16);","highlight_start":16,"highlight_end":17}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":779,"byte_end":780,"line_start":43,"line_end":43,"column_start":13,"column_end":14,"is_primary":true,"text":[{"text":" e => panic!(),","highlight_start":13,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: 5 bindings with single-character names in scope\n --> tests/ui/non_expressive_names.rs:27:9\n |\nLL | let a: i32;\n | ^\nLL | let (b, c, d): (i32, i64, i16);\n | ^ ^ ^\n...\nLL | e => panic!(),\n | ^\n\n"} {"message":"8 bindings with single-character names in scope","code":{"code":"clippy::many_single_char_names","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/non_expressive_names.rs","byte_start":911,"byte_end":912,"line_start":52,"line_end":52,"column_start":13,"column_end":14,"is_primary":true,"text":[{"text":"fn bindings(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32, h: i32) {}","highlight_start":13,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":919,"byte_end":920,"line_start":52,"line_end":52,"column_start":21,"column_end":22,"is_primary":true,"text":[{"text":"fn bindings(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32, h: i32) {}","highlight_start":21,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":927,"byte_end":928,"line_start":52,"line_end":52,"column_start":29,"column_end":30,"is_primary":true,"text":[{"text":"fn bindings(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32, h: i32) {}","highlight_start":29,"highlight_end":30}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":935,"byte_end":936,"line_start":52,"line_end":52,"column_start":37,"column_end":38,"is_primary":true,"text":[{"text":"fn bindings(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32, h: i32) {}","highlight_start":37,"highlight_end":38}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":943,"byte_end":944,"line_start":52,"line_end":52,"column_start":45,"column_end":46,"is_primary":true,"text":[{"text":"fn bindings(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32, h: i32) {}","highlight_start":45,"highlight_end":46}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":951,"byte_end":952,"line_start":52,"line_end":52,"column_start":53,"column_end":54,"is_primary":true,"text":[{"text":"fn bindings(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32, h: i32) {}","highlight_start":53,"highlight_end":54}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":959,"byte_end":960,"line_start":52,"line_end":52,"column_start":61,"column_end":62,"is_primary":true,"text":[{"text":"fn bindings(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32, h: i32) {}","highlight_start":61,"highlight_end":62}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":967,"byte_end":968,"line_start":52,"line_end":52,"column_start":69,"column_end":70,"is_primary":true,"text":[{"text":"fn bindings(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32, h: i32) {}","highlight_start":69,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: 8 bindings with single-character names in scope\n --> tests/ui/non_expressive_names.rs:52:13\n |\nLL | fn bindings(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32, h: i32) {}\n | ^ ^ ^ ^ ^ ^ ^ ^\n\n"} {"message":"8 bindings with single-character names in scope","code":{"code":"clippy::many_single_char_names","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/non_expressive_names.rs","byte_start":1005,"byte_end":1006,"line_start":55,"line_end":55,"column_start":10,"column_end":11,"is_primary":true,"text":[{"text":" let (a, b, c, d, e, f, g, h) = unimplemented!();","highlight_start":10,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":1008,"byte_end":1009,"line_start":55,"line_end":55,"column_start":13,"column_end":14,"is_primary":true,"text":[{"text":" let (a, b, c, d, e, f, g, h) = unimplemented!();","highlight_start":13,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":1011,"byte_end":1012,"line_start":55,"line_end":55,"column_start":16,"column_end":17,"is_primary":true,"text":[{"text":" let (a, b, c, d, e, f, g, h) = unimplemented!();","highlight_start":16,"highlight_end":17}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":1014,"byte_end":1015,"line_start":55,"line_end":55,"column_start":19,"column_end":20,"is_primary":true,"text":[{"text":" let (a, b, c, d, e, f, g, h) = unimplemented!();","highlight_start":19,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":1017,"byte_end":1018,"line_start":55,"line_end":55,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":" let (a, b, c, d, e, f, g, h) = unimplemented!();","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":1020,"byte_end":1021,"line_start":55,"line_end":55,"column_start":25,"column_end":26,"is_primary":true,"text":[{"text":" let (a, b, c, d, e, f, g, h) = unimplemented!();","highlight_start":25,"highlight_end":26}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":1023,"byte_end":1024,"line_start":55,"line_end":55,"column_start":28,"column_end":29,"is_primary":true,"text":[{"text":" let (a, b, c, d, e, f, g, h) = unimplemented!();","highlight_start":28,"highlight_end":29}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/ui/non_expressive_names.rs","byte_start":1026,"byte_end":1027,"line_start":55,"line_end":55,"column_start":31,"column_end":32,"is_primary":true,"text":[{"text":" let (a, b, c, d, e, f, g, h) = unimplemented!();","highlight_start":31,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: 8 bindings with single-character names in scope\n --> tests/ui/non_expressive_names.rs:55:10\n |\nLL | let (a, b, c, d, e, f, g, h) = unimplemented!();\n | ^ ^ ^ ^ ^ ^ ^ ^\n\n"} {"message":"consider choosing a more descriptive name","code":{"code":"clippy::just_underscores_and_digits","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/non_expressive_names.rs","byte_start":1639,"byte_end":1641,"line_start":92,"line_end":92,"column_start":9,"column_end":11,"is_primary":true,"text":[{"text":" let _1 = 1; //~ERROR Consider a more descriptive name","highlight_start":9,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D clippy::just-underscores-and-digits` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: consider choosing a more descriptive name\n --> tests/ui/non_expressive_names.rs:92:9\n |\nLL | let _1 = 1; //~ERROR Consider a more descriptive name\n | ^^\n |\n = note: `-D clippy::just-underscores-and-digits` implied by `-D warnings`\n\n"} {"message":"consider choosing a more descriptive name","code":{"code":"clippy::just_underscores_and_digits","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/non_expressive_names.rs","byte_start":1697,"byte_end":1702,"line_start":93,"line_end":93,"column_start":9,"column_end":14,"is_primary":true,"text":[{"text":" let ____1 = 1; //~ERROR Consider a more descriptive name","highlight_start":9,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: consider choosing a more descriptive name\n --> tests/ui/non_expressive_names.rs:93:9\n |\nLL | let ____1 = 1; //~ERROR Consider a more descriptive name\n | ^^^^^\n\n"} {"message":"consider choosing a more descriptive name","code":{"code":"clippy::just_underscores_and_digits","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/non_expressive_names.rs","byte_start":1758,"byte_end":1765,"line_start":94,"line_end":94,"column_start":9,"column_end":16,"is_primary":true,"text":[{"text":" let __1___2 = 12; //~ERROR Consider a more descriptive name","highlight_start":9,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: consider choosing a more descriptive name\n --> tests/ui/non_expressive_names.rs:94:9\n |\nLL | let __1___2 = 12; //~ERROR Consider a more descriptive name\n | ^^^^^^^\n\n"} {"message":"consider choosing a more descriptive name","code":{"code":"clippy::just_underscores_and_digits","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/non_expressive_names.rs","byte_start":2037,"byte_end":2039,"line_start":114,"line_end":114,"column_start":13,"column_end":15,"is_primary":true,"text":[{"text":" let _1 = 1;","highlight_start":13,"highlight_end":15}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: consider choosing a more descriptive name\n --> tests/ui/non_expressive_names.rs:114:13\n |\nLL | let _1 = 1;\n | ^^\n\n"} {"message":"consider choosing a more descriptive name","code":{"code":"clippy::just_underscores_and_digits","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/non_expressive_names.rs","byte_start":2057,"byte_end":2062,"line_start":115,"line_end":115,"column_start":13,"column_end":18,"is_primary":true,"text":[{"text":" let ____1 = 1;","highlight_start":13,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: consider choosing a more descriptive name\n --> tests/ui/non_expressive_names.rs:115:13\n |\nLL | let ____1 = 1;\n | ^^^^^\n\n"} {"message":"consider choosing a more descriptive name","code":{"code":"clippy::just_underscores_and_digits","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/non_expressive_names.rs","byte_start":2080,"byte_end":2087,"line_start":116,"line_end":116,"column_start":13,"column_end":20,"is_primary":true,"text":[{"text":" let __1___2 = 12;","highlight_start":13,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: consider choosing a more descriptive name\n --> tests/ui/non_expressive_names.rs:116:13\n |\nLL | let __1___2 = 12;\n | ^^^^^^^\n\n"} ------------------------------------------ thread '[ui] ui/non_expressive_names.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/new_without_default.rs stdout ---- normalized stderr: expected stderr: error: you should consider deriving a `Default` implementation for `Foo` --> $DIR/new_without_default.rs:8:5 | LL | / pub fn new() -> Foo { LL | | Foo LL | | } | |_____^ | = note: `-D clippy::new-without-default` implied by `-D warnings` help: try this | LL | #[derive(Default)] | error: you should consider deriving a `Default` implementation for `Bar` --> $DIR/new_without_default.rs:16:5 | LL | / pub fn new() -> Self { LL | | Bar LL | | } | |_____^ help: try this | LL | #[derive(Default)] | error: you should consider adding a `Default` implementation for `LtKo<'c>` --> $DIR/new_without_default.rs:80:5 | LL | / pub fn new() -> LtKo<'c> { LL | | unimplemented!() LL | | } | |_____^ help: try this | LL | impl Default for LtKo<'c> { LL | fn default() -> Self { LL | Self::new() LL | } LL | } | error: aborting due to 3 previous errors diff of stderr: -error: you should consider deriving a `Default` implementation for `Foo` - --> $DIR/new_without_default.rs:8:5 - | -LL | / pub fn new() -> Foo { -LL | | Foo -LL | | } - | |_____^ - | - = note: `-D clippy::new-without-default` implied by `-D warnings` -help: try this - | -LL | #[derive(Default)] - | - -error: you should consider deriving a `Default` implementation for `Bar` - --> $DIR/new_without_default.rs:16:5 - | -LL | / pub fn new() -> Self { -LL | | Bar -LL | | } - | |_____^ -help: try this - | -LL | #[derive(Default)] - | - -error: you should consider adding a `Default` implementation for `LtKo<'c>` - --> $DIR/new_without_default.rs:80:5 - | -LL | / pub fn new() -> LtKo<'c> { -LL | | unimplemented!() -LL | | } - | |_____^ -help: try this - | -LL | impl Default for LtKo<'c> { -LL | fn default() -> Self { -LL | Self::new() -LL | } -LL | } - | - -error: aborting due to 3 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/new_without_default.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'new_without_default.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/new_without_default.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/new_without_default.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/new_without_default.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/new_without_default.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/ok_if_let.rs stdout ---- normalized stderr: expected stderr: error: Matching on `Some` with `ok()` is redundant --> $DIR/ok_if_let.rs:4:5 | LL | / if let Some(y) = x.parse().ok() { LL | | y LL | | } else { LL | | 0 LL | | } | |_____^ | = note: `-D clippy::if-let-some-result` implied by `-D warnings` = help: Consider matching on `Ok(y)` and removing the call to `ok` instead error: aborting due to previous error diff of stderr: -error: Matching on `Some` with `ok()` is redundant - --> $DIR/ok_if_let.rs:4:5 - | -LL | / if let Some(y) = x.parse().ok() { -LL | | y -LL | | } else { -LL | | 0 -LL | | } - | |_____^ - | - = note: `-D clippy::if-let-some-result` implied by `-D warnings` - = help: Consider matching on `Ok(y)` and removing the call to `ok` instead - -error: aborting due to previous error - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/ok_if_let.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'ok_if_let.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/ok_if_let.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/ok_if_let.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/ok_if_let.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/ok_if_let.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/panic_unimplemented.rs stdout ---- normalized stderr: expected stderr: error: you probably are missing some parameter in your format string --> $DIR/panic_unimplemented.rs:5:16 | LL | panic!("{}"); | ^^^^ | = note: `-D clippy::panic-params` implied by `-D warnings` error: you probably are missing some parameter in your format string --> $DIR/panic_unimplemented.rs:7:16 | LL | panic!("{:?}"); | ^^^^^^ error: you probably are missing some parameter in your format string --> $DIR/panic_unimplemented.rs:9:23 | LL | assert!(true, "here be missing values: {}"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: you probably are missing some parameter in your format string --> $DIR/panic_unimplemented.rs:12:12 | LL | panic!("{{{this}}}"); | ^^^^^^^^^^^^ error: `unimplemented` should not be present in production code --> $DIR/panic_unimplemented.rs:55:5 | LL | unimplemented!(); | ^^^^^^^^^^^^^^^^^ | = note: `-D clippy::unimplemented` implied by `-D warnings` error: aborting due to 5 previous errors diff of stderr: -error: you probably are missing some parameter in your format string - --> $DIR/panic_unimplemented.rs:5:16 - | -LL | panic!("{}"); - | ^^^^ - | - = note: `-D clippy::panic-params` implied by `-D warnings` - -error: you probably are missing some parameter in your format string - --> $DIR/panic_unimplemented.rs:7:16 - | -LL | panic!("{:?}"); - | ^^^^^^ - -error: you probably are missing some parameter in your format string - --> $DIR/panic_unimplemented.rs:9:23 - | -LL | assert!(true, "here be missing values: {}"); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: you probably are missing some parameter in your format string - --> $DIR/panic_unimplemented.rs:12:12 - | -LL | panic!("{{{this}}}"); - | ^^^^^^^^^^^^ - -error: `unimplemented` should not be present in production code - --> $DIR/panic_unimplemented.rs:55:5 - | -LL | unimplemented!(); - | ^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::unimplemented` implied by `-D warnings` - -error: aborting due to 5 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/panic_unimplemented.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'panic_unimplemented.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/panic_unimplemented.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/panic_unimplemented.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/panic_unimplemented.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/panic_unimplemented.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/non_copy_const.rs stdout ---- normalized stderr: expected stderr: error: a const item should never be interior mutable --> $DIR/non_copy_const.rs:10:1 | LL | const ATOMIC: AtomicUsize = AtomicUsize::new(5); //~ ERROR interior mutable | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | help: make this a static item: `static` | = note: #[deny(clippy::declare_interior_mutable_const)] on by default error: a const item should never be interior mutable --> $DIR/non_copy_const.rs:11:1 | LL | const CELL: Cell = Cell::new(6); //~ ERROR interior mutable | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | help: make this a static item: `static` error: a const item should never be interior mutable --> $DIR/non_copy_const.rs:12:1 | LL | const ATOMIC_TUPLE: ([AtomicUsize; 1], Vec, u8) = ([ATOMIC], Vec::new(), 7); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | help: make this a static item: `static` error: a const item should never be interior mutable --> $DIR/non_copy_const.rs:17:9 | LL | const $name: $ty = $e; | ^^^^^^^^^^^^^^^^^^^^^^ ... LL | declare_const!(_ONCE: Once = Once::new()); //~ ERROR interior mutable | ------------------------------------------ in this macro invocation error: a const item should never be interior mutable --> $DIR/non_copy_const.rs:41:5 | LL | const ATOMIC: AtomicUsize; //~ ERROR interior mutable | ^^^^^^^^^^^^^^^^^^^^^^^^^^ error: a const item should never be interior mutable --> $DIR/non_copy_const.rs:45:5 | LL | const INPUT: T; | ^^^^^^^^^^^^^^^ | help: consider requiring `T` to be `Copy` --> $DIR/non_copy_const.rs:45:18 | LL | const INPUT: T; | ^ error: a const item should never be interior mutable --> $DIR/non_copy_const.rs:48:5 | LL | const ASSOC: Self::NonCopyType; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: consider requiring `>::NonCopyType` to be `Copy` --> $DIR/non_copy_const.rs:48:18 | LL | const ASSOC: Self::NonCopyType; | ^^^^^^^^^^^^^^^^^ error: a const item should never be interior mutable --> $DIR/non_copy_const.rs:52:5 | LL | const AN_INPUT: T = Self::INPUT; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: consider requiring `T` to be `Copy` --> $DIR/non_copy_const.rs:52:21 | LL | const AN_INPUT: T = Self::INPUT; | ^ error: a const item should never be interior mutable --> $DIR/non_copy_const.rs:17:9 | LL | const $name: $ty = $e; | ^^^^^^^^^^^^^^^^^^^^^^ ... LL | declare_const!(ANOTHER_INPUT: T = Self::INPUT); //~ ERROR interior mutable | ----------------------------------------------- in this macro invocation error: a const item should never be interior mutable --> $DIR/non_copy_const.rs:61:5 | LL | const SELF_2: Self; | ^^^^^^^^^^^^^^^^^^^ | help: consider requiring `Self` to be `Copy` --> $DIR/non_copy_const.rs:61:19 | LL | const SELF_2: Self; | ^^^^ error: a const item should never be interior mutable --> $DIR/non_copy_const.rs:82:5 | LL | const ASSOC_3: AtomicUsize = AtomicUsize::new(14); //~ ERROR interior mutable | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: a const item should never be interior mutable --> $DIR/non_copy_const.rs:85:5 | LL | const U_SELF: U = U::SELF_2; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: consider requiring `U` to be `Copy` --> $DIR/non_copy_const.rs:85:19 | LL | const U_SELF: U = U::SELF_2; | ^ error: a const item should never be interior mutable --> $DIR/non_copy_const.rs:88:5 | LL | const T_ASSOC: T::NonCopyType = T::ASSOC; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: consider requiring `>::NonCopyType` to be `Copy` --> $DIR/non_copy_const.rs:88:20 | LL | const T_ASSOC: T::NonCopyType = T::ASSOC; | ^^^^^^^^^^^^^^ error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:95:5 | LL | ATOMIC.store(1, Ordering::SeqCst); //~ ERROR interior mutability | ^^^^^^ | = note: #[deny(clippy::borrow_interior_mutable_const)] on by default = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:96:16 | LL | assert_eq!(ATOMIC.load(Ordering::SeqCst), 5); //~ ERROR interior mutability | ^^^^^^ | = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:99:22 | LL | let _once_ref = &ONCE_INIT; //~ ERROR interior mutability | ^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:100:25 | LL | let _once_ref_2 = &&ONCE_INIT; //~ ERROR interior mutability | ^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:101:27 | LL | let _once_ref_4 = &&&&ONCE_INIT; //~ ERROR interior mutability | ^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:102:26 | LL | let _once_mut = &mut ONCE_INIT; //~ ERROR interior mutability | ^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:113:14 | LL | let _ = &ATOMIC_TUPLE; //~ ERROR interior mutability | ^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:114:14 | LL | let _ = &ATOMIC_TUPLE.0; //~ ERROR interior mutability | ^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:115:19 | LL | let _ = &(&&&&ATOMIC_TUPLE).0; //~ ERROR interior mutability | ^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:116:14 | LL | let _ = &ATOMIC_TUPLE.0[0]; //~ ERROR interior mutability | ^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:117:13 | LL | let _ = ATOMIC_TUPLE.0[0].load(Ordering::SeqCst); //~ ERROR interior mutability | ^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:123:13 | LL | let _ = ATOMIC_TUPLE.0[0]; //~ ERROR interior mutability | ^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:128:5 | LL | CELL.set(2); //~ ERROR interior mutability | ^^^^ | = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:129:16 | LL | assert_eq!(CELL.get(), 6); //~ ERROR interior mutability | ^^^^ | = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:142:5 | LL | u64::ATOMIC.store(5, Ordering::SeqCst); //~ ERROR interior mutability | ^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed --> $DIR/non_copy_const.rs:143:16 | LL | assert_eq!(u64::ATOMIC.load(Ordering::SeqCst), 9); //~ ERROR interior mutability | ^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here error: aborting due to 29 previous errors diff of stderr: -error: a const item should never be interior mutable - --> $DIR/non_copy_const.rs:10:1 - | -LL | const ATOMIC: AtomicUsize = AtomicUsize::new(5); //~ ERROR interior mutable - | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | help: make this a static item: `static` - | - = note: #[deny(clippy::declare_interior_mutable_const)] on by default - -error: a const item should never be interior mutable - --> $DIR/non_copy_const.rs:11:1 - | -LL | const CELL: Cell = Cell::new(6); //~ ERROR interior mutable - | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | help: make this a static item: `static` - -error: a const item should never be interior mutable - --> $DIR/non_copy_const.rs:12:1 - | -LL | const ATOMIC_TUPLE: ([AtomicUsize; 1], Vec, u8) = ([ATOMIC], Vec::new(), 7); - | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | | - | help: make this a static item: `static` - -error: a const item should never be interior mutable - --> $DIR/non_copy_const.rs:17:9 - | -LL | const $name: $ty = $e; - | ^^^^^^^^^^^^^^^^^^^^^^ -... -LL | declare_const!(_ONCE: Once = Once::new()); //~ ERROR interior mutable - | ------------------------------------------ in this macro invocation - -error: a const item should never be interior mutable - --> $DIR/non_copy_const.rs:41:5 - | -LL | const ATOMIC: AtomicUsize; //~ ERROR interior mutable - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: a const item should never be interior mutable - --> $DIR/non_copy_const.rs:45:5 - | -LL | const INPUT: T; - | ^^^^^^^^^^^^^^^ - | -help: consider requiring `T` to be `Copy` - --> $DIR/non_copy_const.rs:45:18 - | -LL | const INPUT: T; - | ^ - -error: a const item should never be interior mutable - --> $DIR/non_copy_const.rs:48:5 - | -LL | const ASSOC: Self::NonCopyType; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | -help: consider requiring `>::NonCopyType` to be `Copy` - --> $DIR/non_copy_const.rs:48:18 - | -LL | const ASSOC: Self::NonCopyType; - | ^^^^^^^^^^^^^^^^^ - -error: a const item should never be interior mutable - --> $DIR/non_copy_const.rs:52:5 - | -LL | const AN_INPUT: T = Self::INPUT; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | -help: consider requiring `T` to be `Copy` - --> $DIR/non_copy_const.rs:52:21 - | -LL | const AN_INPUT: T = Self::INPUT; - | ^ - -error: a const item should never be interior mutable - --> $DIR/non_copy_const.rs:17:9 - | -LL | const $name: $ty = $e; - | ^^^^^^^^^^^^^^^^^^^^^^ -... -LL | declare_const!(ANOTHER_INPUT: T = Self::INPUT); //~ ERROR interior mutable - | ----------------------------------------------- in this macro invocation - -error: a const item should never be interior mutable - --> $DIR/non_copy_const.rs:61:5 - | -LL | const SELF_2: Self; - | ^^^^^^^^^^^^^^^^^^^ - | -help: consider requiring `Self` to be `Copy` - --> $DIR/non_copy_const.rs:61:19 - | -LL | const SELF_2: Self; - | ^^^^ - -error: a const item should never be interior mutable - --> $DIR/non_copy_const.rs:82:5 - | -LL | const ASSOC_3: AtomicUsize = AtomicUsize::new(14); //~ ERROR interior mutable - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: a const item should never be interior mutable - --> $DIR/non_copy_const.rs:85:5 - | -LL | const U_SELF: U = U::SELF_2; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | -help: consider requiring `U` to be `Copy` - --> $DIR/non_copy_const.rs:85:19 - | -LL | const U_SELF: U = U::SELF_2; - | ^ - -error: a const item should never be interior mutable - --> $DIR/non_copy_const.rs:88:5 - | -LL | const T_ASSOC: T::NonCopyType = T::ASSOC; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | -help: consider requiring `>::NonCopyType` to be `Copy` - --> $DIR/non_copy_const.rs:88:20 - | -LL | const T_ASSOC: T::NonCopyType = T::ASSOC; - | ^^^^^^^^^^^^^^ - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:95:5 - | -LL | ATOMIC.store(1, Ordering::SeqCst); //~ ERROR interior mutability - | ^^^^^^ - | - = note: #[deny(clippy::borrow_interior_mutable_const)] on by default - = help: assign this const to a local or static variable, and use the variable here - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:96:16 - | -LL | assert_eq!(ATOMIC.load(Ordering::SeqCst), 5); //~ ERROR interior mutability - | ^^^^^^ - | - = help: assign this const to a local or static variable, and use the variable here - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:99:22 - | -LL | let _once_ref = &ONCE_INIT; //~ ERROR interior mutability - | ^^^^^^^^^ - | - = help: assign this const to a local or static variable, and use the variable here - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:100:25 - | -LL | let _once_ref_2 = &&ONCE_INIT; //~ ERROR interior mutability - | ^^^^^^^^^ - | - = help: assign this const to a local or static variable, and use the variable here - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:101:27 - | -LL | let _once_ref_4 = &&&&ONCE_INIT; //~ ERROR interior mutability - | ^^^^^^^^^ - | - = help: assign this const to a local or static variable, and use the variable here - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:102:26 - | -LL | let _once_mut = &mut ONCE_INIT; //~ ERROR interior mutability - | ^^^^^^^^^ - | - = help: assign this const to a local or static variable, and use the variable here - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:113:14 - | -LL | let _ = &ATOMIC_TUPLE; //~ ERROR interior mutability - | ^^^^^^^^^^^^ - | - = help: assign this const to a local or static variable, and use the variable here - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:114:14 - | -LL | let _ = &ATOMIC_TUPLE.0; //~ ERROR interior mutability - | ^^^^^^^^^^^^ - | - = help: assign this const to a local or static variable, and use the variable here - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:115:19 - | -LL | let _ = &(&&&&ATOMIC_TUPLE).0; //~ ERROR interior mutability - | ^^^^^^^^^^^^ - | - = help: assign this const to a local or static variable, and use the variable here - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:116:14 - | -LL | let _ = &ATOMIC_TUPLE.0[0]; //~ ERROR interior mutability - | ^^^^^^^^^^^^ - | - = help: assign this const to a local or static variable, and use the variable here - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:117:13 - | -LL | let _ = ATOMIC_TUPLE.0[0].load(Ordering::SeqCst); //~ ERROR interior mutability - | ^^^^^^^^^^^^ - | - = help: assign this const to a local or static variable, and use the variable here - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:123:13 - | -LL | let _ = ATOMIC_TUPLE.0[0]; //~ ERROR interior mutability - | ^^^^^^^^^^^^ - | - = help: assign this const to a local or static variable, and use the variable here - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:128:5 - | -LL | CELL.set(2); //~ ERROR interior mutability - | ^^^^ - | - = help: assign this const to a local or static variable, and use the variable here - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:129:16 - | -LL | assert_eq!(CELL.get(), 6); //~ ERROR interior mutability - | ^^^^ - | - = help: assign this const to a local or static variable, and use the variable here - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:142:5 - | -LL | u64::ATOMIC.store(5, Ordering::SeqCst); //~ ERROR interior mutability - | ^^^^^^^^^^^ - | - = help: assign this const to a local or static variable, and use the variable here - -error: a const item with interior mutability should not be borrowed - --> $DIR/non_copy_const.rs:143:16 - | -LL | assert_eq!(u64::ATOMIC.load(Ordering::SeqCst), 9); //~ ERROR interior mutability - | ^^^^^^^^^^^ - | - = help: assign this const to a local or static variable, and use the variable here - -error: aborting due to 29 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/non_copy_const.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'non_copy_const.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/non_copy_const.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/non_copy_const.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/non_copy_const.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/non_copy_const.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/ok_expect.rs stdout ---- normalized stderr: expected stderr: error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result` --> $DIR/ok_expect.rs:14:5 | LL | res.ok().expect("disaster!"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::ok-expect` implied by `-D warnings` error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result` --> $DIR/ok_expect.rs:20:5 | LL | res3.ok().expect("whoof"); | ^^^^^^^^^^^^^^^^^^^^^^^^^ error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result` --> $DIR/ok_expect.rs:22:5 | LL | res4.ok().expect("argh"); | ^^^^^^^^^^^^^^^^^^^^^^^^ error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result` --> $DIR/ok_expect.rs:24:5 | LL | res5.ok().expect("oops"); | ^^^^^^^^^^^^^^^^^^^^^^^^ error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result` --> $DIR/ok_expect.rs:26:5 | LL | res6.ok().expect("meh"); | ^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 5 previous errors diff of stderr: -error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result` - --> $DIR/ok_expect.rs:14:5 - | -LL | res.ok().expect("disaster!"); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::ok-expect` implied by `-D warnings` - -error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result` - --> $DIR/ok_expect.rs:20:5 - | -LL | res3.ok().expect("whoof"); - | ^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result` - --> $DIR/ok_expect.rs:22:5 - | -LL | res4.ok().expect("argh"); - | ^^^^^^^^^^^^^^^^^^^^^^^^ - -error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result` - --> $DIR/ok_expect.rs:24:5 - | -LL | res5.ok().expect("oops"); - | ^^^^^^^^^^^^^^^^^^^^^^^^ - -error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result` - --> $DIR/ok_expect.rs:26:5 - | -LL | res6.ok().expect("meh"); - | ^^^^^^^^^^^^^^^^^^^^^^^ - -error: aborting due to 5 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/ok_expect.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'ok_expect.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/ok_expect.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/ok_expect.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/ok_expect.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/ok_expect.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/option_option.rs stdout ---- normalized stderr: expected stderr: error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases --> $DIR/option_option.rs:1:13 | LL | fn input(_: Option>) {} | ^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::option-option` implied by `-D warnings` error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases --> $DIR/option_option.rs:3:16 | LL | fn output() -> Option> { | ^^^^^^^^^^^^^^^^^^ error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases --> $DIR/option_option.rs:7:27 | LL | fn output_nested() -> Vec>> { | ^^^^^^^^^^^^^^^^^^ error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases --> $DIR/option_option.rs:12:30 | LL | fn output_nested_nested() -> Option>> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^ error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases --> $DIR/option_option.rs:17:8 | LL | x: Option>, | ^^^^^^^^^^^^^^^^^^ error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases --> $DIR/option_option.rs:21:23 | LL | fn struct_fn() -> Option> { | ^^^^^^^^^^^^^^^^^^ error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases --> $DIR/option_option.rs:27:22 | LL | fn trait_fn() -> Option>; | ^^^^^^^^^^^^^^^^^^ error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases --> $DIR/option_option.rs:31:11 | LL | Tuple(Option>), | ^^^^^^^^^^^^^^^^^^ error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases --> $DIR/option_option.rs:32:17 | LL | Struct { x: Option> }, | ^^^^^^^^^^^^^^^^^^ error: aborting due to 9 previous errors diff of stderr: -error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases - --> $DIR/option_option.rs:1:13 - | -LL | fn input(_: Option>) {} - | ^^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::option-option` implied by `-D warnings` - -error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases - --> $DIR/option_option.rs:3:16 - | -LL | fn output() -> Option> { - | ^^^^^^^^^^^^^^^^^^ - -error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases - --> $DIR/option_option.rs:7:27 - | -LL | fn output_nested() -> Vec>> { - | ^^^^^^^^^^^^^^^^^^ - -error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases - --> $DIR/option_option.rs:12:30 - | -LL | fn output_nested_nested() -> Option>> { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases - --> $DIR/option_option.rs:17:8 - | -LL | x: Option>, - | ^^^^^^^^^^^^^^^^^^ - -error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases - --> $DIR/option_option.rs:21:23 - | -LL | fn struct_fn() -> Option> { - | ^^^^^^^^^^^^^^^^^^ - -error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases - --> $DIR/option_option.rs:27:22 - | -LL | fn trait_fn() -> Option>; - | ^^^^^^^^^^^^^^^^^^ - -error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases - --> $DIR/option_option.rs:31:11 - | -LL | Tuple(Option>), - | ^^^^^^^^^^^^^^^^^^ - -error: consider using `Option` instead of `Option>` or a custom enum if you need to distinguish all 3 cases - --> $DIR/option_option.rs:32:17 - | -LL | Struct { x: Option> }, - | ^^^^^^^^^^^^^^^^^^ - -error: aborting due to 9 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/option_option.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'option_option.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/option_option.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/option_option.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/option_option.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/option_option.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/print.rs stdout ---- normalized stderr: error: use of `Debug`-based formatting --> $DIR/print.rs:11:19 | LL | write!(f, "{:?}", 43.1415) | ^^^^^^ | = note: `-D clippy::use-debug` implied by `-D warnings` error: use of `Debug`-based formatting --> $DIR/print.rs:18:19 | LL | write!(f, "{:?}", 42.718) | ^^^^^^ error: use of `println!` --> $DIR/print.rs:23:5 | LL | println!("Hello"); | ^^^^^^^^^^^^^^^^^ | = note: `-D clippy::print-stdout` implied by `-D warnings` error: use of `print!` --> $DIR/print.rs:24:5 | LL | print!("Hello"); | ^^^^^^^^^^^^^^^ error: use of `print!` --> $DIR/print.rs:26:5 | LL | print!("Hello {}", "World"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: use of `print!` --> $DIR/print.rs:28:5 | LL | print!("Hello {:?}", "World"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: use of `Debug`-based formatting --> $DIR/print.rs:28:12 | LL | print!("Hello {:?}", "World"); | ^^^^^^^^^^^^ error: use of `print!` --> $DIR/print.rs:30:5 | LL | print!("Hello {:#?}", "#orld"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: use of `Debug`-based formatting --> $DIR/print.rs:30:12 | LL | print!("Hello {:#?}", "#orld"); | ^^^^^^^^^^^^^ expected stderr: error: use of `Debug`-based formatting --> $DIR/print.rs:11:19 | LL | write!(f, "{:?}", 43.1415) | ^^^^^^ | = note: `-D clippy::use-debug` implied by `-D warnings` error: use of `Debug`-based formatting --> $DIR/print.rs:18:19 | LL | write!(f, "{:?}", 42.718) | ^^^^^^ error: use of `println!` --> $DIR/print.rs:23:5 | LL | println!("Hello"); | ^^^^^^^^^^^^^^^^^ | = note: `-D clippy::print-stdout` implied by `-D warnings` error: use of `print!` --> $DIR/print.rs:24:5 | LL | print!("Hello"); | ^^^^^^^^^^^^^^^ error: use of `print!` --> $DIR/print.rs:26:5 | LL | print!("Hello {}", "World"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: use of `print!` --> $DIR/print.rs:28:5 | LL | print!("Hello {:?}", "World"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: use of `Debug`-based formatting --> $DIR/print.rs:28:12 | LL | print!("Hello {:?}", "World"); | ^^^^^^^^^^^^ error: use of `print!` --> $DIR/print.rs:30:5 | LL | print!("Hello {:#?}", "#orld"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: use of `Debug`-based formatting --> $DIR/print.rs:30:12 | LL | print!("Hello {:#?}", "#orld"); | ^^^^^^^^^^^^^ error: aborting due to 9 previous errors diff of stderr: error: use of `Debug`-based formatting --> $DIR/print.rs:11:19 | LL | write!(f, "{:?}", 43.1415) | ^^^^^^ | = note: `-D clippy::use-debug` implied by `-D warnings` error: use of `Debug`-based formatting --> $DIR/print.rs:18:19 | LL | write!(f, "{:?}", 42.718) | ^^^^^^ error: use of `println!` --> $DIR/print.rs:23:5 | LL | println!("Hello"); | ^^^^^^^^^^^^^^^^^ | = note: `-D clippy::print-stdout` implied by `-D warnings` error: use of `print!` --> $DIR/print.rs:24:5 | LL | print!("Hello"); | ^^^^^^^^^^^^^^^ error: use of `print!` --> $DIR/print.rs:26:5 | LL | print!("Hello {}", "World"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: use of `print!` --> $DIR/print.rs:28:5 | LL | print!("Hello {:?}", "World"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: use of `Debug`-based formatting --> $DIR/print.rs:28:12 | LL | print!("Hello {:?}", "World"); | ^^^^^^^^^^^^ error: use of `print!` --> $DIR/print.rs:30:5 | LL | print!("Hello {:#?}", "#orld"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: use of `Debug`-based formatting --> $DIR/print.rs:30:12 | LL | print!("Hello {:#?}", "#orld"); | ^^^^^^^^^^^^^ -error: aborting due to 9 previous errors - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/print.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'print.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/print.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/print.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/print.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ {"message":"use of `Debug`-based formatting","code":{"code":"clippy::use_debug","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/print.rs","byte_start":282,"byte_end":288,"line_start":11,"line_end":11,"column_start":19,"column_end":25,"is_primary":true,"text":[{"text":" write!(f, \"{:?}\", 43.1415)","highlight_start":19,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D clippy::use-debug` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: use of `Debug`-based formatting\n --> tests/ui/print.rs:11:19\n |\nLL | write!(f, \"{:?}\", 43.1415)\n | ^^^^^^\n |\n = note: `-D clippy::use-debug` implied by `-D warnings`\n\n"} {"message":"use of `Debug`-based formatting","code":{"code":"clippy::use_debug","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/print.rs","byte_start":468,"byte_end":474,"line_start":18,"line_end":18,"column_start":19,"column_end":25,"is_primary":true,"text":[{"text":" write!(f, \"{:?}\", 42.718)","highlight_start":19,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: use of `Debug`-based formatting\n --> tests/ui/print.rs:18:19\n |\nLL | write!(f, \"{:?}\", 42.718)\n | ^^^^^^\n\n"} {"message":"use of `println!`","code":{"code":"clippy::print_stdout","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/print.rs","byte_start":509,"byte_end":526,"line_start":23,"line_end":23,"column_start":5,"column_end":22,"is_primary":true,"text":[{"text":" println!(\"Hello\");","highlight_start":5,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D clippy::print-stdout` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: use of `println!`\n --> tests/ui/print.rs:23:5\n |\nLL | println!(\"Hello\");\n | ^^^^^^^^^^^^^^^^^\n |\n = note: `-D clippy::print-stdout` implied by `-D warnings`\n\n"} {"message":"use of `print!`","code":{"code":"clippy::print_stdout","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/print.rs","byte_start":532,"byte_end":547,"line_start":24,"line_end":24,"column_start":5,"column_end":20,"is_primary":true,"text":[{"text":" print!(\"Hello\");","highlight_start":5,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: use of `print!`\n --> tests/ui/print.rs:24:5\n |\nLL | print!(\"Hello\");\n | ^^^^^^^^^^^^^^^\n\n"} {"message":"use of `print!`","code":{"code":"clippy::print_stdout","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/print.rs","byte_start":554,"byte_end":581,"line_start":26,"line_end":26,"column_start":5,"column_end":32,"is_primary":true,"text":[{"text":" print!(\"Hello {}\", \"World\");","highlight_start":5,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: use of `print!`\n --> tests/ui/print.rs:26:5\n |\nLL | print!(\"Hello {}\", \"World\");\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n"} {"message":"use of `print!`","code":{"code":"clippy::print_stdout","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/print.rs","byte_start":588,"byte_end":617,"line_start":28,"line_end":28,"column_start":5,"column_end":34,"is_primary":true,"text":[{"text":" print!(\"Hello {:?}\", \"World\");","highlight_start":5,"highlight_end":34}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: use of `print!`\n --> tests/ui/print.rs:28:5\n |\nLL | print!(\"Hello {:?}\", \"World\");\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n"} {"message":"use of `Debug`-based formatting","code":{"code":"clippy::use_debug","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/print.rs","byte_start":595,"byte_end":607,"line_start":28,"line_end":28,"column_start":12,"column_end":24,"is_primary":true,"text":[{"text":" print!(\"Hello {:?}\", \"World\");","highlight_start":12,"highlight_end":24}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: use of `Debug`-based formatting\n --> tests/ui/print.rs:28:12\n |\nLL | print!(\"Hello {:?}\", \"World\");\n | ^^^^^^^^^^^^\n\n"} {"message":"use of `print!`","code":{"code":"clippy::print_stdout","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/print.rs","byte_start":624,"byte_end":654,"line_start":30,"line_end":30,"column_start":5,"column_end":35,"is_primary":true,"text":[{"text":" print!(\"Hello {:#?}\", \"#orld\");","highlight_start":5,"highlight_end":35}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: use of `print!`\n --> tests/ui/print.rs:30:5\n |\nLL | print!(\"Hello {:#?}\", \"#orld\");\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n"} {"message":"use of `Debug`-based formatting","code":{"code":"clippy::use_debug","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/print.rs","byte_start":631,"byte_end":644,"line_start":30,"line_end":30,"column_start":12,"column_end":25,"is_primary":true,"text":[{"text":" print!(\"Hello {:#?}\", \"#orld\");","highlight_start":12,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: use of `Debug`-based formatting\n --> tests/ui/print.rs:30:12\n |\nLL | print!(\"Hello {:#?}\", \"#orld\");\n | ^^^^^^^^^^^^^\n\n"} ------------------------------------------ thread '[ui] ui/print.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/option_map_unit_fn.rs stdout ---- normalized stderr: expected stderr: error: called `map(f)` on an Option value where `f` is a unit function --> $DIR/option_map_unit_fn.rs:32:5 | LL | x.field.map(do_nothing); | ^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(x_field) = x.field { do_nothing(...) }` | = note: `-D clippy::option-map-unit-fn` implied by `-D warnings` error: called `map(f)` on an Option value where `f` is a unit function --> $DIR/option_map_unit_fn.rs:34:5 | LL | x.field.map(do_nothing); | ^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(x_field) = x.field { do_nothing(...) }` error: called `map(f)` on an Option value where `f` is a unit function --> $DIR/option_map_unit_fn.rs:36:5 | LL | x.field.map(diverge); | ^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(x_field) = x.field { diverge(...) }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:42:5 | LL | x.field.map(|value| x.do_option_nothing(value + captured)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { x.do_option_nothing(value + captured) }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:44:5 | LL | x.field.map(|value| { x.do_option_plus_one(value + captured); }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { x.do_option_plus_one(value + captured); }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:47:5 | LL | x.field.map(|value| do_nothing(value + captured)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { do_nothing(value + captured) }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:49:5 | LL | x.field.map(|value| { do_nothing(value + captured) }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { do_nothing(value + captured) }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:51:5 | LL | x.field.map(|value| { do_nothing(value + captured); }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { do_nothing(value + captured); }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:53:5 | LL | x.field.map(|value| { { do_nothing(value + captured); } }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { do_nothing(value + captured); }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:56:5 | LL | x.field.map(|value| diverge(value + captured)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { diverge(value + captured) }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:58:5 | LL | x.field.map(|value| { diverge(value + captured) }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { diverge(value + captured) }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:60:5 | LL | x.field.map(|value| { diverge(value + captured); }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { diverge(value + captured); }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:62:5 | LL | x.field.map(|value| { { diverge(value + captured); } }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { diverge(value + captured); }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:67:5 | LL | x.field.map(|value| { let y = plus_one(value + captured); }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { let y = plus_one(value + captured); }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:69:5 | LL | x.field.map(|value| { plus_one(value + captured); }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { plus_one(value + captured); }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:71:5 | LL | x.field.map(|value| { { plus_one(value + captured); } }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { plus_one(value + captured); }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:74:5 | LL | x.field.map(|ref value| { do_nothing(value + captured) }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(ref value) = x.field { do_nothing(value + captured) }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:77:5 | LL | x.field.map(|value| { do_nothing(value); do_nothing(value) }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { ... }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:79:5 | LL | x.field.map(|value| if value > 0 { do_nothing(value); do_nothing(value) }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { ... }` error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:83:5 | LL | x.field.map(|value| { | _____^ | |_____| | || LL | || do_nothing(value); LL | || do_nothing(value) LL | || }); | ||______^- help: try this: `if let Some(value) = x.field { ... }` | |_______| | error: called `map(f)` on an Option value where `f` is a unit closure --> $DIR/option_map_unit_fn.rs:87:5 | LL | x.field.map(|value| { do_nothing(value); do_nothing(value); }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(value) = x.field { ... }` error: called `map(f)` on an Option value where `f` is a unit function --> $DIR/option_map_unit_fn.rs:90:5 | LL | Some(42).map(diverge); | ^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(_) = Some(42) { diverge(...) }` error: called `map(f)` on an Option value where `f` is a unit function --> $DIR/option_map_unit_fn.rs:91:5 | LL | "12".parse::().ok().map(diverge); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(_) = "12".parse::().ok() { diverge(...) }` error: called `map(f)` on an Option value where `f` is a unit function --> $DIR/option_map_unit_fn.rs:92:5 | LL | Some(plus_one(1)).map(do_nothing); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(_) = Some(plus_one(1)) { do_nothing(...) }` error: called `map(f)` on an Option value where `f` is a unit function --> $DIR/option_map_unit_fn.rs:96:5 | LL | y.map(do_nothing); | ^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Some(_y) = y { do_nothing(...) }` error: aborting due to 25 previous errors diff of stderr: -error: called `map(f)` on an Option value where `f` is a unit function - --> $DIR/option_map_unit_fn.rs:32:5 - | -LL | x.field.map(do_nothing); - | ^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(x_field) = x.field { do_nothing(...) }` - | - = note: `-D clippy::option-map-unit-fn` implied by `-D warnings` - -error: called `map(f)` on an Option value where `f` is a unit function - --> $DIR/option_map_unit_fn.rs:34:5 - | -LL | x.field.map(do_nothing); - | ^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(x_field) = x.field { do_nothing(...) }` - -error: called `map(f)` on an Option value where `f` is a unit function - --> $DIR/option_map_unit_fn.rs:36:5 - | -LL | x.field.map(diverge); - | ^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(x_field) = x.field { diverge(...) }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:42:5 - | -LL | x.field.map(|value| x.do_option_nothing(value + captured)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { x.do_option_nothing(value + captured) }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:44:5 - | -LL | x.field.map(|value| { x.do_option_plus_one(value + captured); }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { x.do_option_plus_one(value + captured); }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:47:5 - | -LL | x.field.map(|value| do_nothing(value + captured)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { do_nothing(value + captured) }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:49:5 - | -LL | x.field.map(|value| { do_nothing(value + captured) }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { do_nothing(value + captured) }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:51:5 - | -LL | x.field.map(|value| { do_nothing(value + captured); }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { do_nothing(value + captured); }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:53:5 - | -LL | x.field.map(|value| { { do_nothing(value + captured); } }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { do_nothing(value + captured); }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:56:5 - | -LL | x.field.map(|value| diverge(value + captured)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { diverge(value + captured) }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:58:5 - | -LL | x.field.map(|value| { diverge(value + captured) }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { diverge(value + captured) }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:60:5 - | -LL | x.field.map(|value| { diverge(value + captured); }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { diverge(value + captured); }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:62:5 - | -LL | x.field.map(|value| { { diverge(value + captured); } }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { diverge(value + captured); }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:67:5 - | -LL | x.field.map(|value| { let y = plus_one(value + captured); }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { let y = plus_one(value + captured); }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:69:5 - | -LL | x.field.map(|value| { plus_one(value + captured); }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { plus_one(value + captured); }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:71:5 - | -LL | x.field.map(|value| { { plus_one(value + captured); } }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { plus_one(value + captured); }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:74:5 - | -LL | x.field.map(|ref value| { do_nothing(value + captured) }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(ref value) = x.field { do_nothing(value + captured) }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:77:5 - | -LL | x.field.map(|value| { do_nothing(value); do_nothing(value) }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { ... }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:79:5 - | -LL | x.field.map(|value| if value > 0 { do_nothing(value); do_nothing(value) }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { ... }` - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:83:5 - | -LL | x.field.map(|value| { - | _____^ - | |_____| - | || -LL | || do_nothing(value); -LL | || do_nothing(value) -LL | || }); - | ||______^- help: try this: `if let Some(value) = x.field { ... }` - | |_______| - | - -error: called `map(f)` on an Option value where `f` is a unit closure - --> $DIR/option_map_unit_fn.rs:87:5 - | -LL | x.field.map(|value| { do_nothing(value); do_nothing(value); }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(value) = x.field { ... }` - -error: called `map(f)` on an Option value where `f` is a unit function - --> $DIR/option_map_unit_fn.rs:90:5 - | -LL | Some(42).map(diverge); - | ^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(_) = Some(42) { diverge(...) }` - -error: called `map(f)` on an Option value where `f` is a unit function - --> $DIR/option_map_unit_fn.rs:91:5 - | -LL | "12".parse::().ok().map(diverge); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(_) = "12".parse::().ok() { diverge(...) }` - -error: called `map(f)` on an Option value where `f` is a unit function - --> $DIR/option_map_unit_fn.rs:92:5 - | -LL | Some(plus_one(1)).map(do_nothing); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(_) = Some(plus_one(1)) { do_nothing(...) }` - -error: called `map(f)` on an Option value where `f` is a unit function - --> $DIR/option_map_unit_fn.rs:96:5 - | -LL | y.map(do_nothing); - | ^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Some(_y) = y { do_nothing(...) }` - -error: aborting due to 25 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/option_map_unit_fn.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'option_map_unit_fn.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/option_map_unit_fn.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/option_map_unit_fn.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/option_map_unit_fn.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/option_map_unit_fn.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/question_mark.rs stdout ---- normalized stderr: expected stderr: error: this block may be rewritten with the `?` operator --> $DIR/question_mark.rs:2:5 | LL | / if a.is_none() { LL | | return None; LL | | } | |_____^ help: replace_it_with: `a?;` | = note: `-D clippy::question-mark` implied by `-D warnings` error: this block may be rewritten with the `?` operator --> $DIR/question_mark.rs:47:9 | LL | / if (self.opt).is_none() { LL | | return None; LL | | } | |_________^ help: replace_it_with: `(self.opt)?;` error: this block may be rewritten with the `?` operator --> $DIR/question_mark.rs:51:9 | LL | / if self.opt.is_none() { LL | | return None LL | | } | |_________^ help: replace_it_with: `self.opt?;` error: this block may be rewritten with the `?` operator --> $DIR/question_mark.rs:55:17 | LL | let _ = if self.opt.is_none() { | _________________^ LL | | return None; LL | | } else { LL | | self.opt LL | | }; | |_________^ help: replace_it_with: `Some(self.opt?)` error: this block may be rewritten with the `?` operator --> $DIR/question_mark.rs:72:9 | LL | / if self.opt.is_none() { LL | | return None; LL | | } | |_________^ help: replace_it_with: `self.opt.as_ref()?;` error: this block may be rewritten with the `?` operator --> $DIR/question_mark.rs:80:9 | LL | / if self.opt.is_none() { LL | | return None; LL | | } | |_________^ help: replace_it_with: `self.opt.as_ref()?;` error: this block may be rewritten with the `?` operator --> $DIR/question_mark.rs:88:9 | LL | / if self.opt.is_none() { LL | | return None; LL | | } | |_________^ help: replace_it_with: `self.opt.as_ref()?;` error: aborting due to 7 previous errors diff of stderr: -error: this block may be rewritten with the `?` operator - --> $DIR/question_mark.rs:2:5 - | -LL | / if a.is_none() { -LL | | return None; -LL | | } - | |_____^ help: replace_it_with: `a?;` - | - = note: `-D clippy::question-mark` implied by `-D warnings` - -error: this block may be rewritten with the `?` operator - --> $DIR/question_mark.rs:47:9 - | -LL | / if (self.opt).is_none() { -LL | | return None; -LL | | } - | |_________^ help: replace_it_with: `(self.opt)?;` - -error: this block may be rewritten with the `?` operator - --> $DIR/question_mark.rs:51:9 - | -LL | / if self.opt.is_none() { -LL | | return None -LL | | } - | |_________^ help: replace_it_with: `self.opt?;` - -error: this block may be rewritten with the `?` operator - --> $DIR/question_mark.rs:55:17 - | -LL | let _ = if self.opt.is_none() { - | _________________^ -LL | | return None; -LL | | } else { -LL | | self.opt -LL | | }; - | |_________^ help: replace_it_with: `Some(self.opt?)` - -error: this block may be rewritten with the `?` operator - --> $DIR/question_mark.rs:72:9 - | -LL | / if self.opt.is_none() { -LL | | return None; -LL | | } - | |_________^ help: replace_it_with: `self.opt.as_ref()?;` - -error: this block may be rewritten with the `?` operator - --> $DIR/question_mark.rs:80:9 - | -LL | / if self.opt.is_none() { -LL | | return None; -LL | | } - | |_________^ help: replace_it_with: `self.opt.as_ref()?;` - -error: this block may be rewritten with the `?` operator - --> $DIR/question_mark.rs:88:9 - | -LL | / if self.opt.is_none() { -LL | | return None; -LL | | } - | |_________^ help: replace_it_with: `self.opt.as_ref()?;` - -error: aborting due to 7 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/question_mark.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'question_mark.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/question_mark.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/question_mark.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/question_mark.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/question_mark.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/redundant_clone.rs stdout ---- normalized stderr: expected stderr: error: redundant clone --> $DIR/redundant_clone.rs:7:41 | LL | let _ = ["lorem", "ipsum"].join(" ").to_string(); | ^^^^^^^^^^^^ help: remove this | = note: `-D clippy::redundant-clone` implied by `-D warnings` note: this value is dropped without further use --> $DIR/redundant_clone.rs:7:13 | LL | let _ = ["lorem", "ipsum"].join(" ").to_string(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: redundant clone --> $DIR/redundant_clone.rs:10:14 | LL | let _ = s.clone(); | ^^^^^^^^ help: remove this | note: this value is dropped without further use --> $DIR/redundant_clone.rs:10:13 | LL | let _ = s.clone(); | ^ error: redundant clone --> $DIR/redundant_clone.rs:13:14 | LL | let _ = s.to_string(); | ^^^^^^^^^^^^ help: remove this | note: this value is dropped without further use --> $DIR/redundant_clone.rs:13:13 | LL | let _ = s.to_string(); | ^ error: redundant clone --> $DIR/redundant_clone.rs:16:14 | LL | let _ = s.to_owned(); | ^^^^^^^^^^^ help: remove this | note: this value is dropped without further use --> $DIR/redundant_clone.rs:16:13 | LL | let _ = s.to_owned(); | ^ error: redundant clone --> $DIR/redundant_clone.rs:18:41 | LL | let _ = Path::new("/a/b/").join("c").to_owned(); | ^^^^^^^^^^^ help: remove this | note: this value is dropped without further use --> $DIR/redundant_clone.rs:18:13 | LL | let _ = Path::new("/a/b/").join("c").to_owned(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: redundant clone --> $DIR/redundant_clone.rs:20:41 | LL | let _ = Path::new("/a/b/").join("c").to_path_buf(); | ^^^^^^^^^^^^^^ help: remove this | note: this value is dropped without further use --> $DIR/redundant_clone.rs:20:13 | LL | let _ = Path::new("/a/b/").join("c").to_path_buf(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: redundant clone --> $DIR/redundant_clone.rs:22:28 | LL | let _ = OsString::new().to_owned(); | ^^^^^^^^^^^ help: remove this | note: this value is dropped without further use --> $DIR/redundant_clone.rs:22:13 | LL | let _ = OsString::new().to_owned(); | ^^^^^^^^^^^^^^^ error: redundant clone --> $DIR/redundant_clone.rs:24:28 | LL | let _ = OsString::new().to_os_string(); | ^^^^^^^^^^^^^^^ help: remove this | note: this value is dropped without further use --> $DIR/redundant_clone.rs:24:13 | LL | let _ = OsString::new().to_os_string(); | ^^^^^^^^^^^^^^^ error: redundant clone --> $DIR/redundant_clone.rs:31:18 | LL | let _ = tup.0.clone(); | ^^^^^^^^ help: remove this | note: this value is dropped without further use --> $DIR/redundant_clone.rs:31:13 | LL | let _ = tup.0.clone(); | ^^^^^ error: redundant clone --> $DIR/redundant_clone.rs:41:22 | LL | (a.clone(), a.clone()) | ^^^^^^^^ help: remove this | note: this value is dropped without further use --> $DIR/redundant_clone.rs:41:21 | LL | (a.clone(), a.clone()) | ^ error: aborting due to 10 previous errors diff of stderr: -error: redundant clone - --> $DIR/redundant_clone.rs:7:41 - | -LL | let _ = ["lorem", "ipsum"].join(" ").to_string(); - | ^^^^^^^^^^^^ help: remove this - | - = note: `-D clippy::redundant-clone` implied by `-D warnings` -note: this value is dropped without further use - --> $DIR/redundant_clone.rs:7:13 - | -LL | let _ = ["lorem", "ipsum"].join(" ").to_string(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: redundant clone - --> $DIR/redundant_clone.rs:10:14 - | -LL | let _ = s.clone(); - | ^^^^^^^^ help: remove this - | -note: this value is dropped without further use - --> $DIR/redundant_clone.rs:10:13 - | -LL | let _ = s.clone(); - | ^ - -error: redundant clone - --> $DIR/redundant_clone.rs:13:14 - | -LL | let _ = s.to_string(); - | ^^^^^^^^^^^^ help: remove this - | -note: this value is dropped without further use - --> $DIR/redundant_clone.rs:13:13 - | -LL | let _ = s.to_string(); - | ^ - -error: redundant clone - --> $DIR/redundant_clone.rs:16:14 - | -LL | let _ = s.to_owned(); - | ^^^^^^^^^^^ help: remove this - | -note: this value is dropped without further use - --> $DIR/redundant_clone.rs:16:13 - | -LL | let _ = s.to_owned(); - | ^ - -error: redundant clone - --> $DIR/redundant_clone.rs:18:41 - | -LL | let _ = Path::new("/a/b/").join("c").to_owned(); - | ^^^^^^^^^^^ help: remove this - | -note: this value is dropped without further use - --> $DIR/redundant_clone.rs:18:13 - | -LL | let _ = Path::new("/a/b/").join("c").to_owned(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: redundant clone - --> $DIR/redundant_clone.rs:20:41 - | -LL | let _ = Path::new("/a/b/").join("c").to_path_buf(); - | ^^^^^^^^^^^^^^ help: remove this - | -note: this value is dropped without further use - --> $DIR/redundant_clone.rs:20:13 - | -LL | let _ = Path::new("/a/b/").join("c").to_path_buf(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: redundant clone - --> $DIR/redundant_clone.rs:22:28 - | -LL | let _ = OsString::new().to_owned(); - | ^^^^^^^^^^^ help: remove this - | -note: this value is dropped without further use - --> $DIR/redundant_clone.rs:22:13 - | -LL | let _ = OsString::new().to_owned(); - | ^^^^^^^^^^^^^^^ - -error: redundant clone - --> $DIR/redundant_clone.rs:24:28 - | -LL | let _ = OsString::new().to_os_string(); - | ^^^^^^^^^^^^^^^ help: remove this - | -note: this value is dropped without further use - --> $DIR/redundant_clone.rs:24:13 - | -LL | let _ = OsString::new().to_os_string(); - | ^^^^^^^^^^^^^^^ - -error: redundant clone - --> $DIR/redundant_clone.rs:31:18 - | -LL | let _ = tup.0.clone(); - | ^^^^^^^^ help: remove this - | -note: this value is dropped without further use - --> $DIR/redundant_clone.rs:31:13 - | -LL | let _ = tup.0.clone(); - | ^^^^^ - -error: redundant clone - --> $DIR/redundant_clone.rs:41:22 - | -LL | (a.clone(), a.clone()) - | ^^^^^^^^ help: remove this - | -note: this value is dropped without further use - --> $DIR/redundant_clone.rs:41:21 - | -LL | (a.clone(), a.clone()) - | ^ - -error: aborting due to 10 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/redundant_clone.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'redundant_clone.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/redundant_clone.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/redundant_clone.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/redundant_clone.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/redundant_clone.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/range_plus_minus_one.rs stdout ---- normalized stderr: expected stderr: error: an inclusive range would be more readable --> $DIR/range_plus_minus_one.rs:10:14 | LL | for _ in 0..3 + 1 {} | ^^^^^^^^ help: use: `0..=3` | = note: `-D clippy::range-plus-one` implied by `-D warnings` error: an inclusive range would be more readable --> $DIR/range_plus_minus_one.rs:13:14 | LL | for _ in 0..1 + 5 {} | ^^^^^^^^ help: use: `0..=5` error: an inclusive range would be more readable --> $DIR/range_plus_minus_one.rs:16:14 | LL | for _ in 1..1 + 1 {} | ^^^^^^^^ help: use: `1..=1` error: an inclusive range would be more readable --> $DIR/range_plus_minus_one.rs:22:14 | LL | for _ in 0..(1 + f()) {} | ^^^^^^^^^^^^ help: use: `0..=f()` error: an exclusive range would be more readable --> $DIR/range_plus_minus_one.rs:26:13 | LL | let _ = ..=11 - 1; | ^^^^^^^^^ help: use: `..11` | = note: `-D clippy::range-minus-one` implied by `-D warnings` error: an exclusive range would be more readable --> $DIR/range_plus_minus_one.rs:27:13 | LL | let _ = ..=(11 - 1); | ^^^^^^^^^^^ help: use: `..11` error: an inclusive range would be more readable --> $DIR/range_plus_minus_one.rs:28:13 | LL | let _ = (1..11 + 1); | ^^^^^^^^^^^ help: use: `(1..=11)` error: an inclusive range would be more readable --> $DIR/range_plus_minus_one.rs:29:13 | LL | let _ = (f() + 1)..(f() + 1); | ^^^^^^^^^^^^^^^^^^^^ help: use: `((f() + 1)..=f())` error: aborting due to 8 previous errors diff of stderr: -error: an inclusive range would be more readable - --> $DIR/range_plus_minus_one.rs:10:14 - | -LL | for _ in 0..3 + 1 {} - | ^^^^^^^^ help: use: `0..=3` - | - = note: `-D clippy::range-plus-one` implied by `-D warnings` - -error: an inclusive range would be more readable - --> $DIR/range_plus_minus_one.rs:13:14 - | -LL | for _ in 0..1 + 5 {} - | ^^^^^^^^ help: use: `0..=5` - -error: an inclusive range would be more readable - --> $DIR/range_plus_minus_one.rs:16:14 - | -LL | for _ in 1..1 + 1 {} - | ^^^^^^^^ help: use: `1..=1` - -error: an inclusive range would be more readable - --> $DIR/range_plus_minus_one.rs:22:14 - | -LL | for _ in 0..(1 + f()) {} - | ^^^^^^^^^^^^ help: use: `0..=f()` - -error: an exclusive range would be more readable - --> $DIR/range_plus_minus_one.rs:26:13 - | -LL | let _ = ..=11 - 1; - | ^^^^^^^^^ help: use: `..11` - | - = note: `-D clippy::range-minus-one` implied by `-D warnings` - -error: an exclusive range would be more readable - --> $DIR/range_plus_minus_one.rs:27:13 - | -LL | let _ = ..=(11 - 1); - | ^^^^^^^^^^^ help: use: `..11` - -error: an inclusive range would be more readable - --> $DIR/range_plus_minus_one.rs:28:13 - | -LL | let _ = (1..11 + 1); - | ^^^^^^^^^^^ help: use: `(1..=11)` - -error: an inclusive range would be more readable - --> $DIR/range_plus_minus_one.rs:29:13 - | -LL | let _ = (f() + 1)..(f() + 1); - | ^^^^^^^^^^^^^^^^^^^^ help: use: `((f() + 1)..=f())` - -error: aborting due to 8 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/range_plus_minus_one.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'range_plus_minus_one.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/range_plus_minus_one.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/range_plus_minus_one.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/range_plus_minus_one.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/range_plus_minus_one.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/redundant_closure_call.rs stdout ---- normalized stderr: error: Closure called just once immediately after it was declared --> $DIR/redundant_closure_call.rs:12:5 | LL | i = closure(); | ^^^^^^^^^^^^^ | = note: `-D clippy::redundant-closure-call` implied by `-D warnings` error: Closure called just once immediately after it was declared --> $DIR/redundant_closure_call.rs:15:5 | LL | i = closure(3); | ^^^^^^^^^^^^^^ error: Try not to call a closure in the expression where it is declared. --> $DIR/redundant_closure_call.rs:4:13 | LL | let a = (|| 42)(); | ^^^^^^^^^ help: Try doing something like: : `42` error: Try not to call a closure in the expression where it is declared. --> $DIR/redundant_closure_call.rs:7:17 | LL | let mut k = (|m| m + 1)(i); | ^^^^^^^^^^^^^^ error: Try not to call a closure in the expression where it is declared. --> $DIR/redundant_closure_call.rs:9:9 | LL | k = (|a, b| a * b)(1, 5); | ^^^^^^^^^^^^^^^^^^^^ expected stderr: error: Closure called just once immediately after it was declared --> $DIR/redundant_closure_call.rs:12:5 | LL | i = closure(); | ^^^^^^^^^^^^^ | = note: `-D clippy::redundant-closure-call` implied by `-D warnings` error: Closure called just once immediately after it was declared --> $DIR/redundant_closure_call.rs:15:5 | LL | i = closure(3); | ^^^^^^^^^^^^^^ error: Try not to call a closure in the expression where it is declared. --> $DIR/redundant_closure_call.rs:4:13 | LL | let a = (|| 42)(); | ^^^^^^^^^ help: Try doing something like: : `42` error: Try not to call a closure in the expression where it is declared. --> $DIR/redundant_closure_call.rs:7:17 | LL | let mut k = (|m| m + 1)(i); | ^^^^^^^^^^^^^^ error: Try not to call a closure in the expression where it is declared. --> $DIR/redundant_closure_call.rs:9:9 | LL | k = (|a, b| a * b)(1, 5); | ^^^^^^^^^^^^^^^^^^^^ error: aborting due to 5 previous errors diff of stderr: error: Closure called just once immediately after it was declared --> $DIR/redundant_closure_call.rs:12:5 | LL | i = closure(); | ^^^^^^^^^^^^^ | = note: `-D clippy::redundant-closure-call` implied by `-D warnings` error: Closure called just once immediately after it was declared --> $DIR/redundant_closure_call.rs:15:5 | LL | i = closure(3); | ^^^^^^^^^^^^^^ error: Try not to call a closure in the expression where it is declared. --> $DIR/redundant_closure_call.rs:4:13 | LL | let a = (|| 42)(); | ^^^^^^^^^ help: Try doing something like: : `42` error: Try not to call a closure in the expression where it is declared. --> $DIR/redundant_closure_call.rs:7:17 | LL | let mut k = (|m| m + 1)(i); | ^^^^^^^^^^^^^^ error: Try not to call a closure in the expression where it is declared. --> $DIR/redundant_closure_call.rs:9:9 | LL | k = (|a, b| a * b)(1, 5); | ^^^^^^^^^^^^^^^^^^^^ -error: aborting due to 5 previous errors - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/redundant_closure_call.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'redundant_closure_call.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/redundant_closure_call.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/redundant_closure_call.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/redundant_closure_call.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ {"message":"Closure called just once immediately after it was declared","code":{"code":"clippy::redundant_closure_call","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/redundant_closure_call.rs","byte_start":190,"byte_end":203,"line_start":12,"line_end":12,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":" i = closure();","highlight_start":5,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D clippy::redundant-closure-call` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: Closure called just once immediately after it was declared\n --> tests/ui/redundant_closure_call.rs:12:5\n |\nLL | i = closure();\n | ^^^^^^^^^^^^^\n |\n = note: `-D clippy::redundant-closure-call` implied by `-D warnings`\n\n"} {"message":"Closure called just once immediately after it was declared","code":{"code":"clippy::redundant_closure_call","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/redundant_closure_call.rs","byte_start":239,"byte_end":253,"line_start":15,"line_end":15,"column_start":5,"column_end":19,"is_primary":true,"text":[{"text":" i = closure(3);","highlight_start":5,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: Closure called just once immediately after it was declared\n --> tests/ui/redundant_closure_call.rs:15:5\n |\nLL | i = closure(3);\n | ^^^^^^^^^^^^^^\n\n"} {"message":"Try not to call a closure in the expression where it is declared.","code":{"code":"clippy::redundant_closure_call","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/redundant_closure_call.rs","byte_start":66,"byte_end":75,"line_start":4,"line_end":4,"column_start":13,"column_end":22,"is_primary":true,"text":[{"text":" let a = (|| 42)();","highlight_start":13,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"Try doing something like: ","code":null,"level":"help","spans":[{"file_name":"tests/ui/redundant_closure_call.rs","byte_start":66,"byte_end":75,"line_start":4,"line_end":4,"column_start":13,"column_end":22,"is_primary":true,"text":[{"text":" let a = (|| 42)();","highlight_start":13,"highlight_end":22}],"label":null,"suggested_replacement":"42","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: Try not to call a closure in the expression where it is declared.\n --> tests/ui/redundant_closure_call.rs:4:13\n |\nLL | let a = (|| 42)();\n | ^^^^^^^^^ help: Try doing something like: : `42`\n\n"} {"message":"Try not to call a closure in the expression where it is declared.","code":{"code":"clippy::redundant_closure_call","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/redundant_closure_call.rs","byte_start":113,"byte_end":127,"line_start":7,"line_end":7,"column_start":17,"column_end":31,"is_primary":true,"text":[{"text":" let mut k = (|m| m + 1)(i);","highlight_start":17,"highlight_end":31}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: Try not to call a closure in the expression where it is declared.\n --> tests/ui/redundant_closure_call.rs:7:17\n |\nLL | let mut k = (|m| m + 1)(i);\n | ^^^^^^^^^^^^^^\n\n"} {"message":"Try not to call a closure in the expression where it is declared.","code":{"code":"clippy::redundant_closure_call","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/redundant_closure_call.rs","byte_start":138,"byte_end":158,"line_start":9,"line_end":9,"column_start":9,"column_end":29,"is_primary":true,"text":[{"text":" k = (|a, b| a * b)(1, 5);","highlight_start":9,"highlight_end":29}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: Try not to call a closure in the expression where it is declared.\n --> tests/ui/redundant_closure_call.rs:9:9\n |\nLL | k = (|a, b| a * b)(1, 5);\n | ^^^^^^^^^^^^^^^^^^^^\n\n"} ------------------------------------------ thread '[ui] ui/redundant_closure_call.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/reference.rs stdout ---- normalized stderr: expected stderr: error: immediately dereferencing a reference --> $DIR/reference.rs:16:13 | LL | let b = *&a; | ^^^ help: try this: `a` | = note: `-D clippy::deref-addrof` implied by `-D warnings` error: immediately dereferencing a reference --> $DIR/reference.rs:18:13 | LL | let b = *&get_number(); | ^^^^^^^^^^^^^^ help: try this: `get_number()` error: immediately dereferencing a reference --> $DIR/reference.rs:23:13 | LL | let b = *&bytes[1..2][0]; | ^^^^^^^^^^^^^^^^ help: try this: `bytes[1..2][0]` error: immediately dereferencing a reference --> $DIR/reference.rs:27:13 | LL | let b = *&(a); | ^^^^^ help: try this: `(a)` error: immediately dereferencing a reference --> $DIR/reference.rs:29:13 | LL | let b = *(&a); | ^^^^^ help: try this: `a` error: immediately dereferencing a reference --> $DIR/reference.rs:32:13 | LL | let b = *((&a)); | ^^^^^^^ help: try this: `a` error: immediately dereferencing a reference --> $DIR/reference.rs:34:13 | LL | let b = *&&a; | ^^^^ help: try this: `&a` error: immediately dereferencing a reference --> $DIR/reference.rs:36:14 | LL | let b = **&aref; | ^^^^^^ help: try this: `aref` error: immediately dereferencing a reference --> $DIR/reference.rs:40:14 | LL | let b = **&&a; | ^^^^ help: try this: `&a` error: immediately dereferencing a reference --> $DIR/reference.rs:44:17 | LL | let y = *&mut x; | ^^^^^^^ help: try this: `x` error: immediately dereferencing a reference --> $DIR/reference.rs:51:18 | LL | let y = **&mut &mut x; | ^^^^^^^^^^^^ help: try this: `&mut x` error: aborting due to 11 previous errors diff of stderr: -error: immediately dereferencing a reference - --> $DIR/reference.rs:16:13 - | -LL | let b = *&a; - | ^^^ help: try this: `a` - | - = note: `-D clippy::deref-addrof` implied by `-D warnings` - -error: immediately dereferencing a reference - --> $DIR/reference.rs:18:13 - | -LL | let b = *&get_number(); - | ^^^^^^^^^^^^^^ help: try this: `get_number()` - -error: immediately dereferencing a reference - --> $DIR/reference.rs:23:13 - | -LL | let b = *&bytes[1..2][0]; - | ^^^^^^^^^^^^^^^^ help: try this: `bytes[1..2][0]` - -error: immediately dereferencing a reference - --> $DIR/reference.rs:27:13 - | -LL | let b = *&(a); - | ^^^^^ help: try this: `(a)` - -error: immediately dereferencing a reference - --> $DIR/reference.rs:29:13 - | -LL | let b = *(&a); - | ^^^^^ help: try this: `a` - -error: immediately dereferencing a reference - --> $DIR/reference.rs:32:13 - | -LL | let b = *((&a)); - | ^^^^^^^ help: try this: `a` - -error: immediately dereferencing a reference - --> $DIR/reference.rs:34:13 - | -LL | let b = *&&a; - | ^^^^ help: try this: `&a` - -error: immediately dereferencing a reference - --> $DIR/reference.rs:36:14 - | -LL | let b = **&aref; - | ^^^^^^ help: try this: `aref` - -error: immediately dereferencing a reference - --> $DIR/reference.rs:40:14 - | -LL | let b = **&&a; - | ^^^^ help: try this: `&a` - -error: immediately dereferencing a reference - --> $DIR/reference.rs:44:17 - | -LL | let y = *&mut x; - | ^^^^^^^ help: try this: `x` - -error: immediately dereferencing a reference - --> $DIR/reference.rs:51:18 - | -LL | let y = **&mut &mut x; - | ^^^^^^^^^^^^ help: try this: `&mut x` - -error: aborting due to 11 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/reference.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'reference.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/reference.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/reference.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/reference.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/reference.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/result_map_unwrap_or_else.rs stdout ---- error: auxiliary build of "tests/ui/auxiliary/option_helpers.rs" failed to compile: status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/auxiliary/option_helpers.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "--out-dir" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/result_map_unwrap_or_else.stage-id.aux" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "--crate-type" "dylib" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/result_map_unwrap_or_else.stage-id.aux" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/result_map_unwrap_or_else.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/rename.rs stdout ---- normalized stderr: error: unknown lint: `stutter` --> $DIR/rename.rs:1:10 | LL | #![allow(stutter)] | ^^^^^^^ | = note: `-D unknown-lints` implied by `-D warnings` error: lint `clippy::cyclomatic_complexity` has been renamed to `clippy::cognitive_complexity` --> $DIR/rename.rs:2:9 | LL | #![warn(clippy::cyclomatic_complexity)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::cognitive_complexity` | = note: `-D renamed-and-removed-lints` implied by `-D warnings` error: lint `clippy::stutter` has been renamed to `clippy::module_name_repetitions` --> $DIR/rename.rs:4:8 | LL | #[warn(clippy::stutter)] | ^^^^^^^^^^^^^^^ help: use the new name: `clippy::module_name_repetitions` error: lint `clippy::new_without_default_derive` has been renamed to `clippy::new_without_default` --> $DIR/rename.rs:7:8 | LL | #[warn(clippy::new_without_default_derive)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::new_without_default` error: unknown lint: `stutter` --> $DIR/rename.rs:1:10 | LL | #![allow(stutter)] | ^^^^^^^ error: lint `clippy::cyclomatic_complexity` has been renamed to `clippy::cognitive_complexity` --> $DIR/rename.rs:2:9 | LL | #![warn(clippy::cyclomatic_complexity)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::cognitive_complexity` expected stderr: error: unknown lint: `stutter` --> $DIR/rename.rs:1:10 | LL | #![allow(stutter)] | ^^^^^^^ | = note: `-D unknown-lints` implied by `-D warnings` error: lint `clippy::cyclomatic_complexity` has been renamed to `clippy::cognitive_complexity` --> $DIR/rename.rs:2:9 | LL | #![warn(clippy::cyclomatic_complexity)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::cognitive_complexity` | = note: `-D renamed-and-removed-lints` implied by `-D warnings` error: lint `clippy::stutter` has been renamed to `clippy::module_name_repetitions` --> $DIR/rename.rs:4:8 | LL | #[warn(clippy::stutter)] | ^^^^^^^^^^^^^^^ help: use the new name: `clippy::module_name_repetitions` error: lint `clippy::new_without_default_derive` has been renamed to `clippy::new_without_default` --> $DIR/rename.rs:7:8 | LL | #[warn(clippy::new_without_default_derive)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::new_without_default` error: unknown lint: `stutter` --> $DIR/rename.rs:1:10 | LL | #![allow(stutter)] | ^^^^^^^ error: lint `clippy::cyclomatic_complexity` has been renamed to `clippy::cognitive_complexity` --> $DIR/rename.rs:2:9 | LL | #![warn(clippy::cyclomatic_complexity)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::cognitive_complexity` error: aborting due to 6 previous errors diff of stderr: error: unknown lint: `stutter` --> $DIR/rename.rs:1:10 | LL | #![allow(stutter)] | ^^^^^^^ | = note: `-D unknown-lints` implied by `-D warnings` error: lint `clippy::cyclomatic_complexity` has been renamed to `clippy::cognitive_complexity` --> $DIR/rename.rs:2:9 | LL | #![warn(clippy::cyclomatic_complexity)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::cognitive_complexity` | = note: `-D renamed-and-removed-lints` implied by `-D warnings` error: lint `clippy::stutter` has been renamed to `clippy::module_name_repetitions` --> $DIR/rename.rs:4:8 | LL | #[warn(clippy::stutter)] | ^^^^^^^^^^^^^^^ help: use the new name: `clippy::module_name_repetitions` error: lint `clippy::new_without_default_derive` has been renamed to `clippy::new_without_default` --> $DIR/rename.rs:7:8 | LL | #[warn(clippy::new_without_default_derive)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::new_without_default` error: unknown lint: `stutter` --> $DIR/rename.rs:1:10 | LL | #![allow(stutter)] | ^^^^^^^ error: lint `clippy::cyclomatic_complexity` has been renamed to `clippy::cognitive_complexity` --> $DIR/rename.rs:2:9 | LL | #![warn(clippy::cyclomatic_complexity)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::cognitive_complexity` -error: aborting due to 6 previous errors - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/rename.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'rename.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/rename.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/rename.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/rename.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ {"message":"unknown lint: `stutter`","code":{"code":"unknown_lints","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/rename.rs","byte_start":9,"byte_end":16,"line_start":1,"line_end":1,"column_start":10,"column_end":17,"is_primary":true,"text":[{"text":"#![allow(stutter)]","highlight_start":10,"highlight_end":17}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D unknown-lints` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: unknown lint: `stutter`\n --> tests/ui/rename.rs:1:10\n |\nLL | #![allow(stutter)]\n | ^^^^^^^\n |\n = note: `-D unknown-lints` implied by `-D warnings`\n\n"} {"message":"lint `clippy::cyclomatic_complexity` has been renamed to `clippy::cognitive_complexity`","code":{"code":"renamed_and_removed_lints","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/rename.rs","byte_start":27,"byte_end":56,"line_start":2,"line_end":2,"column_start":9,"column_end":38,"is_primary":true,"text":[{"text":"#![warn(clippy::cyclomatic_complexity)]","highlight_start":9,"highlight_end":38}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D renamed-and-removed-lints` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"use the new name","code":null,"level":"help","spans":[{"file_name":"tests/ui/rename.rs","byte_start":27,"byte_end":56,"line_start":2,"line_end":2,"column_start":9,"column_end":38,"is_primary":true,"text":[{"text":"#![warn(clippy::cyclomatic_complexity)]","highlight_start":9,"highlight_end":38}],"label":null,"suggested_replacement":"clippy::cognitive_complexity","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: lint `clippy::cyclomatic_complexity` has been renamed to `clippy::cognitive_complexity`\n --> tests/ui/rename.rs:2:9\n |\nLL | #![warn(clippy::cyclomatic_complexity)]\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::cognitive_complexity`\n |\n = note: `-D renamed-and-removed-lints` implied by `-D warnings`\n\n"} {"message":"lint `clippy::stutter` has been renamed to `clippy::module_name_repetitions`","code":{"code":"renamed_and_removed_lints","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/rename.rs","byte_start":67,"byte_end":82,"line_start":4,"line_end":4,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"#[warn(clippy::stutter)]","highlight_start":8,"highlight_end":23}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"use the new name","code":null,"level":"help","spans":[{"file_name":"tests/ui/rename.rs","byte_start":67,"byte_end":82,"line_start":4,"line_end":4,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"#[warn(clippy::stutter)]","highlight_start":8,"highlight_end":23}],"label":null,"suggested_replacement":"clippy::module_name_repetitions","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: lint `clippy::stutter` has been renamed to `clippy::module_name_repetitions`\n --> tests/ui/rename.rs:4:8\n |\nLL | #[warn(clippy::stutter)]\n | ^^^^^^^^^^^^^^^ help: use the new name: `clippy::module_name_repetitions`\n\n"} {"message":"lint `clippy::new_without_default_derive` has been renamed to `clippy::new_without_default`","code":{"code":"renamed_and_removed_lints","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/rename.rs","byte_start":106,"byte_end":140,"line_start":7,"line_end":7,"column_start":8,"column_end":42,"is_primary":true,"text":[{"text":"#[warn(clippy::new_without_default_derive)]","highlight_start":8,"highlight_end":42}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"use the new name","code":null,"level":"help","spans":[{"file_name":"tests/ui/rename.rs","byte_start":106,"byte_end":140,"line_start":7,"line_end":7,"column_start":8,"column_end":42,"is_primary":true,"text":[{"text":"#[warn(clippy::new_without_default_derive)]","highlight_start":8,"highlight_end":42}],"label":null,"suggested_replacement":"clippy::new_without_default","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: lint `clippy::new_without_default_derive` has been renamed to `clippy::new_without_default`\n --> tests/ui/rename.rs:7:8\n |\nLL | #[warn(clippy::new_without_default_derive)]\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::new_without_default`\n\n"} {"message":"unknown lint: `stutter`","code":{"code":"unknown_lints","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/rename.rs","byte_start":9,"byte_end":16,"line_start":1,"line_end":1,"column_start":10,"column_end":17,"is_primary":true,"text":[{"text":"#![allow(stutter)]","highlight_start":10,"highlight_end":17}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unknown lint: `stutter`\n --> tests/ui/rename.rs:1:10\n |\nLL | #![allow(stutter)]\n | ^^^^^^^\n\n"} {"message":"lint `clippy::cyclomatic_complexity` has been renamed to `clippy::cognitive_complexity`","code":{"code":"renamed_and_removed_lints","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/rename.rs","byte_start":27,"byte_end":56,"line_start":2,"line_end":2,"column_start":9,"column_end":38,"is_primary":true,"text":[{"text":"#![warn(clippy::cyclomatic_complexity)]","highlight_start":9,"highlight_end":38}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"use the new name","code":null,"level":"help","spans":[{"file_name":"tests/ui/rename.rs","byte_start":27,"byte_end":56,"line_start":2,"line_end":2,"column_start":9,"column_end":38,"is_primary":true,"text":[{"text":"#![warn(clippy::cyclomatic_complexity)]","highlight_start":9,"highlight_end":38}],"label":null,"suggested_replacement":"clippy::cognitive_complexity","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: lint `clippy::cyclomatic_complexity` has been renamed to `clippy::cognitive_complexity`\n --> tests/ui/rename.rs:2:9\n |\nLL | #![warn(clippy::cyclomatic_complexity)]\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::cognitive_complexity`\n\n"} ------------------------------------------ thread '[ui] ui/rename.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/result_map_unit_fn.rs stdout ---- normalized stderr: expected stderr: error: called `map(f)` on an Result value where `f` is a unit function --> $DIR/result_map_unit_fn.rs:34:5 | LL | x.field.map(do_nothing); | ^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(x_field) = x.field { do_nothing(...) }` | = note: `-D clippy::result-map-unit-fn` implied by `-D warnings` error: called `map(f)` on an Result value where `f` is a unit function --> $DIR/result_map_unit_fn.rs:36:5 | LL | x.field.map(do_nothing); | ^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(x_field) = x.field { do_nothing(...) }` error: called `map(f)` on an Result value where `f` is a unit function --> $DIR/result_map_unit_fn.rs:38:5 | LL | x.field.map(diverge); | ^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(x_field) = x.field { diverge(...) }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:44:5 | LL | x.field.map(|value| x.do_result_nothing(value + captured)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { x.do_result_nothing(value + captured) }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:46:5 | LL | x.field.map(|value| { x.do_result_plus_one(value + captured); }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { x.do_result_plus_one(value + captured); }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:49:5 | LL | x.field.map(|value| do_nothing(value + captured)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { do_nothing(value + captured) }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:51:5 | LL | x.field.map(|value| { do_nothing(value + captured) }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { do_nothing(value + captured) }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:53:5 | LL | x.field.map(|value| { do_nothing(value + captured); }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { do_nothing(value + captured); }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:55:5 | LL | x.field.map(|value| { { do_nothing(value + captured); } }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { do_nothing(value + captured); }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:58:5 | LL | x.field.map(|value| diverge(value + captured)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { diverge(value + captured) }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:60:5 | LL | x.field.map(|value| { diverge(value + captured) }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { diverge(value + captured) }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:62:5 | LL | x.field.map(|value| { diverge(value + captured); }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { diverge(value + captured); }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:64:5 | LL | x.field.map(|value| { { diverge(value + captured); } }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { diverge(value + captured); }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:69:5 | LL | x.field.map(|value| { let y = plus_one(value + captured); }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { let y = plus_one(value + captured); }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:71:5 | LL | x.field.map(|value| { plus_one(value + captured); }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { plus_one(value + captured); }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:73:5 | LL | x.field.map(|value| { { plus_one(value + captured); } }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { plus_one(value + captured); }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:76:5 | LL | x.field.map(|ref value| { do_nothing(value + captured) }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(ref value) = x.field { do_nothing(value + captured) }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:79:5 | LL | x.field.map(|value| { do_nothing(value); do_nothing(value) }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { ... }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:81:5 | LL | x.field.map(|value| if value > 0 { do_nothing(value); do_nothing(value) }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { ... }` error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:85:5 | LL | x.field.map(|value| { | _____^ | |_____| | || LL | || do_nothing(value); LL | || do_nothing(value) LL | || }); | ||______^- help: try this: `if let Ok(value) = x.field { ... }` | |_______| | error: called `map(f)` on an Result value where `f` is a unit closure --> $DIR/result_map_unit_fn.rs:89:5 | LL | x.field.map(|value| { do_nothing(value); do_nothing(value); }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(value) = x.field { ... }` error: called `map(f)` on an Result value where `f` is a unit function --> $DIR/result_map_unit_fn.rs:93:5 | LL | "12".parse::().map(diverge); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(_) = "12".parse::() { diverge(...) }` error: called `map(f)` on an Result value where `f` is a unit function --> $DIR/result_map_unit_fn.rs:99:5 | LL | y.map(do_nothing); | ^^^^^^^^^^^^^^^^^- | | | help: try this: `if let Ok(_y) = y { do_nothing(...) }` error: aborting due to 23 previous errors diff of stderr: -error: called `map(f)` on an Result value where `f` is a unit function - --> $DIR/result_map_unit_fn.rs:34:5 - | -LL | x.field.map(do_nothing); - | ^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(x_field) = x.field { do_nothing(...) }` - | - = note: `-D clippy::result-map-unit-fn` implied by `-D warnings` - -error: called `map(f)` on an Result value where `f` is a unit function - --> $DIR/result_map_unit_fn.rs:36:5 - | -LL | x.field.map(do_nothing); - | ^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(x_field) = x.field { do_nothing(...) }` - -error: called `map(f)` on an Result value where `f` is a unit function - --> $DIR/result_map_unit_fn.rs:38:5 - | -LL | x.field.map(diverge); - | ^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(x_field) = x.field { diverge(...) }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:44:5 - | -LL | x.field.map(|value| x.do_result_nothing(value + captured)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { x.do_result_nothing(value + captured) }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:46:5 - | -LL | x.field.map(|value| { x.do_result_plus_one(value + captured); }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { x.do_result_plus_one(value + captured); }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:49:5 - | -LL | x.field.map(|value| do_nothing(value + captured)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { do_nothing(value + captured) }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:51:5 - | -LL | x.field.map(|value| { do_nothing(value + captured) }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { do_nothing(value + captured) }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:53:5 - | -LL | x.field.map(|value| { do_nothing(value + captured); }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { do_nothing(value + captured); }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:55:5 - | -LL | x.field.map(|value| { { do_nothing(value + captured); } }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { do_nothing(value + captured); }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:58:5 - | -LL | x.field.map(|value| diverge(value + captured)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { diverge(value + captured) }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:60:5 - | -LL | x.field.map(|value| { diverge(value + captured) }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { diverge(value + captured) }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:62:5 - | -LL | x.field.map(|value| { diverge(value + captured); }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { diverge(value + captured); }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:64:5 - | -LL | x.field.map(|value| { { diverge(value + captured); } }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { diverge(value + captured); }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:69:5 - | -LL | x.field.map(|value| { let y = plus_one(value + captured); }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { let y = plus_one(value + captured); }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:71:5 - | -LL | x.field.map(|value| { plus_one(value + captured); }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { plus_one(value + captured); }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:73:5 - | -LL | x.field.map(|value| { { plus_one(value + captured); } }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { plus_one(value + captured); }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:76:5 - | -LL | x.field.map(|ref value| { do_nothing(value + captured) }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(ref value) = x.field { do_nothing(value + captured) }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:79:5 - | -LL | x.field.map(|value| { do_nothing(value); do_nothing(value) }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { ... }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:81:5 - | -LL | x.field.map(|value| if value > 0 { do_nothing(value); do_nothing(value) }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { ... }` - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:85:5 - | -LL | x.field.map(|value| { - | _____^ - | |_____| - | || -LL | || do_nothing(value); -LL | || do_nothing(value) -LL | || }); - | ||______^- help: try this: `if let Ok(value) = x.field { ... }` - | |_______| - | - -error: called `map(f)` on an Result value where `f` is a unit closure - --> $DIR/result_map_unit_fn.rs:89:5 - | -LL | x.field.map(|value| { do_nothing(value); do_nothing(value); }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(value) = x.field { ... }` - -error: called `map(f)` on an Result value where `f` is a unit function - --> $DIR/result_map_unit_fn.rs:93:5 - | -LL | "12".parse::().map(diverge); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(_) = "12".parse::() { diverge(...) }` - -error: called `map(f)` on an Result value where `f` is a unit function - --> $DIR/result_map_unit_fn.rs:99:5 - | -LL | y.map(do_nothing); - | ^^^^^^^^^^^^^^^^^- - | | - | help: try this: `if let Ok(_y) = y { do_nothing(...) }` - -error: aborting due to 23 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/result_map_unit_fn.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'result_map_unit_fn.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/result_map_unit_fn.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/result_map_unit_fn.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/result_map_unit_fn.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/result_map_unit_fn.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/shadow.rs stdout ---- normalized stderr: expected stderr: error: `x` is shadowed by itself in `&mut x` --> $DIR/shadow.rs:20:5 | LL | let x = &mut x; | ^^^^^^^^^^^^^^^ | = note: `-D clippy::shadow-same` implied by `-D warnings` note: previous binding is here --> $DIR/shadow.rs:19:13 | LL | let mut x = 1; | ^ error: `x` is shadowed by itself in `{ x }` --> $DIR/shadow.rs:21:5 | LL | let x = { x }; | ^^^^^^^^^^^^^^ | note: previous binding is here --> $DIR/shadow.rs:20:9 | LL | let x = &mut x; | ^ error: `x` is shadowed by itself in `(&*x)` --> $DIR/shadow.rs:22:5 | LL | let x = (&*x); | ^^^^^^^^^^^^^^ | note: previous binding is here --> $DIR/shadow.rs:21:9 | LL | let x = { x }; | ^ error: `x` is shadowed by `{ *x + 1 }` which reuses the original value --> $DIR/shadow.rs:23:9 | LL | let x = { *x + 1 }; | ^ | = note: `-D clippy::shadow-reuse` implied by `-D warnings` note: initialization happens here --> $DIR/shadow.rs:23:13 | LL | let x = { *x + 1 }; | ^^^^^^^^^^ note: previous binding is here --> $DIR/shadow.rs:22:9 | LL | let x = (&*x); | ^ error: `x` is shadowed by `id(x)` which reuses the original value --> $DIR/shadow.rs:24:9 | LL | let x = id(x); | ^ | note: initialization happens here --> $DIR/shadow.rs:24:13 | LL | let x = id(x); | ^^^^^ note: previous binding is here --> $DIR/shadow.rs:23:9 | LL | let x = { *x + 1 }; | ^ error: `x` is shadowed by `(1, x)` which reuses the original value --> $DIR/shadow.rs:25:9 | LL | let x = (1, x); | ^ | note: initialization happens here --> $DIR/shadow.rs:25:13 | LL | let x = (1, x); | ^^^^^^ note: previous binding is here --> $DIR/shadow.rs:24:9 | LL | let x = id(x); | ^ error: `x` is shadowed by `first(x)` which reuses the original value --> $DIR/shadow.rs:26:9 | LL | let x = first(x); | ^ | note: initialization happens here --> $DIR/shadow.rs:26:13 | LL | let x = first(x); | ^^^^^^^^ note: previous binding is here --> $DIR/shadow.rs:25:9 | LL | let x = (1, x); | ^ error: `x` is shadowed by `y` --> $DIR/shadow.rs:28:9 | LL | let x = y; | ^ | = note: `-D clippy::shadow-unrelated` implied by `-D warnings` note: initialization happens here --> $DIR/shadow.rs:28:13 | LL | let x = y; | ^ note: previous binding is here --> $DIR/shadow.rs:26:9 | LL | let x = first(x); | ^ error: `x` shadows a previous declaration --> $DIR/shadow.rs:30:5 | LL | let x; | ^^^^^^ | note: previous binding is here --> $DIR/shadow.rs:28:9 | LL | let x = y; | ^ error: aborting due to 9 previous errors diff of stderr: -error: `x` is shadowed by itself in `&mut x` - --> $DIR/shadow.rs:20:5 - | -LL | let x = &mut x; - | ^^^^^^^^^^^^^^^ - | - = note: `-D clippy::shadow-same` implied by `-D warnings` -note: previous binding is here - --> $DIR/shadow.rs:19:13 - | -LL | let mut x = 1; - | ^ - -error: `x` is shadowed by itself in `{ x }` - --> $DIR/shadow.rs:21:5 - | -LL | let x = { x }; - | ^^^^^^^^^^^^^^ - | -note: previous binding is here - --> $DIR/shadow.rs:20:9 - | -LL | let x = &mut x; - | ^ - -error: `x` is shadowed by itself in `(&*x)` - --> $DIR/shadow.rs:22:5 - | -LL | let x = (&*x); - | ^^^^^^^^^^^^^^ - | -note: previous binding is here - --> $DIR/shadow.rs:21:9 - | -LL | let x = { x }; - | ^ - -error: `x` is shadowed by `{ *x + 1 }` which reuses the original value - --> $DIR/shadow.rs:23:9 - | -LL | let x = { *x + 1 }; - | ^ - | - = note: `-D clippy::shadow-reuse` implied by `-D warnings` -note: initialization happens here - --> $DIR/shadow.rs:23:13 - | -LL | let x = { *x + 1 }; - | ^^^^^^^^^^ -note: previous binding is here - --> $DIR/shadow.rs:22:9 - | -LL | let x = (&*x); - | ^ - -error: `x` is shadowed by `id(x)` which reuses the original value - --> $DIR/shadow.rs:24:9 - | -LL | let x = id(x); - | ^ - | -note: initialization happens here - --> $DIR/shadow.rs:24:13 - | -LL | let x = id(x); - | ^^^^^ -note: previous binding is here - --> $DIR/shadow.rs:23:9 - | -LL | let x = { *x + 1 }; - | ^ - -error: `x` is shadowed by `(1, x)` which reuses the original value - --> $DIR/shadow.rs:25:9 - | -LL | let x = (1, x); - | ^ - | -note: initialization happens here - --> $DIR/shadow.rs:25:13 - | -LL | let x = (1, x); - | ^^^^^^ -note: previous binding is here - --> $DIR/shadow.rs:24:9 - | -LL | let x = id(x); - | ^ - -error: `x` is shadowed by `first(x)` which reuses the original value - --> $DIR/shadow.rs:26:9 - | -LL | let x = first(x); - | ^ - | -note: initialization happens here - --> $DIR/shadow.rs:26:13 - | -LL | let x = first(x); - | ^^^^^^^^ -note: previous binding is here - --> $DIR/shadow.rs:25:9 - | -LL | let x = (1, x); - | ^ - -error: `x` is shadowed by `y` - --> $DIR/shadow.rs:28:9 - | -LL | let x = y; - | ^ - | - = note: `-D clippy::shadow-unrelated` implied by `-D warnings` -note: initialization happens here - --> $DIR/shadow.rs:28:13 - | -LL | let x = y; - | ^ -note: previous binding is here - --> $DIR/shadow.rs:26:9 - | -LL | let x = first(x); - | ^ - -error: `x` shadows a previous declaration - --> $DIR/shadow.rs:30:5 - | -LL | let x; - | ^^^^^^ - | -note: previous binding is here - --> $DIR/shadow.rs:28:9 - | -LL | let x = y; - | ^ - -error: aborting due to 9 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/shadow.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'shadow.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/shadow.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/shadow.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/shadow.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/shadow.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/short_circuit_statement.rs stdout ---- normalized stderr: expected stderr: error: boolean short circuit operator in statement may be clearer using an explicit test --> $DIR/short_circuit_statement.rs:4:5 | LL | f() && g(); | ^^^^^^^^^^^ help: replace it with: `if f() { g(); }` | = note: `-D clippy::short-circuit-statement` implied by `-D warnings` error: boolean short circuit operator in statement may be clearer using an explicit test --> $DIR/short_circuit_statement.rs:5:5 | LL | f() || g(); | ^^^^^^^^^^^ help: replace it with: `if !f() { g(); }` error: boolean short circuit operator in statement may be clearer using an explicit test --> $DIR/short_circuit_statement.rs:6:5 | LL | 1 == 2 || g(); | ^^^^^^^^^^^^^^ help: replace it with: `if !(1 == 2) { g(); }` error: aborting due to 3 previous errors diff of stderr: -error: boolean short circuit operator in statement may be clearer using an explicit test - --> $DIR/short_circuit_statement.rs:4:5 - | -LL | f() && g(); - | ^^^^^^^^^^^ help: replace it with: `if f() { g(); }` - | - = note: `-D clippy::short-circuit-statement` implied by `-D warnings` - -error: boolean short circuit operator in statement may be clearer using an explicit test - --> $DIR/short_circuit_statement.rs:5:5 - | -LL | f() || g(); - | ^^^^^^^^^^^ help: replace it with: `if !f() { g(); }` - -error: boolean short circuit operator in statement may be clearer using an explicit test - --> $DIR/short_circuit_statement.rs:6:5 - | -LL | 1 == 2 || g(); - | ^^^^^^^^^^^^^^ help: replace it with: `if !(1 == 2) { g(); }` - -error: aborting due to 3 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/short_circuit_statement.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'short_circuit_statement.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/short_circuit_statement.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/short_circuit_statement.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/short_circuit_statement.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/short_circuit_statement.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/temporary_assignment.rs stdout ---- normalized stderr: expected stderr: error: assignment to temporary --> $DIR/temporary_assignment.rs:47:5 | LL | Struct { field: 0 }.field = 1; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::temporary-assignment` implied by `-D warnings` error: assignment to temporary --> $DIR/temporary_assignment.rs:48:5 | LL | / MultiStruct { LL | | structure: Struct { field: 0 }, LL | | } LL | | .structure LL | | .field = 1; | |______________^ error: assignment to temporary --> $DIR/temporary_assignment.rs:53:5 | LL | ArrayStruct { array: [0] }.array[0] = 1; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: assignment to temporary --> $DIR/temporary_assignment.rs:54:5 | LL | (0, 0).0 = 1; | ^^^^^^^^^^^^ error: assignment to temporary --> $DIR/temporary_assignment.rs:56:5 | LL | A.0 = 2; | ^^^^^^^ error: assignment to temporary --> $DIR/temporary_assignment.rs:57:5 | LL | B.field = 2; | ^^^^^^^^^^^ error: assignment to temporary --> $DIR/temporary_assignment.rs:58:5 | LL | C.structure.field = 2; | ^^^^^^^^^^^^^^^^^^^^^ error: assignment to temporary --> $DIR/temporary_assignment.rs:59:5 | LL | D.array[0] = 2; | ^^^^^^^^^^^^^^ error: aborting due to 8 previous errors diff of stderr: -error: assignment to temporary - --> $DIR/temporary_assignment.rs:47:5 - | -LL | Struct { field: 0 }.field = 1; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::temporary-assignment` implied by `-D warnings` - -error: assignment to temporary - --> $DIR/temporary_assignment.rs:48:5 - | -LL | / MultiStruct { -LL | | structure: Struct { field: 0 }, -LL | | } -LL | | .structure -LL | | .field = 1; - | |______________^ - -error: assignment to temporary - --> $DIR/temporary_assignment.rs:53:5 - | -LL | ArrayStruct { array: [0] }.array[0] = 1; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: assignment to temporary - --> $DIR/temporary_assignment.rs:54:5 - | -LL | (0, 0).0 = 1; - | ^^^^^^^^^^^^ - -error: assignment to temporary - --> $DIR/temporary_assignment.rs:56:5 - | -LL | A.0 = 2; - | ^^^^^^^ - -error: assignment to temporary - --> $DIR/temporary_assignment.rs:57:5 - | -LL | B.field = 2; - | ^^^^^^^^^^^ - -error: assignment to temporary - --> $DIR/temporary_assignment.rs:58:5 - | -LL | C.structure.field = 2; - | ^^^^^^^^^^^^^^^^^^^^^ - -error: assignment to temporary - --> $DIR/temporary_assignment.rs:59:5 - | -LL | D.array[0] = 2; - | ^^^^^^^^^^^^^^ - -error: aborting due to 8 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/temporary_assignment.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'temporary_assignment.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/temporary_assignment.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/temporary_assignment.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/temporary_assignment.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/temporary_assignment.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/single_match_else.rs stdout ---- normalized stderr: expected stderr: error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` --> $DIR/single_match_else.rs:12:5 | LL | / match ExprNode::Butterflies { LL | | ExprNode::ExprAddrOf => Some(&NODE), LL | | _ => { LL | | let x = 5; LL | | None LL | | }, LL | | } | |_____^ | = note: `-D clippy::single-match-else` implied by `-D warnings` help: try this | LL | if let ExprNode::ExprAddrOf = ExprNode::Butterflies { Some(&NODE) } else { LL | let x = 5; LL | None LL | } | error: aborting due to previous error diff of stderr: -error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` - --> $DIR/single_match_else.rs:12:5 - | -LL | / match ExprNode::Butterflies { -LL | | ExprNode::ExprAddrOf => Some(&NODE), -LL | | _ => { -LL | | let x = 5; -LL | | None -LL | | }, -LL | | } - | |_____^ - | - = note: `-D clippy::single-match-else` implied by `-D warnings` -help: try this - | -LL | if let ExprNode::ExprAddrOf = ExprNode::Butterflies { Some(&NODE) } else { -LL | let x = 5; -LL | None -LL | } - | - -error: aborting due to previous error - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/single_match_else.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'single_match_else.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/single_match_else.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/single_match_else.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/single_match_else.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/single_match_else.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/serde.rs stdout ---- normalized stderr: expected stderr: error: you should not implement `visit_string` without also implementing `visit_str` --> $DIR/serde.rs:39:5 | LL | / fn visit_string(self, _v: String) -> Result LL | | where LL | | E: serde::de::Error, LL | | { LL | | unimplemented!() LL | | } | |_____^ | = note: `-D clippy::serde-api-misuse` implied by `-D warnings` error: aborting due to previous error diff of stderr: -error: you should not implement `visit_string` without also implementing `visit_str` - --> $DIR/serde.rs:39:5 - | -LL | / fn visit_string(self, _v: String) -> Result -LL | | where -LL | | E: serde::de::Error, -LL | | { -LL | | unimplemented!() -LL | | } - | |_____^ - | - = note: `-D clippy::serde-api-misuse` implied by `-D warnings` - -error: aborting due to previous error - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/serde.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'serde.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/serde.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/serde.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/serde.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/serde.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/similar_names.rs stdout ---- normalized stderr: error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:15:9 | LL | let bpple: i32; | ^^^^^ | = note: `-D clippy::similar-names` implied by `-D warnings` note: existing binding defined here --> $DIR/similar_names.rs:13:9 | LL | let apple: i32; | ^^^^^ help: separate the discriminating character by an underscore like: `b_pple` --> $DIR/similar_names.rs:15:9 | LL | let bpple: i32; | ^^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:17:9 | LL | let cpple: i32; | ^^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:13:9 | LL | let apple: i32; | ^^^^^ help: separate the discriminating character by an underscore like: `c_pple` --> $DIR/similar_names.rs:17:9 | LL | let cpple: i32; | ^^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:41:9 | LL | let bluby: i32; | ^^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:40:9 | LL | let blubx: i32; | ^^^^^ help: separate the discriminating character by an underscore like: `blub_y` --> $DIR/similar_names.rs:41:9 | LL | let bluby: i32; | ^^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:45:9 | LL | let coke: i32; | ^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:43:9 | LL | let cake: i32; | ^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:63:9 | LL | let xyzeabc: i32; | ^^^^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:61:9 | LL | let xyz1abc: i32; | ^^^^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:67:9 | LL | let parsee: i32; | ^^^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:65:9 | LL | let parser: i32; | ^^^^^^ help: separate the discriminating character by an underscore like: `parse_e` --> $DIR/similar_names.rs:67:9 | LL | let parsee: i32; | ^^^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:81:16 | LL | bpple: sprang, | ^^^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:80:16 | LL | apple: spring, | ^^^^^^ expected stderr: error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:15:9 | LL | let bpple: i32; | ^^^^^ | = note: `-D clippy::similar-names` implied by `-D warnings` note: existing binding defined here --> $DIR/similar_names.rs:13:9 | LL | let apple: i32; | ^^^^^ help: separate the discriminating character by an underscore like: `b_pple` --> $DIR/similar_names.rs:15:9 | LL | let bpple: i32; | ^^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:17:9 | LL | let cpple: i32; | ^^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:13:9 | LL | let apple: i32; | ^^^^^ help: separate the discriminating character by an underscore like: `c_pple` --> $DIR/similar_names.rs:17:9 | LL | let cpple: i32; | ^^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:41:9 | LL | let bluby: i32; | ^^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:40:9 | LL | let blubx: i32; | ^^^^^ help: separate the discriminating character by an underscore like: `blub_y` --> $DIR/similar_names.rs:41:9 | LL | let bluby: i32; | ^^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:45:9 | LL | let coke: i32; | ^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:43:9 | LL | let cake: i32; | ^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:63:9 | LL | let xyzeabc: i32; | ^^^^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:61:9 | LL | let xyz1abc: i32; | ^^^^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:67:9 | LL | let parsee: i32; | ^^^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:65:9 | LL | let parser: i32; | ^^^^^^ help: separate the discriminating character by an underscore like: `parse_e` --> $DIR/similar_names.rs:67:9 | LL | let parsee: i32; | ^^^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:81:16 | LL | bpple: sprang, | ^^^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:80:16 | LL | apple: spring, | ^^^^^^ error: aborting due to 7 previous errors diff of stderr: error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:15:9 | LL | let bpple: i32; | ^^^^^ | = note: `-D clippy::similar-names` implied by `-D warnings` note: existing binding defined here --> $DIR/similar_names.rs:13:9 | LL | let apple: i32; | ^^^^^ help: separate the discriminating character by an underscore like: `b_pple` --> $DIR/similar_names.rs:15:9 | LL | let bpple: i32; | ^^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:17:9 | LL | let cpple: i32; | ^^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:13:9 | LL | let apple: i32; | ^^^^^ help: separate the discriminating character by an underscore like: `c_pple` --> $DIR/similar_names.rs:17:9 | LL | let cpple: i32; | ^^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:41:9 | LL | let bluby: i32; | ^^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:40:9 | LL | let blubx: i32; | ^^^^^ help: separate the discriminating character by an underscore like: `blub_y` --> $DIR/similar_names.rs:41:9 | LL | let bluby: i32; | ^^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:45:9 | LL | let coke: i32; | ^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:43:9 | LL | let cake: i32; | ^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:63:9 | LL | let xyzeabc: i32; | ^^^^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:61:9 | LL | let xyz1abc: i32; | ^^^^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:67:9 | LL | let parsee: i32; | ^^^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:65:9 | LL | let parser: i32; | ^^^^^^ help: separate the discriminating character by an underscore like: `parse_e` --> $DIR/similar_names.rs:67:9 | LL | let parsee: i32; | ^^^^^^ error: binding's name is too similar to existing binding --> $DIR/similar_names.rs:81:16 | LL | bpple: sprang, | ^^^^^^ | note: existing binding defined here --> $DIR/similar_names.rs:80:16 | LL | apple: spring, | ^^^^^^ -error: aborting due to 7 previous errors - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/similar_names.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'similar_names.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/similar_names.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/similar_names.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/similar_names.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ {"message":"binding's name is too similar to existing binding","code":{"code":"clippy::similar_names","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":215,"byte_end":220,"line_start":15,"line_end":15,"column_start":9,"column_end":14,"is_primary":true,"text":[{"text":" let bpple: i32;","highlight_start":9,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D clippy::similar-names` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"existing binding defined here","code":null,"level":"note","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":194,"byte_end":199,"line_start":13,"line_end":13,"column_start":9,"column_end":14,"is_primary":true,"text":[{"text":" let apple: i32;","highlight_start":9,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"separate the discriminating character by an underscore like: `b_pple`","code":null,"level":"help","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":215,"byte_end":220,"line_start":15,"line_end":15,"column_start":9,"column_end":14,"is_primary":true,"text":[{"text":" let bpple: i32;","highlight_start":9,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error: binding's name is too similar to existing binding\n --> tests/ui/similar_names.rs:15:9\n |\nLL | let bpple: i32;\n | ^^^^^\n |\n = note: `-D clippy::similar-names` implied by `-D warnings`\nnote: existing binding defined here\n --> tests/ui/similar_names.rs:13:9\n |\nLL | let apple: i32;\n | ^^^^^\nhelp: separate the discriminating character by an underscore like: `b_pple`\n --> tests/ui/similar_names.rs:15:9\n |\nLL | let bpple: i32;\n | ^^^^^\n\n"} {"message":"binding's name is too similar to existing binding","code":{"code":"clippy::similar_names","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":236,"byte_end":241,"line_start":17,"line_end":17,"column_start":9,"column_end":14,"is_primary":true,"text":[{"text":" let cpple: i32;","highlight_start":9,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"existing binding defined here","code":null,"level":"note","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":194,"byte_end":199,"line_start":13,"line_end":13,"column_start":9,"column_end":14,"is_primary":true,"text":[{"text":" let apple: i32;","highlight_start":9,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"separate the discriminating character by an underscore like: `c_pple`","code":null,"level":"help","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":236,"byte_end":241,"line_start":17,"line_end":17,"column_start":9,"column_end":14,"is_primary":true,"text":[{"text":" let cpple: i32;","highlight_start":9,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error: binding's name is too similar to existing binding\n --> tests/ui/similar_names.rs:17:9\n |\nLL | let cpple: i32;\n | ^^^^^\n |\nnote: existing binding defined here\n --> tests/ui/similar_names.rs:13:9\n |\nLL | let apple: i32;\n | ^^^^^\nhelp: separate the discriminating character by an underscore like: `c_pple`\n --> tests/ui/similar_names.rs:17:9\n |\nLL | let cpple: i32;\n | ^^^^^\n\n"} {"message":"binding's name is too similar to existing binding","code":{"code":"clippy::similar_names","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":575,"byte_end":580,"line_start":41,"line_end":41,"column_start":9,"column_end":14,"is_primary":true,"text":[{"text":" let bluby: i32;","highlight_start":9,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"existing binding defined here","code":null,"level":"note","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":555,"byte_end":560,"line_start":40,"line_end":40,"column_start":9,"column_end":14,"is_primary":true,"text":[{"text":" let blubx: i32;","highlight_start":9,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"separate the discriminating character by an underscore like: `blub_y`","code":null,"level":"help","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":575,"byte_end":580,"line_start":41,"line_end":41,"column_start":9,"column_end":14,"is_primary":true,"text":[{"text":" let bluby: i32;","highlight_start":9,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error: binding's name is too similar to existing binding\n --> tests/ui/similar_names.rs:41:9\n |\nLL | let bluby: i32;\n | ^^^^^\n |\nnote: existing binding defined here\n --> tests/ui/similar_names.rs:40:9\n |\nLL | let blubx: i32;\n | ^^^^^\nhelp: separate the discriminating character by an underscore like: `blub_y`\n --> tests/ui/similar_names.rs:41:9\n |\nLL | let bluby: i32;\n | ^^^^^\n\n"} {"message":"binding's name is too similar to existing binding","code":{"code":"clippy::similar_names","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":635,"byte_end":639,"line_start":45,"line_end":45,"column_start":9,"column_end":13,"is_primary":true,"text":[{"text":" let coke: i32;","highlight_start":9,"highlight_end":13}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"existing binding defined here","code":null,"level":"note","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":596,"byte_end":600,"line_start":43,"line_end":43,"column_start":9,"column_end":13,"is_primary":true,"text":[{"text":" let cake: i32;","highlight_start":9,"highlight_end":13}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error: binding's name is too similar to existing binding\n --> tests/ui/similar_names.rs:45:9\n |\nLL | let coke: i32;\n | ^^^^\n |\nnote: existing binding defined here\n --> tests/ui/similar_names.rs:43:9\n |\nLL | let cake: i32;\n | ^^^^\n\n"} {"message":"binding's name is too similar to existing binding","code":{"code":"clippy::similar_names","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":988,"byte_end":995,"line_start":63,"line_end":63,"column_start":9,"column_end":16,"is_primary":true,"text":[{"text":" let xyzeabc: i32;","highlight_start":9,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"existing binding defined here","code":null,"level":"note","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":944,"byte_end":951,"line_start":61,"line_end":61,"column_start":9,"column_end":16,"is_primary":true,"text":[{"text":" let xyz1abc: i32;","highlight_start":9,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error: binding's name is too similar to existing binding\n --> tests/ui/similar_names.rs:63:9\n |\nLL | let xyzeabc: i32;\n | ^^^^^^^\n |\nnote: existing binding defined here\n --> tests/ui/similar_names.rs:61:9\n |\nLL | let xyz1abc: i32;\n | ^^^^^^^\n\n"} {"message":"binding's name is too similar to existing binding","code":{"code":"clippy::similar_names","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":1053,"byte_end":1059,"line_start":67,"line_end":67,"column_start":9,"column_end":15,"is_primary":true,"text":[{"text":" let parsee: i32;","highlight_start":9,"highlight_end":15}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"existing binding defined here","code":null,"level":"note","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":1011,"byte_end":1017,"line_start":65,"line_end":65,"column_start":9,"column_end":15,"is_primary":true,"text":[{"text":" let parser: i32;","highlight_start":9,"highlight_end":15}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"separate the discriminating character by an underscore like: `parse_e`","code":null,"level":"help","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":1053,"byte_end":1059,"line_start":67,"line_end":67,"column_start":9,"column_end":15,"is_primary":true,"text":[{"text":" let parsee: i32;","highlight_start":9,"highlight_end":15}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error: binding's name is too similar to existing binding\n --> tests/ui/similar_names.rs:67:9\n |\nLL | let parsee: i32;\n | ^^^^^^\n |\nnote: existing binding defined here\n --> tests/ui/similar_names.rs:65:9\n |\nLL | let parser: i32;\n | ^^^^^^\nhelp: separate the discriminating character by an underscore like: `parse_e`\n --> tests/ui/similar_names.rs:67:9\n |\nLL | let parsee: i32;\n | ^^^^^^\n\n"} {"message":"binding's name is too similar to existing binding","code":{"code":"clippy::similar_names","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":1304,"byte_end":1310,"line_start":81,"line_end":81,"column_start":16,"column_end":22,"is_primary":true,"text":[{"text":" bpple: sprang,","highlight_start":16,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"existing binding defined here","code":null,"level":"note","spans":[{"file_name":"tests/ui/similar_names.rs","byte_start":1281,"byte_end":1287,"line_start":80,"line_end":80,"column_start":16,"column_end":22,"is_primary":true,"text":[{"text":" apple: spring,","highlight_start":16,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error: binding's name is too similar to existing binding\n --> tests/ui/similar_names.rs:81:16\n |\nLL | bpple: sprang,\n | ^^^^^^\n |\nnote: existing binding defined here\n --> tests/ui/similar_names.rs:80:16\n |\nLL | apple: spring,\n | ^^^^^^\n\n"} ------------------------------------------ thread '[ui] ui/similar_names.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/string_extend.rs stdout ---- normalized stderr: expected stderr: error: calling `.extend(_.chars())` --> $DIR/string_extend.rs:18:5 | LL | s.extend(abc.chars()); | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(abc)` | = note: `-D clippy::string-extend-chars` implied by `-D warnings` error: calling `.extend(_.chars())` --> $DIR/string_extend.rs:21:5 | LL | s.extend("abc".chars()); | ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str("abc")` error: calling `.extend(_.chars())` --> $DIR/string_extend.rs:24:5 | LL | s.extend(def.chars()); | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(&def)` error: aborting due to 3 previous errors diff of stderr: -error: calling `.extend(_.chars())` - --> $DIR/string_extend.rs:18:5 - | -LL | s.extend(abc.chars()); - | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(abc)` - | - = note: `-D clippy::string-extend-chars` implied by `-D warnings` - -error: calling `.extend(_.chars())` - --> $DIR/string_extend.rs:21:5 - | -LL | s.extend("abc".chars()); - | ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str("abc")` - -error: calling `.extend(_.chars())` - --> $DIR/string_extend.rs:24:5 - | -LL | s.extend(def.chars()); - | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(&def)` - -error: aborting due to 3 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/string_extend.stderr normalized fixed: // run-rustfix #[derive(Copy, Clone)] struct HasChars; impl HasChars { fn chars(self) -> std::str::Chars<'static> { "HasChars".chars() } } fn main() { let abc = "abc"; let def = String::from("def"); let mut s = String::new(); s.push_str(abc); s.extend(abc.chars()); s.push_str("abc"); s.extend("abc".chars()); s.push_str(&def); s.extend(def.chars()); s.extend(abc.chars().skip(1)); s.extend("abc".chars().skip(1)); s.extend(['a', 'b', 'c'].iter()); let f = HasChars; s.extend(f.chars()); } expected fixed: // run-rustfix #[derive(Copy, Clone)] struct HasChars; impl HasChars { fn chars(self) -> std::str::Chars<'static> { "HasChars".chars() } } fn main() { let abc = "abc"; let def = String::from("def"); let mut s = String::new(); s.push_str(abc); s.push_str(abc); s.push_str("abc"); s.push_str("abc"); s.push_str(&def); s.push_str(&def); s.extend(abc.chars().skip(1)); s.extend("abc".chars().skip(1)); s.extend(['a', 'b', 'c'].iter()); let f = HasChars; s.extend(f.chars()); } diff of fixed: // run-rustfix #[derive(Copy, Clone)] struct HasChars; impl HasChars { fn chars(self) -> std::str::Chars<'static> { "HasChars".chars() } } fn main() { let abc = "abc"; let def = String::from("def"); let mut s = String::new(); s.push_str(abc); - s.push_str(abc); + s.extend(abc.chars()); s.push_str("abc"); - s.push_str("abc"); + s.extend("abc".chars()); s.push_str(&def); - s.push_str(&def); + s.extend(def.chars()); s.extend(abc.chars().skip(1)); s.extend("abc".chars().skip(1)); s.extend(['a', 'b', 'c'].iter()); let f = HasChars; s.extend(f.chars()); } The actual fixed differed from the expected fixed. Actual fixed saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/string_extend.fixed To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'string_extend.rs' error: 2 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/string_extend.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/string_extend.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/string_extend.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/string_extend.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/suspicious_arithmetic_impl.rs stdout ---- normalized stderr: expected stderr: error: Suspicious use of binary operator in `Add` impl --> $DIR/suspicious_arithmetic_impl.rs:11:20 | LL | Foo(self.0 - other.0) | ^ | = note: `-D clippy::suspicious-arithmetic-impl` implied by `-D warnings` error: Suspicious use of binary operator in `AddAssign` impl --> $DIR/suspicious_arithmetic_impl.rs:17:23 | LL | *self = *self - other; | ^ | = note: #[deny(clippy::suspicious_op_assign_impl)] on by default error: aborting due to 2 previous errors diff of stderr: -error: Suspicious use of binary operator in `Add` impl - --> $DIR/suspicious_arithmetic_impl.rs:11:20 - | -LL | Foo(self.0 - other.0) - | ^ - | - = note: `-D clippy::suspicious-arithmetic-impl` implied by `-D warnings` - -error: Suspicious use of binary operator in `AddAssign` impl - --> $DIR/suspicious_arithmetic_impl.rs:17:23 - | -LL | *self = *self - other; - | ^ - | - = note: #[deny(clippy::suspicious_op_assign_impl)] on by default - -error: aborting due to 2 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/suspicious_arithmetic_impl.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'suspicious_arithmetic_impl.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/suspicious_arithmetic_impl.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/suspicious_arithmetic_impl.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/suspicious_arithmetic_impl.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/suspicious_arithmetic_impl.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/strings.rs stdout ---- normalized stderr: expected stderr: error: manual implementation of an assign operation --> $DIR/strings.rs:8:9 | LL | x = x + "."; | ^^^^^^^^^^^ help: replace it with: `x += "."` | = note: `-D clippy::assign-op-pattern` implied by `-D warnings` error: you added something to a string. Consider using `String::push_str()` instead --> $DIR/strings.rs:8:13 | LL | x = x + "."; | ^^^^^^^ | = note: `-D clippy::string-add` implied by `-D warnings` error: you added something to a string. Consider using `String::push_str()` instead --> $DIR/strings.rs:12:13 | LL | let z = y + "..."; | ^^^^^^^^^ error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead --> $DIR/strings.rs:22:9 | LL | x = x + "."; | ^^^^^^^^^^^ | = note: `-D clippy::string-add-assign` implied by `-D warnings` error: manual implementation of an assign operation --> $DIR/strings.rs:22:9 | LL | x = x + "."; | ^^^^^^^^^^^ help: replace it with: `x += "."` error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead --> $DIR/strings.rs:36:9 | LL | x = x + "."; | ^^^^^^^^^^^ error: manual implementation of an assign operation --> $DIR/strings.rs:36:9 | LL | x = x + "."; | ^^^^^^^^^^^ help: replace it with: `x += "."` error: you added something to a string. Consider using `String::push_str()` instead --> $DIR/strings.rs:40:13 | LL | let z = y + "..."; | ^^^^^^^^^ error: aborting due to 8 previous errors diff of stderr: -error: manual implementation of an assign operation - --> $DIR/strings.rs:8:9 - | -LL | x = x + "."; - | ^^^^^^^^^^^ help: replace it with: `x += "."` - | - = note: `-D clippy::assign-op-pattern` implied by `-D warnings` - -error: you added something to a string. Consider using `String::push_str()` instead - --> $DIR/strings.rs:8:13 - | -LL | x = x + "."; - | ^^^^^^^ - | - = note: `-D clippy::string-add` implied by `-D warnings` - -error: you added something to a string. Consider using `String::push_str()` instead - --> $DIR/strings.rs:12:13 - | -LL | let z = y + "..."; - | ^^^^^^^^^ - -error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead - --> $DIR/strings.rs:22:9 - | -LL | x = x + "."; - | ^^^^^^^^^^^ - | - = note: `-D clippy::string-add-assign` implied by `-D warnings` - -error: manual implementation of an assign operation - --> $DIR/strings.rs:22:9 - | -LL | x = x + "."; - | ^^^^^^^^^^^ help: replace it with: `x += "."` - -error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead - --> $DIR/strings.rs:36:9 - | -LL | x = x + "."; - | ^^^^^^^^^^^ - -error: manual implementation of an assign operation - --> $DIR/strings.rs:36:9 - | -LL | x = x + "."; - | ^^^^^^^^^^^ help: replace it with: `x += "."` - -error: you added something to a string. Consider using `String::push_str()` instead - --> $DIR/strings.rs:40:13 - | -LL | let z = y + "..."; - | ^^^^^^^^^ - -error: aborting due to 8 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/strings.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'strings.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/strings.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/strings.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/strings.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/strings.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/transmute.rs stdout ---- normalized stderr: expected stderr: error: transmute from a type (`&'a T`) to itself --> $DIR/transmute.rs:19:20 | LL | let _: &'a T = core::intrinsics::transmute(t); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::useless-transmute` implied by `-D warnings` error: transmute from a reference to a pointer --> $DIR/transmute.rs:23:23 | LL | let _: *const T = core::intrinsics::transmute(t); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `t as *const T` error: transmute from a reference to a pointer --> $DIR/transmute.rs:25:21 | LL | let _: *mut T = core::intrinsics::transmute(t); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `t as *const T as *mut T` error: transmute from a reference to a pointer --> $DIR/transmute.rs:27:23 | LL | let _: *const U = core::intrinsics::transmute(t); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `t as *const T as *const U` error: transmute from a pointer type (`*const T`) to a reference type (`&T`) --> $DIR/transmute.rs:32:17 | LL | let _: &T = std::mem::transmute(p); | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*p` | = note: `-D clippy::transmute-ptr-to-ref` implied by `-D warnings` error: transmute from a pointer type (`*mut T`) to a reference type (`&mut T`) --> $DIR/transmute.rs:35:21 | LL | let _: &mut T = std::mem::transmute(m); | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut *m` error: transmute from a pointer type (`*mut T`) to a reference type (`&T`) --> $DIR/transmute.rs:38:17 | LL | let _: &T = std::mem::transmute(m); | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*m` error: transmute from a pointer type (`*mut T`) to a reference type (`&mut T`) --> $DIR/transmute.rs:41:21 | LL | let _: &mut T = std::mem::transmute(p as *mut T); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut *(p as *mut T)` error: transmute from a pointer type (`*const U`) to a reference type (`&T`) --> $DIR/transmute.rs:44:17 | LL | let _: &T = std::mem::transmute(o); | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(o as *const T)` error: transmute from a pointer type (`*mut U`) to a reference type (`&mut T`) --> $DIR/transmute.rs:47:21 | LL | let _: &mut T = std::mem::transmute(om); | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut *(om as *mut T)` error: transmute from a pointer type (`*mut U`) to a reference type (`&T`) --> $DIR/transmute.rs:50:17 | LL | let _: &T = std::mem::transmute(om); | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(om as *const T)` error: transmute from a pointer type (`*const i32`) to a reference type (`&issue1231::Foo<'_, u8>`) --> $DIR/transmute.rs:61:32 | LL | let _: &Foo = unsafe { std::mem::transmute::<_, &Foo<_>>(raw) }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(raw as *const Foo<_>)` error: transmute from a pointer type (`*const i32`) to a reference type (`&issue1231::Foo<'_, &u8>`) --> $DIR/transmute.rs:63:33 | LL | let _: &Foo<&u8> = unsafe { std::mem::transmute::<_, &Foo<&_>>(raw) }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(raw as *const Foo<&_>)` error: transmute from a pointer type (`*const i32`) to a reference type (`&u8`) --> $DIR/transmute.rs:67:14 | LL | unsafe { std::mem::transmute::<_, Bar>(raw) }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(raw as *const u8)` error: transmute from a type (`std::vec::Vec`) to itself --> $DIR/transmute.rs:73:27 | LL | let _: Vec = core::intrinsics::transmute(my_vec()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: transmute from a type (`std::vec::Vec`) to itself --> $DIR/transmute.rs:75:27 | LL | let _: Vec = core::mem::transmute(my_vec()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: transmute from a type (`std::vec::Vec`) to itself --> $DIR/transmute.rs:77:27 | LL | let _: Vec = std::intrinsics::transmute(my_vec()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: transmute from a type (`std::vec::Vec`) to itself --> $DIR/transmute.rs:79:27 | LL | let _: Vec = std::mem::transmute(my_vec()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: transmute from a type (`std::vec::Vec`) to itself --> $DIR/transmute.rs:81:27 | LL | let _: Vec = my_transmute(my_vec()); | ^^^^^^^^^^^^^^^^^^^^^^ error: transmute from an integer to a pointer --> $DIR/transmute.rs:89:31 | LL | let _: *const usize = std::mem::transmute(5_isize); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `5_isize as *const usize` error: transmute from an integer to a pointer --> $DIR/transmute.rs:93:31 | LL | let _: *const usize = std::mem::transmute(1 + 1usize); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(1 + 1usize) as *const usize` error: transmute from a type (`*const Usize`) to the type that it points to (`Usize`) --> $DIR/transmute.rs:108:24 | LL | let _: Usize = core::intrinsics::transmute(int_const_ptr); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::crosspointer-transmute` implied by `-D warnings` error: transmute from a type (`*mut Usize`) to the type that it points to (`Usize`) --> $DIR/transmute.rs:110:24 | LL | let _: Usize = core::intrinsics::transmute(int_mut_ptr); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: transmute from a type (`Usize`) to a pointer to that type (`*const Usize`) --> $DIR/transmute.rs:112:31 | LL | let _: *const Usize = core::intrinsics::transmute(my_int()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: transmute from a type (`Usize`) to a pointer to that type (`*mut Usize`) --> $DIR/transmute.rs:114:29 | LL | let _: *mut Usize = core::intrinsics::transmute(my_int()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: transmute from a `u32` to a `char` --> $DIR/transmute.rs:120:28 | LL | let _: char = unsafe { std::mem::transmute(0_u32) }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::char::from_u32(0_u32).unwrap()` | = note: `-D clippy::transmute-int-to-char` implied by `-D warnings` error: transmute from a `i32` to a `char` --> $DIR/transmute.rs:121:28 | LL | let _: char = unsafe { std::mem::transmute(0_i32) }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::char::from_u32(0_i32 as u32).unwrap()` error: transmute from a `u8` to a `bool` --> $DIR/transmute.rs:126:28 | LL | let _: bool = unsafe { std::mem::transmute(0_u8) }; | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `0_u8 != 0` | = note: `-D clippy::transmute-int-to-bool` implied by `-D warnings` error: transmute from a `u32` to a `f32` --> $DIR/transmute.rs:131:27 | LL | let _: f32 = unsafe { std::mem::transmute(0_u32) }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `f32::from_bits(0_u32)` | = note: `-D clippy::transmute-int-to-float` implied by `-D warnings` error: transmute from a `i32` to a `f32` --> $DIR/transmute.rs:132:27 | LL | let _: f32 = unsafe { std::mem::transmute(0_i32) }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `f32::from_bits(0_i32 as u32)` error: transmute from a `&[u8]` to a `&str` --> $DIR/transmute.rs:136:28 | LL | let _: &str = unsafe { std::mem::transmute(b) }; | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::str::from_utf8(b).unwrap()` | = note: `-D clippy::transmute-bytes-to-str` implied by `-D warnings` error: transmute from a `&mut [u8]` to a `&mut str` --> $DIR/transmute.rs:137:32 | LL | let _: &mut str = unsafe { std::mem::transmute(mb) }; | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::str::from_utf8_mut(mb).unwrap()` error: transmute from a pointer to a pointer --> $DIR/transmute.rs:169:29 | LL | let _: *const f32 = std::mem::transmute(ptr); | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ptr as *const f32` | = note: `-D clippy::transmute-ptr-to-ptr` implied by `-D warnings` error: transmute from a pointer to a pointer --> $DIR/transmute.rs:170:27 | LL | let _: *mut f32 = std::mem::transmute(mut_ptr); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `mut_ptr as *mut f32` error: transmute from a reference to a reference --> $DIR/transmute.rs:172:23 | LL | let _: &f32 = std::mem::transmute(&1u32); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(&1u32 as *const u32 as *const f32)` error: transmute from a reference to a reference --> $DIR/transmute.rs:173:23 | LL | let _: &f64 = std::mem::transmute(&1f32); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(&1f32 as *const f32 as *const f64)` error: transmute from a reference to a reference --> $DIR/transmute.rs:176:27 | LL | let _: &mut f32 = std::mem::transmute(&mut 1u32); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut *(&mut 1u32 as *mut u32 as *mut f32)` error: transmute from a reference to a reference --> $DIR/transmute.rs:177:37 | LL | let _: &GenericParam = std::mem::transmute(&GenericParam { t: 1u32 }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(&GenericParam { t: 1u32 } as *const GenericParam as *const GenericParam)` error: aborting due to 38 previous errors diff of stderr: -error: transmute from a type (`&'a T`) to itself - --> $DIR/transmute.rs:19:20 - | -LL | let _: &'a T = core::intrinsics::transmute(t); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::useless-transmute` implied by `-D warnings` - -error: transmute from a reference to a pointer - --> $DIR/transmute.rs:23:23 - | -LL | let _: *const T = core::intrinsics::transmute(t); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `t as *const T` - -error: transmute from a reference to a pointer - --> $DIR/transmute.rs:25:21 - | -LL | let _: *mut T = core::intrinsics::transmute(t); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `t as *const T as *mut T` - -error: transmute from a reference to a pointer - --> $DIR/transmute.rs:27:23 - | -LL | let _: *const U = core::intrinsics::transmute(t); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `t as *const T as *const U` - -error: transmute from a pointer type (`*const T`) to a reference type (`&T`) - --> $DIR/transmute.rs:32:17 - | -LL | let _: &T = std::mem::transmute(p); - | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*p` - | - = note: `-D clippy::transmute-ptr-to-ref` implied by `-D warnings` - -error: transmute from a pointer type (`*mut T`) to a reference type (`&mut T`) - --> $DIR/transmute.rs:35:21 - | -LL | let _: &mut T = std::mem::transmute(m); - | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut *m` - -error: transmute from a pointer type (`*mut T`) to a reference type (`&T`) - --> $DIR/transmute.rs:38:17 - | -LL | let _: &T = std::mem::transmute(m); - | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*m` - -error: transmute from a pointer type (`*mut T`) to a reference type (`&mut T`) - --> $DIR/transmute.rs:41:21 - | -LL | let _: &mut T = std::mem::transmute(p as *mut T); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut *(p as *mut T)` - -error: transmute from a pointer type (`*const U`) to a reference type (`&T`) - --> $DIR/transmute.rs:44:17 - | -LL | let _: &T = std::mem::transmute(o); - | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(o as *const T)` - -error: transmute from a pointer type (`*mut U`) to a reference type (`&mut T`) - --> $DIR/transmute.rs:47:21 - | -LL | let _: &mut T = std::mem::transmute(om); - | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut *(om as *mut T)` - -error: transmute from a pointer type (`*mut U`) to a reference type (`&T`) - --> $DIR/transmute.rs:50:17 - | -LL | let _: &T = std::mem::transmute(om); - | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(om as *const T)` - -error: transmute from a pointer type (`*const i32`) to a reference type (`&issue1231::Foo<'_, u8>`) - --> $DIR/transmute.rs:61:32 - | -LL | let _: &Foo = unsafe { std::mem::transmute::<_, &Foo<_>>(raw) }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(raw as *const Foo<_>)` - -error: transmute from a pointer type (`*const i32`) to a reference type (`&issue1231::Foo<'_, &u8>`) - --> $DIR/transmute.rs:63:33 - | -LL | let _: &Foo<&u8> = unsafe { std::mem::transmute::<_, &Foo<&_>>(raw) }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(raw as *const Foo<&_>)` - -error: transmute from a pointer type (`*const i32`) to a reference type (`&u8`) - --> $DIR/transmute.rs:67:14 - | -LL | unsafe { std::mem::transmute::<_, Bar>(raw) }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(raw as *const u8)` - -error: transmute from a type (`std::vec::Vec`) to itself - --> $DIR/transmute.rs:73:27 - | -LL | let _: Vec = core::intrinsics::transmute(my_vec()); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: transmute from a type (`std::vec::Vec`) to itself - --> $DIR/transmute.rs:75:27 - | -LL | let _: Vec = core::mem::transmute(my_vec()); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: transmute from a type (`std::vec::Vec`) to itself - --> $DIR/transmute.rs:77:27 - | -LL | let _: Vec = std::intrinsics::transmute(my_vec()); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: transmute from a type (`std::vec::Vec`) to itself - --> $DIR/transmute.rs:79:27 - | -LL | let _: Vec = std::mem::transmute(my_vec()); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: transmute from a type (`std::vec::Vec`) to itself - --> $DIR/transmute.rs:81:27 - | -LL | let _: Vec = my_transmute(my_vec()); - | ^^^^^^^^^^^^^^^^^^^^^^ - -error: transmute from an integer to a pointer - --> $DIR/transmute.rs:89:31 - | -LL | let _: *const usize = std::mem::transmute(5_isize); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `5_isize as *const usize` - -error: transmute from an integer to a pointer - --> $DIR/transmute.rs:93:31 - | -LL | let _: *const usize = std::mem::transmute(1 + 1usize); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(1 + 1usize) as *const usize` - -error: transmute from a type (`*const Usize`) to the type that it points to (`Usize`) - --> $DIR/transmute.rs:108:24 - | -LL | let _: Usize = core::intrinsics::transmute(int_const_ptr); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::crosspointer-transmute` implied by `-D warnings` - -error: transmute from a type (`*mut Usize`) to the type that it points to (`Usize`) - --> $DIR/transmute.rs:110:24 - | -LL | let _: Usize = core::intrinsics::transmute(int_mut_ptr); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: transmute from a type (`Usize`) to a pointer to that type (`*const Usize`) - --> $DIR/transmute.rs:112:31 - | -LL | let _: *const Usize = core::intrinsics::transmute(my_int()); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: transmute from a type (`Usize`) to a pointer to that type (`*mut Usize`) - --> $DIR/transmute.rs:114:29 - | -LL | let _: *mut Usize = core::intrinsics::transmute(my_int()); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: transmute from a `u32` to a `char` - --> $DIR/transmute.rs:120:28 - | -LL | let _: char = unsafe { std::mem::transmute(0_u32) }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::char::from_u32(0_u32).unwrap()` - | - = note: `-D clippy::transmute-int-to-char` implied by `-D warnings` - -error: transmute from a `i32` to a `char` - --> $DIR/transmute.rs:121:28 - | -LL | let _: char = unsafe { std::mem::transmute(0_i32) }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::char::from_u32(0_i32 as u32).unwrap()` - -error: transmute from a `u8` to a `bool` - --> $DIR/transmute.rs:126:28 - | -LL | let _: bool = unsafe { std::mem::transmute(0_u8) }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `0_u8 != 0` - | - = note: `-D clippy::transmute-int-to-bool` implied by `-D warnings` - -error: transmute from a `u32` to a `f32` - --> $DIR/transmute.rs:131:27 - | -LL | let _: f32 = unsafe { std::mem::transmute(0_u32) }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `f32::from_bits(0_u32)` - | - = note: `-D clippy::transmute-int-to-float` implied by `-D warnings` - -error: transmute from a `i32` to a `f32` - --> $DIR/transmute.rs:132:27 - | -LL | let _: f32 = unsafe { std::mem::transmute(0_i32) }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `f32::from_bits(0_i32 as u32)` - -error: transmute from a `&[u8]` to a `&str` - --> $DIR/transmute.rs:136:28 - | -LL | let _: &str = unsafe { std::mem::transmute(b) }; - | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::str::from_utf8(b).unwrap()` - | - = note: `-D clippy::transmute-bytes-to-str` implied by `-D warnings` - -error: transmute from a `&mut [u8]` to a `&mut str` - --> $DIR/transmute.rs:137:32 - | -LL | let _: &mut str = unsafe { std::mem::transmute(mb) }; - | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::str::from_utf8_mut(mb).unwrap()` - -error: transmute from a pointer to a pointer - --> $DIR/transmute.rs:169:29 - | -LL | let _: *const f32 = std::mem::transmute(ptr); - | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ptr as *const f32` - | - = note: `-D clippy::transmute-ptr-to-ptr` implied by `-D warnings` - -error: transmute from a pointer to a pointer - --> $DIR/transmute.rs:170:27 - | -LL | let _: *mut f32 = std::mem::transmute(mut_ptr); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `mut_ptr as *mut f32` - -error: transmute from a reference to a reference - --> $DIR/transmute.rs:172:23 - | -LL | let _: &f32 = std::mem::transmute(&1u32); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(&1u32 as *const u32 as *const f32)` - -error: transmute from a reference to a reference - --> $DIR/transmute.rs:173:23 - | -LL | let _: &f64 = std::mem::transmute(&1f32); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(&1f32 as *const f32 as *const f64)` - -error: transmute from a reference to a reference - --> $DIR/transmute.rs:176:27 - | -LL | let _: &mut f32 = std::mem::transmute(&mut 1u32); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut *(&mut 1u32 as *mut u32 as *mut f32)` - -error: transmute from a reference to a reference - --> $DIR/transmute.rs:177:37 - | -LL | let _: &GenericParam = std::mem::transmute(&GenericParam { t: 1u32 }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(&GenericParam { t: 1u32 } as *const GenericParam as *const GenericParam)` - -error: aborting due to 38 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/transmute.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'transmute.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/transmute.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/transmute.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/transmute.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/transmute.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/transmute_32bit.rs stdout ---- normalized stderr: error: lint name `wrong_transmute` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore --> $DIR/transmute_32bit.rs:3:8 | LL | #[warn(wrong_transmute)] | ^^^^^^^^^^^^^^^ help: change it to: `clippy::wrong_transmute` | = note: `-D renamed-and-removed-lints` implied by `-D warnings` error: lint name `wrong_transmute` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore --> $DIR/transmute_32bit.rs:3:8 | LL | #[warn(wrong_transmute)] | ^^^^^^^^^^^^^^^ help: change it to: `clippy::wrong_transmute` expected stderr: diff of stderr: +error: lint name `wrong_transmute` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore + --> $DIR/transmute_32bit.rs:3:8 + | +LL | #[warn(wrong_transmute)] + | ^^^^^^^^^^^^^^^ help: change it to: `clippy::wrong_transmute` + | + = note: `-D renamed-and-removed-lints` implied by `-D warnings` + +error: lint name `wrong_transmute` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore + --> $DIR/transmute_32bit.rs:3:8 + | +LL | #[warn(wrong_transmute)] + | ^^^^^^^^^^^^^^^ help: change it to: `clippy::wrong_transmute` + + The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/transmute_32bit.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'transmute_32bit.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/transmute_32bit.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/transmute_32bit.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/transmute_32bit.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ {"message":"lint name `wrong_transmute` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore","code":{"code":"renamed_and_removed_lints","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/transmute_32bit.rs","byte_start":24,"byte_end":39,"line_start":3,"line_end":3,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"#[warn(wrong_transmute)]","highlight_start":8,"highlight_end":23}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D renamed-and-removed-lints` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"change it to","code":null,"level":"help","spans":[{"file_name":"tests/ui/transmute_32bit.rs","byte_start":24,"byte_end":39,"line_start":3,"line_end":3,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"#[warn(wrong_transmute)]","highlight_start":8,"highlight_end":23}],"label":null,"suggested_replacement":"clippy::wrong_transmute","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: lint name `wrong_transmute` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore\n --> tests/ui/transmute_32bit.rs:3:8\n |\nLL | #[warn(wrong_transmute)]\n | ^^^^^^^^^^^^^^^ help: change it to: `clippy::wrong_transmute`\n |\n = note: `-D renamed-and-removed-lints` implied by `-D warnings`\n\n"} {"message":"lint name `wrong_transmute` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore","code":{"code":"renamed_and_removed_lints","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/transmute_32bit.rs","byte_start":24,"byte_end":39,"line_start":3,"line_end":3,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"#[warn(wrong_transmute)]","highlight_start":8,"highlight_end":23}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"change it to","code":null,"level":"help","spans":[{"file_name":"tests/ui/transmute_32bit.rs","byte_start":24,"byte_end":39,"line_start":3,"line_end":3,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"#[warn(wrong_transmute)]","highlight_start":8,"highlight_end":23}],"label":null,"suggested_replacement":"clippy::wrong_transmute","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: lint name `wrong_transmute` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore\n --> tests/ui/transmute_32bit.rs:3:8\n |\nLL | #[warn(wrong_transmute)]\n | ^^^^^^^^^^^^^^^ help: change it to: `clippy::wrong_transmute`\n\n"} ------------------------------------------ thread '[ui] ui/transmute_32bit.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/transmuting_null.rs stdout ---- normalized stderr: expected stderr: error: transmuting a known null pointer into a reference. --> $DIR/transmuting_null.rs:10:23 | LL | let _: &u64 = std::mem::transmute(0 as *const u64); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::transmuting-null` implied by `-D warnings` error: transmuting a known null pointer into a reference. --> $DIR/transmuting_null.rs:11:23 | LL | let _: &u64 = std::mem::transmute(std::ptr::null::()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: transmuting a known null pointer into a reference. --> $DIR/transmuting_null.rs:21:23 | LL | let _: &u64 = std::mem::transmute(ZPTR); | ^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 3 previous errors diff of stderr: -error: transmuting a known null pointer into a reference. - --> $DIR/transmuting_null.rs:10:23 - | -LL | let _: &u64 = std::mem::transmute(0 as *const u64); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::transmuting-null` implied by `-D warnings` - -error: transmuting a known null pointer into a reference. - --> $DIR/transmuting_null.rs:11:23 - | -LL | let _: &u64 = std::mem::transmute(std::ptr::null::()); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: transmuting a known null pointer into a reference. - --> $DIR/transmuting_null.rs:21:23 - | -LL | let _: &u64 = std::mem::transmute(ZPTR); - | ^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: aborting due to 3 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/transmuting_null.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'transmuting_null.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/transmuting_null.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/transmuting_null.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/transmuting_null.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/transmuting_null.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/trivially_copy_pass_by_ref.rs stdout ---- normalized stderr: expected stderr: error: this argument is passed by reference, but would be more efficient if passed by value --> $DIR/trivially_copy_pass_by_ref.rs:47:11 | LL | fn bad(x: &u32, y: &Foo, z: &Baz) {} | ^^^^ help: consider passing by value instead: `u32` | = note: `-D clippy::trivially-copy-pass-by-ref` implied by `-D warnings` error: this argument is passed by reference, but would be more efficient if passed by value --> $DIR/trivially_copy_pass_by_ref.rs:47:20 | LL | fn bad(x: &u32, y: &Foo, z: &Baz) {} | ^^^^ help: consider passing by value instead: `Foo` error: this argument is passed by reference, but would be more efficient if passed by value --> $DIR/trivially_copy_pass_by_ref.rs:47:29 | LL | fn bad(x: &u32, y: &Foo, z: &Baz) {} | ^^^^ help: consider passing by value instead: `Baz` error: this argument is passed by reference, but would be more efficient if passed by value --> $DIR/trivially_copy_pass_by_ref.rs:54:12 | LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {} | ^^^^^ help: consider passing by value instead: `self` error: this argument is passed by reference, but would be more efficient if passed by value --> $DIR/trivially_copy_pass_by_ref.rs:54:22 | LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {} | ^^^^ help: consider passing by value instead: `u32` error: this argument is passed by reference, but would be more efficient if passed by value --> $DIR/trivially_copy_pass_by_ref.rs:54:31 | LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {} | ^^^^ help: consider passing by value instead: `Foo` error: this argument is passed by reference, but would be more efficient if passed by value --> $DIR/trivially_copy_pass_by_ref.rs:54:40 | LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {} | ^^^^ help: consider passing by value instead: `Baz` error: this argument is passed by reference, but would be more efficient if passed by value --> $DIR/trivially_copy_pass_by_ref.rs:56:16 | LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {} | ^^^^ help: consider passing by value instead: `u32` error: this argument is passed by reference, but would be more efficient if passed by value --> $DIR/trivially_copy_pass_by_ref.rs:56:25 | LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {} | ^^^^ help: consider passing by value instead: `Foo` error: this argument is passed by reference, but would be more efficient if passed by value --> $DIR/trivially_copy_pass_by_ref.rs:56:34 | LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {} | ^^^^ help: consider passing by value instead: `Baz` error: this argument is passed by reference, but would be more efficient if passed by value --> $DIR/trivially_copy_pass_by_ref.rs:68:16 | LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {} | ^^^^ help: consider passing by value instead: `u32` error: this argument is passed by reference, but would be more efficient if passed by value --> $DIR/trivially_copy_pass_by_ref.rs:68:25 | LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {} | ^^^^ help: consider passing by value instead: `Foo` error: this argument is passed by reference, but would be more efficient if passed by value --> $DIR/trivially_copy_pass_by_ref.rs:68:34 | LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {} | ^^^^ help: consider passing by value instead: `Baz` error: this argument is passed by reference, but would be more efficient if passed by value --> $DIR/trivially_copy_pass_by_ref.rs:72:34 | LL | fn trait_method(&self, _foo: &Foo); | ^^^^ help: consider passing by value instead: `Foo` error: this argument is passed by reference, but would be more efficient if passed by value --> $DIR/trivially_copy_pass_by_ref.rs:76:37 | LL | fn trait_method2(&self, _color: &Color); | ^^^^^^ help: consider passing by value instead: `Color` error: aborting due to 15 previous errors diff of stderr: -error: this argument is passed by reference, but would be more efficient if passed by value - --> $DIR/trivially_copy_pass_by_ref.rs:47:11 - | -LL | fn bad(x: &u32, y: &Foo, z: &Baz) {} - | ^^^^ help: consider passing by value instead: `u32` - | - = note: `-D clippy::trivially-copy-pass-by-ref` implied by `-D warnings` - -error: this argument is passed by reference, but would be more efficient if passed by value - --> $DIR/trivially_copy_pass_by_ref.rs:47:20 - | -LL | fn bad(x: &u32, y: &Foo, z: &Baz) {} - | ^^^^ help: consider passing by value instead: `Foo` - -error: this argument is passed by reference, but would be more efficient if passed by value - --> $DIR/trivially_copy_pass_by_ref.rs:47:29 - | -LL | fn bad(x: &u32, y: &Foo, z: &Baz) {} - | ^^^^ help: consider passing by value instead: `Baz` - -error: this argument is passed by reference, but would be more efficient if passed by value - --> $DIR/trivially_copy_pass_by_ref.rs:54:12 - | -LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {} - | ^^^^^ help: consider passing by value instead: `self` - -error: this argument is passed by reference, but would be more efficient if passed by value - --> $DIR/trivially_copy_pass_by_ref.rs:54:22 - | -LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {} - | ^^^^ help: consider passing by value instead: `u32` - -error: this argument is passed by reference, but would be more efficient if passed by value - --> $DIR/trivially_copy_pass_by_ref.rs:54:31 - | -LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {} - | ^^^^ help: consider passing by value instead: `Foo` - -error: this argument is passed by reference, but would be more efficient if passed by value - --> $DIR/trivially_copy_pass_by_ref.rs:54:40 - | -LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {} - | ^^^^ help: consider passing by value instead: `Baz` - -error: this argument is passed by reference, but would be more efficient if passed by value - --> $DIR/trivially_copy_pass_by_ref.rs:56:16 - | -LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {} - | ^^^^ help: consider passing by value instead: `u32` - -error: this argument is passed by reference, but would be more efficient if passed by value - --> $DIR/trivially_copy_pass_by_ref.rs:56:25 - | -LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {} - | ^^^^ help: consider passing by value instead: `Foo` - -error: this argument is passed by reference, but would be more efficient if passed by value - --> $DIR/trivially_copy_pass_by_ref.rs:56:34 - | -LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {} - | ^^^^ help: consider passing by value instead: `Baz` - -error: this argument is passed by reference, but would be more efficient if passed by value - --> $DIR/trivially_copy_pass_by_ref.rs:68:16 - | -LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {} - | ^^^^ help: consider passing by value instead: `u32` - -error: this argument is passed by reference, but would be more efficient if passed by value - --> $DIR/trivially_copy_pass_by_ref.rs:68:25 - | -LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {} - | ^^^^ help: consider passing by value instead: `Foo` - -error: this argument is passed by reference, but would be more efficient if passed by value - --> $DIR/trivially_copy_pass_by_ref.rs:68:34 - | -LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {} - | ^^^^ help: consider passing by value instead: `Baz` - -error: this argument is passed by reference, but would be more efficient if passed by value - --> $DIR/trivially_copy_pass_by_ref.rs:72:34 - | -LL | fn trait_method(&self, _foo: &Foo); - | ^^^^ help: consider passing by value instead: `Foo` - -error: this argument is passed by reference, but would be more efficient if passed by value - --> $DIR/trivially_copy_pass_by_ref.rs:76:37 - | -LL | fn trait_method2(&self, _color: &Color); - | ^^^^^^ help: consider passing by value instead: `Color` - -error: aborting due to 15 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/trivially_copy_pass_by_ref.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'trivially_copy_pass_by_ref.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/trivially_copy_pass_by_ref.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/trivially_copy_pass_by_ref.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/trivially_copy_pass_by_ref.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/trivially_copy_pass_by_ref.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/unit_arg.rs stdout ---- normalized stderr: expected stderr: error: passing a unit value to a function --> $DIR/unit_arg.rs:24:9 | LL | foo({}); | ^^ | = note: `-D clippy::unit-arg` implied by `-D warnings` help: if you intended to pass a unit value, use a unit literal instead | LL | foo(()); | ^^ error: passing a unit value to a function --> $DIR/unit_arg.rs:25:9 | LL | foo({ | _________^ LL | | 1; LL | | }); | |_____^ help: if you intended to pass a unit value, use a unit literal instead | LL | foo(()); | ^^ error: passing a unit value to a function --> $DIR/unit_arg.rs:28:9 | LL | foo(foo(1)); | ^^^^^^ help: if you intended to pass a unit value, use a unit literal instead | LL | foo(()); | ^^ error: passing a unit value to a function --> $DIR/unit_arg.rs:29:9 | LL | foo({ | _________^ LL | | foo(1); LL | | foo(2); LL | | }); | |_____^ help: if you intended to pass a unit value, use a unit literal instead | LL | foo(()); | ^^ error: passing a unit value to a function --> $DIR/unit_arg.rs:33:10 | LL | foo3({}, 2, 2); | ^^ help: if you intended to pass a unit value, use a unit literal instead | LL | foo3((), 2, 2); | ^^ error: passing a unit value to a function --> $DIR/unit_arg.rs:35:11 | LL | b.bar({ | ___________^ LL | | 1; LL | | }); | |_____^ help: if you intended to pass a unit value, use a unit literal instead | LL | b.bar(()); | ^^ error: aborting due to 6 previous errors diff of stderr: -error: passing a unit value to a function - --> $DIR/unit_arg.rs:24:9 - | -LL | foo({}); - | ^^ - | - = note: `-D clippy::unit-arg` implied by `-D warnings` -help: if you intended to pass a unit value, use a unit literal instead - | -LL | foo(()); - | ^^ - -error: passing a unit value to a function - --> $DIR/unit_arg.rs:25:9 - | -LL | foo({ - | _________^ -LL | | 1; -LL | | }); - | |_____^ -help: if you intended to pass a unit value, use a unit literal instead - | -LL | foo(()); - | ^^ - -error: passing a unit value to a function - --> $DIR/unit_arg.rs:28:9 - | -LL | foo(foo(1)); - | ^^^^^^ -help: if you intended to pass a unit value, use a unit literal instead - | -LL | foo(()); - | ^^ - -error: passing a unit value to a function - --> $DIR/unit_arg.rs:29:9 - | -LL | foo({ - | _________^ -LL | | foo(1); -LL | | foo(2); -LL | | }); - | |_____^ -help: if you intended to pass a unit value, use a unit literal instead - | -LL | foo(()); - | ^^ - -error: passing a unit value to a function - --> $DIR/unit_arg.rs:33:10 - | -LL | foo3({}, 2, 2); - | ^^ -help: if you intended to pass a unit value, use a unit literal instead - | -LL | foo3((), 2, 2); - | ^^ - -error: passing a unit value to a function - --> $DIR/unit_arg.rs:35:11 - | -LL | b.bar({ - | ___________^ -LL | | 1; -LL | | }); - | |_____^ -help: if you intended to pass a unit value, use a unit literal instead - | -LL | b.bar(()); - | ^^ - -error: aborting due to 6 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unit_arg.stderr normalized fixed: // run-rustfix #![warn(clippy::unit_arg)] #![allow(clippy::no_effect, unused_must_use)] use std::fmt::Debug; fn foo(t: T) { println!("{:?}", t); } fn foo3(t1: T1, t2: T2, t3: T3) { println!("{:?}, {:?}, {:?}", t1, t2, t3); } struct Bar; impl Bar { fn bar(&self, t: T) { println!("{:?}", t); } } fn bad() { foo({}); foo({ 1; }); foo(foo(1)); foo({ foo(1); foo(2); }); foo3({}, 2, 2); let b = Bar; b.bar({ 1; }); } fn ok() { foo(()); foo(1); foo({ 1 }); foo3("a", 3, vec![3]); let b = Bar; b.bar({ 1 }); b.bar(()); question_mark(); } fn question_mark() -> Result<(), ()> { Ok(Ok(())?)?; Ok(Ok(()))??; Ok(()) } #[allow(dead_code)] mod issue_2945 { fn unit_fn() -> Result<(), i32> { Ok(()) } fn fallible() -> Result<(), i32> { Ok(unit_fn()?) } } fn main() { bad(); ok(); } expected fixed: // run-rustfix #![warn(clippy::unit_arg)] #![allow(clippy::no_effect, unused_must_use)] use std::fmt::Debug; fn foo(t: T) { println!("{:?}", t); } fn foo3(t1: T1, t2: T2, t3: T3) { println!("{:?}, {:?}, {:?}", t1, t2, t3); } struct Bar; impl Bar { fn bar(&self, t: T) { println!("{:?}", t); } } fn bad() { foo(()); foo(()); foo(()); foo(()); foo3((), 2, 2); let b = Bar; b.bar(()); } fn ok() { foo(()); foo(1); foo({ 1 }); foo3("a", 3, vec![3]); let b = Bar; b.bar({ 1 }); b.bar(()); question_mark(); } fn question_mark() -> Result<(), ()> { Ok(Ok(())?)?; Ok(Ok(()))??; Ok(()) } #[allow(dead_code)] mod issue_2945 { fn unit_fn() -> Result<(), i32> { Ok(()) } fn fallible() -> Result<(), i32> { Ok(unit_fn()?) } } fn main() { bad(); ok(); } diff of fixed: // run-rustfix #![warn(clippy::unit_arg)] #![allow(clippy::no_effect, unused_must_use)] use std::fmt::Debug; fn foo(t: T) { println!("{:?}", t); } fn foo3(t1: T1, t2: T2, t3: T3) { println!("{:?}, {:?}, {:?}", t1, t2, t3); } struct Bar; impl Bar { fn bar(&self, t: T) { println!("{:?}", t); } } fn bad() { - foo(()); - foo(()); - foo(()); - foo(()); - foo3((), 2, 2); + foo({}); + foo({ + 1; + }); + foo(foo(1)); + foo({ + foo(1); + foo(2); + }); + foo3({}, 2, 2); let b = Bar; - b.bar(()); + b.bar({ + 1; + }); } fn ok() { foo(()); foo(1); foo({ 1 }); foo3("a", 3, vec![3]); let b = Bar; b.bar({ 1 }); b.bar(()); question_mark(); } fn question_mark() -> Result<(), ()> { Ok(Ok(())?)?; Ok(Ok(()))??; Ok(()) } #[allow(dead_code)] mod issue_2945 { fn unit_fn() -> Result<(), i32> { Ok(()) } fn fallible() -> Result<(), i32> { Ok(unit_fn()?) } } fn main() { bad(); ok(); } The actual fixed differed from the expected fixed. Actual fixed saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unit_arg.fixed To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'unit_arg.rs' error: 2 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/unit_arg.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unit_arg.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unit_arg.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/unit_arg.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/unnecessary_operation.rs stdout ---- normalized stderr: expected stderr: error: statement can be reduced --> $DIR/unnecessary_operation.rs:45:5 | LL | Tuple(get_number()); | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();` | = note: `-D clippy::unnecessary-operation` implied by `-D warnings` error: statement can be reduced --> $DIR/unnecessary_operation.rs:46:5 | LL | Struct { field: get_number() }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:47:5 | LL | Struct { ..get_struct() }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_struct();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:48:5 | LL | Enum::Tuple(get_number()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:49:5 | LL | Enum::Struct { field: get_number() }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:50:5 | LL | 5 + get_number(); | ^^^^^^^^^^^^^^^^^ help: replace it with: `5;get_number();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:51:5 | LL | *&get_number(); | ^^^^^^^^^^^^^^^ help: replace it with: `get_number();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:52:5 | LL | &get_number(); | ^^^^^^^^^^^^^^ help: replace it with: `get_number();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:53:5 | LL | (5, 6, get_number()); | ^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `5;6;get_number();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:54:5 | LL | box get_number(); | ^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:55:5 | LL | get_number()..; | ^^^^^^^^^^^^^^^ help: replace it with: `get_number();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:56:5 | LL | ..get_number(); | ^^^^^^^^^^^^^^^ help: replace it with: `get_number();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:57:5 | LL | 5..get_number(); | ^^^^^^^^^^^^^^^^ help: replace it with: `5;get_number();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:58:5 | LL | [42, get_number()]; | ^^^^^^^^^^^^^^^^^^^ help: replace it with: `42;get_number();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:59:5 | LL | [42, 55][get_number() as usize]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `[42, 55];get_number() as usize;` error: statement can be reduced --> $DIR/unnecessary_operation.rs:60:5 | LL | (42, get_number()).1; | ^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `42;get_number();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:61:5 | LL | [get_number(); 55]; | ^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:62:5 | LL | [42; 55][get_number() as usize]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `[42; 55];get_number() as usize;` error: statement can be reduced --> $DIR/unnecessary_operation.rs:63:5 | LL | / { LL | | get_number() LL | | }; | |______^ help: replace it with: `get_number();` error: statement can be reduced --> $DIR/unnecessary_operation.rs:66:5 | LL | / FooString { LL | | s: String::from("blah"), LL | | }; | |______^ help: replace it with: `String::from("blah");` error: aborting due to 20 previous errors diff of stderr: -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:45:5 - | -LL | Tuple(get_number()); - | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();` - | - = note: `-D clippy::unnecessary-operation` implied by `-D warnings` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:46:5 - | -LL | Struct { field: get_number() }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:47:5 - | -LL | Struct { ..get_struct() }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_struct();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:48:5 - | -LL | Enum::Tuple(get_number()); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:49:5 - | -LL | Enum::Struct { field: get_number() }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:50:5 - | -LL | 5 + get_number(); - | ^^^^^^^^^^^^^^^^^ help: replace it with: `5;get_number();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:51:5 - | -LL | *&get_number(); - | ^^^^^^^^^^^^^^^ help: replace it with: `get_number();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:52:5 - | -LL | &get_number(); - | ^^^^^^^^^^^^^^ help: replace it with: `get_number();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:53:5 - | -LL | (5, 6, get_number()); - | ^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `5;6;get_number();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:54:5 - | -LL | box get_number(); - | ^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:55:5 - | -LL | get_number()..; - | ^^^^^^^^^^^^^^^ help: replace it with: `get_number();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:56:5 - | -LL | ..get_number(); - | ^^^^^^^^^^^^^^^ help: replace it with: `get_number();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:57:5 - | -LL | 5..get_number(); - | ^^^^^^^^^^^^^^^^ help: replace it with: `5;get_number();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:58:5 - | -LL | [42, get_number()]; - | ^^^^^^^^^^^^^^^^^^^ help: replace it with: `42;get_number();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:59:5 - | -LL | [42, 55][get_number() as usize]; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `[42, 55];get_number() as usize;` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:60:5 - | -LL | (42, get_number()).1; - | ^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `42;get_number();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:61:5 - | -LL | [get_number(); 55]; - | ^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:62:5 - | -LL | [42; 55][get_number() as usize]; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `[42; 55];get_number() as usize;` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:63:5 - | -LL | / { -LL | | get_number() -LL | | }; - | |______^ help: replace it with: `get_number();` - -error: statement can be reduced - --> $DIR/unnecessary_operation.rs:66:5 - | -LL | / FooString { -LL | | s: String::from("blah"), -LL | | }; - | |______^ help: replace it with: `String::from("blah");` - -error: aborting due to 20 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unnecessary_operation.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'unnecessary_operation.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/unnecessary_operation.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unnecessary_operation.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unnecessary_operation.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/unnecessary_operation.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/unnecessary_clone.rs stdout ---- normalized stderr: expected stderr: error: using `clone` on a `Copy` type --> $DIR/unnecessary_clone.rs:17:5 | LL | 42.clone(); | ^^^^^^^^^^ help: try removing the `clone` call: `42` | = note: `-D clippy::clone-on-copy` implied by `-D warnings` error: using `clone` on a `Copy` type --> $DIR/unnecessary_clone.rs:21:5 | LL | (&42).clone(); | ^^^^^^^^^^^^^ help: try dereferencing it: `*(&42)` error: using `clone` on a `Copy` type --> $DIR/unnecessary_clone.rs:24:5 | LL | rc.borrow().clone(); | ^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*rc.borrow()` error: using '.clone()' on a ref-counted pointer --> $DIR/unnecessary_clone.rs:34:5 | LL | rc.clone(); | ^^^^^^^^^^ help: try this: `Rc::::clone(&rc)` | = note: `-D clippy::clone-on-ref-ptr` implied by `-D warnings` error: using '.clone()' on a ref-counted pointer --> $DIR/unnecessary_clone.rs:37:5 | LL | arc.clone(); | ^^^^^^^^^^^ help: try this: `Arc::::clone(&arc)` error: using '.clone()' on a ref-counted pointer --> $DIR/unnecessary_clone.rs:40:5 | LL | rcweak.clone(); | ^^^^^^^^^^^^^^ help: try this: `Weak::::clone(&rcweak)` error: using '.clone()' on a ref-counted pointer --> $DIR/unnecessary_clone.rs:43:5 | LL | arc_weak.clone(); | ^^^^^^^^^^^^^^^^ help: try this: `Weak::::clone(&arc_weak)` error: using '.clone()' on a ref-counted pointer --> $DIR/unnecessary_clone.rs:47:29 | LL | let _: Arc = x.clone(); | ^^^^^^^^^ help: try this: `Arc::::clone(&x)` error: using `clone` on a `Copy` type --> $DIR/unnecessary_clone.rs:51:5 | LL | t.clone(); | ^^^^^^^^^ help: try removing the `clone` call: `t` error: using `clone` on a `Copy` type --> $DIR/unnecessary_clone.rs:53:5 | LL | Some(t).clone(); | ^^^^^^^^^^^^^^^ help: try removing the `clone` call: `Some(t)` error: using `clone` on a double-reference; this will copy the reference instead of cloning the inner type --> $DIR/unnecessary_clone.rs:59:22 | LL | let z: &Vec<_> = y.clone(); | ^^^^^^^^^ | = note: #[deny(clippy::clone_double_ref)] on by default help: try dereferencing it | LL | let z: &Vec<_> = &(*y).clone(); | ^^^^^^^^^^^^^ help: or try being explicit about what type to clone | LL | let z: &Vec<_> = &std::vec::Vec::clone(y); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: called `iter().cloned().collect()` on a slice to create a `Vec`. Calling `to_vec()` is both faster and more readable --> $DIR/unnecessary_clone.rs:66:27 | LL | let v2: Vec = v.iter().cloned().collect(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `.to_vec()` | = note: `-D clippy::iter-cloned-collect` implied by `-D warnings` error: called `iter().cloned().collect()` on a slice to create a `Vec`. Calling `to_vec()` is both faster and more readable --> $DIR/unnecessary_clone.rs:71:38 | LL | let _: Vec = vec![1, 2, 3].iter().cloned().collect(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `.to_vec()` error: called `iter().cloned().collect()` on a slice to create a `Vec`. Calling `to_vec()` is both faster and more readable --> $DIR/unnecessary_clone.rs:76:24 | LL | .to_bytes() | ________________________^ LL | | .iter() LL | | .cloned() LL | | .collect(); | |______________________^ help: try: `.to_vec()` error: using `clone` on a `Copy` type --> $DIR/unnecessary_clone.rs:114:20 | LL | let _: E = a.clone(); | ^^^^^^^^^ help: try dereferencing it: `*****a` error: aborting due to 15 previous errors diff of stderr: -error: using `clone` on a `Copy` type - --> $DIR/unnecessary_clone.rs:17:5 - | -LL | 42.clone(); - | ^^^^^^^^^^ help: try removing the `clone` call: `42` - | - = note: `-D clippy::clone-on-copy` implied by `-D warnings` - -error: using `clone` on a `Copy` type - --> $DIR/unnecessary_clone.rs:21:5 - | -LL | (&42).clone(); - | ^^^^^^^^^^^^^ help: try dereferencing it: `*(&42)` - -error: using `clone` on a `Copy` type - --> $DIR/unnecessary_clone.rs:24:5 - | -LL | rc.borrow().clone(); - | ^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*rc.borrow()` - -error: using '.clone()' on a ref-counted pointer - --> $DIR/unnecessary_clone.rs:34:5 - | -LL | rc.clone(); - | ^^^^^^^^^^ help: try this: `Rc::::clone(&rc)` - | - = note: `-D clippy::clone-on-ref-ptr` implied by `-D warnings` - -error: using '.clone()' on a ref-counted pointer - --> $DIR/unnecessary_clone.rs:37:5 - | -LL | arc.clone(); - | ^^^^^^^^^^^ help: try this: `Arc::::clone(&arc)` - -error: using '.clone()' on a ref-counted pointer - --> $DIR/unnecessary_clone.rs:40:5 - | -LL | rcweak.clone(); - | ^^^^^^^^^^^^^^ help: try this: `Weak::::clone(&rcweak)` - -error: using '.clone()' on a ref-counted pointer - --> $DIR/unnecessary_clone.rs:43:5 - | -LL | arc_weak.clone(); - | ^^^^^^^^^^^^^^^^ help: try this: `Weak::::clone(&arc_weak)` - -error: using '.clone()' on a ref-counted pointer - --> $DIR/unnecessary_clone.rs:47:29 - | -LL | let _: Arc = x.clone(); - | ^^^^^^^^^ help: try this: `Arc::::clone(&x)` - -error: using `clone` on a `Copy` type - --> $DIR/unnecessary_clone.rs:51:5 - | -LL | t.clone(); - | ^^^^^^^^^ help: try removing the `clone` call: `t` - -error: using `clone` on a `Copy` type - --> $DIR/unnecessary_clone.rs:53:5 - | -LL | Some(t).clone(); - | ^^^^^^^^^^^^^^^ help: try removing the `clone` call: `Some(t)` - -error: using `clone` on a double-reference; this will copy the reference instead of cloning the inner type - --> $DIR/unnecessary_clone.rs:59:22 - | -LL | let z: &Vec<_> = y.clone(); - | ^^^^^^^^^ - | - = note: #[deny(clippy::clone_double_ref)] on by default -help: try dereferencing it - | -LL | let z: &Vec<_> = &(*y).clone(); - | ^^^^^^^^^^^^^ -help: or try being explicit about what type to clone - | -LL | let z: &Vec<_> = &std::vec::Vec::clone(y); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: called `iter().cloned().collect()` on a slice to create a `Vec`. Calling `to_vec()` is both faster and more readable - --> $DIR/unnecessary_clone.rs:66:27 - | -LL | let v2: Vec = v.iter().cloned().collect(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `.to_vec()` - | - = note: `-D clippy::iter-cloned-collect` implied by `-D warnings` - -error: called `iter().cloned().collect()` on a slice to create a `Vec`. Calling `to_vec()` is both faster and more readable - --> $DIR/unnecessary_clone.rs:71:38 - | -LL | let _: Vec = vec![1, 2, 3].iter().cloned().collect(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `.to_vec()` - -error: called `iter().cloned().collect()` on a slice to create a `Vec`. Calling `to_vec()` is both faster and more readable - --> $DIR/unnecessary_clone.rs:76:24 - | -LL | .to_bytes() - | ________________________^ -LL | | .iter() -LL | | .cloned() -LL | | .collect(); - | |______________________^ help: try: `.to_vec()` - -error: using `clone` on a `Copy` type - --> $DIR/unnecessary_clone.rs:114:20 - | -LL | let _: E = a.clone(); - | ^^^^^^^^^ help: try dereferencing it: `*****a` - -error: aborting due to 15 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unnecessary_clone.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'unnecessary_clone.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/unnecessary_clone.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unnecessary_clone.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unnecessary_clone.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/unnecessary_clone.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/unnecessary_filter_map.rs stdout ---- normalized stderr: expected stderr: error: this `.filter_map` can be written more simply using `.filter` --> $DIR/unnecessary_filter_map.rs:2:13 | LL | let _ = (0..4).filter_map(|x| if x > 1 { Some(x) } else { None }); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::unnecessary-filter-map` implied by `-D warnings` error: this `.filter_map` can be written more simply using `.filter` --> $DIR/unnecessary_filter_map.rs:3:13 | LL | let _ = (0..4).filter_map(|x| { | _____________^ LL | | if x > 1 { LL | | return Some(x); LL | | }; LL | | None LL | | }); | |______^ error: this `.filter_map` can be written more simply using `.filter` --> $DIR/unnecessary_filter_map.rs:9:13 | LL | let _ = (0..4).filter_map(|x| match x { | _____________^ LL | | 0 | 1 => None, LL | | _ => Some(x), LL | | }); | |______^ error: this `.filter_map` can be written more simply using `.map` --> $DIR/unnecessary_filter_map.rs:14:13 | LL | let _ = (0..4).filter_map(|x| Some(x + 1)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 4 previous errors diff of stderr: -error: this `.filter_map` can be written more simply using `.filter` - --> $DIR/unnecessary_filter_map.rs:2:13 - | -LL | let _ = (0..4).filter_map(|x| if x > 1 { Some(x) } else { None }); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::unnecessary-filter-map` implied by `-D warnings` - -error: this `.filter_map` can be written more simply using `.filter` - --> $DIR/unnecessary_filter_map.rs:3:13 - | -LL | let _ = (0..4).filter_map(|x| { - | _____________^ -LL | | if x > 1 { -LL | | return Some(x); -LL | | }; -LL | | None -LL | | }); - | |______^ - -error: this `.filter_map` can be written more simply using `.filter` - --> $DIR/unnecessary_filter_map.rs:9:13 - | -LL | let _ = (0..4).filter_map(|x| match x { - | _____________^ -LL | | 0 | 1 => None, -LL | | _ => Some(x), -LL | | }); - | |______^ - -error: this `.filter_map` can be written more simply using `.map` - --> $DIR/unnecessary_filter_map.rs:14:13 - | -LL | let _ = (0..4).filter_map(|x| Some(x + 1)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: aborting due to 4 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unnecessary_filter_map.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'unnecessary_filter_map.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/unnecessary_filter_map.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unnecessary_filter_map.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unnecessary_filter_map.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/unnecessary_filter_map.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/unused_lt.rs stdout ---- normalized stderr: expected stderr: error: this lifetime isn't used in the function definition --> $DIR/unused_lt.rs:14:14 | LL | fn unused_lt<'a>(x: u8) {} | ^^ | = note: `-D clippy::extra-unused-lifetimes` implied by `-D warnings` error: this lifetime isn't used in the function definition --> $DIR/unused_lt.rs:16:25 | LL | fn unused_lt_transitive<'a, 'b: 'a>(x: &'b u8) { | ^^ error: this lifetime isn't used in the function definition --> $DIR/unused_lt.rs:41:10 | LL | fn x<'a>(&self) {} | ^^ error: aborting due to 3 previous errors diff of stderr: -error: this lifetime isn't used in the function definition - --> $DIR/unused_lt.rs:14:14 - | -LL | fn unused_lt<'a>(x: u8) {} - | ^^ - | - = note: `-D clippy::extra-unused-lifetimes` implied by `-D warnings` - -error: this lifetime isn't used in the function definition - --> $DIR/unused_lt.rs:16:25 - | -LL | fn unused_lt_transitive<'a, 'b: 'a>(x: &'b u8) { - | ^^ - -error: this lifetime isn't used in the function definition - --> $DIR/unused_lt.rs:41:10 - | -LL | fn x<'a>(&self) {} - | ^^ - -error: aborting due to 3 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unused_lt.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'unused_lt.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/unused_lt.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unused_lt.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unused_lt.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/unused_lt.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/unused_labels.rs stdout ---- normalized stderr: expected stderr: error: unused label `'label` --> $DIR/unused_labels.rs:5:5 | LL | / 'label: for i in 1..2 { LL | | if i > 4 { LL | | continue; LL | | } LL | | } | |_____^ | = note: `-D clippy::unused-label` implied by `-D warnings` error: unused label `'a` --> $DIR/unused_labels.rs:19:5 | LL | / 'a: loop { LL | | break; LL | | } | |_____^ error: unused label `'same_label_in_two_fns` --> $DIR/unused_labels.rs:32:5 | LL | / 'same_label_in_two_fns: loop { LL | | let _ = 1; LL | | } | |_____^ error: aborting due to 3 previous errors diff of stderr: -error: unused label `'label` - --> $DIR/unused_labels.rs:5:5 - | -LL | / 'label: for i in 1..2 { -LL | | if i > 4 { -LL | | continue; -LL | | } -LL | | } - | |_____^ - | - = note: `-D clippy::unused-label` implied by `-D warnings` - -error: unused label `'a` - --> $DIR/unused_labels.rs:19:5 - | -LL | / 'a: loop { -LL | | break; -LL | | } - | |_____^ - -error: unused label `'same_label_in_two_fns` - --> $DIR/unused_labels.rs:32:5 - | -LL | / 'same_label_in_two_fns: loop { -LL | | let _ = 1; -LL | | } - | |_____^ - -error: aborting due to 3 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unused_labels.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'unused_labels.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/unused_labels.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unused_labels.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unused_labels.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/unused_labels.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/unused_unit.rs stdout ---- normalized stderr: error: unneeded unit return type --> $DIR/unused_unit.rs:18:59 | LL | pub fn get_unit (), G>(&self, f: F, _g: G) -> | ___________________________________________________________^ LL | | () | |__________^ help: remove the `-> ()` | note: lint level defined here --> $DIR/unused_unit.rs:12:9 | LL | #![deny(clippy::unused_unit)] | ^^^^^^^^^^^^^^^^^^^ error: unneeded unit return type --> $DIR/unused_unit.rs:28:19 | LL | fn into(self) -> () { | ^^^^^ help: remove the `-> ()` error: unneeded unit expression --> $DIR/unused_unit.rs:29:9 | LL | () | ^^ help: remove the final `()` error: unneeded unit return type --> $DIR/unused_unit.rs:33:18 | LL | fn return_unit() -> () { () } | ^^^^^ help: remove the `-> ()` expected stderr: error: unneeded unit return type --> $DIR/unused_unit.rs:18:59 | LL | pub fn get_unit (), G>(&self, f: F, _g: G) -> | ___________________________________________________________^ LL | | () | |__________^ help: remove the `-> ()` | note: lint level defined here --> $DIR/unused_unit.rs:12:9 | LL | #![deny(clippy::unused_unit)] | ^^^^^^^^^^^^^^^^^^^ error: unneeded unit return type --> $DIR/unused_unit.rs:28:19 | LL | fn into(self) -> () { | ^^^^^ help: remove the `-> ()` error: unneeded unit expression --> $DIR/unused_unit.rs:29:9 | LL | () | ^^ help: remove the final `()` error: unneeded unit return type --> $DIR/unused_unit.rs:33:18 | LL | fn return_unit() -> () { () } | ^^^^^ help: remove the `-> ()` error: unneeded unit expression --> $DIR/unused_unit.rs:33:26 | LL | fn return_unit() -> () { () } | ^^ help: remove the final `()` error: unneeded `()` --> $DIR/unused_unit.rs:42:14 | LL | break(); | ^^ help: remove the `()` error: unneeded `()` --> $DIR/unused_unit.rs:44:11 | LL | return(); | ^^ help: remove the `()` error: aborting due to 7 previous errors diff of stderr: error: unneeded unit return type --> $DIR/unused_unit.rs:18:59 | LL | pub fn get_unit (), G>(&self, f: F, _g: G) -> | ___________________________________________________________^ LL | | () | |__________^ help: remove the `-> ()` | note: lint level defined here --> $DIR/unused_unit.rs:12:9 | LL | #![deny(clippy::unused_unit)] | ^^^^^^^^^^^^^^^^^^^ error: unneeded unit return type --> $DIR/unused_unit.rs:28:19 | LL | fn into(self) -> () { | ^^^^^ help: remove the `-> ()` error: unneeded unit expression --> $DIR/unused_unit.rs:29:9 | LL | () | ^^ help: remove the final `()` error: unneeded unit return type --> $DIR/unused_unit.rs:33:18 | LL | fn return_unit() -> () { () } | ^^^^^ help: remove the `-> ()` -error: unneeded unit expression - --> $DIR/unused_unit.rs:33:26 - | -LL | fn return_unit() -> () { () } - | ^^ help: remove the final `()` - -error: unneeded `()` - --> $DIR/unused_unit.rs:42:14 - | -LL | break(); - | ^^ help: remove the `()` - -error: unneeded `()` - --> $DIR/unused_unit.rs:44:11 - | -LL | return(); - | ^^ help: remove the `()` - -error: aborting due to 7 previous errors - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unused_unit.stderr normalized fixed: // run-rustfix // The output for humans should just highlight the whole span without showing // the suggested replacement, but we also want to test that suggested // replacement only removes one set of parentheses, rather than naïvely // stripping away any starting or ending parenthesis characters—hence this // test of the JSON error format. #![feature(custom_inner_attributes)] #![rustfmt::skip] #![deny(clippy::unused_unit)] struct Unitter; impl Unitter { // try to disorient the lint with multiple unit returns and newlines #[allow(clippy::no_effect)] pub fn get_unit (), G>(&self, f: F, _g: G) where G: Fn() -> () { let _y: &Fn() -> () = &f; (); // this should not lint, as it's not in return type position } } impl Into<()> for Unitter { #[rustfmt::skip] fn into(self) { } } fn return_unit() { () } #[allow(clippy::needless_return)] #[allow(clippy::never_loop)] fn main() { let u = Unitter; assert_eq!(u.get_unit(|| {}, return_unit), u.into()); return_unit(); loop { break(); } return(); } expected fixed: // run-rustfix // The output for humans should just highlight the whole span without showing // the suggested replacement, but we also want to test that suggested // replacement only removes one set of parentheses, rather than naïvely // stripping away any starting or ending parenthesis characters—hence this // test of the JSON error format. #![feature(custom_inner_attributes)] #![rustfmt::skip] #![deny(clippy::unused_unit)] struct Unitter; impl Unitter { // try to disorient the lint with multiple unit returns and newlines #[allow(clippy::no_effect)] pub fn get_unit (), G>(&self, f: F, _g: G) where G: Fn() -> () { let _y: &Fn() -> () = &f; (); // this should not lint, as it's not in return type position } } impl Into<()> for Unitter { #[rustfmt::skip] fn into(self) { } } fn return_unit() { } #[allow(clippy::needless_return)] #[allow(clippy::never_loop)] fn main() { let u = Unitter; assert_eq!(u.get_unit(|| {}, return_unit), u.into()); return_unit(); loop { break; } return; } diff of fixed: // run-rustfix // The output for humans should just highlight the whole span without showing // the suggested replacement, but we also want to test that suggested // replacement only removes one set of parentheses, rather than naïvely // stripping away any starting or ending parenthesis characters—hence this // test of the JSON error format. #![feature(custom_inner_attributes)] #![rustfmt::skip] #![deny(clippy::unused_unit)] struct Unitter; impl Unitter { // try to disorient the lint with multiple unit returns and newlines #[allow(clippy::no_effect)] pub fn get_unit (), G>(&self, f: F, _g: G) where G: Fn() -> () { let _y: &Fn() -> () = &f; (); // this should not lint, as it's not in return type position } } impl Into<()> for Unitter { #[rustfmt::skip] fn into(self) { } } -fn return_unit() { } +fn return_unit() { () } #[allow(clippy::needless_return)] #[allow(clippy::never_loop)] fn main() { let u = Unitter; assert_eq!(u.get_unit(|| {}, return_unit), u.into()); return_unit(); loop { - break; + break(); } - return; + return(); } The actual fixed differed from the expected fixed. Actual fixed saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unused_unit.fixed To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'unused_unit.rs' error: 2 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/unused_unit.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unused_unit.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unused_unit.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ {"message":"unneeded unit return type","code":{"code":"clippy::unused_unit","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/unused_unit.rs","byte_start":630,"byte_end":643,"line_start":18,"line_end":19,"column_start":59,"column_end":11,"is_primary":true,"text":[{"text":" pub fn get_unit (), G>(&self, f: F, _g: G) ->","highlight_start":59,"highlight_end":61},{"text":" ()","highlight_start":1,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"lint level defined here","code":null,"level":"note","spans":[{"file_name":"tests/ui/unused_unit.rs","byte_start":413,"byte_end":432,"line_start":12,"line_end":12,"column_start":9,"column_end":28,"is_primary":true,"text":[{"text":"#![deny(clippy::unused_unit)]","highlight_start":9,"highlight_end":28}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"remove the `-> ()`","code":null,"level":"help","spans":[{"file_name":"tests/ui/unused_unit.rs","byte_start":630,"byte_end":643,"line_start":18,"line_end":19,"column_start":59,"column_end":11,"is_primary":true,"text":[{"text":" pub fn get_unit (), G>(&self, f: F, _g: G) ->","highlight_start":59,"highlight_end":61},{"text":" ()","highlight_start":1,"highlight_end":11}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: unneeded unit return type\n --> tests/ui/unused_unit.rs:18:59\n |\nLL | pub fn get_unit (), G>(&self, f: F, _g: G) ->\n | ___________________________________________________________^\nLL | | ()\n | |__________^ help: remove the `-> ()`\n |\nnote: lint level defined here\n --> tests/ui/unused_unit.rs:12:9\n |\nLL | #![deny(clippy::unused_unit)]\n | ^^^^^^^^^^^^^^^^^^^\n\n"} {"message":"unneeded unit return type","code":{"code":"clippy::unused_unit","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/unused_unit.rs","byte_start":853,"byte_end":858,"line_start":28,"line_end":28,"column_start":19,"column_end":24,"is_primary":true,"text":[{"text":" fn into(self) -> () {","highlight_start":19,"highlight_end":24}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove the `-> ()`","code":null,"level":"help","spans":[{"file_name":"tests/ui/unused_unit.rs","byte_start":853,"byte_end":858,"line_start":28,"line_end":28,"column_start":19,"column_end":24,"is_primary":true,"text":[{"text":" fn into(self) -> () {","highlight_start":19,"highlight_end":24}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: unneeded unit return type\n --> tests/ui/unused_unit.rs:28:19\n |\nLL | fn into(self) -> () {\n | ^^^^^ help: remove the `-> ()`\n\n"} {"message":"unneeded unit expression","code":{"code":"clippy::unused_unit","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/unused_unit.rs","byte_start":869,"byte_end":871,"line_start":29,"line_end":29,"column_start":9,"column_end":11,"is_primary":true,"text":[{"text":" ()","highlight_start":9,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove the final `()`","code":null,"level":"help","spans":[{"file_name":"tests/ui/unused_unit.rs","byte_start":869,"byte_end":871,"line_start":29,"line_end":29,"column_start":9,"column_end":11,"is_primary":true,"text":[{"text":" ()","highlight_start":9,"highlight_end":11}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: unneeded unit expression\n --> tests/ui/unused_unit.rs:29:9\n |\nLL | ()\n | ^^ help: remove the final `()`\n\n"} {"message":"unneeded unit return type","code":{"code":"clippy::unused_unit","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/unused_unit.rs","byte_start":898,"byte_end":903,"line_start":33,"line_end":33,"column_start":18,"column_end":23,"is_primary":true,"text":[{"text":"fn return_unit() -> () { () }","highlight_start":18,"highlight_end":23}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove the `-> ()`","code":null,"level":"help","spans":[{"file_name":"tests/ui/unused_unit.rs","byte_start":898,"byte_end":903,"line_start":33,"line_end":33,"column_start":18,"column_end":23,"is_primary":true,"text":[{"text":"fn return_unit() -> () { () }","highlight_start":18,"highlight_end":23}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: unneeded unit return type\n --> tests/ui/unused_unit.rs:33:18\n |\nLL | fn return_unit() -> () { () }\n | ^^^^^ help: remove the `-> ()`\n\n"} ------------------------------------------ thread '[ui] ui/unused_unit.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/use_self.rs stdout ---- normalized stderr: expected stderr: error: unnecessary structure name repetition --> $DIR/use_self.rs:13:21 | LL | fn new() -> Foo { | ^^^ help: use the applicable keyword: `Self` | = note: `-D clippy::use-self` implied by `-D warnings` error: unnecessary structure name repetition --> $DIR/use_self.rs:14:13 | LL | Foo {} | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:16:22 | LL | fn test() -> Foo { | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:17:13 | LL | Foo::new() | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:22:25 | LL | fn default() -> Foo { | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:23:13 | LL | Foo::new() | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:88:22 | LL | fn refs(p1: &Bad) -> &Bad { | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:88:31 | LL | fn refs(p1: &Bad) -> &Bad { | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:92:37 | LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad { | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:92:53 | LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad { | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:96:30 | LL | fn mut_refs(p1: &mut Bad) -> &mut Bad { | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:96:43 | LL | fn mut_refs(p1: &mut Bad) -> &mut Bad { | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:100:28 | LL | fn nested(_p1: Box, _p2: (&u8, &Bad)) {} | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:100:46 | LL | fn nested(_p1: Box, _p2: (&u8, &Bad)) {} | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:102:20 | LL | fn vals(_: Bad) -> Bad { | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:102:28 | LL | fn vals(_: Bad) -> Bad { | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:103:13 | LL | Bad::default() | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:108:23 | LL | type Output = Bad; | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:110:27 | LL | fn mul(self, rhs: Bad) -> Bad { | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:110:35 | LL | fn mul(self, rhs: Bad) -> Bad { | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:202:56 | LL | fn bad(foos: &[Self]) -> impl Iterator { | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:217:13 | LL | TS(0) | ^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:225:25 | LL | fn new() -> Foo { | ^^^ help: use the applicable keyword: `Self` ... LL | use_self_expand!(); // Should lint in local macros | ------------------- in this macro invocation error: unnecessary structure name repetition --> $DIR/use_self.rs:226:17 | LL | Foo {} | ^^^ help: use the applicable keyword: `Self` ... LL | use_self_expand!(); // Should lint in local macros | ------------------- in this macro invocation error: unnecessary structure name repetition --> $DIR/use_self.rs:261:21 | LL | fn baz() -> Foo { | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:262:13 | LL | Foo {} | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:249:29 | LL | fn bar() -> Bar { | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:250:21 | LL | Bar { foo: Foo {} } | ^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:304:13 | LL | nested::A::fun_1(); | ^^^^^^^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:305:13 | LL | nested::A::A; | ^^^^^^^^^ help: use the applicable keyword: `Self` error: unnecessary structure name repetition --> $DIR/use_self.rs:307:13 | LL | nested::A {}; | ^^^^^^^^^ help: use the applicable keyword: `Self` error: aborting due to 31 previous errors diff of stderr: -error: unnecessary structure name repetition - --> $DIR/use_self.rs:13:21 - | -LL | fn new() -> Foo { - | ^^^ help: use the applicable keyword: `Self` - | - = note: `-D clippy::use-self` implied by `-D warnings` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:14:13 - | -LL | Foo {} - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:16:22 - | -LL | fn test() -> Foo { - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:17:13 - | -LL | Foo::new() - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:22:25 - | -LL | fn default() -> Foo { - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:23:13 - | -LL | Foo::new() - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:88:22 - | -LL | fn refs(p1: &Bad) -> &Bad { - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:88:31 - | -LL | fn refs(p1: &Bad) -> &Bad { - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:92:37 - | -LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad { - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:92:53 - | -LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad { - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:96:30 - | -LL | fn mut_refs(p1: &mut Bad) -> &mut Bad { - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:96:43 - | -LL | fn mut_refs(p1: &mut Bad) -> &mut Bad { - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:100:28 - | -LL | fn nested(_p1: Box, _p2: (&u8, &Bad)) {} - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:100:46 - | -LL | fn nested(_p1: Box, _p2: (&u8, &Bad)) {} - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:102:20 - | -LL | fn vals(_: Bad) -> Bad { - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:102:28 - | -LL | fn vals(_: Bad) -> Bad { - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:103:13 - | -LL | Bad::default() - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:108:23 - | -LL | type Output = Bad; - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:110:27 - | -LL | fn mul(self, rhs: Bad) -> Bad { - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:110:35 - | -LL | fn mul(self, rhs: Bad) -> Bad { - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:202:56 - | -LL | fn bad(foos: &[Self]) -> impl Iterator { - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:217:13 - | -LL | TS(0) - | ^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:225:25 - | -LL | fn new() -> Foo { - | ^^^ help: use the applicable keyword: `Self` -... -LL | use_self_expand!(); // Should lint in local macros - | ------------------- in this macro invocation - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:226:17 - | -LL | Foo {} - | ^^^ help: use the applicable keyword: `Self` -... -LL | use_self_expand!(); // Should lint in local macros - | ------------------- in this macro invocation - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:261:21 - | -LL | fn baz() -> Foo { - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:262:13 - | -LL | Foo {} - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:249:29 - | -LL | fn bar() -> Bar { - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:250:21 - | -LL | Bar { foo: Foo {} } - | ^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:304:13 - | -LL | nested::A::fun_1(); - | ^^^^^^^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:305:13 - | -LL | nested::A::A; - | ^^^^^^^^^ help: use the applicable keyword: `Self` - -error: unnecessary structure name repetition - --> $DIR/use_self.rs:307:13 - | -LL | nested::A {}; - | ^^^^^^^^^ help: use the applicable keyword: `Self` - -error: aborting due to 31 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/use_self.stderr normalized fixed: // run-rustfix #![warn(clippy::use_self)] #![allow(dead_code)] #![allow(clippy::should_implement_trait)] fn main() {} mod use_self { struct Foo {} impl Foo { fn new() -> Foo { Foo {} } fn test() -> Foo { Foo::new() } } impl Default for Foo { fn default() -> Foo { Foo::new() } } } mod better { struct Foo {} impl Foo { fn new() -> Self { Self {} } fn test() -> Self { Self::new() } } impl Default for Foo { fn default() -> Self { Self::new() } } } mod lifetimes { struct Foo<'a> { foo_str: &'a str, } impl<'a> Foo<'a> { // Cannot use `Self` as return type, because the function is actually `fn foo<'b>(s: &'b str) -> // Foo<'b>` fn foo(s: &str) -> Foo { Foo { foo_str: s } } // cannot replace with `Self`, because that's `Foo<'a>` fn bar() -> Foo<'static> { Foo { foo_str: "foo" } } // FIXME: the lint does not handle lifetimed struct // `Self` should be applicable here fn clone(&self) -> Foo<'a> { Foo { foo_str: self.foo_str } } } } #[allow(clippy::boxed_local)] mod traits { use std::ops::Mul; trait SelfTrait { fn refs(p1: &Self) -> &Self; fn ref_refs<'a>(p1: &'a &'a Self) -> &'a &'a Self; fn mut_refs(p1: &mut Self) -> &mut Self; fn nested(p1: Box, p2: (&u8, &Self)); fn vals(r: Self) -> Self; } #[derive(Default)] struct Bad; impl SelfTrait for Bad { fn refs(p1: &Bad) -> &Bad { p1 } fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad { p1 } fn mut_refs(p1: &mut Bad) -> &mut Bad { p1 } fn nested(_p1: Box, _p2: (&u8, &Bad)) {} fn vals(_: Bad) -> Bad { Bad::default() } } impl Mul for Bad { type Output = Bad; fn mul(self, rhs: Bad) -> Bad { rhs } } #[derive(Default)] struct Good; impl SelfTrait for Good { fn refs(p1: &Self) -> &Self { p1 } fn ref_refs<'a>(p1: &'a &'a Self) -> &'a &'a Self { p1 } fn mut_refs(p1: &mut Self) -> &mut Self { p1 } fn nested(_p1: Box, _p2: (&u8, &Self)) {} fn vals(_: Self) -> Self { Self::default() } } impl Mul for Good { type Output = Self; fn mul(self, rhs: Self) -> Self { rhs } } trait NameTrait { fn refs(p1: &u8) -> &u8; fn ref_refs<'a>(p1: &'a &'a u8) -> &'a &'a u8; fn mut_refs(p1: &mut u8) -> &mut u8; fn nested(p1: Box, p2: (&u8, &u8)); fn vals(p1: u8) -> u8; } // Using `Self` instead of the type name is OK impl NameTrait for u8 { fn refs(p1: &Self) -> &Self { p1 } fn ref_refs<'a>(p1: &'a &'a Self) -> &'a &'a Self { p1 } fn mut_refs(p1: &mut Self) -> &mut Self { p1 } fn nested(_p1: Box, _p2: (&Self, &Self)) {} fn vals(_: Self) -> Self { Self::default() } } // Check that self arg isn't linted impl Clone for Good { fn clone(&self) -> Self { // Note: Not linted and it wouldn't be valid // because "can't use `Self` as a constructor`" Good } } } mod issue2894 { trait IntoBytes { fn into_bytes(&self) -> Vec; } // This should not be linted impl IntoBytes for u8 { fn into_bytes(&self) -> Vec { vec![*self] } } } mod existential { struct Foo; impl Foo { fn bad(foos: &[Self]) -> impl Iterator { foos.iter() } fn good(foos: &[Self]) -> impl Iterator { foos.iter() } } } mod tuple_structs { pub struct TS(i32); impl TS { pub fn ts() -> Self { TS(0) } } } mod macros { macro_rules! use_self_expand { () => { fn new() -> Foo { Foo {} } }; } struct Foo {} impl Foo { use_self_expand!(); // Should lint in local macros } } mod nesting { struct Foo {} impl Foo { fn foo() { #[allow(unused_imports)] use self::Foo; // Can't use Self here struct Bar { foo: Foo, // Foo != Self } impl Bar { fn bar() -> Bar { Bar { foo: Foo {} } } } // Can't use Self here fn baz() -> Foo { Foo {} } } // Should lint here fn baz() -> Foo { Foo {} } } enum Enum { A, } impl Enum { fn method() { #[allow(unused_imports)] use self::Enum::*; // Issue 3425 static STATIC: Enum = Enum::A; // Can't use Self as type } } } mod issue3410 { struct A; struct B; trait Trait { fn a(v: T); } impl Trait> for Vec { fn a(_: Vec) {} } } #[allow(clippy::no_effect, path_statements)] mod rustfix { mod nested { pub struct A {} } impl nested::A { const A: bool = true; fn fun_1() {} fn fun_2() { nested::A::fun_1(); nested::A::A; nested::A {}; } } } expected fixed: // run-rustfix #![warn(clippy::use_self)] #![allow(dead_code)] #![allow(clippy::should_implement_trait)] fn main() {} mod use_self { struct Foo {} impl Foo { fn new() -> Self { Self {} } fn test() -> Self { Self::new() } } impl Default for Foo { fn default() -> Self { Self::new() } } } mod better { struct Foo {} impl Foo { fn new() -> Self { Self {} } fn test() -> Self { Self::new() } } impl Default for Foo { fn default() -> Self { Self::new() } } } mod lifetimes { struct Foo<'a> { foo_str: &'a str, } impl<'a> Foo<'a> { // Cannot use `Self` as return type, because the function is actually `fn foo<'b>(s: &'b str) -> // Foo<'b>` fn foo(s: &str) -> Foo { Foo { foo_str: s } } // cannot replace with `Self`, because that's `Foo<'a>` fn bar() -> Foo<'static> { Foo { foo_str: "foo" } } // FIXME: the lint does not handle lifetimed struct // `Self` should be applicable here fn clone(&self) -> Foo<'a> { Foo { foo_str: self.foo_str } } } } #[allow(clippy::boxed_local)] mod traits { use std::ops::Mul; trait SelfTrait { fn refs(p1: &Self) -> &Self; fn ref_refs<'a>(p1: &'a &'a Self) -> &'a &'a Self; fn mut_refs(p1: &mut Self) -> &mut Self; fn nested(p1: Box, p2: (&u8, &Self)); fn vals(r: Self) -> Self; } #[derive(Default)] struct Bad; impl SelfTrait for Bad { fn refs(p1: &Self) -> &Self { p1 } fn ref_refs<'a>(p1: &'a &'a Self) -> &'a &'a Self { p1 } fn mut_refs(p1: &mut Self) -> &mut Self { p1 } fn nested(_p1: Box, _p2: (&u8, &Self)) {} fn vals(_: Self) -> Self { Self::default() } } impl Mul for Bad { type Output = Self; fn mul(self, rhs: Self) -> Self { rhs } } #[derive(Default)] struct Good; impl SelfTrait for Good { fn refs(p1: &Self) -> &Self { p1 } fn ref_refs<'a>(p1: &'a &'a Self) -> &'a &'a Self { p1 } fn mut_refs(p1: &mut Self) -> &mut Self { p1 } fn nested(_p1: Box, _p2: (&u8, &Self)) {} fn vals(_: Self) -> Self { Self::default() } } impl Mul for Good { type Output = Self; fn mul(self, rhs: Self) -> Self { rhs } } trait NameTrait { fn refs(p1: &u8) -> &u8; fn ref_refs<'a>(p1: &'a &'a u8) -> &'a &'a u8; fn mut_refs(p1: &mut u8) -> &mut u8; fn nested(p1: Box, p2: (&u8, &u8)); fn vals(p1: u8) -> u8; } // Using `Self` instead of the type name is OK impl NameTrait for u8 { fn refs(p1: &Self) -> &Self { p1 } fn ref_refs<'a>(p1: &'a &'a Self) -> &'a &'a Self { p1 } fn mut_refs(p1: &mut Self) -> &mut Self { p1 } fn nested(_p1: Box, _p2: (&Self, &Self)) {} fn vals(_: Self) -> Self { Self::default() } } // Check that self arg isn't linted impl Clone for Good { fn clone(&self) -> Self { // Note: Not linted and it wouldn't be valid // because "can't use `Self` as a constructor`" Good } } } mod issue2894 { trait IntoBytes { fn into_bytes(&self) -> Vec; } // This should not be linted impl IntoBytes for u8 { fn into_bytes(&self) -> Vec { vec![*self] } } } mod existential { struct Foo; impl Foo { fn bad(foos: &[Self]) -> impl Iterator { foos.iter() } fn good(foos: &[Self]) -> impl Iterator { foos.iter() } } } mod tuple_structs { pub struct TS(i32); impl TS { pub fn ts() -> Self { Self(0) } } } mod macros { macro_rules! use_self_expand { () => { fn new() -> Self { Self {} } }; } struct Foo {} impl Foo { use_self_expand!(); // Should lint in local macros } } mod nesting { struct Foo {} impl Foo { fn foo() { #[allow(unused_imports)] use self::Foo; // Can't use Self here struct Bar { foo: Foo, // Foo != Self } impl Bar { fn bar() -> Self { Self { foo: Foo {} } } } // Can't use Self here fn baz() -> Foo { Foo {} } } // Should lint here fn baz() -> Self { Self {} } } enum Enum { A, } impl Enum { fn method() { #[allow(unused_imports)] use self::Enum::*; // Issue 3425 static STATIC: Enum = Enum::A; // Can't use Self as type } } } mod issue3410 { struct A; struct B; trait Trait { fn a(v: T); } impl Trait> for Vec { fn a(_: Vec) {} } } #[allow(clippy::no_effect, path_statements)] mod rustfix { mod nested { pub struct A {} } impl nested::A { const A: bool = true; fn fun_1() {} fn fun_2() { Self::fun_1(); Self::A; Self {}; } } } diff of fixed: // run-rustfix #![warn(clippy::use_self)] #![allow(dead_code)] #![allow(clippy::should_implement_trait)] fn main() {} mod use_self { struct Foo {} impl Foo { - fn new() -> Self { - Self {} + fn new() -> Foo { + Foo {} } - fn test() -> Self { - Self::new() + fn test() -> Foo { + Foo::new() } } impl Default for Foo { - fn default() -> Self { - Self::new() + fn default() -> Foo { + Foo::new() } } } mod better { struct Foo {} impl Foo { fn new() -> Self { Self {} } fn test() -> Self { Self::new() } } impl Default for Foo { fn default() -> Self { Self::new() } } } mod lifetimes { struct Foo<'a> { foo_str: &'a str, } impl<'a> Foo<'a> { // Cannot use `Self` as return type, because the function is actually `fn foo<'b>(s: &'b str) -> // Foo<'b>` fn foo(s: &str) -> Foo { Foo { foo_str: s } } // cannot replace with `Self`, because that's `Foo<'a>` fn bar() -> Foo<'static> { Foo { foo_str: "foo" } } // FIXME: the lint does not handle lifetimed struct // `Self` should be applicable here fn clone(&self) -> Foo<'a> { Foo { foo_str: self.foo_str } } } } #[allow(clippy::boxed_local)] mod traits { use std::ops::Mul; trait SelfTrait { fn refs(p1: &Self) -> &Self; fn ref_refs<'a>(p1: &'a &'a Self) -> &'a &'a Self; fn mut_refs(p1: &mut Self) -> &mut Self; fn nested(p1: Box, p2: (&u8, &Self)); fn vals(r: Self) -> Self; } #[derive(Default)] struct Bad; impl SelfTrait for Bad { - fn refs(p1: &Self) -> &Self { + fn refs(p1: &Bad) -> &Bad { p1 } - fn ref_refs<'a>(p1: &'a &'a Self) -> &'a &'a Self { + fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad { p1 } - fn mut_refs(p1: &mut Self) -> &mut Self { + fn mut_refs(p1: &mut Bad) -> &mut Bad { p1 } - fn nested(_p1: Box, _p2: (&u8, &Self)) {} + fn nested(_p1: Box, _p2: (&u8, &Bad)) {} - fn vals(_: Self) -> Self { - Self::default() + fn vals(_: Bad) -> Bad { + Bad::default() } } impl Mul for Bad { - type Output = Self; + type Output = Bad; - fn mul(self, rhs: Self) -> Self { + fn mul(self, rhs: Bad) -> Bad { rhs } } #[derive(Default)] struct Good; impl SelfTrait for Good { fn refs(p1: &Self) -> &Self { p1 } fn ref_refs<'a>(p1: &'a &'a Self) -> &'a &'a Self { p1 } fn mut_refs(p1: &mut Self) -> &mut Self { p1 } fn nested(_p1: Box, _p2: (&u8, &Self)) {} fn vals(_: Self) -> Self { Self::default() } } impl Mul for Good { type Output = Self; fn mul(self, rhs: Self) -> Self { rhs } } trait NameTrait { fn refs(p1: &u8) -> &u8; fn ref_refs<'a>(p1: &'a &'a u8) -> &'a &'a u8; fn mut_refs(p1: &mut u8) -> &mut u8; fn nested(p1: Box, p2: (&u8, &u8)); fn vals(p1: u8) -> u8; } // Using `Self` instead of the type name is OK impl NameTrait for u8 { fn refs(p1: &Self) -> &Self { p1 } fn ref_refs<'a>(p1: &'a &'a Self) -> &'a &'a Self { p1 } fn mut_refs(p1: &mut Self) -> &mut Self { p1 } fn nested(_p1: Box, _p2: (&Self, &Self)) {} fn vals(_: Self) -> Self { Self::default() } } // Check that self arg isn't linted impl Clone for Good { fn clone(&self) -> Self { // Note: Not linted and it wouldn't be valid // because "can't use `Self` as a constructor`" Good } } } mod issue2894 { trait IntoBytes { fn into_bytes(&self) -> Vec; } // This should not be linted impl IntoBytes for u8 { fn into_bytes(&self) -> Vec { vec![*self] } } } mod existential { struct Foo; impl Foo { - fn bad(foos: &[Self]) -> impl Iterator { + fn bad(foos: &[Self]) -> impl Iterator { foos.iter() } fn good(foos: &[Self]) -> impl Iterator { foos.iter() } } } mod tuple_structs { pub struct TS(i32); impl TS { pub fn ts() -> Self { - Self(0) + TS(0) } } } mod macros { macro_rules! use_self_expand { () => { - fn new() -> Self { - Self {} + fn new() -> Foo { + Foo {} } }; } struct Foo {} impl Foo { use_self_expand!(); // Should lint in local macros } } mod nesting { struct Foo {} impl Foo { fn foo() { #[allow(unused_imports)] use self::Foo; // Can't use Self here struct Bar { foo: Foo, // Foo != Self } impl Bar { - fn bar() -> Self { - Self { foo: Foo {} } + fn bar() -> Bar { + Bar { foo: Foo {} } } } // Can't use Self here fn baz() -> Foo { Foo {} } } // Should lint here - fn baz() -> Self { - Self {} + fn baz() -> Foo { + Foo {} } } enum Enum { A, } impl Enum { fn method() { #[allow(unused_imports)] use self::Enum::*; // Issue 3425 static STATIC: Enum = Enum::A; // Can't use Self as type } } } mod issue3410 { struct A; struct B; trait Trait { fn a(v: T); } impl Trait> for Vec { fn a(_: Vec) {} } } #[allow(clippy::no_effect, path_statements)] mod rustfix { mod nested { pub struct A {} } impl nested::A { const A: bool = true; fn fun_1() {} fn fun_2() { - Self::fun_1(); - Self::A; + nested::A::fun_1(); + nested::A::A; - Self {}; + nested::A {}; } } } The actual fixed differed from the expected fixed. Actual fixed saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/use_self.fixed To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'use_self.rs' error: 2 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/use_self.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/use_self.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/use_self.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/use_self.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/vec.rs stdout ---- normalized stderr: expected stderr: error: useless use of `vec!` --> $DIR/vec.rs:23:14 | LL | on_slice(&vec![]); | ^^^^^^^ help: you can use a slice directly: `&[]` | = note: `-D clippy::useless-vec` implied by `-D warnings` error: useless use of `vec!` --> $DIR/vec.rs:26:14 | LL | on_slice(&vec![1, 2]); | ^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2]` error: useless use of `vec!` --> $DIR/vec.rs:29:14 | LL | on_slice(&vec![1, 2]); | ^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2]` error: useless use of `vec!` --> $DIR/vec.rs:32:14 | LL | on_slice(&vec!(1, 2)); | ^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2]` error: useless use of `vec!` --> $DIR/vec.rs:35:14 | LL | on_slice(&vec![1; 2]); | ^^^^^^^^^^^ help: you can use a slice directly: `&[1; 2]` error: useless use of `vec!` --> $DIR/vec.rs:48:14 | LL | for a in vec![1, 2, 3] { | ^^^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2, 3]` error: aborting due to 6 previous errors diff of stderr: -error: useless use of `vec!` - --> $DIR/vec.rs:23:14 - | -LL | on_slice(&vec![]); - | ^^^^^^^ help: you can use a slice directly: `&[]` - | - = note: `-D clippy::useless-vec` implied by `-D warnings` - -error: useless use of `vec!` - --> $DIR/vec.rs:26:14 - | -LL | on_slice(&vec![1, 2]); - | ^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2]` - -error: useless use of `vec!` - --> $DIR/vec.rs:29:14 - | -LL | on_slice(&vec![1, 2]); - | ^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2]` - -error: useless use of `vec!` - --> $DIR/vec.rs:32:14 - | -LL | on_slice(&vec!(1, 2)); - | ^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2]` - -error: useless use of `vec!` - --> $DIR/vec.rs:35:14 - | -LL | on_slice(&vec![1; 2]); - | ^^^^^^^^^^^ help: you can use a slice directly: `&[1; 2]` - -error: useless use of `vec!` - --> $DIR/vec.rs:48:14 - | -LL | for a in vec![1, 2, 3] { - | ^^^^^^^^^^^^^ help: you can use a slice directly: `&[1, 2, 3]` - -error: aborting due to 6 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/vec.stderr normalized fixed: // run-rustfix #![warn(clippy::useless_vec)] #[derive(Debug)] struct NonCopy; fn on_slice(_: &[u8]) {} #[allow(clippy::ptr_arg)] fn on_vec(_: &Vec) {} struct Line { length: usize, } impl Line { fn length(&self) -> usize { self.length } } fn main() { on_slice(&vec![]); on_slice(&[]); on_slice(&vec![1, 2]); on_slice(&[1, 2]); on_slice(&vec![1, 2]); on_slice(&[1, 2]); #[rustfmt::skip] on_slice(&vec!(1, 2)); on_slice(&[1, 2]); on_slice(&vec![1; 2]); on_slice(&[1; 2]); on_vec(&vec![]); on_vec(&vec![1, 2]); on_vec(&vec![1; 2]); // Now with non-constant expressions let line = Line { length: 2 }; on_slice(&vec![2; line.length]); on_slice(&vec![2; line.length()]); for a in vec![1, 2, 3] { println!("{:?}", a); } for a in vec![NonCopy, NonCopy] { println!("{:?}", a); } } expected fixed: // run-rustfix #![warn(clippy::useless_vec)] #[derive(Debug)] struct NonCopy; fn on_slice(_: &[u8]) {} #[allow(clippy::ptr_arg)] fn on_vec(_: &Vec) {} struct Line { length: usize, } impl Line { fn length(&self) -> usize { self.length } } fn main() { on_slice(&[]); on_slice(&[]); on_slice(&[1, 2]); on_slice(&[1, 2]); on_slice(&[1, 2]); on_slice(&[1, 2]); #[rustfmt::skip] on_slice(&[1, 2]); on_slice(&[1, 2]); on_slice(&[1; 2]); on_slice(&[1; 2]); on_vec(&vec![]); on_vec(&vec![1, 2]); on_vec(&vec![1; 2]); // Now with non-constant expressions let line = Line { length: 2 }; on_slice(&vec![2; line.length]); on_slice(&vec![2; line.length()]); for a in &[1, 2, 3] { println!("{:?}", a); } for a in vec![NonCopy, NonCopy] { println!("{:?}", a); } } diff of fixed: // run-rustfix #![warn(clippy::useless_vec)] #[derive(Debug)] struct NonCopy; fn on_slice(_: &[u8]) {} #[allow(clippy::ptr_arg)] fn on_vec(_: &Vec) {} struct Line { length: usize, } impl Line { fn length(&self) -> usize { self.length } } fn main() { + on_slice(&vec![]); on_slice(&[]); - on_slice(&[]); + on_slice(&vec![1, 2]); on_slice(&[1, 2]); - on_slice(&[1, 2]); + on_slice(&vec![1, 2]); on_slice(&[1, 2]); - on_slice(&[1, 2]); #[rustfmt::skip] + on_slice(&vec!(1, 2)); on_slice(&[1, 2]); - on_slice(&[1, 2]); + on_slice(&vec![1; 2]); on_slice(&[1; 2]); - on_slice(&[1; 2]); on_vec(&vec![]); on_vec(&vec![1, 2]); on_vec(&vec![1; 2]); // Now with non-constant expressions let line = Line { length: 2 }; on_slice(&vec![2; line.length]); on_slice(&vec![2; line.length()]); - for a in &[1, 2, 3] { + for a in vec![1, 2, 3] { println!("{:?}", a); } for a in vec![NonCopy, NonCopy] { println!("{:?}", a); } } The actual fixed differed from the expected fixed. Actual fixed saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/vec.fixed To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'vec.rs' error: 2 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/vec.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/vec.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/vec.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/vec.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/used_underscore_binding.rs stdout ---- normalized stderr: expected stderr: error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. --> $DIR/used_underscore_binding.rs:14:5 | LL | _foo + 1 | ^^^^ | = note: `-D clippy::used-underscore-binding` implied by `-D warnings` error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. --> $DIR/used_underscore_binding.rs:19:20 | LL | println!("{}", _foo); | ^^^^ error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. --> $DIR/used_underscore_binding.rs:20:16 | LL | assert_eq!(_foo, _foo); | ^^^^ error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. --> $DIR/used_underscore_binding.rs:20:22 | LL | assert_eq!(_foo, _foo); | ^^^^ error: used binding `_underscore_field` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. --> $DIR/used_underscore_binding.rs:33:5 | LL | s._underscore_field += 1; | ^^^^^^^^^^^^^^^^^^^ error: aborting due to 5 previous errors diff of stderr: -error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. - --> $DIR/used_underscore_binding.rs:14:5 - | -LL | _foo + 1 - | ^^^^ - | - = note: `-D clippy::used-underscore-binding` implied by `-D warnings` - -error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. - --> $DIR/used_underscore_binding.rs:19:20 - | -LL | println!("{}", _foo); - | ^^^^ - -error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. - --> $DIR/used_underscore_binding.rs:20:16 - | -LL | assert_eq!(_foo, _foo); - | ^^^^ - -error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. - --> $DIR/used_underscore_binding.rs:20:22 - | -LL | assert_eq!(_foo, _foo); - | ^^^^ - -error: used binding `_underscore_field` which is prefixed with an underscore. A leading underscore signals that a binding will not be used. - --> $DIR/used_underscore_binding.rs:33:5 - | -LL | s._underscore_field += 1; - | ^^^^^^^^^^^^^^^^^^^ - -error: aborting due to 5 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/used_underscore_binding.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'used_underscore_binding.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/used_underscore_binding.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/used_underscore_binding.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/used_underscore_binding.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/used_underscore_binding.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/useless_asref.rs stdout ---- normalized stderr: expected stderr: error: this call to `as_ref` does nothing --> $DIR/useless_asref.rs:44:18 | LL | foo_rstr(rstr.as_ref()); | ^^^^^^^^^^^^^ help: try this: `rstr` | note: lint level defined here --> $DIR/useless_asref.rs:3:9 | LL | #![deny(clippy::useless_asref)] | ^^^^^^^^^^^^^^^^^^^^^ error: this call to `as_ref` does nothing --> $DIR/useless_asref.rs:46:20 | LL | foo_rslice(rslice.as_ref()); | ^^^^^^^^^^^^^^^ help: try this: `rslice` error: this call to `as_mut` does nothing --> $DIR/useless_asref.rs:50:21 | LL | foo_mrslice(mrslice.as_mut()); | ^^^^^^^^^^^^^^^^ help: try this: `mrslice` error: this call to `as_ref` does nothing --> $DIR/useless_asref.rs:52:20 | LL | foo_rslice(mrslice.as_ref()); | ^^^^^^^^^^^^^^^^ help: try this: `mrslice` error: this call to `as_ref` does nothing --> $DIR/useless_asref.rs:59:20 | LL | foo_rslice(rrrrrslice.as_ref()); | ^^^^^^^^^^^^^^^^^^^ help: try this: `rrrrrslice` error: this call to `as_ref` does nothing --> $DIR/useless_asref.rs:61:18 | LL | foo_rstr(rrrrrstr.as_ref()); | ^^^^^^^^^^^^^^^^^ help: try this: `rrrrrstr` error: this call to `as_mut` does nothing --> $DIR/useless_asref.rs:66:21 | LL | foo_mrslice(mrrrrrslice.as_mut()); | ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice` error: this call to `as_ref` does nothing --> $DIR/useless_asref.rs:68:20 | LL | foo_rslice(mrrrrrslice.as_ref()); | ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice` error: this call to `as_ref` does nothing --> $DIR/useless_asref.rs:72:16 | LL | foo_rrrrmr((&&&&MoreRef).as_ref()); | ^^^^^^^^^^^^^^^^^^^^^^ help: try this: `(&&&&MoreRef)` error: this call to `as_mut` does nothing --> $DIR/useless_asref.rs:122:13 | LL | foo_mrt(mrt.as_mut()); | ^^^^^^^^^^^^ help: try this: `mrt` error: this call to `as_ref` does nothing --> $DIR/useless_asref.rs:124:12 | LL | foo_rt(mrt.as_ref()); | ^^^^^^^^^^^^ help: try this: `mrt` error: aborting due to 11 previous errors diff of stderr: -error: this call to `as_ref` does nothing - --> $DIR/useless_asref.rs:44:18 - | -LL | foo_rstr(rstr.as_ref()); - | ^^^^^^^^^^^^^ help: try this: `rstr` - | -note: lint level defined here - --> $DIR/useless_asref.rs:3:9 - | -LL | #![deny(clippy::useless_asref)] - | ^^^^^^^^^^^^^^^^^^^^^ - -error: this call to `as_ref` does nothing - --> $DIR/useless_asref.rs:46:20 - | -LL | foo_rslice(rslice.as_ref()); - | ^^^^^^^^^^^^^^^ help: try this: `rslice` - -error: this call to `as_mut` does nothing - --> $DIR/useless_asref.rs:50:21 - | -LL | foo_mrslice(mrslice.as_mut()); - | ^^^^^^^^^^^^^^^^ help: try this: `mrslice` - -error: this call to `as_ref` does nothing - --> $DIR/useless_asref.rs:52:20 - | -LL | foo_rslice(mrslice.as_ref()); - | ^^^^^^^^^^^^^^^^ help: try this: `mrslice` - -error: this call to `as_ref` does nothing - --> $DIR/useless_asref.rs:59:20 - | -LL | foo_rslice(rrrrrslice.as_ref()); - | ^^^^^^^^^^^^^^^^^^^ help: try this: `rrrrrslice` - -error: this call to `as_ref` does nothing - --> $DIR/useless_asref.rs:61:18 - | -LL | foo_rstr(rrrrrstr.as_ref()); - | ^^^^^^^^^^^^^^^^^ help: try this: `rrrrrstr` - -error: this call to `as_mut` does nothing - --> $DIR/useless_asref.rs:66:21 - | -LL | foo_mrslice(mrrrrrslice.as_mut()); - | ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice` - -error: this call to `as_ref` does nothing - --> $DIR/useless_asref.rs:68:20 - | -LL | foo_rslice(mrrrrrslice.as_ref()); - | ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice` - -error: this call to `as_ref` does nothing - --> $DIR/useless_asref.rs:72:16 - | -LL | foo_rrrrmr((&&&&MoreRef).as_ref()); - | ^^^^^^^^^^^^^^^^^^^^^^ help: try this: `(&&&&MoreRef)` - -error: this call to `as_mut` does nothing - --> $DIR/useless_asref.rs:122:13 - | -LL | foo_mrt(mrt.as_mut()); - | ^^^^^^^^^^^^ help: try this: `mrt` - -error: this call to `as_ref` does nothing - --> $DIR/useless_asref.rs:124:12 - | -LL | foo_rt(mrt.as_ref()); - | ^^^^^^^^^^^^ help: try this: `mrt` - -error: aborting due to 11 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/useless_asref.stderr normalized fixed: // run-rustfix #![deny(clippy::useless_asref)] #![allow(clippy::trivially_copy_pass_by_ref)] use std::fmt::Debug; struct FakeAsRef; #[allow(clippy::should_implement_trait)] impl FakeAsRef { fn as_ref(&self) -> &Self { self } } struct MoreRef; impl<'a, 'b, 'c> AsRef<&'a &'b &'c MoreRef> for MoreRef { fn as_ref(&self) -> &&'a &'b &'c MoreRef { &&&&MoreRef } } fn foo_rstr(x: &str) { println!("{:?}", x); } fn foo_rslice(x: &[i32]) { println!("{:?}", x); } fn foo_mrslice(x: &mut [i32]) { println!("{:?}", x); } fn foo_rrrrmr(_: &&&&MoreRef) { println!("so many refs"); } fn not_ok() { let rstr: &str = "hello"; let mut mrslice: &mut [i32] = &mut [1, 2, 3]; { let rslice: &[i32] = &*mrslice; foo_rstr(rstr.as_ref()); foo_rstr(rstr); foo_rslice(rslice.as_ref()); foo_rslice(rslice); } { foo_mrslice(mrslice.as_mut()); foo_mrslice(mrslice); foo_rslice(mrslice.as_ref()); foo_rslice(mrslice); } { let rrrrrstr = &&&&rstr; let rrrrrslice = &&&&&*mrslice; foo_rslice(rrrrrslice.as_ref()); foo_rslice(rrrrrslice); foo_rstr(rrrrrstr.as_ref()); foo_rstr(rrrrrstr); } { let mrrrrrslice = &mut &mut &mut &mut mrslice; foo_mrslice(mrrrrrslice.as_mut()); foo_mrslice(mrrrrrslice); foo_rslice(mrrrrrslice.as_ref()); foo_rslice(mrrrrrslice); } #[allow(unused_parens, clippy::double_parens)] foo_rrrrmr((&&&&MoreRef).as_ref()); generic_not_ok(mrslice); generic_ok(mrslice); } fn ok() { let string = "hello".to_owned(); let mut arr = [1, 2, 3]; let mut vec = vec![1, 2, 3]; { foo_rstr(string.as_ref()); foo_rslice(arr.as_ref()); foo_rslice(vec.as_ref()); } { foo_mrslice(arr.as_mut()); foo_mrslice(vec.as_mut()); } { let rrrrstring = &&&&string; let rrrrarr = &&&&arr; let rrrrvec = &&&&vec; foo_rstr(rrrrstring.as_ref()); foo_rslice(rrrrarr.as_ref()); foo_rslice(rrrrvec.as_ref()); } { let mrrrrarr = &mut &mut &mut &mut arr; let mrrrrvec = &mut &mut &mut &mut vec; foo_mrslice(mrrrrarr.as_mut()); foo_mrslice(mrrrrvec.as_mut()); } FakeAsRef.as_ref(); foo_rrrrmr(MoreRef.as_ref()); generic_not_ok(arr.as_mut()); generic_ok(&mut arr); } fn foo_mrt(t: &mut T) { println!("{:?}", t); } fn foo_rt(t: &T) { println!("{:?}", t); } fn generic_not_ok + AsRef + Debug + ?Sized>(mrt: &mut T) { foo_mrt(mrt.as_mut()); foo_mrt(mrt); foo_rt(mrt.as_ref()); foo_rt(mrt); } fn generic_ok + AsRef + ?Sized, T: Debug + ?Sized>(mru: &mut U) { foo_mrt(mru.as_mut()); foo_rt(mru.as_ref()); } fn main() { not_ok(); ok(); } expected fixed: // run-rustfix #![deny(clippy::useless_asref)] #![allow(clippy::trivially_copy_pass_by_ref)] use std::fmt::Debug; struct FakeAsRef; #[allow(clippy::should_implement_trait)] impl FakeAsRef { fn as_ref(&self) -> &Self { self } } struct MoreRef; impl<'a, 'b, 'c> AsRef<&'a &'b &'c MoreRef> for MoreRef { fn as_ref(&self) -> &&'a &'b &'c MoreRef { &&&&MoreRef } } fn foo_rstr(x: &str) { println!("{:?}", x); } fn foo_rslice(x: &[i32]) { println!("{:?}", x); } fn foo_mrslice(x: &mut [i32]) { println!("{:?}", x); } fn foo_rrrrmr(_: &&&&MoreRef) { println!("so many refs"); } fn not_ok() { let rstr: &str = "hello"; let mut mrslice: &mut [i32] = &mut [1, 2, 3]; { let rslice: &[i32] = &*mrslice; foo_rstr(rstr); foo_rstr(rstr); foo_rslice(rslice); foo_rslice(rslice); } { foo_mrslice(mrslice); foo_mrslice(mrslice); foo_rslice(mrslice); foo_rslice(mrslice); } { let rrrrrstr = &&&&rstr; let rrrrrslice = &&&&&*mrslice; foo_rslice(rrrrrslice); foo_rslice(rrrrrslice); foo_rstr(rrrrrstr); foo_rstr(rrrrrstr); } { let mrrrrrslice = &mut &mut &mut &mut mrslice; foo_mrslice(mrrrrrslice); foo_mrslice(mrrrrrslice); foo_rslice(mrrrrrslice); foo_rslice(mrrrrrslice); } #[allow(unused_parens, clippy::double_parens)] foo_rrrrmr((&&&&MoreRef)); generic_not_ok(mrslice); generic_ok(mrslice); } fn ok() { let string = "hello".to_owned(); let mut arr = [1, 2, 3]; let mut vec = vec![1, 2, 3]; { foo_rstr(string.as_ref()); foo_rslice(arr.as_ref()); foo_rslice(vec.as_ref()); } { foo_mrslice(arr.as_mut()); foo_mrslice(vec.as_mut()); } { let rrrrstring = &&&&string; let rrrrarr = &&&&arr; let rrrrvec = &&&&vec; foo_rstr(rrrrstring.as_ref()); foo_rslice(rrrrarr.as_ref()); foo_rslice(rrrrvec.as_ref()); } { let mrrrrarr = &mut &mut &mut &mut arr; let mrrrrvec = &mut &mut &mut &mut vec; foo_mrslice(mrrrrarr.as_mut()); foo_mrslice(mrrrrvec.as_mut()); } FakeAsRef.as_ref(); foo_rrrrmr(MoreRef.as_ref()); generic_not_ok(arr.as_mut()); generic_ok(&mut arr); } fn foo_mrt(t: &mut T) { println!("{:?}", t); } fn foo_rt(t: &T) { println!("{:?}", t); } fn generic_not_ok + AsRef + Debug + ?Sized>(mrt: &mut T) { foo_mrt(mrt); foo_mrt(mrt); foo_rt(mrt); foo_rt(mrt); } fn generic_ok + AsRef + ?Sized, T: Debug + ?Sized>(mru: &mut U) { foo_mrt(mru.as_mut()); foo_rt(mru.as_ref()); } fn main() { not_ok(); ok(); } diff of fixed: // run-rustfix #![deny(clippy::useless_asref)] #![allow(clippy::trivially_copy_pass_by_ref)] use std::fmt::Debug; struct FakeAsRef; #[allow(clippy::should_implement_trait)] impl FakeAsRef { fn as_ref(&self) -> &Self { self } } struct MoreRef; impl<'a, 'b, 'c> AsRef<&'a &'b &'c MoreRef> for MoreRef { fn as_ref(&self) -> &&'a &'b &'c MoreRef { &&&&MoreRef } } fn foo_rstr(x: &str) { println!("{:?}", x); } fn foo_rslice(x: &[i32]) { println!("{:?}", x); } fn foo_mrslice(x: &mut [i32]) { println!("{:?}", x); } fn foo_rrrrmr(_: &&&&MoreRef) { println!("so many refs"); } fn not_ok() { let rstr: &str = "hello"; let mut mrslice: &mut [i32] = &mut [1, 2, 3]; { let rslice: &[i32] = &*mrslice; + foo_rstr(rstr.as_ref()); foo_rstr(rstr); - foo_rstr(rstr); + foo_rslice(rslice.as_ref()); foo_rslice(rslice); - foo_rslice(rslice); } { + foo_mrslice(mrslice.as_mut()); foo_mrslice(mrslice); - foo_mrslice(mrslice); + foo_rslice(mrslice.as_ref()); foo_rslice(mrslice); - foo_rslice(mrslice); } { let rrrrrstr = &&&&rstr; let rrrrrslice = &&&&&*mrslice; + foo_rslice(rrrrrslice.as_ref()); foo_rslice(rrrrrslice); - foo_rslice(rrrrrslice); + foo_rstr(rrrrrstr.as_ref()); foo_rstr(rrrrrstr); - foo_rstr(rrrrrstr); } { let mrrrrrslice = &mut &mut &mut &mut mrslice; + foo_mrslice(mrrrrrslice.as_mut()); foo_mrslice(mrrrrrslice); - foo_mrslice(mrrrrrslice); + foo_rslice(mrrrrrslice.as_ref()); foo_rslice(mrrrrrslice); - foo_rslice(mrrrrrslice); } #[allow(unused_parens, clippy::double_parens)] - foo_rrrrmr((&&&&MoreRef)); + foo_rrrrmr((&&&&MoreRef).as_ref()); generic_not_ok(mrslice); generic_ok(mrslice); } fn ok() { let string = "hello".to_owned(); let mut arr = [1, 2, 3]; let mut vec = vec![1, 2, 3]; { foo_rstr(string.as_ref()); foo_rslice(arr.as_ref()); foo_rslice(vec.as_ref()); } { foo_mrslice(arr.as_mut()); foo_mrslice(vec.as_mut()); } { let rrrrstring = &&&&string; let rrrrarr = &&&&arr; let rrrrvec = &&&&vec; foo_rstr(rrrrstring.as_ref()); foo_rslice(rrrrarr.as_ref()); foo_rslice(rrrrvec.as_ref()); } { let mrrrrarr = &mut &mut &mut &mut arr; let mrrrrvec = &mut &mut &mut &mut vec; foo_mrslice(mrrrrarr.as_mut()); foo_mrslice(mrrrrvec.as_mut()); } FakeAsRef.as_ref(); foo_rrrrmr(MoreRef.as_ref()); generic_not_ok(arr.as_mut()); generic_ok(&mut arr); } fn foo_mrt(t: &mut T) { println!("{:?}", t); } fn foo_rt(t: &T) { println!("{:?}", t); } fn generic_not_ok + AsRef + Debug + ?Sized>(mrt: &mut T) { + foo_mrt(mrt.as_mut()); foo_mrt(mrt); - foo_mrt(mrt); - foo_rt(mrt); + foo_rt(mrt.as_ref()); foo_rt(mrt); } fn generic_ok + AsRef + ?Sized, T: Debug + ?Sized>(mru: &mut U) { foo_mrt(mru.as_mut()); foo_rt(mru.as_ref()); } fn main() { not_ok(); ok(); } The actual fixed differed from the expected fixed. Actual fixed saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/useless_asref.fixed To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'useless_asref.rs' error: 2 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/useless_asref.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/useless_asref.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/useless_asref.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/useless_asref.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/wildcard_enum_match_arm.rs stdout ---- normalized stderr: expected stderr: error: wildcard match will miss any future added variants. --> $DIR/wildcard_enum_match_arm.rs:26:9 | LL | _ => eprintln!("Not red"), | ^ help: try this: `Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan` | note: lint level defined here --> $DIR/wildcard_enum_match_arm.rs:1:9 | LL | #![deny(clippy::wildcard_enum_match_arm)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: wildcard match will miss any future added variants. --> $DIR/wildcard_enum_match_arm.rs:30:9 | LL | _not_red => eprintln!("Not red"), | ^^^^^^^^ help: try this: `_not_red @ Color::Green | _not_red @ Color::Blue | _not_red @ Color::Rgb(..) | _not_red @ Color::Cyan` error: wildcard match will miss any future added variants. --> $DIR/wildcard_enum_match_arm.rs:34:9 | LL | not_red => format!("{:?}", not_red), | ^^^^^^^ help: try this: `not_red @ Color::Green | not_red @ Color::Blue | not_red @ Color::Rgb(..) | not_red @ Color::Cyan` error: wildcard match will miss any future added variants. --> $DIR/wildcard_enum_match_arm.rs:50:9 | LL | _ => "No red", | ^ help: try this: `Color::Red | Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan` error: aborting due to 4 previous errors diff of stderr: -error: wildcard match will miss any future added variants. - --> $DIR/wildcard_enum_match_arm.rs:26:9 - | -LL | _ => eprintln!("Not red"), - | ^ help: try this: `Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan` - | -note: lint level defined here - --> $DIR/wildcard_enum_match_arm.rs:1:9 - | -LL | #![deny(clippy::wildcard_enum_match_arm)] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: wildcard match will miss any future added variants. - --> $DIR/wildcard_enum_match_arm.rs:30:9 - | -LL | _not_red => eprintln!("Not red"), - | ^^^^^^^^ help: try this: `_not_red @ Color::Green | _not_red @ Color::Blue | _not_red @ Color::Rgb(..) | _not_red @ Color::Cyan` - -error: wildcard match will miss any future added variants. - --> $DIR/wildcard_enum_match_arm.rs:34:9 - | -LL | not_red => format!("{:?}", not_red), - | ^^^^^^^ help: try this: `not_red @ Color::Green | not_red @ Color::Blue | not_red @ Color::Rgb(..) | not_red @ Color::Cyan` - -error: wildcard match will miss any future added variants. - --> $DIR/wildcard_enum_match_arm.rs:50:9 - | -LL | _ => "No red", - | ^ help: try this: `Color::Red | Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan` - -error: aborting due to 4 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/wildcard_enum_match_arm.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'wildcard_enum_match_arm.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/wildcard_enum_match_arm.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/wildcard_enum_match_arm.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/wildcard_enum_match_arm.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/wildcard_enum_match_arm.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/while_loop.rs stdout ---- normalized stderr: expected stderr: error: this loop could be written as a `while let` loop --> $DIR/while_loop.rs:6:5 | LL | / loop { LL | | if let Some(_x) = y { LL | | let _v = 1; LL | | } else { LL | | break; LL | | } LL | | } | |_____^ help: try: `while let Some(_x) = y { .. }` | = note: `-D clippy::while-let-loop` implied by `-D warnings` error: this loop could be written as a `while let` loop --> $DIR/while_loop.rs:20:5 | LL | / loop { LL | | match y { LL | | Some(_x) => true, LL | | None => break, LL | | }; LL | | } | |_____^ help: try: `while let Some(_x) = y { .. }` error: this loop could be written as a `while let` loop --> $DIR/while_loop.rs:26:5 | LL | / loop { LL | | let x = match y { LL | | Some(x) => x, LL | | None => break, ... | LL | | let _str = "foo"; LL | | } | |_____^ help: try: `while let Some(x) = y { .. }` error: this loop could be written as a `while let` loop --> $DIR/while_loop.rs:34:5 | LL | / loop { LL | | let x = match y { LL | | Some(x) => x, LL | | None => break, ... | LL | | } LL | | } | |_____^ help: try: `while let Some(x) = y { .. }` error: this loop could be written as a `while let` loop --> $DIR/while_loop.rs:62:5 | LL | / loop { LL | | let (e, l) = match "".split_whitespace().next() { LL | | Some(word) => (word.is_empty(), word.len()), LL | | None => break, ... | LL | | let _ = (e, l); LL | | } | |_____^ help: try: `while let Some(word) = "".split_whitespace().next() { .. }` error: this loop could be written as a `for` loop --> $DIR/while_loop.rs:72:33 | LL | while let Option::Some(x) = iter.next() { | ^^^^^^^^^^^ help: try: `for x in iter { .. }` | = note: `-D clippy::while-let-on-iterator` implied by `-D warnings` error: this loop could be written as a `for` loop --> $DIR/while_loop.rs:77:25 | LL | while let Some(x) = iter.next() { | ^^^^^^^^^^^ help: try: `for x in iter { .. }` error: this loop could be written as a `for` loop --> $DIR/while_loop.rs:82:25 | LL | while let Some(_) = iter.next() {} | ^^^^^^^^^^^ help: try: `for _ in iter { .. }` error: this loop could be written as a `while let` loop --> $DIR/while_loop.rs:125:5 | LL | / loop { LL | | let _ = match iter.next() { LL | | Some(ele) => ele, LL | | None => break, LL | | }; LL | | loop {} LL | | } | |_____^ help: try: `while let Some(ele) = iter.next() { .. }` error: empty `loop {}` detected. You may want to either use `panic!()` or add `std::thread::sleep(..);` to the loop body. --> $DIR/while_loop.rs:130:9 | LL | loop {} | ^^^^^^^ | = note: `-D clippy::empty-loop` implied by `-D warnings` error: this loop could be written as a `for` loop --> $DIR/while_loop.rs:188:29 | LL | while let Some(v) = y.next() { | ^^^^^^^^ help: try: `for v in y { .. }` error: this loop could be written as a `for` loop --> $DIR/while_loop.rs:216:26 | LL | while let Some(..) = values.iter().next() { | ^^^^^^^^^^^^^^^^^^^^ help: try: `for _ in values.iter() { .. }` error: aborting due to 12 previous errors diff of stderr: -error: this loop could be written as a `while let` loop - --> $DIR/while_loop.rs:6:5 - | -LL | / loop { -LL | | if let Some(_x) = y { -LL | | let _v = 1; -LL | | } else { -LL | | break; -LL | | } -LL | | } - | |_____^ help: try: `while let Some(_x) = y { .. }` - | - = note: `-D clippy::while-let-loop` implied by `-D warnings` - -error: this loop could be written as a `while let` loop - --> $DIR/while_loop.rs:20:5 - | -LL | / loop { -LL | | match y { -LL | | Some(_x) => true, -LL | | None => break, -LL | | }; -LL | | } - | |_____^ help: try: `while let Some(_x) = y { .. }` - -error: this loop could be written as a `while let` loop - --> $DIR/while_loop.rs:26:5 - | -LL | / loop { -LL | | let x = match y { -LL | | Some(x) => x, -LL | | None => break, -... | -LL | | let _str = "foo"; -LL | | } - | |_____^ help: try: `while let Some(x) = y { .. }` - -error: this loop could be written as a `while let` loop - --> $DIR/while_loop.rs:34:5 - | -LL | / loop { -LL | | let x = match y { -LL | | Some(x) => x, -LL | | None => break, -... | -LL | | } -LL | | } - | |_____^ help: try: `while let Some(x) = y { .. }` - -error: this loop could be written as a `while let` loop - --> $DIR/while_loop.rs:62:5 - | -LL | / loop { -LL | | let (e, l) = match "".split_whitespace().next() { -LL | | Some(word) => (word.is_empty(), word.len()), -LL | | None => break, -... | -LL | | let _ = (e, l); -LL | | } - | |_____^ help: try: `while let Some(word) = "".split_whitespace().next() { .. }` - -error: this loop could be written as a `for` loop - --> $DIR/while_loop.rs:72:33 - | -LL | while let Option::Some(x) = iter.next() { - | ^^^^^^^^^^^ help: try: `for x in iter { .. }` - | - = note: `-D clippy::while-let-on-iterator` implied by `-D warnings` - -error: this loop could be written as a `for` loop - --> $DIR/while_loop.rs:77:25 - | -LL | while let Some(x) = iter.next() { - | ^^^^^^^^^^^ help: try: `for x in iter { .. }` - -error: this loop could be written as a `for` loop - --> $DIR/while_loop.rs:82:25 - | -LL | while let Some(_) = iter.next() {} - | ^^^^^^^^^^^ help: try: `for _ in iter { .. }` - -error: this loop could be written as a `while let` loop - --> $DIR/while_loop.rs:125:5 - | -LL | / loop { -LL | | let _ = match iter.next() { -LL | | Some(ele) => ele, -LL | | None => break, -LL | | }; -LL | | loop {} -LL | | } - | |_____^ help: try: `while let Some(ele) = iter.next() { .. }` - -error: empty `loop {}` detected. You may want to either use `panic!()` or add `std::thread::sleep(..);` to the loop body. - --> $DIR/while_loop.rs:130:9 - | -LL | loop {} - | ^^^^^^^ - | - = note: `-D clippy::empty-loop` implied by `-D warnings` - -error: this loop could be written as a `for` loop - --> $DIR/while_loop.rs:188:29 - | -LL | while let Some(v) = y.next() { - | ^^^^^^^^ help: try: `for v in y { .. }` - -error: this loop could be written as a `for` loop - --> $DIR/while_loop.rs:216:26 - | -LL | while let Some(..) = values.iter().next() { - | ^^^^^^^^^^^^^^^^^^^^ help: try: `for _ in values.iter() { .. }` - -error: aborting due to 12 previous errors - - The actual stderr differed from the expected stderr. Actual stderr saved to /builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/while_loop.stderr To update references, run this command from build directory: tests/ui/update-references.sh '/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base' 'while_loop.rs' error: 1 errors occurred comparing output. status: signal: 11 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/while_loop.rs" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/while_loop.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/while_loop.stage-id.aux" "-A" "unused" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ ------------------------------------------ thread '[ui] ui/while_loop.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/unreadable_literal.rs stdout ---- error: failed to compile fixed code status: exit code: 1 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/unreadable_literal.fixed" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unreadable_literal.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/unreadable_literal.stage-id.aux" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ {"message":"literal out of range for usize","code":{"code":"overflowing_literals","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/unreadable_literal.fixed","byte_start":327,"byte_end":349,"line_start":17,"line_end":17,"column_start":31,"column_end":53,"is_primary":true,"text":[{"text":" let bad = (0b11_0110_i64, 0x0123_4567_8901_usize, 123_456_f32, 1.234_567_f32);","highlight_start":31,"highlight_end":53}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"#[deny(overflowing_literals)] on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"the literal `0x0123_4567_8901_usize` (decimal `1250999896321`) does not fit into an `usize` and will become `1164413185usize`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: literal out of range for usize\n --> tests/ui/unreadable_literal.fixed:17:31\n |\nLL | let bad = (0b11_0110_i64, 0x0123_4567_8901_usize, 123_456_f32, 1.234_567_f32);\n | ^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: #[deny(overflowing_literals)] on by default\n = note: the literal `0x0123_4567_8901_usize` (decimal `1250999896321`) does not fit into an `usize` and will become `1164413185usize`\n\n"} {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"} ------------------------------------------ thread '[ui] ui/unreadable_literal.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 ---- [ui] ui/large_digit_groups.rs stdout ---- error: failed to compile fixed code status: exit code: 1 command: "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools-bin/clippy-driver" "tests/ui/large_digit_groups.fixed" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base" "--target=i686-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/large_digit_groups.stage-id" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/release/deps" "-Dwarnings" "-Zui-testing" "-L" "/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/build/clippy-d6c998dfe0fa9f31/out/test_build_base/large_digit_groups.stage-id.aux" stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ {"message":"literal out of range for usize","code":{"code":"overflowing_literals","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/large_digit_groups.fixed","byte_start":328,"byte_end":350,"line_start":17,"line_end":17,"column_start":9,"column_end":31,"is_primary":true,"text":[{"text":" 0x0123_4567_8901_usize,","highlight_start":9,"highlight_end":31}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"#[deny(overflowing_literals)] on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"the literal `0x0123_4567_8901_usize` (decimal `1250999896321`) does not fit into an `usize` and will become `1164413185usize`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: literal out of range for usize\n --> tests/ui/large_digit_groups.fixed:17:9\n |\nLL | 0x0123_4567_8901_usize,\n | ^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: #[deny(overflowing_literals)] on by default\n = note: the literal `0x0123_4567_8901_usize` (decimal `1250999896321`) does not fit into an `usize` and will become `1164413185usize`\n\n"} {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"} ------------------------------------------ thread '[ui] ui/large_digit_groups.rs' panicked at 'explicit panic', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/runtest.rs:2632:9 failures: [ui] ui/absurd-extreme-comparisons.rs [ui] ui/assertions_on_constants.rs [ui] ui/assign_ops2.rs [ui] ui/attrs.rs [ui] ui/author/for_loop.rs [ui] ui/block_in_if_condition.rs [ui] ui/bool_comparison.rs [ui] ui/booleans.rs [ui] ui/box_vec.rs [ui] ui/cast_lossless_float.rs [ui] ui/cast_lossless_integer.rs [ui] ui/cast_size.rs [ui] ui/cmp_owned.rs [ui] ui/cognitive_complexity.rs [ui] ui/cognitive_complexity_attr_used.rs [ui] ui/collapsible_if.rs [ui] ui/complex_types.rs [ui] ui/const_static_lifetime.rs [ui] ui/copy_iterator.rs [ui] ui/crashes/cc_seme.rs [ui] ui/crashes/ice-1782.rs [ui] ui/crashes/ice-1969.rs [ui] ui/crashes/ice-2499.rs [ui] ui/crashes/ice-2774.rs [ui] ui/crashes/if_same_then_else.rs [ui] ui/crashes/issue-2862.rs [ui] ui/crashes/issue-825.rs [ui] ui/crashes/issues_loop_mut_cond.rs [ui] ui/crashes/match_same_arms_const.rs [ui] ui/crashes/needless_borrow_fp.rs [ui] ui/crashes/procedural_macro.rs [ui] ui/crashes/used_underscore_binding_macro.rs [ui] ui/dbg_macro.rs [ui] ui/default_trait_access.rs [ui] ui/derive.rs [ui] ui/diverging_sub_expression.rs [ui] ui/dlist.rs [ui] ui/double_parens.rs [ui] ui/drop_forget_copy.rs [ui] ui/duration_subsec.rs [ui] ui/else_if_without_else.rs [ui] ui/empty_line_after_outer_attribute.rs [ui] ui/entry.rs [ui] ui/eq_op.rs [ui] ui/escape_analysis.rs [ui] ui/eta.rs [ui] ui/expect_fun_call.rs [ui] ui/explicit_counter_loop.rs [ui] ui/explicit_write.rs [ui] ui/fallible_impl_from.rs [ui] ui/float_cmp.rs [ui] ui/float_cmp_const.rs [ui] ui/fn_to_numeric_cast.rs [ui] ui/for_loop.rs [ui] ui/formatting.rs [ui] ui/functions.rs [ui] ui/get_unwrap.rs [ui] ui/if_not_else.rs [ui] ui/if_same_then_else.rs [ui] ui/ifs_same_cond.rs [ui] ui/implicit_hasher.rs [ui] ui/implicit_return.rs [ui] ui/infinite_iter.rs [ui] ui/infinite_loop.rs [ui] ui/invalid_upcast_comparisons.rs [ui] ui/issue_2356.rs [ui] ui/issue_3849.rs [ui] ui/iter_skip_next.rs [ui] ui/large_digit_groups.rs [ui] ui/len_zero.rs [ui] ui/let_if_seq.rs [ui] ui/let_return.rs [ui] ui/let_unit.rs [ui] ui/lifetimes.rs [ui] ui/lint_without_lint_pass.rs [ui] ui/manual_memcpy.rs [ui] ui/matches.rs [ui] ui/methods.rs [ui] ui/missing_const_for_fn/could_be_const.rs [ui] ui/mut_from_ref.rs [ui] ui/mut_mut.rs [ui] ui/my_lint.rs [ui] ui/needless_bool.rs [ui] ui/needless_borrow.rs [ui] ui/needless_borrowed_ref.rs [ui] ui/needless_continue.rs [ui] ui/needless_pass_by_value.rs [ui] ui/needless_range_loop.rs [ui] ui/needless_return.rs [ui] ui/neg_multiply.rs [ui] ui/never_loop.rs [ui] ui/new_ret_no_self.rs [ui] ui/new_without_default.rs [ui] ui/no_effect.rs [ui] ui/non_copy_const.rs [ui] ui/non_expressive_names.rs [ui] ui/ok_expect.rs [ui] ui/ok_if_let.rs [ui] ui/option_map_unit_fn.rs [ui] ui/option_option.rs [ui] ui/panic_unimplemented.rs [ui] ui/print.rs [ui] ui/question_mark.rs [ui] ui/range_plus_minus_one.rs [ui] ui/redundant_clone.rs [ui] ui/redundant_closure_call.rs [ui] ui/reference.rs [ui] ui/rename.rs [ui] ui/result_map_unit_fn.rs [ui] ui/result_map_unwrap_or_else.rs [ui] ui/serde.rs [ui] ui/shadow.rs [ui] ui/short_circuit_statement.rs [ui] ui/similar_names.rs [ui] ui/single_match_else.rs [ui] ui/string_extend.rs [ui] ui/strings.rs [ui] ui/suspicious_arithmetic_impl.rs [ui] ui/temporary_assignment.rs [ui] ui/transmute.rs [ui] ui/transmute_32bit.rs [ui] ui/transmuting_null.rs [ui] ui/trivially_copy_pass_by_ref.rs [ui] ui/unit_arg.rs [ui] ui/unnecessary_clone.rs [ui] ui/unnecessary_filter_map.rs [ui] ui/unnecessary_operation.rs [ui] ui/unreadable_literal.rs [ui] ui/unused_labels.rs [ui] ui/unused_lt.rs [ui] ui/unused_unit.rs [ui] ui/use_self.rs [ui] ui/used_underscore_binding.rs [ui] ui/useless_asref.rs [ui] ui/vec.rs [ui] ui/while_loop.rs [ui] ui/wildcard_enum_match_arm.rs test result: FAILED. 150 passed; 137 failed; 2 ignored; 0 measured; 0 filtered out test compile_test ... FAILED failures: ---- compile_test stdout ---- thread 'compile_test' panicked at 'Some tests failed', /builddir/build/BUILD/rustc-1.35.0-src/vendor/compiletest_rs/src/lib.rs:90:22 failures: compile_test test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out command did not execute successfully: "/usr/bin/cargo" "test" "--target" "i686-unknown-linux-gnu" "-j" "40" "--release" "--frozen" "--manifest-path" "/builddir/build/BUILD/rustc-1.35.0-src/src/tools/clippy/Cargo.toml" expected success, got: exit code: 101 1 command(s) did not execute successfully: - "/usr/bin/cargo" "test" "--target" "i686-unknown-linux-gnu" "-j" "40" "--release" "--frozen" "--manifest-path" "/builddir/build/BUILD/rustc-1.35.0-src/src/tools/clippy/Cargo.toml" failed to run: /builddir/build/BUILD/rustc-1.35.0-src/build/bootstrap/debug/bootstrap test --no-fail-fast clippy Build completed unsuccessfully in 0:00:40 error: test failed, to rerun pass '--test compile-test' + : + /usr/libexec/platform-python ./x.py test --no-fail-fast rls Finished dev [unoptimized] target(s) in 0.25s Building stage0 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Copying stage0 std from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.23s Copying stage0 test from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.28s Copying stage0 rustc from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Finished release [optimized] target(s) in 0.23s Assembling stage1 compiler (i686-unknown-linux-gnu) Building stage1 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Copying stage1 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.23s Copying stage1 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.28s Copying stage1 rustc from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Finished release [optimized] target(s) in 0.23s Assembling stage2 compiler (i686-unknown-linux-gnu) Uplifting stage1 std (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Uplifting stage1 test (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Uplifting stage1 rustc (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 rustc from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage2 tool clippy-driver (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.26s Building stage2 tool rls (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.33s Building rustdoc for stage2 (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Compiling slab v0.4.2 Compiling arc-swap v0.3.7 Compiling difference v2.0.0 Compiling tokio-executor v0.1.6 Compiling net2 v0.2.33 Compiling crossbeam-deque v0.6.3 Compiling tokio-io v0.1.11 Compiling signal-hook v0.1.7 Compiling tokio-threadpool v0.1.10 Compiling tokio-current-thread v0.1.4 Compiling tokio-timer v0.2.8 Compiling mio v0.6.16 Compiling tokio-codec v0.1.1 Compiling lsp-codec v0.1.2 Compiling mio-uds v0.6.7 Compiling tokio-reactor v0.1.8 Compiling tokio-fs v0.1.5 Compiling tokio-udp v0.1.3 Compiling tokio-uds v0.2.5 Compiling tokio-signal v0.2.7 Compiling tokio-tcp v0.1.3 Compiling tokio v0.1.14 Compiling tokio-process v0.2.3 Compiling rls v1.35.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rls) Finished release [optimized] target(s) in 41.25s Running build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/deps/rls-28912c21fa92f13e running 65 tests test actions::diagnostics::diagnostic_message_test::macro_expected_token_nested_expansion ... ok test actions::diagnostics::diagnostic_message_test::macro_error_no_trait ... ok test actions::diagnostics::diagnostic_message_test::message_clippy_identity_op ... ok test actions::diagnostics::diagnostic_message_test::message_cannot_find_type ... ok test actions::diagnostics::diagnostic_message_test::message_consider_borrowing ... ok test actions::diagnostics::diagnostic_message_test::message_mismatched_types ... ok test actions::diagnostics::diagnostic_message_test::message_move_out_of_borrow ... ok test actions::diagnostics::diagnostic_message_test::message_not_mutable ... ok test actions::diagnostics::diagnostic_message_test::message_unused_use ... ok test actions::diagnostics::diagnostic_message_test::message_type_annotations_needed ... ok test actions::diagnostics::diagnostic_message_test::message_use_after_move ... ok test actions::diagnostics::diagnostic_suggestion_test::suggest_macro_error_no_trait ... ok test actions::diagnostics::diagnostic_suggestion_test::suggest_clippy_const_static ... ok test actions::hover::test::test_extract_decl_multiline_empty_function ... ok test actions::diagnostics::diagnostic_suggestion_test::suggest_use_when_cannot_find_type ... ok test actions::hover::test::test_extract_decl ... ok test actions::hover::test::test_extract_docs_comment_first_line ... ok test actions::diagnostics::diagnostic_suggestion_test::suggest_mut_when_not_mut ... ok test actions::hover::test::test_extract_docs_comment_block ... ok test actions::hover::test::test_extract_docs_empty_line_before_decl ... ok test actions::hover::test::test_noindent ... ok test actions::hover::test::test_extract_docs_module_docs_no_copyright ... ok test actions::hover::test::test_process_docs_bash_block ... ok test actions::hover::test::test_extract_docs_module_docs ... ok test actions::hover::test::test_extract_docs_module_docs_with_attribute ... ok test actions::hover::test::test_extract_docs_attributes ... ok test actions::hover::test::test_process_docs_racer_returns_extra_slashes ... ok test actions::hover::test::test_process_docs_rust_blocks ... ok test actions::requests::test::test_sort_deglob_str ... ok test actions::test::did_save_relevant_files ... ok test actions::test::test_find_word_at_pos ... ok test build::auto_tune_build_wait_no_config ... ok test actions::test::file_watch_relevant_files ... ok test build::cargo::test::test_dedup_flags ... ok test build::dont_auto_tune_build_wait_configured ... ok test actions::notifications::test::learn_client_use_change_watched ... ok test cmd::url_workaround_unc_canonicals ... ok test config::clippy_preference_from_str ... ok test server::io::tests::read_message_fails_on_empty_input ... ok test build::external::tests::dirties_transitive ... ok test build::external::tests::topological_sort ... ok test build::external::tests::dirty_units_path_heuristics ... ok test server::io::tests::read_message_fails_when_content_is_not_valid_utf8 ... ok test server::io::tests::read_message_fails_when_content_type_is_invalid ... ok test server::io::tests::read_message_fails_when_header_line_is_invalid ... ok test actions::format::tests::calc_text_edits ... ok test server::io::tests::read_message_fails_when_input_contains_only_header ... ok test server::io::tests::read_message_fails_when_length_header_is_missing ... ok test server::io::tests::read_message_fails_when_length_is_not_numeric ... ok test server::io::tests::read_message_fails_when_length_is_too_large_integer ... ok test server::io::tests::read_message_returns_message_from_input_with_multiple_headers ... ok test server::io::tests::read_message_returns_message_from_input_with_unknown_headers ... ok test server::io::tests::read_message_returns_message_from_valid_lsr_input ... ok test server::message::test::deserialize_message_empty_params ... ok test server::message::test::raw_message_parses_valid_jsonrpc_request_with_numeric_id ... ok test server::message::test::raw_message_parses_valid_jsonrpc_request_with_string_id ... ok test server::message::test::raw_message_with_string_id_parses_into_request ... ok test server::message::test::serialize_message_empty_params ... ok test server::message::test::serialize_message_no_params ... ok test server::message::test::test_parse_as_notification ... ok test server::test::parse_shutdown_object_params ... ok test server::test::test_use_root_path ... ok test server::test::test_use_root_uri ... ok test actions::hover::test::test_format_object ... ok test actions::hover::test::test_format_method ... ok test result: ok. 65 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out Running build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/deps/client-36f93f7a142c23d0 running 50 tests test client_completion ... ignored test client_find_all_refs_test ... ignored test client_hover_after_src_line_change ... ignored test client_parse_error_on_malformed_input ... ok test client_invalid_toml_manifest ... ok test client_init_duplicated_and_unknown_settings ... ok test client_invalid_member_toml_manifest ... ok test client_did_change_configuration_duplicated_and_unknown_settings ... ok test client_invalid_member_dependency_resolution ... ok test client_init_with_configuration_snake_case ... ok test client_fail_uninitialized_request ... ok test client_omit_init_build ... ok test client_init_with_configuration_camel_case ... ok test client_deglob ... ok test client_reformat_with_range ... ok test client_changing_workspace_lib_retains_diagnostics ... ok test client_rename ... ok test client_infer_lib ... ok test client_goto_def ... ok test client_workspace_symbol ... ok test client_find_definitions ... ok test client_test_infer_lib ... ok test client_dependency_typo_and_fix ... ok test client_hover ... ok test client_init_with_configuration_mixed_case ... ok test client_bin_lib_project ... ok test client_no_default_features ... ok test client_test_infer_custom_bin ... ok test client_test_infer_bin ... ok test client_features ... ok test client_reformat ... ok test client_highlight ... ok test client_borrow_error ... ok test client_lens_run ... ok test client_multiple_binaries ... ok test client_workspace_symbol_duplicates ... ok test client_format_utf16_range ... ok test client_test_simple_workspace ... ok test client_all_targets ... ok test client_find_impls ... ok test client_init_with_configuration_kebab_case ... ok test client_shutdown ... ok test client_find_all_refs_no_cfg_test ... ok test client_all_features ... ok test client_ignore_uninitialized_notification ... ok test client_handle_utf16_unit_text_edits ... ok thread panicked while panicking. aborting. error: process didn't exit successfully: `/builddir/build/BUILD/rustc-1.35.0-src/build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/deps/client-36f93f7a142c23d0` (signal: 4, SIGILL: illegal instruction) command did not execute successfully: "/usr/bin/cargo" "test" "--target" "i686-unknown-linux-gnu" "-j" "40" "--release" "--frozen" "--manifest-path" "/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rls/Cargo.toml" "--" expected success, got: exit code: 101 1 command(s) did not execute successfully: - "/usr/bin/cargo" "test" "--target" "i686-unknown-linux-gnu" "-j" "40" "--release" "--frozen" "--manifest-path" "/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rls/Cargo.toml" "--" failed to run: /builddir/build/BUILD/rustc-1.35.0-src/build/bootstrap/debug/bootstrap test --no-fail-fast rls Build completed unsuccessfully in 0:01:12 + : + /usr/libexec/platform-python ./x.py test --no-fail-fast rustfmt Finished dev [unoptimized] target(s) in 0.24s Building stage0 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Copying stage0 std from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.22s Copying stage0 test from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.29s Copying stage0 rustc from stage0 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage0 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Finished release [optimized] target(s) in 0.23s Assembling stage1 compiler (i686-unknown-linux-gnu) Building stage1 std artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Copying stage1 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 test artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.23s Copying stage1 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 compiler artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.28s Copying stage1 rustc from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage1 codegen artifacts (i686-unknown-linux-gnu -> i686-unknown-linux-gnu, llvm) Finished release [optimized] target(s) in 0.23s Assembling stage2 compiler (i686-unknown-linux-gnu) Uplifting stage1 std (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 std from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Uplifting stage1 test (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 test from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Uplifting stage1 rustc (i686-unknown-linux-gnu -> i686-unknown-linux-gnu) Copying stage2 rustc from stage1 (i686-unknown-linux-gnu -> i686-unknown-linux-gnu / i686-unknown-linux-gnu) Building stage2 tool rustfmt (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.28s Building rustdoc for stage2 (i686-unknown-linux-gnu) Finished release [optimized] target(s) in 0.24s Compiling rustfmt-nightly v1.2.0 (/builddir/build/BUILD/rustc-1.35.0-src/src/tools/rustfmt) Finished release [optimized] target(s) in 29.31s Running build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/deps/rustfmt_nightly-4e9e4be7cc9cf608 running 82 tests test comment::test::comment_code_slices ... ok test comment::test::char_classes ... ok test comment::test::comment_code_slices_two ... ok test comment::test::test_contains_comment ... ok test comment::test::test_filter_normal_code ... ok test comment::test::comment_code_slices_three ... ok test config::file_lines::test::test_range_adjacent_to ... ok test comment::test::test_find_uncommented ... ok test comment::test::test_uncommented ... ok test config::file_lines::test::test_range_contains ... ok test config::file_lines::test::file_lines_to_json ... ok test config::file_lines::test::test_range_intersects ... ok test config::file_lines::test::test_range_merge ... ok test config::license::test::test_parse_license_template ... ok test config::options::test_newline_style_auto_apply ... ok test config::options::test_newline_style_auto_detect ... ok test config::test::test_config_set ... ok test config::test::test_config_used_to_toml ... ok test config::test::test_print_docs_exclude_unstable ... ok test config::test::test_print_docs_include_unstable ... ok test imports::test::test_use_tree_normalize ... ok test config::test::test_was_set ... ok test issues::find_unnumbered_issue ... ok test imports::test::test_use_tree_flatten ... ok test expr::test::test_last_line_offsetted ... ok test issues::find_issue ... ok test issues::issue_type ... ok test imports::test::test_use_tree_ord ... ok test rustfmt_diff::test::diff_trailing_newline ... ok test rustfmt_diff::test::diff_simple2 ... ok test rustfmt_diff::test::diff_simple ... ok test rustfmt_diff::test::diff_zerocontext ... ok test imports::test::test_use_tree_merge ... ok test rustfmt_diff::test::modified_lines_from_str ... ok test shape::test::indent_add_sub ... ok test shape::test::indent_add_sub_alignment ... ok test shape::test::indent_to_string_hard_tabs ... ok test shape::test::indent_to_string_spaces ... ok test comment::test::format_doc_comments ... ok test shape::test::shape_block_indent_with_alignment ... ok test shape::test::shape_block_indent_without_alignment ... ok test shape::test::shape_visual_indent ... ok test string::test::big_whitespace ... ok test string::test::detect_urls ... ok test string::test::issue343 ... ok test string::test::nothing_to_break ... ok test string::test::last_line_fit_with_newline ... ok test string::test::blank_line_with_non_empty_line_start ... ok test string::test::should_break_on_punctuation ... ok test string::test::newline_in_candidate_line ... ok test string::test::should_break_on_whitespace ... ok error: this file contains an un-closed delimiter --> :1:2 | 1 | { | -^ | | | un-closed delimiter error: expected item, found `{` --> :1:1 | 1 | { | ^ expected item error: unexpected close delimiter: `}` --> :1:1 | 1 | } | ^ unexpected close delimiter test string::test::should_break_forward ... ok test string::test::significant_whitespaces ... ok test string::test::last_line_fit_with_trailing_whitespaces ... ok test string::test::boundary_on_edge ... ok test string::test::overflow_in_non_string_content_with_line_end ... ok test string::test::overflow_in_non_string_content ... ok test test::idempotence_tests ... ok test test::rustfmt_diff_make_diff_tests ... ok test test::rustfmt_diff_no_diff_test ... ok test test::self_tests ... ok test string::test::retain_blank_lines ... ok test test::stdin_disable_all_formatting_test ... ok test test::format_lines_errors_are_reported ... ok test test::format_lines_errors_are_reported_with_tabs ... ok test test::string_eq_ignore_newline_repr_test ... ok test test::stdin_formatting_smoke_test ... ok test test::stdin_works_with_modified_lines ... ok test test::modified_test ... ok test unit_tests::test_format_snippet ... ok test unit_tests::test_format_code_block_fail ... ok test utils::test::test_trim_left_preserve_layout ... ok test utils::test::test_remove_trailing_white_spaces ... ok test test::stdin_parser_panic_caught ... ok test unit_tests::test_no_panic_on_format_snippet_and_format_code_block ... ok test test::coverage_tests ... ok test test::checkstyle_test ... ok test unit_tests::test_format_code_block ... ok test test::verify_check_works ... ok test test::verify_config_test_names ... ok test test::configuration_snippet_tests ... ok Warning: can't set `indent_style = Block`, unstable features are only available in nightly channel. Warning: can't set `comment_width = 80`, unstable features are only available in nightly channel. Warning: can't set `format_strings = true`, unstable features are only available in nightly channel. Warning: can't set `fn_args_density = Tall`, unstable features are only available in nightly channel. Warning: can't set `brace_style = SameLineWhere`, unstable features are only available in nightly channel. Warning: can't set `trailing_comma = Vertical`, unstable features are only available in nightly channel. Warning: can't set `report_todo = Always`, unstable features are only available in nightly channel. Warning: can't set `report_fixme = Never`, unstable features are only available in nightly channel. Warning: can't set `indent_style = Block`, unstable features are only available in nightly channel. Warning: can't set `comment_width = 80`, unstable features are only available in nightly channel. Warning: can't set `format_strings = true`, unstable features are only available in nightly channel. Warning: can't set `fn_args_density = Tall`, unstable features are only available in nightly channel. Warning: can't set `brace_style = SameLineWhere`, unstable features are only available in nightly channel. Warning: can't set `trailing_comma = Vertical`, unstable features are only available in nightly channel. Warning: can't set `report_todo = Always`, unstable features are only available in nightly channel. Warning: can't set `report_fixme = Never`, unstable features are only available in nightly channel. Ran 358 system tests. test test::system_tests ... ok test result: ok. 82 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out Running build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/deps/cargo_fmt-11992dee1fe40817 running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out Running build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/deps/git_rustfmt-de1dc23815da9ff3 running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out Running build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/deps/rustfmt-6b577c1af5d4931b running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out Running build/i686-unknown-linux-gnu/stage2-tools/i686-unknown-linux-gnu/release/deps/rustfmt_format_diff-12526de23292c30c running 1 test test scan_simple_git_diff ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out Doc-tests rustfmt-nightly running 8 tests test src/chains.rs - chains (line 19) ... ignored test src/chains.rs - chains (line 30) ... ignored test src/chains.rs - chains (line 44) ... ignored test src/chains.rs - chains (line 52) ... ignored test src/config/license.rs - config::license::TemplateParser::parse (line 85) ... ignored test src/macros.rs - macros::format_lazy_static (line 1357) ... ignored test src/utils.rs - utils::trim_left_preserve_layout (line 479) ... ignored test src/utils.rs - utils::trim_left_preserve_layout (line 493) ... ignored test result: ok. 0 passed; 0 failed; 8 ignored; 0 measured; 0 filtered out Build completed successfully in 0:00:34 + exit 0 Processing files: rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i686 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.rkBfbX + umask 022 + cd /builddir/build/BUILD + cd rustc-1.35.0-src + DOCDIR=/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust + cp -pr README.md /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rust + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.oG70Vp + umask 022 + cd /builddir/build/BUILD + cd rustc-1.35.0-src + LICENSEDIR=/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/rust + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/rust + cp -pr COPYRIGHT /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/rust + cp -pr LICENSE-APACHE /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/rust + cp -pr LICENSE-MIT /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/rust + cp -pr vendor/backtrace-sys/src/libbacktrace/LICENSE-libbacktrace /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/rust + exit 0 Provides: bundled(libbacktrace) = 8.1.0 bundled(miniz) = 2.0.7 rust = 1.35.0-2.module_el8.0.0+177+7ed049b5 rust(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 rustc = 1.35.0-2.module_el8.0.0+177+7ed049b5 rustc(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux.so.2 ld-linux.so.2(GLIBC_2.3) libLLVM-7.so libLLVM-7.so(LLVM_7) libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.2) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.15) libc.so.6(GLIBC_2.18) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.4) libc.so.6(GLIBC_2.28) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.2) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4) libdl.so.2 libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libgcc_s.so.1(GCC_3.3) libgcc_s.so.1(GCC_4.2.0) libm.so.6 libm.so.6(GLIBC_2.0) libm.so.6(GLIBC_2.1) libpthread.so.0 libpthread.so.0(GLIBC_2.0) libpthread.so.0(GLIBC_2.1) libpthread.so.0(GLIBC_2.2) libpthread.so.0(GLIBC_2.2.3) libpthread.so.0(GLIBC_2.3.2) libpthread.so.0(GLIBC_2.3.3) librt.so.1 librt.so.1(GLIBC_2.2) libstdc++.so.6 libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(GLIBCXX_3.4) libstdc++.so.6(GLIBCXX_3.4.11) libstdc++.so.6(GLIBCXX_3.4.21) libstdc++.so.6(GLIBCXX_3.4.9) rtld(GNU_HASH) Processing files: rust-std-static-1.35.0-2.module_el8.0.0+177+7ed049b5.i686 Provides: rust-std-static = 1.35.0-2.module_el8.0.0+177+7ed049b5 rust-std-static(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rust-debugger-common-1.35.0-2.module_el8.0.0+177+7ed049b5.noarch Provides: rust-debugger-common = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rust-gdb-1.35.0-2.module_el8.0.0+177+7ed049b5.noarch Provides: rust-gdb = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /bin/sh Processing files: rust-lldb-1.35.0-2.module_el8.0.0+177+7ed049b5.i686 Provides: rust-lldb = 1.35.0-2.module_el8.0.0+177+7ed049b5 rust-lldb(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /bin/sh Processing files: rust-doc-1.35.0-2.module_el8.0.0+177+7ed049b5.i686 Provides: rust-doc = 1.35.0-2.module_el8.0.0+177+7ed049b5 rust-doc(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: cargo-1.35.0-2.module_el8.0.0+177+7ed049b5.i686 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ue9N75 + umask 022 + cd /builddir/build/BUILD + cd rustc-1.35.0-src + DOCDIR=/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/cargo + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/cargo + cp -pr src/tools/cargo/README.md /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/cargo + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.eslkkM + umask 022 + cd /builddir/build/BUILD + cd rustc-1.35.0-src + LICENSEDIR=/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/cargo + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/cargo + cp -pr src/tools/cargo/LICENSE-APACHE /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/cargo + cp -pr src/tools/cargo/LICENSE-MIT /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/cargo + cp -pr src/tools/cargo/LICENSE-THIRD-PARTY /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/cargo + exit 0 Provides: bundled(libgit2) = 0.27 bundled(libssh2) = 1.8.1~dev cargo = 1.35.0-2.module_el8.0.0+177+7ed049b5 cargo(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux.so.2 ld-linux.so.2(GLIBC_2.3) libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.2) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.15) libc.so.6(GLIBC_2.18) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.4) libc.so.6(GLIBC_2.28) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.2) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4) libcrypto.so.1.1 libcrypto.so.1.1(OPENSSL_1_1_0) libcrypto.so.1.1(OPENSSL_1_1_1) libcurl.so.4 libdl.so.2 libdl.so.2(GLIBC_2.0) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libgcc_s.so.1(GCC_3.3) libgcc_s.so.1(GCC_4.2.0) libm.so.6 libm.so.6(GLIBC_2.0) libpthread.so.0 libpthread.so.0(GLIBC_2.0) libpthread.so.0(GLIBC_2.1) libpthread.so.0(GLIBC_2.2) libpthread.so.0(GLIBC_2.2.3) libpthread.so.0(GLIBC_2.3.2) libpthread.so.0(GLIBC_2.3.3) librt.so.1 librt.so.1(GLIBC_2.2) libssl.so.1.1 libssl.so.1.1(OPENSSL_1_1_0) libz.so.1 rtld(GNU_HASH) Processing files: cargo-doc-1.35.0-2.module_el8.0.0+177+7ed049b5.noarch Provides: cargo-doc = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rustfmt-1.35.0-2.module_el8.0.0+177+7ed049b5.i686 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.UPBpft + umask 022 + cd /builddir/build/BUILD + cd rustc-1.35.0-src + DOCDIR=/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rustfmt + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rustfmt + cp -pr src/tools/rustfmt/README.md src/tools/rustfmt/CHANGELOG.md src/tools/rustfmt/Configurations.md /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rustfmt + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.lofcba + umask 022 + cd /builddir/build/BUILD + cd rustc-1.35.0-src + LICENSEDIR=/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/rustfmt + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/rustfmt + cp -pr src/tools/rustfmt/LICENSE-APACHE src/tools/rustfmt/LICENSE-MIT /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/rustfmt + exit 0 Provides: rustfmt = 1.35.0-2.module_el8.0.0+177+7ed049b5 rustfmt(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 rustfmt-preview = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux.so.2 ld-linux.so.2(GLIBC_2.3) libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1.2) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.15) libc.so.6(GLIBC_2.18) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.4) libc.so.6(GLIBC_2.28) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4) libdl.so.2 libdl.so.2(GLIBC_2.0) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libgcc_s.so.1(GCC_3.3) libgcc_s.so.1(GCC_4.2.0) libm.so.6 libm.so.6(GLIBC_2.1) libpthread.so.0 libpthread.so.0(GLIBC_2.0) libpthread.so.0(GLIBC_2.1) libpthread.so.0(GLIBC_2.2) libpthread.so.0(GLIBC_2.2.3) libpthread.so.0(GLIBC_2.3.2) libpthread.so.0(GLIBC_2.3.3) librt.so.1 librt.so.1(GLIBC_2.2) rtld(GNU_HASH) Obsoletes: rustfmt-preview < 1.0.0 Processing files: rls-1.35.0-2.module_el8.0.0+177+7ed049b5.i686 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.1E8xjR + umask 022 + cd /builddir/build/BUILD + cd rustc-1.35.0-src + DOCDIR=/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rls + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rls + cp -pr src/tools/rls/README.md src/tools/rls/COPYRIGHT src/tools/rls/debugging.md /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/rls + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.p7Qxsy + umask 022 + cd /builddir/build/BUILD + cd rustc-1.35.0-src + LICENSEDIR=/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/rls + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/rls + cp -pr src/tools/rls/LICENSE-APACHE src/tools/rls/LICENSE-MIT /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/rls + exit 0 Provides: bundled(libgit2) = 0.27 bundled(libssh2) = 1.8.1~dev rls = 1.35.0-2.module_el8.0.0+177+7ed049b5 rls(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 rls-preview = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux.so.2 ld-linux.so.2(GLIBC_2.3) libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.2) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.15) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.4) libc.so.6(GLIBC_2.28) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.2) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4) libcrypto.so.1.1 libcrypto.so.1.1(OPENSSL_1_1_0) libcrypto.so.1.1(OPENSSL_1_1_1) libcurl.so.4 libdl.so.2 libdl.so.2(GLIBC_2.0) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libgcc_s.so.1(GCC_3.3) libgcc_s.so.1(GCC_4.2.0) libm.so.6 libm.so.6(GLIBC_2.0) libm.so.6(GLIBC_2.1) libpthread.so.0 libpthread.so.0(GLIBC_2.0) libpthread.so.0(GLIBC_2.1) libpthread.so.0(GLIBC_2.3.2) librt.so.1 librt.so.1(GLIBC_2.2) libssl.so.1.1 libssl.so.1.1(OPENSSL_1_1_0) libz.so.1 rtld(GNU_HASH) Obsoletes: rls-preview < 1.31.6 Processing files: clippy-1.35.0-2.module_el8.0.0+177+7ed049b5.i686 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.p6hF0f + umask 022 + cd /builddir/build/BUILD + cd rustc-1.35.0-src + DOCDIR=/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/clippy + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/clippy + cp -pr src/tools/clippy/README.md src/tools/clippy/CHANGELOG.md /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/doc/clippy + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.OosuzX + umask 022 + cd /builddir/build/BUILD + cd rustc-1.35.0-src + LICENSEDIR=/builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/clippy + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/clippy + cp -pr src/tools/clippy/LICENSE-APACHE src/tools/clippy/LICENSE-MIT /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386/usr/share/licenses/clippy + exit 0 Provides: clippy = 1.35.0-2.module_el8.0.0+177+7ed049b5 clippy(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 clippy-preview = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux.so.2 ld-linux.so.2(GLIBC_2.3) libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.15) libc.so.6(GLIBC_2.18) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.4) libc.so.6(GLIBC_2.28) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4) libdl.so.2 libdl.so.2(GLIBC_2.0) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libgcc_s.so.1(GCC_3.3) libgcc_s.so.1(GCC_4.2.0) libm.so.6 libm.so.6(GLIBC_2.0) libpthread.so.0 libpthread.so.0(GLIBC_2.0) libpthread.so.0(GLIBC_2.1) libpthread.so.0(GLIBC_2.2) libpthread.so.0(GLIBC_2.2.3) libpthread.so.0(GLIBC_2.3.2) libpthread.so.0(GLIBC_2.3.3) librt.so.1 rtld(GNU_HASH) Obsoletes: clippy-preview <= 0.0.212 Processing files: rust-src-1.35.0-2.module_el8.0.0+177+7ed049b5.noarch Provides: rust-src = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rust-analysis-1.35.0-2.module_el8.0.0+177+7ed049b5.i686 Provides: rust-analysis = 1.35.0-2.module_el8.0.0+177+7ed049b5 rust-analysis(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rust-debugsource-1.35.0-2.module_el8.0.0+177+7ed049b5.i686 Provides: rust-debugsource = 1.35.0-2.module_el8.0.0+177+7ed049b5 rust-debugsource(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rust-debuginfo-1.35.0-2.module_el8.0.0+177+7ed049b5.i686 Provides: debuginfo(build-id) = 07df74d62e415c670794b4bbd0915b3d0006aa80 debuginfo(build-id) = 1266f9728e17c5e1d4eef0f13c91cddb9f9d04cb debuginfo(build-id) = 1d6d26ddcd931f88b9aeafd1cde50d15aa7db69a debuginfo(build-id) = 2638e80700a7574f950d21fe78c27a2937756e7d debuginfo(build-id) = 269040235a93dc8de5da4188dd5659b6c90f6a66 debuginfo(build-id) = 275f5c0f70c11983f069c0d9eaa390642dc94168 debuginfo(build-id) = 279f34022fe68f50e7cc531dd70128b2073f65fa debuginfo(build-id) = 2db82791265072d870141abd76cb1e3e794d4632 debuginfo(build-id) = 31a91ce0ccd9a1cc18d338a43a41c0daef6b2e25 debuginfo(build-id) = 34e914c83b153c0c760356811211029b9d95e3d8 debuginfo(build-id) = 3c16d3c0806731d070141f56d71c6bb3b671831c debuginfo(build-id) = 457ab50abe11e5af320a35e5e2d228afa6c40d19 debuginfo(build-id) = 4e35e5bf20f3922cee1ae47740fc921d8b9b9e06 debuginfo(build-id) = 6124bc09ba5965f80d2e5569f80162848a955da9 debuginfo(build-id) = 61e4a9d48356e5ef0ddd98a15b136bbc13206e27 debuginfo(build-id) = 64d7441480e793119b714eab50cc95c01af47b80 debuginfo(build-id) = 654f104c920dd511f1023caf32199efc8b82b829 debuginfo(build-id) = 699866f425ec663bcd8fe8c12e6da9e7062b0fdb debuginfo(build-id) = 722da5a4ae515e78b53ad9c3a5326b8135802f2a debuginfo(build-id) = 7bf76ab048c895f87f1e53bfccc9a06b5aff4ca6 debuginfo(build-id) = 86c4c5756e109f650c4648481b694a30ebb8026f debuginfo(build-id) = 87d3cc6f6628801f588174717260c3083faaacf4 debuginfo(build-id) = 884e059e5a3305cbe2688f9878e6e3c7112b0d38 debuginfo(build-id) = 891ec3475857a1676cf5903072fd10d79c8eb080 debuginfo(build-id) = 8ad5de2939fa5a33c631685de6bfa66625b88b4f debuginfo(build-id) = 906e76c4d6504d7d57ff73371bb690547dfa8540 debuginfo(build-id) = aa50aaae29ff3c9a1c488a7e14946eb56d83d7dc debuginfo(build-id) = b7a7f48b5d22e6fcfbf20b7d3d39365b40b5d2a7 debuginfo(build-id) = c3cf622166aad157404d61efce5769393c3edaa3 debuginfo(build-id) = cfdc6492528e0272742dd3ce4ac6acef0498490f debuginfo(build-id) = d165961958691a546af736545ca3294b85de2065 debuginfo(build-id) = d29c4f5705855c60e60df0e1e89f9eae570f542a debuginfo(build-id) = d86535b19707aca77be63dfebf03f304750b8d45 debuginfo(build-id) = da9a9d29e699e06aef42bf836d1af23684520393 debuginfo(build-id) = e1bb3914ca13ac4d11237d970758b26d08d10a47 debuginfo(build-id) = e6d9c95da5bbf32f2c315b837a5b9712dea33295 debuginfo(build-id) = f544c930da2d3ed5fd981bf3cf30bfc34649a3ea debuginfo(build-id) = f551d6314e343d638a097dae5921cc585312f1e5 debuginfo(build-id) = fc16dfccf32c57879ecc097bace3c4aceec83275 rust-debuginfo = 1.35.0-2.module_el8.0.0+177+7ed049b5 rust-debuginfo(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rust-debugsource(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 Processing files: cargo-debuginfo-1.35.0-2.module_el8.0.0+177+7ed049b5.i686 Provides: cargo-debuginfo = 1.35.0-2.module_el8.0.0+177+7ed049b5 cargo-debuginfo(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 debuginfo(build-id) = b96fda75c62e421a3ab3fab58fcb555cfea245f2 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rust-debugsource(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 Processing files: rustfmt-debuginfo-1.35.0-2.module_el8.0.0+177+7ed049b5.i686 Provides: debuginfo(build-id) = 40e388f9dea070cd03e41416f151e11135085898 debuginfo(build-id) = 9bba1c06580a8a2df8c1dc85fde289b4dad765b8 rustfmt-debuginfo = 1.35.0-2.module_el8.0.0+177+7ed049b5 rustfmt-debuginfo(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rust-debugsource(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 Processing files: rls-debuginfo-1.35.0-2.module_el8.0.0+177+7ed049b5.i686 Provides: debuginfo(build-id) = e01d9b7dd113790fab85182f119a5aec9882e3a0 rls-debuginfo = 1.35.0-2.module_el8.0.0+177+7ed049b5 rls-debuginfo(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rust-debugsource(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 Processing files: clippy-debuginfo-1.35.0-2.module_el8.0.0+177+7ed049b5.i686 Provides: clippy-debuginfo = 1.35.0-2.module_el8.0.0+177+7ed049b5 clippy-debuginfo(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 debuginfo(build-id) = 1f9c39817e3b235fd9538c3c0f3190962d227504 debuginfo(build-id) = 2b0dab941991f9b2d9817f945bd16eba101f1cb1 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rust-debugsource(x86-32) = 1.35.0-2.module_el8.0.0+177+7ed049b5 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386 Wrote: /builddir/build/RPMS/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i686.rpm Wrote: /builddir/build/RPMS/rust-std-static-1.35.0-2.module_el8.0.0+177+7ed049b5.i686.rpm Wrote: /builddir/build/RPMS/rust-debugger-common-1.35.0-2.module_el8.0.0+177+7ed049b5.noarch.rpm Wrote: /builddir/build/RPMS/rust-gdb-1.35.0-2.module_el8.0.0+177+7ed049b5.noarch.rpm Wrote: /builddir/build/RPMS/rust-lldb-1.35.0-2.module_el8.0.0+177+7ed049b5.i686.rpm Wrote: /builddir/build/RPMS/rust-doc-1.35.0-2.module_el8.0.0+177+7ed049b5.i686.rpm Wrote: /builddir/build/RPMS/cargo-1.35.0-2.module_el8.0.0+177+7ed049b5.i686.rpm Wrote: /builddir/build/RPMS/cargo-doc-1.35.0-2.module_el8.0.0+177+7ed049b5.noarch.rpm Wrote: /builddir/build/RPMS/rustfmt-1.35.0-2.module_el8.0.0+177+7ed049b5.i686.rpm Wrote: /builddir/build/RPMS/rls-1.35.0-2.module_el8.0.0+177+7ed049b5.i686.rpm Wrote: /builddir/build/RPMS/clippy-1.35.0-2.module_el8.0.0+177+7ed049b5.i686.rpm Wrote: /builddir/build/RPMS/rust-src-1.35.0-2.module_el8.0.0+177+7ed049b5.noarch.rpm Wrote: /builddir/build/RPMS/rust-analysis-1.35.0-2.module_el8.0.0+177+7ed049b5.i686.rpm Wrote: /builddir/build/RPMS/rust-debugsource-1.35.0-2.module_el8.0.0+177+7ed049b5.i686.rpm Wrote: /builddir/build/RPMS/rust-debuginfo-1.35.0-2.module_el8.0.0+177+7ed049b5.i686.rpm Wrote: /builddir/build/RPMS/cargo-debuginfo-1.35.0-2.module_el8.0.0+177+7ed049b5.i686.rpm Wrote: /builddir/build/RPMS/rustfmt-debuginfo-1.35.0-2.module_el8.0.0+177+7ed049b5.i686.rpm Wrote: /builddir/build/RPMS/rls-debuginfo-1.35.0-2.module_el8.0.0+177+7ed049b5.i686.rpm Wrote: /builddir/build/RPMS/clippy-debuginfo-1.35.0-2.module_el8.0.0+177+7ed049b5.i686.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.2EcVSe + umask 022 + cd /builddir/build/BUILD + cd rustc-1.35.0-src + /usr/bin/rm -rf /builddir/build/BUILDROOT/rust-1.35.0-2.module_el8.0.0+177+7ed049b5.i386 + exit 0 Child return code was: 0