[INFO] cloning repository https://github.com/jplsanchez/AoC-2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jplsanchez/AoC-2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjplsanchez%2FAoC-2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjplsanchez%2FAoC-2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 48ab95c5e55f33424ddd0074d4c7ae8528278970 [INFO] checking jplsanchez/AoC-2022 against try#50b21af28e291c419ae81eebcb7705fb4200dc90 for pr-135167 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjplsanchez%2FAoC-2022" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jplsanchez/AoC-2022 on toolchain 50b21af28e291c419ae81eebcb7705fb4200dc90 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+50b21af28e291c419ae81eebcb7705fb4200dc90" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jplsanchez/AoC-2022 [INFO] finished tweaking git repo https://github.com/jplsanchez/AoC-2022 [INFO] tweaked toml for git repo https://github.com/jplsanchez/AoC-2022 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jplsanchez/AoC-2022 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" "+50b21af28e291c419ae81eebcb7705fb4200dc90" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+50b21af28e291c419ae81eebcb7705fb4200dc90" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1c4f3011dd7c02a385c8c1c1b6dcc081620faa54a7f5690354f5099e9f161325 [INFO] running `Command { std: "docker" "start" "-a" "1c4f3011dd7c02a385c8c1c1b6dcc081620faa54a7f5690354f5099e9f161325", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1c4f3011dd7c02a385c8c1c1b6dcc081620faa54a7f5690354f5099e9f161325", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c4f3011dd7c02a385c8c1c1b6dcc081620faa54a7f5690354f5099e9f161325", kill_on_drop: false }` [INFO] [stdout] 1c4f3011dd7c02a385c8c1c1b6dcc081620faa54a7f5690354f5099e9f161325 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+50b21af28e291c419ae81eebcb7705fb4200dc90" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] da0d2597328295b6554ed09f2d87a9a3783565d5cdd562c959b8ed826bf52bdb [INFO] running `Command { std: "docker" "start" "-a" "da0d2597328295b6554ed09f2d87a9a3783565d5cdd562c959b8ed826bf52bdb", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking aoc_2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `PATH` is never used [INFO] [stdout] --> src/day7.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const PATH: &str = "src/day7/input.txt"; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup` is never used [INFO] [stdout] --> src/day7.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn setup() -> Directory { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_part_1` is never used [INFO] [stdout] --> src/day7.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn run_part_1() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_part_2` is never used [INFO] [stdout] --> src/day7.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn run_part_2() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target` is never read [INFO] [stdout] --> src/day7/command.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | ChangeDirectory { target: String }, [INFO] [stdout] | --------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/day7/command.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | AddDirectory { name: String }, [INFO] [stdout] | ------------ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `size` are never read [INFO] [stdout] --> src/day7/command.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | AddFile { name: String, size: u64 }, [INFO] [stdout] | ------- ^^^^ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/day7/command.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Command { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 12 | pub fn execute(&self, cwd: &mut Vec, root: &mut Directory) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Directory` is never constructed [INFO] [stdout] --> src/day7/directory.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Directory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day7/directory.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Directory { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn add_directory(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn add_file(&mut self, name: String, size: u64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn find_child_mut(&mut self, name: &str) -> Option<&mut Directory> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn find_cwd_mut(&mut self, cwd: &Vec) -> Option<&mut Directory> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn update_size(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn find_size_less_than(&self, max_size: u64) -> Vec<(String, u64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn list_all_dir_size(&self) -> Vec<(String, u64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PATH` is never used [INFO] [stdout] --> src/day7.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const PATH: &str = "src/day7/input.txt"; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup` is never used [INFO] [stdout] --> src/day7.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn setup() -> Directory { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_part_1` is never used [INFO] [stdout] --> src/day7.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn run_part_1() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_part_2` is never used [INFO] [stdout] --> src/day7.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn run_part_2() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target` is never read [INFO] [stdout] --> src/day7/command.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | ChangeDirectory { target: String }, [INFO] [stdout] | --------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/day7/command.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | AddDirectory { name: String }, [INFO] [stdout] | ------------ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `size` are never read [INFO] [stdout] --> src/day7/command.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | AddFile { name: String, size: u64 }, [INFO] [stdout] | ------- ^^^^ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/day7/command.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Command { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 12 | pub fn execute(&self, cwd: &mut Vec, root: &mut Directory) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Directory` is never constructed [INFO] [stdout] --> src/day7/directory.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Directory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day7/directory.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Directory { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn add_directory(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn add_file(&mut self, name: String, size: u64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn find_child_mut(&mut self, name: &str) -> Option<&mut Directory> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn find_cwd_mut(&mut self, cwd: &Vec) -> Option<&mut Directory> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn update_size(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn find_size_less_than(&self, max_size: u64) -> Vec<(String, u64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn list_all_dir_size(&self) -> Vec<(String, u64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.30s [INFO] running `Command { std: "docker" "inspect" "da0d2597328295b6554ed09f2d87a9a3783565d5cdd562c959b8ed826bf52bdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da0d2597328295b6554ed09f2d87a9a3783565d5cdd562c959b8ed826bf52bdb", kill_on_drop: false }` [INFO] [stdout] da0d2597328295b6554ed09f2d87a9a3783565d5cdd562c959b8ed826bf52bdb