[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 master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fagmcleod%2Fadventofcode-2020" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/agmcleod/adventofcode-2020 on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-tc1/source/Cargo.toml [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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "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] 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dbc3fecc182c017ebcd3a7848aa555e70ac989e1b1150322bebb9d01510830ef [INFO] running `Command { std: "docker" "start" "-a" "dbc3fecc182c017ebcd3a7848aa555e70ac989e1b1150322bebb9d01510830ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dbc3fecc182c017ebcd3a7848aa555e70ac989e1b1150322bebb9d01510830ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbc3fecc182c017ebcd3a7848aa555e70ac989e1b1150322bebb9d01510830ef", kill_on_drop: false }` [INFO] [stdout] dbc3fecc182c017ebcd3a7848aa555e70ac989e1b1150322bebb9d01510830ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f4ffda86a5b7ac9acfa03ccca413b70d9a3bc120d668bc32a99a7fe8e4f28636 [INFO] running `Command { std: "docker" "start" "-a" "f4ffda86a5b7ac9acfa03ccca413b70d9a3bc120d668bc32a99a7fe8e4f28636", 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] 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] Checking read_input v0.1.0 (/opt/rustwide/workdir/read_input) [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking fifteen v0.1.0 (/opt/rustwide/workdir/15) [INFO] [stderr] Checking twentythree v0.1.0 (/opt/rustwide/workdir/23) [INFO] [stderr] Checking twentyfive v0.1.0 (/opt/rustwide/workdir/25) [INFO] [stderr] Checking thread_local v1.0.1 [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] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking eight v0.1.0 (/opt/rustwide/workdir/8) [INFO] [stderr] Checking twenty v0.1.0 (/opt/rustwide/workdir/20) [INFO] [stderr] Checking seven v0.1.0 (/opt/rustwide/workdir/7) [INFO] [stderr] Checking two v0.1.0 (/opt/rustwide/workdir/2) [INFO] [stderr] Checking fourteen v0.1.0 (/opt/rustwide/workdir/14) [INFO] [stderr] Checking nine v0.1.0 (/opt/rustwide/workdir/9) [INFO] [stderr] Checking twentyfour v0.1.0 (/opt/rustwide/workdir/24) [INFO] [stderr] Checking seventeen v0.1.0 (/opt/rustwide/workdir/17) [INFO] [stderr] Checking twentyone v0.1.0 (/opt/rustwide/workdir/21) [INFO] [stderr] Checking sixteen v0.1.0 (/opt/rustwide/workdir/16) [INFO] [stderr] Checking three v0.1.0 (/opt/rustwide/workdir/3) [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)]` on by default [INFO] [stdout] [INFO] [stdout] [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking six v0.1.0 (/opt/rustwide/workdir/6) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking twentytwo v0.1.0 (/opt/rustwide/workdir/22) [INFO] [stderr] Checking twelve v0.1.0 (/opt/rustwide/workdir/12) [INFO] [stderr] Checking five v0.1.0 (/opt/rustwide/workdir/5) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking eleven v0.1.0 (/opt/rustwide/workdir/11) [INFO] [stderr] Checking ten v0.1.0 (/opt/rustwide/workdir/10) [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:13 [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking one v0.1.0 (/opt/rustwide/workdir/1) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `counter` is assigned to, but never used [INFO] [stdout] --> 21/src/main.rs:103:13 [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking nineteen v0.1.0 (/opt/rustwide/workdir/19) [INFO] [stderr] Checking four v0.1.0 (/opt/rustwide/workdir/4) [INFO] [stderr] Checking eighteen v0.1.0 (/opt/rustwide/workdir/18) [INFO] [stdout] warning: the item `regex` is imported redundantly [INFO] [stdout] --> 18/src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use regex; [INFO] [stdout] | ^^^^^ the item `regex` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` 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: the item `regex` is imported redundantly [INFO] [stdout] --> 18/src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use regex; [INFO] [stdout] | ^^^^^ the item `regex` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.32s [INFO] running `Command { std: "docker" "inspect" "f4ffda86a5b7ac9acfa03ccca413b70d9a3bc120d668bc32a99a7fe8e4f28636", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4ffda86a5b7ac9acfa03ccca413b70d9a3bc120d668bc32a99a7fe8e4f28636", kill_on_drop: false }` [INFO] [stdout] f4ffda86a5b7ac9acfa03ccca413b70d9a3bc120d668bc32a99a7fe8e4f28636