[INFO] cloning repository https://github.com/LRuffati/AoC21 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LRuffati/AoC21" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLRuffati%2FAoC21", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLRuffati%2FAoC21'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3edb0fc54e9330f8ecb64fb874205523c4ddf50c [INFO] building LRuffati/AoC21 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLRuffati%2FAoC21" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LRuffati/AoC21 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LRuffati/AoC21 [INFO] finished tweaking git repo https://github.com/LRuffati/AoC21 [INFO] tweaked toml for git repo https://github.com/LRuffati/AoC21 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/LRuffati/AoC21 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 41e41149695b1c685272e5cbbb416ba40b9a8e8c1adc7adb7646483175c09314 [INFO] running `Command { std: "docker" "start" "-a" "41e41149695b1c685272e5cbbb416ba40b9a8e8c1adc7adb7646483175c09314", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41e41149695b1c685272e5cbbb416ba40b9a8e8c1adc7adb7646483175c09314", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41e41149695b1c685272e5cbbb416ba40b9a8e8c1adc7adb7646483175c09314", kill_on_drop: false }` [INFO] [stdout] 41e41149695b1c685272e5cbbb416ba40b9a8e8c1adc7adb7646483175c09314 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 548c6c5aed6a73849d2641b27cbf7aa6b2f0563773e97eb3d59edde832b5756e [INFO] running `Command { std: "docker" "start" "-a" "548c6c5aed6a73849d2641b27cbf7aa6b2f0563773e97eb3d59edde832b5756e", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling aoc2021 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/days/day9.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::id` [INFO] [stdout] --> src/days/day9.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::process::id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_a` is never used [INFO] [stdout] --> src/days/day8.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn solve_a(input: BufReader) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guess` is never constructed [INFO] [stdout] --> src/days/day8.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct Guess { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_b` is never used [INFO] [stdout] --> src/days/day8.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn solve_b(input: BufReader) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Candidate` is never constructed [INFO] [stdout] --> src/days/day9.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Candidate { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Element` is never constructed [INFO] [stdout] --> src/days/day9.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Element { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_a` is never used [INFO] [stdout] --> src/days/day9.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn solve_a(input: BufReader) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ElemBasin` is never constructed [INFO] [stdout] --> src/days/day9.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct ElemBasin { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_idx` is never used [INFO] [stdout] --> src/days/day9.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn get_idx(vector: &Vec, mut start: usize) -> Option{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_b` is never used [INFO] [stdout] --> src/days/day9.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn solve_b(input: BufReader) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_a` is never used [INFO] [stdout] --> src/days/day10.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn solve_a(input: BufReader) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/days/day8.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | 2 => dig_1 = digit.clone(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/days/day8.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 33 | 4 => dig_4 = digit.clone(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.09s [INFO] running `Command { std: "docker" "inspect" "548c6c5aed6a73849d2641b27cbf7aa6b2f0563773e97eb3d59edde832b5756e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "548c6c5aed6a73849d2641b27cbf7aa6b2f0563773e97eb3d59edde832b5756e", kill_on_drop: false }` [INFO] [stdout] 548c6c5aed6a73849d2641b27cbf7aa6b2f0563773e97eb3d59edde832b5756e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d4d8386028e083c75c66a1736ad90c1acc27feeb30f4ea0b3ea037f6d620c548 [INFO] running `Command { std: "docker" "start" "-a" "d4d8386028e083c75c66a1736ad90c1acc27feeb30f4ea0b3ea037f6d620c548", kill_on_drop: false }` [INFO] [stderr] Compiling aoc2021 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/days/day9.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::id` [INFO] [stdout] --> src/days/day9.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::process::id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_a` is never used [INFO] [stdout] --> src/days/day8.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn solve_a(input: BufReader) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guess` is never constructed [INFO] [stdout] --> src/days/day8.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct Guess { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_b` is never used [INFO] [stdout] --> src/days/day8.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn solve_b(input: BufReader) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Candidate` is never constructed [INFO] [stdout] --> src/days/day9.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Candidate { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Element` is never constructed [INFO] [stdout] --> src/days/day9.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Element { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_a` is never used [INFO] [stdout] --> src/days/day9.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn solve_a(input: BufReader) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ElemBasin` is never constructed [INFO] [stdout] --> src/days/day9.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct ElemBasin { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_idx` is never used [INFO] [stdout] --> src/days/day9.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn get_idx(vector: &Vec, mut start: usize) -> Option{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_b` is never used [INFO] [stdout] --> src/days/day9.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn solve_b(input: BufReader) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_a` is never used [INFO] [stdout] --> src/days/day10.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn solve_a(input: BufReader) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/days/day8.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | 2 => dig_1 = digit.clone(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/days/day8.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 33 | 4 => dig_4 = digit.clone(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] running `Command { std: "docker" "inspect" "d4d8386028e083c75c66a1736ad90c1acc27feeb30f4ea0b3ea037f6d620c548", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4d8386028e083c75c66a1736ad90c1acc27feeb30f4ea0b3ea037f6d620c548", kill_on_drop: false }` [INFO] [stdout] d4d8386028e083c75c66a1736ad90c1acc27feeb30f4ea0b3ea037f6d620c548