[INFO] cloning repository https://github.com/agmcleod/adventofcode-2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/agmcleod/adventofcode-2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fagmcleod%2Fadventofcode-2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fagmcleod%2Fadventofcode-2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9298783b1922e5959e4f58199418dcac7e86d9e5 [INFO] checking agmcleod/adventofcode-2020 against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fagmcleod%2Fadventofcode-2020" "/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/agmcleod/adventofcode-2020 [INFO] finished tweaking git repo https://github.com/agmcleod/adventofcode-2020 [INFO] tweaked toml for git repo https://github.com/agmcleod/adventofcode-2020 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/agmcleod/adventofcode-2020 on toolchain b1f2594eac607c1f051534800237eeedb5590a49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/agmcleod/adventofcode-2020 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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] warning: /workspace/builds/worker-1-tc2/source/read_input/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d3585779c05cc64d1e242e744143418f44caea956884c0d0215a7b8fd9eaabef [INFO] running `Command { std: "docker" "start" "-a" "d3585779c05cc64d1e242e744143418f44caea956884c0d0215a7b8fd9eaabef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d3585779c05cc64d1e242e744143418f44caea956884c0d0215a7b8fd9eaabef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3585779c05cc64d1e242e744143418f44caea956884c0d0215a7b8fd9eaabef", kill_on_drop: false }` [INFO] [stdout] d3585779c05cc64d1e242e744143418f44caea956884c0d0215a7b8fd9eaabef [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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3ab32e23db00f3415fa02186e82e6684dbe560ae570f0cbd6ba75012e4961ea9 [INFO] running `Command { std: "docker" "start" "-a" "3ab32e23db00f3415fa02186e82e6684dbe560ae570f0cbd6ba75012e4961ea9", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] warning: /opt/rustwide/workdir/read_input/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking read_input v0.1.0 (/opt/rustwide/workdir/read_input) [INFO] [stderr] Checking fifteen v0.1.0 (/opt/rustwide/workdir/15) [INFO] [stderr] Checking twentyfive v0.1.0 (/opt/rustwide/workdir/25) [INFO] [stderr] Checking twentythree v0.1.0 (/opt/rustwide/workdir/23) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> read_input/src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | try!(file.read_to_string(&mut text)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> read_input/src/lib.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | let mut file = try!(File::open(path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> read_input/src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | try!(file.read_to_string(&mut text)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> read_input/src/lib.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | let mut file = try!(File::open(path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking nineteen v0.1.0 (/opt/rustwide/workdir/19) [INFO] [stderr] Checking one v0.1.0 (/opt/rustwide/workdir/1) [INFO] [stderr] Checking five v0.1.0 (/opt/rustwide/workdir/5) [INFO] [stderr] Checking four v0.1.0 (/opt/rustwide/workdir/4) [INFO] [stderr] Checking twelve v0.1.0 (/opt/rustwide/workdir/12) [INFO] [stderr] Checking fourteen v0.1.0 (/opt/rustwide/workdir/14) [INFO] [stderr] Checking twenty v0.1.0 (/opt/rustwide/workdir/20) [INFO] [stderr] Checking two v0.1.0 (/opt/rustwide/workdir/2) [INFO] [stderr] Checking three v0.1.0 (/opt/rustwide/workdir/3) [INFO] [stderr] Checking seven v0.1.0 (/opt/rustwide/workdir/7) [INFO] [stderr] Checking seventeen v0.1.0 (/opt/rustwide/workdir/17) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> 23/src/main.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | if let Some(mut target) = self.data.get_mut(target_cup) { [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] [stderr] Checking nine v0.1.0 (/opt/rustwide/workdir/9) [INFO] [stderr] Checking eight v0.1.0 (/opt/rustwide/workdir/8) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> 23/src/main.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | if let Some(mut target) = self.data.get_mut(target_cup) { [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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> 19/src/main.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | captures_to_replace.push(value.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] --> 19/src/main.rs:51:41 [INFO] [stdout] | [INFO] [stdout] 51 | rules.insert(num.clone(), format!("{}+", regex_pattern)); [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] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> 19/src/main.rs:60:41 [INFO] [stdout] | [INFO] [stdout] 60 | rules.insert(num.clone(), format!("({})", pattern)); [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] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> 19/src/main.rs:67:37 [INFO] [stdout] | [INFO] [stdout] 67 | rules.insert(num.clone(), regex_pattern); [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] Checking sixteen v0.1.0 (/opt/rustwide/workdir/16) [INFO] [stderr] Checking ten v0.1.0 (/opt/rustwide/workdir/10) [INFO] [stderr] Checking six v0.1.0 (/opt/rustwide/workdir/6) [INFO] [stderr] Checking eighteen v0.1.0 (/opt/rustwide/workdir/18) [INFO] [stderr] Checking twentytwo v0.1.0 (/opt/rustwide/workdir/22) [INFO] [stderr] Checking twentyfour v0.1.0 (/opt/rustwide/workdir/24) [INFO] [stderr] Checking twentyone v0.1.0 (/opt/rustwide/workdir/21) [INFO] [stderr] Checking eleven v0.1.0 (/opt/rustwide/workdir/11) [INFO] [stderr] Checking thirteen v0.1.0 (/opt/rustwide/workdir/13) [INFO] [stdout] warning: variable `counter` is assigned to, but never used [INFO] [stdout] --> 21/src/main.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let mut counter = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_counter` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `counter` is never read [INFO] [stdout] --> 21/src/main.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | counter += 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> 19/src/main.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | captures_to_replace.push(value.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] --> 19/src/main.rs:51:41 [INFO] [stdout] | [INFO] [stdout] 51 | rules.insert(num.clone(), format!("{}+", regex_pattern)); [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] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> 19/src/main.rs:60:41 [INFO] [stdout] | [INFO] [stdout] 60 | rules.insert(num.clone(), format!("({})", pattern)); [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] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> 19/src/main.rs:67:37 [INFO] [stdout] | [INFO] [stdout] 67 | rules.insert(num.clone(), regex_pattern); [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] [stdout] warning: variable `counter` is assigned to, but never used [INFO] [stdout] --> 21/src/main.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let mut counter = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_counter` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `counter` is never read [INFO] [stdout] --> 21/src/main.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | counter += 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.76s [INFO] running `Command { std: "docker" "inspect" "3ab32e23db00f3415fa02186e82e6684dbe560ae570f0cbd6ba75012e4961ea9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ab32e23db00f3415fa02186e82e6684dbe560ae570f0cbd6ba75012e4961ea9", kill_on_drop: false }` [INFO] [stdout] 3ab32e23db00f3415fa02186e82e6684dbe560ae570f0cbd6ba75012e4961ea9