[INFO] cloning repository https://github.com/pbouamriou/adventofcode_2022_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pbouamriou/adventofcode_2022_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpbouamriou%2Fadventofcode_2022_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpbouamriou%2Fadventofcode_2022_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3fcffe5f69323c636a9d0bda930ef89489ac324a [INFO] checking pbouamriou/adventofcode_2022_rust against try#c8085cfed34c45021fc8f66d073f6394b3e35431 for pr-148939 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpbouamriou%2Fadventofcode_2022_rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pbouamriou/adventofcode_2022_rust [INFO] finished tweaking git repo https://github.com/pbouamriou/adventofcode_2022_rust [INFO] tweaked toml for git repo https://github.com/pbouamriou/adventofcode_2022_rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pbouamriou/adventofcode_2022_rust on toolchain c8085cfed34c45021fc8f66d073f6394b3e35431 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c8085cfed34c45021fc8f66d073f6394b3e35431" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/pbouamriou/adventofcode_2022_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" "+c8085cfed34c45021fc8f66d073f6394b3e35431" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+c8085cfed34c45021fc8f66d073f6394b3e35431" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fbd68569163ae82dd229cc7a059709d8fec6a3c4c3175d1fb0a146677ac663f9 [INFO] running `Command { std: "docker" "start" "-a" "fbd68569163ae82dd229cc7a059709d8fec6a3c4c3175d1fb0a146677ac663f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fbd68569163ae82dd229cc7a059709d8fec6a3c4c3175d1fb0a146677ac663f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbd68569163ae82dd229cc7a059709d8fec6a3c4c3175d1fb0a146677ac663f9", kill_on_drop: false }` [INFO] [stdout] fbd68569163ae82dd229cc7a059709d8fec6a3c4c3175d1fb0a146677ac663f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+c8085cfed34c45021fc8f66d073f6394b3e35431" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7a3471ca59f440b2b8b850661240dce27e256064c16d16872e46ce7cf137fd40 [INFO] running `Command { std: "docker" "start" "-a" "7a3471ca59f440b2b8b850661240dce27e256064c16d16872e46ce7cf137fd40", kill_on_drop: false }` [INFO] [stderr] Checking regex-syntax v0.6.28 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking regex v1.7.0 [INFO] [stderr] Checking adventofcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/day9/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MoveDecision` is never used [INFO] [stdout] --> src/day9/mod.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum MoveDecision { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `move_offset` is never used [INFO] [stdout] --> src/day9/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl MoveDecision { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 20 | fn move_offset(&self) -> (i16, i16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `relative_distance` and `make_decision` are never used [INFO] [stdout] --> src/day9/mod.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl Position { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 37 | fn relative_distance(&self, other_position: &Position) -> (i16, i16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn make_decision(&self, other_position: &Position) -> MoveDecision { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rope` is never constructed [INFO] [stdout] --> src/day9/mod.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | struct Rope { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/day9/mod.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 106 | impl Rope { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 107 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/day3/mod.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | fn iter(&self) -> RucksackIterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 83 | fn iter(&self) -> RucksackIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/testtools/mod.rs:22:31 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn read_from_string(data: &String) -> StreamIterator { [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 22 | pub fn read_from_string(data: &String) -> StreamIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/day9/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MoveDecision` is never used [INFO] [stdout] --> src/day9/mod.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum MoveDecision { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `move_offset` is never used [INFO] [stdout] --> src/day9/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl MoveDecision { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 20 | fn move_offset(&self) -> (i16, i16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `relative_distance` and `make_decision` are never used [INFO] [stdout] --> src/day9/mod.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl Position { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 37 | fn relative_distance(&self, other_position: &Position) -> (i16, i16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn make_decision(&self, other_position: &Position) -> MoveDecision { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rope` is never constructed [INFO] [stdout] --> src/day9/mod.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | struct Rope { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/day9/mod.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 106 | impl Rope { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 107 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/day3/mod.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | fn iter(&self) -> RucksackIterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 83 | fn iter(&self) -> RucksackIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/testtools/mod.rs:22:31 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn read_from_string(data: &String) -> StreamIterator { [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 22 | pub fn read_from_string(data: &String) -> StreamIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `adventofcode::day9::*` [INFO] [stdout] --> src/day9star2/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use adventofcode::day9::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day9star2/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut lines = io::stdin().lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `adventofcode::day9::*` [INFO] [stdout] --> src/day9star1/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use adventofcode::day9::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lines` [INFO] [stdout] --> src/day9star2/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut lines = io::stdin().lines(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lines` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day9star1/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut lines = io::stdin().lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lines` [INFO] [stdout] --> src/day9star1/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut lines = io::stdin().lines(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lines` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `adventofcode::day9::*` [INFO] [stdout] --> src/day9star1/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use adventofcode::day9::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day9star1/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut lines = io::stdin().lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lines` [INFO] [stdout] --> src/day9star1/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut lines = io::stdin().lines(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lines` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `adventofcode::day9::*` [INFO] [stdout] --> src/day9star2/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use adventofcode::day9::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day9star2/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut lines = io::stdin().lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lines` [INFO] [stdout] --> src/day9star2/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut lines = io::stdin().lines(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lines` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.66s [INFO] running `Command { std: "docker" "inspect" "7a3471ca59f440b2b8b850661240dce27e256064c16d16872e46ce7cf137fd40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a3471ca59f440b2b8b850661240dce27e256064c16d16872e46ce7cf137fd40", kill_on_drop: false }` [INFO] [stdout] 7a3471ca59f440b2b8b850661240dce27e256064c16d16872e46ce7cf137fd40