[INFO] cloning repository https://github.com/Mereep/advent_of_code_2021_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Mereep/advent_of_code_2021_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMereep%2Fadvent_of_code_2021_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMereep%2Fadvent_of_code_2021_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d1d5348f43517bc2b6d6f9599fd03b2d92112927 [INFO] checking Mereep/advent_of_code_2021_rust against master#336209eef13882bd1e211b24779584cb7ef911eb for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMereep%2Fadvent_of_code_2021_rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Mereep/advent_of_code_2021_rust on toolchain 336209eef13882bd1e211b24779584cb7ef911eb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Mereep/advent_of_code_2021_rust [INFO] finished tweaking git repo https://github.com/Mereep/advent_of_code_2021_rust [INFO] tweaked toml for git repo https://github.com/Mereep/advent_of_code_2021_rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Mereep/advent_of_code_2021_rust 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" "+336209eef13882bd1e211b24779584cb7ef911eb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 646eb35ab5e550bfc19a2f1d4438e1c8ac3770aa177b32edf8a66a342f72a896 [INFO] running `Command { std: "docker" "start" "-a" "646eb35ab5e550bfc19a2f1d4438e1c8ac3770aa177b32edf8a66a342f72a896", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "646eb35ab5e550bfc19a2f1d4438e1c8ac3770aa177b32edf8a66a342f72a896", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "646eb35ab5e550bfc19a2f1d4438e1c8ac3770aa177b32edf8a66a342f72a896", kill_on_drop: false }` [INFO] [stdout] 646eb35ab5e550bfc19a2f1d4438e1c8ac3770aa177b32edf8a66a342f72a896 [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc1afa823bd06c09b23c74bdbff6d98bcc0718efee3411acc637889c02b87b20 [INFO] running `Command { std: "docker" "start" "-a" "fc1afa823bd06c09b23c74bdbff6d98bcc0718efee3411acc637889c02b87b20", kill_on_drop: false }` [INFO] [stderr] Checking advent_of_code_2021 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/day14/mod.rs:89:14 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn task2(data: &Vec) -> u64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/day14/mod.rs:89:14 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn task2(data: &Vec) -> u64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&char` instead of cloning the inner type [INFO] [stdout] --> src/day8/mod.rs:90:100 [INFO] [stdout] | [INFO] [stdout] 90 | let segment_1 = *seven_chars.difference(&one_char).collect::>().first().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&char` instead of cloning the inner type [INFO] [stdout] --> src/day8/mod.rs:99:118 [INFO] [stdout] | [INFO] [stdout] 99 | let segment_5 = *segments_3_5.difference(&string_to_char_set(&four)).collect::>().first().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&char` instead of cloning the inner type [INFO] [stdout] --> src/day8/mod.rs:101:121 [INFO] [stdout] | [INFO] [stdout] 101 | let segment_3 = *sub_char_from_hashset(&segments_3_5, segment_5).iter().collect::>().first().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&char` instead of cloning the inner type [INFO] [stdout] --> src/day8/mod.rs:107:131 [INFO] [stdout] | [INFO] [stdout] 107 | let segment_0 = *sub_char_from_hashset(&four_minus_one.clone(), segment_3).iter().collect::>().first().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&char` instead of cloning the inner type [INFO] [stdout] --> src/day8/mod.rs:117:122 [INFO] [stdout] | [INFO] [stdout] 117 | let segment_4 = *eight_minus_four_minus_segment_1_minus_segment_5.iter().collect::>().first().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&char` instead of cloning the inner type [INFO] [stdout] --> src/day8/mod.rs:132:38 [INFO] [stdout] | [INFO] [stdout] 132 | .first().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&char` instead of cloning the inner type [INFO] [stdout] --> src/day8/mod.rs:137:133 [INFO] [stdout] | [INFO] [stdout] 137 | ...ne), segment_6).iter().collect::>().first().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&char` instead of cloning the inner type [INFO] [stdout] --> src/day8/mod.rs:90:100 [INFO] [stdout] | [INFO] [stdout] 90 | let segment_1 = *seven_chars.difference(&one_char).collect::>().first().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&char` instead of cloning the inner type [INFO] [stdout] --> src/day8/mod.rs:99:118 [INFO] [stdout] | [INFO] [stdout] 99 | let segment_5 = *segments_3_5.difference(&string_to_char_set(&four)).collect::>().first().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&char` instead of cloning the inner type [INFO] [stdout] --> src/day8/mod.rs:101:121 [INFO] [stdout] | [INFO] [stdout] 101 | let segment_3 = *sub_char_from_hashset(&segments_3_5, segment_5).iter().collect::>().first().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&char` instead of cloning the inner type [INFO] [stdout] --> src/day8/mod.rs:107:131 [INFO] [stdout] | [INFO] [stdout] 107 | let segment_0 = *sub_char_from_hashset(&four_minus_one.clone(), segment_3).iter().collect::>().first().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&char` instead of cloning the inner type [INFO] [stdout] --> src/day8/mod.rs:117:122 [INFO] [stdout] | [INFO] [stdout] 117 | let segment_4 = *eight_minus_four_minus_segment_1_minus_segment_5.iter().collect::>().first().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&char` instead of cloning the inner type [INFO] [stdout] --> src/day8/mod.rs:132:38 [INFO] [stdout] | [INFO] [stdout] 132 | .first().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&char` instead of cloning the inner type [INFO] [stdout] --> src/day8/mod.rs:137:133 [INFO] [stdout] | [INFO] [stdout] 137 | ...ne), segment_6).iter().collect::>().first().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.73s [INFO] running `Command { std: "docker" "inspect" "fc1afa823bd06c09b23c74bdbff6d98bcc0718efee3411acc637889c02b87b20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc1afa823bd06c09b23c74bdbff6d98bcc0718efee3411acc637889c02b87b20", kill_on_drop: false }` [INFO] [stdout] fc1afa823bd06c09b23c74bdbff6d98bcc0718efee3411acc637889c02b87b20