[INFO] crate send_wrapper 0.2.0 is already in cache [INFO] extracting crate send_wrapper 0.2.0 into work/ex/clippy-test-run/sources/stable/reg/send_wrapper/0.2.0 [INFO] extracting crate send_wrapper 0.2.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/send_wrapper/0.2.0 [INFO] validating manifest of send_wrapper-0.2.0 on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of send_wrapper-0.2.0 on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing send_wrapper-0.2.0 [INFO] finished frobbing send_wrapper-0.2.0 [INFO] frobbed toml for send_wrapper-0.2.0 written to work/ex/clippy-test-run/sources/stable/reg/send_wrapper/0.2.0/Cargo.toml [INFO] started frobbing send_wrapper-0.2.0 [INFO] finished frobbing send_wrapper-0.2.0 [INFO] frobbed toml for send_wrapper-0.2.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/send_wrapper/0.2.0/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting send_wrapper-0.2.0 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-4/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/send_wrapper/0.2.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 56aa6e59f573e8f31243ab74dcdd528fb91c48a60b3ec37bf7c84d3d86efbcb3 [INFO] running `"docker" "start" "-a" "56aa6e59f573e8f31243ab74dcdd528fb91c48a60b3ec37bf7c84d3d86efbcb3"` [INFO] [stderr] Checking send_wrapper v0.2.0 (/opt/crater/workdir) [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:87:21 [INFO] [stderr] | [INFO] [stderr] 87 | const DEREF_ERROR: &'static str = "Dropped SendWrapper variable from a thread different to the one it has been created with."; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:88:20 [INFO] [stderr] | [INFO] [stderr] 88 | const DROP_ERROR: &'static str = "Dereferenced SendWrapper variable from a thread different to the one it has been created with."; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: this `else { if .. }` block can be collapsed [INFO] [stderr] --> src/lib.rs:184:10 [INFO] [stderr] | [INFO] [stderr] 184 | } else { [INFO] [stderr] | ________________^ [INFO] [stderr] 185 | | if !std::thread::panicking() { [INFO] [stderr] 186 | | // panic because of dropping from wrong thread [INFO] [stderr] 187 | | // only do this while not unwinding (coud be caused by deref from wrong thread) [INFO] [stderr] 188 | | panic!(DROP_ERROR); [INFO] [stderr] 189 | | } [INFO] [stderr] 190 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::collapsible_if)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] help: try [INFO] [stderr] | [INFO] [stderr] 184 | } else if !std::thread::panicking() { [INFO] [stderr] 185 | // panic because of dropping from wrong thread [INFO] [stderr] 186 | // only do this while not unwinding (coud be caused by deref from wrong thread) [INFO] [stderr] 187 | panic!(DROP_ERROR); [INFO] [stderr] 188 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:87:21 [INFO] [stderr] | [INFO] [stderr] 87 | const DEREF_ERROR: &'static str = "Dropped SendWrapper variable from a thread different to the one it has been created with."; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:88:20 [INFO] [stderr] | [INFO] [stderr] 88 | const DROP_ERROR: &'static str = "Dereferenced SendWrapper variable from a thread different to the one it has been created with."; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: this `else { if .. }` block can be collapsed [INFO] [stderr] --> src/lib.rs:184:10 [INFO] [stderr] | [INFO] [stderr] 184 | } else { [INFO] [stderr] | ________________^ [INFO] [stderr] 185 | | if !std::thread::panicking() { [INFO] [stderr] 186 | | // panic because of dropping from wrong thread [INFO] [stderr] 187 | | // only do this while not unwinding (coud be caused by deref from wrong thread) [INFO] [stderr] 188 | | panic!(DROP_ERROR); [INFO] [stderr] 189 | | } [INFO] [stderr] 190 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::collapsible_if)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] help: try [INFO] [stderr] | [INFO] [stderr] 184 | } else if !std::thread::panicking() { [INFO] [stderr] 185 | // panic because of dropping from wrong thread [INFO] [stderr] 186 | // only do this while not unwinding (coud be caused by deref from wrong thread) [INFO] [stderr] 187 | panic!(DROP_ERROR); [INFO] [stderr] 188 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.20s [INFO] running `"docker" "inspect" "56aa6e59f573e8f31243ab74dcdd528fb91c48a60b3ec37bf7c84d3d86efbcb3"` [INFO] running `"docker" "rm" "-f" "56aa6e59f573e8f31243ab74dcdd528fb91c48a60b3ec37bf7c84d3d86efbcb3"` [INFO] [stdout] 56aa6e59f573e8f31243ab74dcdd528fb91c48a60b3ec37bf7c84d3d86efbcb3