[INFO] cloning repository https://github.com/martin-dsa/advent_of_code_2015 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/martin-dsa/advent_of_code_2015" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmartin-dsa%2Fadvent_of_code_2015", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmartin-dsa%2Fadvent_of_code_2015'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c79d8225ecf2a1eec30706e203623d723469eb0b [INFO] checking martin-dsa/advent_of_code_2015 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmartin-dsa%2Fadvent_of_code_2015" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-3-tc2/source/.cargo/config [INFO] started tweaking git repo https://github.com/martin-dsa/advent_of_code_2015 [INFO] finished tweaking git repo https://github.com/martin-dsa/advent_of_code_2015 [INFO] tweaked toml for git repo https://github.com/martin-dsa/advent_of_code_2015 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/martin-dsa/advent_of_code_2015 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/martin-dsa/advent_of_code_2015 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7738d6ec4547b5c75a0d5b885cb234d0eed32f2d97a284a7f4dd2b59f029efc9 [INFO] running `Command { std: "docker" "start" "-a" "7738d6ec4547b5c75a0d5b885cb234d0eed32f2d97a284a7f4dd2b59f029efc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7738d6ec4547b5c75a0d5b885cb234d0eed32f2d97a284a7f4dd2b59f029efc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7738d6ec4547b5c75a0d5b885cb234d0eed32f2d97a284a7f4dd2b59f029efc9", kill_on_drop: false }` [INFO] [stdout] 7738d6ec4547b5c75a0d5b885cb234d0eed32f2d97a284a7f4dd2b59f029efc9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8117a9dad0f825e963260ba6988945b12d7551407fb9f4b9c3724e24129120ba [INFO] running `Command { std: "docker" "start" "-a" "8117a9dad0f825e963260ba6988945b12d7551407fb9f4b9c3724e24129120ba", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.181 [INFO] [stderr] Checking regex-syntax v0.7.4 [INFO] [stderr] Compiling serde_json v1.0.104 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking pico-args v0.5.0 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking aho-corasick v1.0.2 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking regex-automata v0.3.4 [INFO] [stderr] Checking regex v1.9.1 [INFO] [stderr] Checking fancy-regex v0.11.0 [INFO] [stderr] Checking advent_of_code v0.8.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:11:53 [INFO] [stdout] | [INFO] [stdout] 11 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 12 | | Ok(match s { [INFO] [stdout] 13 | | "on" => ActionType::On, [INFO] [stdout] 14 | | "off" => ActionType::Off, [INFO] [stdout] 15 | | _ => panic!(), [INFO] [stdout] 16 | | }) [INFO] [stdout] 17 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | / Ok(match s { [INFO] [stdout] 13 | | "on" => ActionType::On, [INFO] [stdout] 14 | | "off" => ActionType::Off, [INFO] [stdout] 15 | | _ => panic!(), [INFO] [stdout] 16 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:26:53 [INFO] [stdout] | [INFO] [stdout] 26 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 27 | | s.split_once(',') [INFO] [stdout] 28 | | .map(|(x, y)| { [INFO] [stdout] 29 | | let x = x.parse().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 33 | | .unwrap() [INFO] [stdout] 34 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | / s.split_once(',') [INFO] [stdout] 28 | | .map(|(x, y)| { [INFO] [stdout] 29 | | let x = x.parse().unwrap(); [INFO] [stdout] 30 | | let y = y.parse().unwrap(); [INFO] [stdout] 31 | | Ok(Self { x, y }) [INFO] [stdout] 32 | | }) [INFO] [stdout] 33 | | .unwrap() [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:28:27 [INFO] [stdout] | [INFO] [stdout] 28 | .map(|(x, y)| { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 29 | | let x = x.parse().unwrap(); [INFO] [stdout] 30 | | let y = y.parse().unwrap(); [INFO] [stdout] 31 | | Ok(Self { x, y }) [INFO] [stdout] 32 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | Ok(Self { x, y }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 45 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 46 | | let words = s.split_whitespace().collect::>(); [INFO] [stdout] 47 | | match words.len() { [INFO] [stdout] 48 | | 4 => Ok(Self { [INFO] [stdout] ... | [INFO] [stdout] 61 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | / match words.len() { [INFO] [stdout] 48 | | 4 => Ok(Self { [INFO] [stdout] 49 | | t: ActionType::Toggle, [INFO] [stdout] 50 | | from: words[1].parse().unwrap(), [INFO] [stdout] ... | [INFO] [stdout] 59 | | _ => panic!(), [INFO] [stdout] 60 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:48:18 [INFO] [stdout] | [INFO] [stdout] 48 | 4 => Ok(Self { [INFO] [stdout] | __________________^ [INFO] [stdout] 49 | | t: ActionType::Toggle, [INFO] [stdout] 50 | | from: words[1].parse().unwrap(), [INFO] [stdout] 51 | | to: words[3].parse().unwrap(), [INFO] [stdout] 52 | | }), [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | from: words[1].parse().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | to: words[3].parse().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 53 | 5 => Ok(Self { [INFO] [stdout] | __________________^ [INFO] [stdout] 54 | | t: words[1].parse().unwrap(), [INFO] [stdout] 55 | | from: words[2].parse().unwrap(), [INFO] [stdout] 56 | | to: words[4].parse().unwrap(), [INFO] [stdout] 57 | | }), [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | t: words[1].parse().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:55:23 [INFO] [stdout] | [INFO] [stdout] 55 | from: words[2].parse().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | to: words[4].parse().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:165:44 [INFO] [stdout] | [INFO] [stdout] 165 | let actions = input.lines().map(|line| line.parse::().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/06.rs:175:44 [INFO] [stdout] | [INFO] [stdout] 175 | let actions = input.lines().map(|line| line.parse::().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_of_code` (bin "06" test) due to 17 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/02.rs:12:53 [INFO] [stdout] | [INFO] [stdout] 12 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 13 | | let mut dimensions = s.split('x').map(|s| s.parse::().unwrap()); [INFO] [stdout] 14 | | [INFO] [stdout] 15 | | Ok(Self { [INFO] [stdout] ... | [INFO] [stdout] 19 | | }) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/02.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | / Ok(Self { [INFO] [stdout] 16 | | l: dimensions.next().unwrap(), [INFO] [stdout] 17 | | w: dimensions.next().unwrap(), [INFO] [stdout] 18 | | h: dimensions.next().unwrap(), [INFO] [stdout] 19 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/02.rs:47:31 [INFO] [stdout] | [INFO] [stdout] 47 | let present_box = line.parse::().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/02.rs:59:31 [INFO] [stdout] | [INFO] [stdout] 59 | let present_box = line.parse::().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/15.rs:22:53 [INFO] [stdout] | [INFO] [stdout] 22 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 23 | | RE.captures(s) [INFO] [stdout] 24 | | .map(|c| { [INFO] [stdout] 25 | | let (_, data) = c.extract(); [INFO] [stdout] ... | [INFO] [stdout] 29 | | .unwrap() [INFO] [stdout] 30 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/15.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | / RE.captures(s) [INFO] [stdout] 24 | | .map(|c| { [INFO] [stdout] 25 | | let (_, data) = c.extract(); [INFO] [stdout] ... | [INFO] [stdout] 28 | | }) [INFO] [stdout] 29 | | .unwrap() [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/15.rs:24:22 [INFO] [stdout] | [INFO] [stdout] 24 | .map(|c| { [INFO] [stdout] | ______________________^ [INFO] [stdout] 25 | | let (_, data) = c.extract(); [INFO] [stdout] 26 | | [INFO] [stdout] 27 | | Ok(Self(data.map(|n| n.parse::().unwrap()))) [INFO] [stdout] 28 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/15.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | Ok(Self(data.map(|n| n.parse::().unwrap()))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/15.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 56 | .map(|l| l.parse::().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/15.rs:75:18 [INFO] [stdout] | [INFO] [stdout] 75 | .map(|l| l.parse::().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_of_code` (bin "02" test) due to 4 previous errors [INFO] [stderr] error: could not compile `advent_of_code` (bin "15" test) due to 6 previous errors [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/bin/13.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | fn get_data(input: &str) -> (Names, Connections) { [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [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] 8 | fn get_data(input: &str) -> (Names<'_>, Connections<'_>) { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/13.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | names.insert(to.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] running `Command { std: "docker" "inspect" "8117a9dad0f825e963260ba6988945b12d7551407fb9f4b9c3724e24129120ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8117a9dad0f825e963260ba6988945b12d7551407fb9f4b9c3724e24129120ba", kill_on_drop: false }` [INFO] [stdout] 8117a9dad0f825e963260ba6988945b12d7551407fb9f4b9c3724e24129120ba