[INFO] cloning repository https://github.com/LewisDaleUK/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/LewisDaleUK/advent-of-code-2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLewisDaleUK%2Fadvent-of-code-2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLewisDaleUK%2Fadvent-of-code-2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c683edfdda64a1fb473d227940fd12243da7d1ad [INFO] building LewisDaleUK/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%2FLewisDaleUK%2Fadvent-of-code-2022" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LewisDaleUK/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/LewisDaleUK/advent-of-code-2022 [INFO] finished tweaking git repo https://github.com/LewisDaleUK/advent-of-code-2022 [INFO] tweaked toml for git repo https://github.com/LewisDaleUK/advent-of-code-2022 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/LewisDaleUK/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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded grid v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 31a877cd7fb7a4773c88e5eab878207ca8d6b92ce051376abf8262408c60aaa6 [INFO] running `Command { std: "docker" "start" "-a" "31a877cd7fb7a4773c88e5eab878207ca8d6b92ce051376abf8262408c60aaa6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "31a877cd7fb7a4773c88e5eab878207ca8d6b92ce051376abf8262408c60aaa6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31a877cd7fb7a4773c88e5eab878207ca8d6b92ce051376abf8262408c60aaa6", kill_on_drop: false }` [INFO] [stdout] 31a877cd7fb7a4773c88e5eab878207ca8d6b92ce051376abf8262408c60aaa6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 0024b38f7cafbf66cb5462218e35f5bfbd91d2c9cfd73a2c144afd25e34bef84 [INFO] running `Command { std: "docker" "start" "-a" "0024b38f7cafbf66cb5462218e35f5bfbd91d2c9cfd73a2c144afd25e34bef84", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling no-std-compat v0.4.1 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling grid v0.9.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling regex v1.7.0 [INFO] [stderr] Compiling advent-of-code-2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `delimited` and `many0` [INFO] [stdout] --> src/monkeys.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | ...{tuple, delimited, preceded}, character::complete::{space0, i32 as cci32, space1, one_of}, bytes::complete::tag, multi::{many0, separa... [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rope.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | let mut last = self.knots.get_mut(i).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rope.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | let mut head = self.knots.first_mut().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_size` is never used [INFO] [stdout] --> src/directory_parser.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Sizeable { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 11 | fn get_size(&self) -> usize; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_parent` is never used [INFO] [stdout] --> src/directory_parser.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait HasParent { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 37 | fn has_parent(&self, other: PathBuf) -> bool; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PathRoot` is never used [INFO] [stdout] --> src/file_node.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | trait PathRoot { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distance` is never used [INFO] [stdout] --> src/rope.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 26 | trait Vector { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 31 | fn distance(&self, other: Self) -> usize; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Normalize` is never used [INFO] [stdout] --> src/trees.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | trait Normalize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Add`, `Divide`, and `Multiply` are never constructed [INFO] [stdout] --> src/monkeys.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Operation { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 12 | Add(OperationTarget), [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | Divide(OperationTarget), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | Multiply(OperationTarget) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Value` and `Old` are never constructed [INFO] [stdout] --> src/monkeys.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum OperationTarget { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 19 | Value(i32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | Old, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OperationTarget` 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: variant `Divisible` is never constructed [INFO] [stdout] --> src/monkeys.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum If { [INFO] [stdout] | -- variant in this enum [INFO] [stdout] 25 | Divisible(i32) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `If` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_items` is never used [INFO] [stdout] --> src/monkeys.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn parse_items(i: &str) -> IResult<&str, Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_target` is never used [INFO] [stdout] --> src/monkeys.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn parse_target(i: &str) -> IResult<&str, OperationTarget> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_operation` is never used [INFO] [stdout] --> src/monkeys.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn parse_operation(i: &str) -> IResult<&str, Operation> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_test` is never used [INFO] [stdout] --> src/monkeys.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn parse_test(i: &str) -> IResult<&str, Test> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_monkey` is never used [INFO] [stdout] --> src/monkeys.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn parse_monkey(input: &str) -> IResult<&str, Monkey> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.85s [INFO] running `Command { std: "docker" "inspect" "0024b38f7cafbf66cb5462218e35f5bfbd91d2c9cfd73a2c144afd25e34bef84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0024b38f7cafbf66cb5462218e35f5bfbd91d2c9cfd73a2c144afd25e34bef84", kill_on_drop: false }` [INFO] [stdout] 0024b38f7cafbf66cb5462218e35f5bfbd91d2c9cfd73a2c144afd25e34bef84 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] fb52760a415c7b4e0828311d2eab117576843106a7a878f070bc8aee00c788ab [INFO] running `Command { std: "docker" "start" "-a" "fb52760a415c7b4e0828311d2eab117576843106a7a878f070bc8aee00c788ab", kill_on_drop: false }` [INFO] [stderr] Compiling advent-of-code-2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `delimited` and `many0` [INFO] [stdout] --> src/monkeys.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | ...{tuple, delimited, preceded}, character::complete::{space0, i32 as cci32, space1, one_of}, bytes::complete::tag, multi::{many0, separa... [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rope.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | let mut last = self.knots.get_mut(i).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rope.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | let mut head = self.knots.first_mut().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_size` is never used [INFO] [stdout] --> src/directory_parser.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Sizeable { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 11 | fn get_size(&self) -> usize; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PathRoot` is never used [INFO] [stdout] --> src/file_node.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | trait PathRoot { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distance` is never used [INFO] [stdout] --> src/rope.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 26 | trait Vector { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 31 | fn distance(&self, other: Self) -> usize; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Normalize` is never used [INFO] [stdout] --> src/trees.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | trait Normalize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Divide` is never constructed [INFO] [stdout] --> src/monkeys.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Operation { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 12 | Add(OperationTarget), [INFO] [stdout] 13 | Divide(OperationTarget), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.72s [INFO] running `Command { std: "docker" "inspect" "fb52760a415c7b4e0828311d2eab117576843106a7a878f070bc8aee00c788ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb52760a415c7b4e0828311d2eab117576843106a7a878f070bc8aee00c788ab", kill_on_drop: false }` [INFO] [stdout] fb52760a415c7b4e0828311d2eab117576843106a7a878f070bc8aee00c788ab