[INFO] fetching crate andersonpgrep 0.1.0... [INFO] checking andersonpgrep-0.1.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate andersonpgrep 0.1.0 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate andersonpgrep 0.1.0 [INFO] finished tweaking crates.io crate andersonpgrep 0.1.0 [INFO] tweaked toml for crates.io crate andersonpgrep 0.1.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate andersonpgrep 0.1.0 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate andersonpgrep 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9fa4d1b156be0fd9991ea62e70cf8bc6099bccfbe825d94933941cb333997e2b [INFO] running `Command { std: "docker" "start" "-a" "9fa4d1b156be0fd9991ea62e70cf8bc6099bccfbe825d94933941cb333997e2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9fa4d1b156be0fd9991ea62e70cf8bc6099bccfbe825d94933941cb333997e2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fa4d1b156be0fd9991ea62e70cf8bc6099bccfbe825d94933941cb333997e2b", kill_on_drop: false }` [INFO] [stdout] 9fa4d1b156be0fd9991ea62e70cf8bc6099bccfbe825d94933941cb333997e2b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5fdc97223a0c76bc10b906329acb36f5de839ba1d73f97898e54fc2084568585 [INFO] running `Command { std: "docker" "start" "-a" "5fdc97223a0c76bc10b906329acb36f5de839ba1d73f97898e54fc2084568585", kill_on_drop: false }` [INFO] [stderr] Checking andersonpgrep v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `expensive_closure` [INFO] [stdout] --> src/closures_and_iterators/closures.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let expensive_closure = |num : u32| -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expensive_closure` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `add_one_closure` [INFO] [stdout] --> src/closures_and_iterators/closures.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let add_one_closure = |x: u32| -> u32 {x + 1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_add_one_closure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `add_one` [INFO] [stdout] --> src/closures_and_iterators/closures.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let add_one = |x: usize| x + 1; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_add_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `add_one_three` [INFO] [stdout] --> src/closures_and_iterators/closures.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let add_one_three = |x: usize| {x + 1}; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_add_one_three` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/closures_and_iterators/closures.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let mut list = vec![1,2,3,4]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total` [INFO] [stdout] --> src/closures_and_iterators/iterators.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let total: i32 = v_iter.sum(); // after this line, we are not able to use v_iter because it has [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_total` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> src/closures_and_iterators/iterators.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let v2: Vec<_> = v.iter().map(|x| x + 3).collect(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `od_nums` [INFO] [stdout] --> src/closures_and_iterators/iterators.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let od_nums: Vec<_> = v3.iter().filter(|x| (**x) & 1 == 1).collect(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_od_nums` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shoe` is never constructed [INFO] [stdout] --> src/closures_and_iterators/iterators.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Shoe { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expensive_closure` [INFO] [stdout] --> src/closures_and_iterators/closures.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let expensive_closure = |num : u32| -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expensive_closure` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `add_one_closure` [INFO] [stdout] --> src/closures_and_iterators/closures.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let add_one_closure = |x: u32| -> u32 {x + 1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_add_one_closure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `add_one` [INFO] [stdout] --> src/closures_and_iterators/closures.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let add_one = |x: usize| x + 1; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_add_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `add_one_three` [INFO] [stdout] --> src/closures_and_iterators/closures.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let add_one_three = |x: usize| {x + 1}; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_add_one_three` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/closures_and_iterators/closures.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let mut list = vec![1,2,3,4]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total` [INFO] [stdout] --> src/closures_and_iterators/iterators.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let total: i32 = v_iter.sum(); // after this line, we are not able to use v_iter because it has [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_total` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> src/closures_and_iterators/iterators.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let v2: Vec<_> = v.iter().map(|x| x + 3).collect(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `od_nums` [INFO] [stdout] --> src/closures_and_iterators/iterators.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let od_nums: Vec<_> = v3.iter().filter(|x| (**x) & 1 == 1).collect(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_od_nums` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shoe` is never constructed [INFO] [stdout] --> src/closures_and_iterators/iterators.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Shoe { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 0.57s [INFO] running `Command { std: "docker" "inspect" "5fdc97223a0c76bc10b906329acb36f5de839ba1d73f97898e54fc2084568585", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fdc97223a0c76bc10b906329acb36f5de839ba1d73f97898e54fc2084568585", kill_on_drop: false }` [INFO] [stdout] 5fdc97223a0c76bc10b906329acb36f5de839ba1d73f97898e54fc2084568585