[INFO] cloning repository https://github.com/chancehl/advent-of-code-2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chancehl/advent-of-code-2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchancehl%2Fadvent-of-code-2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchancehl%2Fadvent-of-code-2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ba26218f594d6a4cb7a9f68d8dfecada18de56ba [INFO] building chancehl/advent-of-code-2022 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%2Fchancehl%2Fadvent-of-code-2022" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/chancehl/advent-of-code-2022 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/chancehl/advent-of-code-2022 [INFO] finished tweaking git repo https://github.com/chancehl/advent-of-code-2022 [INFO] tweaked toml for git repo https://github.com/chancehl/advent-of-code-2022 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/chancehl/advent-of-code-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 512b3201d75ebeb671bac610ee535560cd9914a29c1440324539ae894a3ada64 [INFO] running `Command { std: "docker" "start" "-a" "512b3201d75ebeb671bac610ee535560cd9914a29c1440324539ae894a3ada64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "512b3201d75ebeb671bac610ee535560cd9914a29c1440324539ae894a3ada64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "512b3201d75ebeb671bac610ee535560cd9914a29c1440324539ae894a3ada64", kill_on_drop: false }` [INFO] [stdout] 512b3201d75ebeb671bac610ee535560cd9914a29c1440324539ae894a3ada64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 15d6f60bc1307f77f54f7f49263f8f8309bb9d9713e70e0368cea78d0a8f2542 [INFO] running `Command { std: "docker" "start" "-a" "15d6f60bc1307f77f54f7f49263f8f8309bb9d9713e70e0368cea78d0a8f2542", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling regex v1.7.0 [INFO] [stderr] Compiling advent-of-code-2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/day_nine/mod.rs:201:33 [INFO] [stdout] | [INFO] [stdout] 201 | fn move_down(&mut self, n: usize) -> () { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/day_nine/mod.rs:206:33 [INFO] [stdout] | [INFO] [stdout] 206 | fn move_left(&mut self, n: usize) -> () { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `direction` and `count` are never read [INFO] [stdout] --> src/day_nine/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Instruction { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 28 | direction: Direction, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | count: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Head`, `Tail`, `Both`, and `Empty` are never constructed [INFO] [stdout] --> src/day_nine/mod.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 58 | enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 59 | Head, [INFO] [stdout] | ^^^^ [INFO] [stdout] 60 | Tail, [INFO] [stdout] | ^^^^ [INFO] [stdout] 61 | Both, [INFO] [stdout] | ^^^^ [INFO] [stdout] 62 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tail_posns` is never read [INFO] [stdout] --> src/day_nine/mod.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct ExpandingMatrix { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 85 | tail_posns: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExpandingMatrix` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day_nine/mod.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 88 | impl ExpandingMatrix { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 89 | /// Creates a new instance of an expanding matrix [INFO] [stdout] 90 | pub fn new(starting_posn: Coords) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn add_row(&mut self) -> () { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | fn add_column(&mut self) -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn grow(&mut self, n: usize) -> () { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn move_rope(&mut self, instruction: Instruction) -> () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn move_up(&mut self, n: usize) -> () { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | fn move_down(&mut self, n: usize) -> () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | fn move_left(&mut self, n: usize) -> () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | fn move_right(&mut self, n: usize) -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | fn update_posn(&mut self, token: Token, new_posn: Coords) -> () { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | fn get_posn(&self, token: Token) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 306 | fn is_tail_adjacent_to_head(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_input_to_instructions` is never used [INFO] [stdout] --> src/day_nine/mod.rs:341:12 [INFO] [stdout] | [INFO] [stdout] 341 | pub fn convert_input_to_instructions(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rope_bridge` is never used [INFO] [stdout] --> src/day_nine/mod.rs:353:16 [INFO] [stdout] | [INFO] [stdout] 353 | pub fn rope_bridge(input: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.91s [INFO] running `Command { std: "docker" "inspect" "15d6f60bc1307f77f54f7f49263f8f8309bb9d9713e70e0368cea78d0a8f2542", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15d6f60bc1307f77f54f7f49263f8f8309bb9d9713e70e0368cea78d0a8f2542", kill_on_drop: false }` [INFO] [stdout] 15d6f60bc1307f77f54f7f49263f8f8309bb9d9713e70e0368cea78d0a8f2542 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 85f4d5ce11d9349647916ae3668eedf3ebb70c91d4169bf604f981c23a209470 [INFO] running `Command { std: "docker" "start" "-a" "85f4d5ce11d9349647916ae3668eedf3ebb70c91d4169bf604f981c23a209470", kill_on_drop: false }` [INFO] [stderr] Compiling advent-of-code-2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/day_nine/mod.rs:201:33 [INFO] [stdout] | [INFO] [stdout] 201 | fn move_down(&mut self, n: usize) -> () { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/day_nine/mod.rs:206:33 [INFO] [stdout] | [INFO] [stdout] 206 | fn move_left(&mut self, n: usize) -> () { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `direction` and `count` are never read [INFO] [stdout] --> src/day_nine/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Instruction { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 28 | direction: Direction, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | count: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Head`, `Tail`, `Both`, and `Empty` are never constructed [INFO] [stdout] --> src/day_nine/mod.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 58 | enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 59 | Head, [INFO] [stdout] | ^^^^ [INFO] [stdout] 60 | Tail, [INFO] [stdout] | ^^^^ [INFO] [stdout] 61 | Both, [INFO] [stdout] | ^^^^ [INFO] [stdout] 62 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tail_posns` is never read [INFO] [stdout] --> src/day_nine/mod.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct ExpandingMatrix { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 85 | tail_posns: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExpandingMatrix` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day_nine/mod.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 88 | impl ExpandingMatrix { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 89 | /// Creates a new instance of an expanding matrix [INFO] [stdout] 90 | pub fn new(starting_posn: Coords) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn add_row(&mut self) -> () { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | fn add_column(&mut self) -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn grow(&mut self, n: usize) -> () { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn move_rope(&mut self, instruction: Instruction) -> () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn move_up(&mut self, n: usize) -> () { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | fn move_down(&mut self, n: usize) -> () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | fn move_left(&mut self, n: usize) -> () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | fn move_right(&mut self, n: usize) -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | fn update_posn(&mut self, token: Token, new_posn: Coords) -> () { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | fn get_posn(&self, token: Token) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 306 | fn is_tail_adjacent_to_head(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_input_to_instructions` is never used [INFO] [stdout] --> src/day_nine/mod.rs:341:12 [INFO] [stdout] | [INFO] [stdout] 341 | pub fn convert_input_to_instructions(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rope_bridge` is never used [INFO] [stdout] --> src/day_nine/mod.rs:353:16 [INFO] [stdout] | [INFO] [stdout] 353 | pub fn rope_bridge(input: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.47s [INFO] running `Command { std: "docker" "inspect" "85f4d5ce11d9349647916ae3668eedf3ebb70c91d4169bf604f981c23a209470", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85f4d5ce11d9349647916ae3668eedf3ebb70c91d4169bf604f981c23a209470", kill_on_drop: false }` [INFO] [stdout] 85f4d5ce11d9349647916ae3668eedf3ebb70c91d4169bf604f981c23a209470