[INFO] cloning repository https://github.com/Eeshwar-Krishnan/AdventOfCode2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Eeshwar-Krishnan/AdventOfCode2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEeshwar-Krishnan%2FAdventOfCode2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEeshwar-Krishnan%2FAdventOfCode2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 728f618ecca101096c8ef253f3455e4ba8580fc3 [INFO] building Eeshwar-Krishnan/AdventOfCode2022 against try#58b1b3c5342a414c161338871f8004258ccef2a7 for pr-149937 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEeshwar-Krishnan%2FAdventOfCode2022" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Eeshwar-Krishnan/AdventOfCode2022 [INFO] finished tweaking git repo https://github.com/Eeshwar-Krishnan/AdventOfCode2022 [INFO] tweaked toml for git repo https://github.com/Eeshwar-Krishnan/AdventOfCode2022 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Eeshwar-Krishnan/AdventOfCode2022 on toolchain 58b1b3c5342a414c161338871f8004258ccef2a7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Eeshwar-Krishnan/AdventOfCode2022 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" "+58b1b3c5342a414c161338871f8004258ccef2a7" "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 [ERROR] error running command: no output for 300 seconds [INFO] building Eeshwar-Krishnan/AdventOfCode2022 against try#58b1b3c5342a414c161338871f8004258ccef2a7 for pr-149937 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEeshwar-Krishnan%2FAdventOfCode2022" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Eeshwar-Krishnan/AdventOfCode2022 [INFO] finished tweaking git repo https://github.com/Eeshwar-Krishnan/AdventOfCode2022 [INFO] tweaked toml for git repo https://github.com/Eeshwar-Krishnan/AdventOfCode2022 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Eeshwar-Krishnan/AdventOfCode2022 on toolchain 58b1b3c5342a414c161338871f8004258ccef2a7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Eeshwar-Krishnan/AdventOfCode2022 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" "+58b1b3c5342a414c161338871f8004258ccef2a7" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 51d1608a223c93a789610fbab334e9376ba828ad5d83b348694281b1766735c2 [INFO] running `Command { std: "docker" "start" "-a" "51d1608a223c93a789610fbab334e9376ba828ad5d83b348694281b1766735c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "51d1608a223c93a789610fbab334e9376ba828ad5d83b348694281b1766735c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51d1608a223c93a789610fbab334e9376ba828ad5d83b348694281b1766735c2", kill_on_drop: false }` [INFO] [stdout] 51d1608a223c93a789610fbab334e9376ba828ad5d83b348694281b1766735c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2087c69feabb0c6f1bc1b5fc274c17c85d01128a6059562e8839b5dd3bca9ff6 [INFO] running `Command { std: "docker" "start" "-a" "2087c69feabb0c6f1bc1b5fc274c17c85d01128a6059562e8839b5dd3bca9ff6", kill_on_drop: false }` [INFO] [stderr] Compiling AdventOfCode2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/Day1.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | buf.split("\n").map(|val| {match(val.parse::()){Ok(v) => {tmp += v;} Err(v) => {max=cmp::max(max, tmp); tmp=0;}}}).for_each... [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - buf.split("\n").map(|val| {match(val.parse::()){Ok(v) => {tmp += v;} Err(v) => {max=cmp::max(max, tmp); tmp=0;}}}).for_each(drop); [INFO] [stdout] 10 + buf.split("\n").map(|val| {match val.parse::() {Ok(v) => {tmp += v;} Err(v) => {max=cmp::max(max, tmp); tmp=0;}}}).for_each(drop); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/Day1.rs:19:37 [INFO] [stdout] | [INFO] [stdout] 19 | buf.split("\n").map(|val| {match(val.parse::()){Ok(v) => {tmp += v;} Err(v) => {maxes.push(tmp); tmp=0;}}}).for_each(drop); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - buf.split("\n").map(|val| {match(val.parse::()){Ok(v) => {tmp += v;} Err(v) => {maxes.push(tmp); tmp=0;}}}).for_each(drop); [INFO] [stdout] 19 + buf.split("\n").map(|val| {match val.parse::() {Ok(v) => {tmp += v;} Err(v) => {maxes.push(tmp); tmp=0;}}}).for_each(drop); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | if(v.starts_with("A")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - if(v.starts_with("A")){ [INFO] [stdout] 10 + if v.starts_with("A") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | }else if(v.starts_with("B")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - }else if(v.starts_with("B")){ [INFO] [stdout] 12 + }else if v.starts_with("B") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | if(v.ends_with("X")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 20 - if(v.ends_with("X")){ [INFO] [stdout] 20 + if v.ends_with("X") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | if(num == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - if(num == 1){ [INFO] [stdout] 22 + if num == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | if(num == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - if(num == 2){ [INFO] [stdout] 25 + if num == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | if(num == 3){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - if(num == 3){ [INFO] [stdout] 28 + if num == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | }else if(v.ends_with("Y")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 31 - }else if(v.ends_with("Y")){ [INFO] [stdout] 31 + }else if v.ends_with("Y") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | if(num == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - if(num == 1){ [INFO] [stdout] 38 + if num == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | if(num == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 41 - if(num == 2){ [INFO] [stdout] 41 + if num == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | if(num == 3){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if(num == 3){ [INFO] [stdout] 44 + if num == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:66:11 [INFO] [stdout] | [INFO] [stdout] 66 | if(v.starts_with("A")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 66 - if(v.starts_with("A")){ [INFO] [stdout] 66 + if v.starts_with("A") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | }else if(v.starts_with("B")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 68 - }else if(v.starts_with("B")){ [INFO] [stdout] 68 + }else if v.starts_with("B") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:75:11 [INFO] [stdout] | [INFO] [stdout] 75 | if(v.ends_with("X")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 75 - if(v.ends_with("X")){ [INFO] [stdout] 75 + if v.ends_with("X") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | }else if(v.ends_with("Y")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 77 - }else if(v.ends_with("Y")){ [INFO] [stdout] 77 + }else if v.ends_with("Y") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | if(num == score){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 83 - if(num == score){ [INFO] [stdout] 83 + if num == score { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | if(score == 1 && num == 3){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 86 - if(score == 1 && num == 3){ [INFO] [stdout] 86 + if score == 1 && num == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:89:11 [INFO] [stdout] | [INFO] [stdout] 89 | if(score == 2 && num == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - if(score == 2 && num == 1){ [INFO] [stdout] 89 + if score == 2 && num == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:92:11 [INFO] [stdout] | [INFO] [stdout] 92 | if(score == 3 && num == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 92 - if(score == 3 && num == 2){ [INFO] [stdout] 92 + if score == 3 && num == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/Day1.rs:10:83 [INFO] [stdout] | [INFO] [stdout] 10 | ...2>()){Ok(v) => {tmp += v;} Err(v) => {max=cmp::max(max, tmp); tmp=0;}}}).for_each(drop); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/Day1.rs:19:83 [INFO] [stdout] | [INFO] [stdout] 19 | buf.split("\n").map(|val| {match(val.parse::()){Ok(v) => {tmp += v;} Err(v) => {maxes.push(tmp); tmp=0;}}}).for_each(drop); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `choice` is assigned to, but never used [INFO] [stdout] --> src/Day2.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut choice = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_choice` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `choice` is never read [INFO] [stdout] --> src/Day2.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | choice += 3; [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: value assigned to `choice` is never read [INFO] [stdout] --> src/Day2.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | choice += 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `choice` is never read [INFO] [stdout] --> src/Day2.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | choice += 1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `problem1` is never used [INFO] [stdout] --> src/Day1.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn problem1(mut file: File){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `problem2` is never used [INFO] [stdout] --> src/Day1.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn problem2(mut file: File){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `problem1` is never used [INFO] [stdout] --> src/Day2.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn problem1(mut file: File){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day1` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Day1; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day2` should have a snake case name [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | mod Day2; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `totalScore` should have a snake case name [INFO] [stdout] --> src/Day2.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut totalScore: i128 = 0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `total_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `totalScore` should have a snake case name [INFO] [stdout] --> src/Day2.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut totalScore: i128 = 0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `total_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] running `Command { std: "docker" "inspect" "2087c69feabb0c6f1bc1b5fc274c17c85d01128a6059562e8839b5dd3bca9ff6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2087c69feabb0c6f1bc1b5fc274c17c85d01128a6059562e8839b5dd3bca9ff6", kill_on_drop: false }` [INFO] [stdout] 2087c69feabb0c6f1bc1b5fc274c17c85d01128a6059562e8839b5dd3bca9ff6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 41dce229399b062d38b8dfa8328e2cc9581a0bd2ee6c8e3b17ee23b090515c99 [INFO] running `Command { std: "docker" "start" "-a" "41dce229399b062d38b8dfa8328e2cc9581a0bd2ee6c8e3b17ee23b090515c99", kill_on_drop: false }` [INFO] [stderr] Compiling AdventOfCode2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/Day1.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | buf.split("\n").map(|val| {match(val.parse::()){Ok(v) => {tmp += v;} Err(v) => {max=cmp::max(max, tmp); tmp=0;}}}).for_each... [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - buf.split("\n").map(|val| {match(val.parse::()){Ok(v) => {tmp += v;} Err(v) => {max=cmp::max(max, tmp); tmp=0;}}}).for_each(drop); [INFO] [stdout] 10 + buf.split("\n").map(|val| {match val.parse::() {Ok(v) => {tmp += v;} Err(v) => {max=cmp::max(max, tmp); tmp=0;}}}).for_each(drop); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/Day1.rs:19:37 [INFO] [stdout] | [INFO] [stdout] 19 | buf.split("\n").map(|val| {match(val.parse::()){Ok(v) => {tmp += v;} Err(v) => {maxes.push(tmp); tmp=0;}}}).for_each(drop); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - buf.split("\n").map(|val| {match(val.parse::()){Ok(v) => {tmp += v;} Err(v) => {maxes.push(tmp); tmp=0;}}}).for_each(drop); [INFO] [stdout] 19 + buf.split("\n").map(|val| {match val.parse::() {Ok(v) => {tmp += v;} Err(v) => {maxes.push(tmp); tmp=0;}}}).for_each(drop); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | if(v.starts_with("A")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - if(v.starts_with("A")){ [INFO] [stdout] 10 + if v.starts_with("A") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | }else if(v.starts_with("B")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - }else if(v.starts_with("B")){ [INFO] [stdout] 12 + }else if v.starts_with("B") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | if(v.ends_with("X")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 20 - if(v.ends_with("X")){ [INFO] [stdout] 20 + if v.ends_with("X") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | if(num == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - if(num == 1){ [INFO] [stdout] 22 + if num == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | if(num == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - if(num == 2){ [INFO] [stdout] 25 + if num == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | if(num == 3){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - if(num == 3){ [INFO] [stdout] 28 + if num == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | }else if(v.ends_with("Y")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 31 - }else if(v.ends_with("Y")){ [INFO] [stdout] 31 + }else if v.ends_with("Y") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | if(num == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - if(num == 1){ [INFO] [stdout] 38 + if num == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | if(num == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 41 - if(num == 2){ [INFO] [stdout] 41 + if num == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | if(num == 3){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if(num == 3){ [INFO] [stdout] 44 + if num == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:66:11 [INFO] [stdout] | [INFO] [stdout] 66 | if(v.starts_with("A")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 66 - if(v.starts_with("A")){ [INFO] [stdout] 66 + if v.starts_with("A") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | }else if(v.starts_with("B")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 68 - }else if(v.starts_with("B")){ [INFO] [stdout] 68 + }else if v.starts_with("B") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:75:11 [INFO] [stdout] | [INFO] [stdout] 75 | if(v.ends_with("X")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 75 - if(v.ends_with("X")){ [INFO] [stdout] 75 + if v.ends_with("X") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | }else if(v.ends_with("Y")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 77 - }else if(v.ends_with("Y")){ [INFO] [stdout] 77 + }else if v.ends_with("Y") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | if(num == score){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 83 - if(num == score){ [INFO] [stdout] 83 + if num == score { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | if(score == 1 && num == 3){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 86 - if(score == 1 && num == 3){ [INFO] [stdout] 86 + if score == 1 && num == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:89:11 [INFO] [stdout] | [INFO] [stdout] 89 | if(score == 2 && num == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - if(score == 2 && num == 1){ [INFO] [stdout] 89 + if score == 2 && num == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day2.rs:92:11 [INFO] [stdout] | [INFO] [stdout] 92 | if(score == 3 && num == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 92 - if(score == 3 && num == 2){ [INFO] [stdout] 92 + if score == 3 && num == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/Day1.rs:10:83 [INFO] [stdout] | [INFO] [stdout] 10 | ...2>()){Ok(v) => {tmp += v;} Err(v) => {max=cmp::max(max, tmp); tmp=0;}}}).for_each(drop); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/Day1.rs:19:83 [INFO] [stdout] | [INFO] [stdout] 19 | buf.split("\n").map(|val| {match(val.parse::()){Ok(v) => {tmp += v;} Err(v) => {maxes.push(tmp); tmp=0;}}}).for_each(drop); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `choice` is assigned to, but never used [INFO] [stdout] --> src/Day2.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut choice = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_choice` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `choice` is never read [INFO] [stdout] --> src/Day2.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | choice += 3; [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: value assigned to `choice` is never read [INFO] [stdout] --> src/Day2.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | choice += 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `choice` is never read [INFO] [stdout] --> src/Day2.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | choice += 1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `problem1` is never used [INFO] [stdout] --> src/Day1.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn problem1(mut file: File){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `problem2` is never used [INFO] [stdout] --> src/Day1.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn problem2(mut file: File){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `problem1` is never used [INFO] [stdout] --> src/Day2.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn problem1(mut file: File){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day1` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Day1; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day2` should have a snake case name [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | mod Day2; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `totalScore` should have a snake case name [INFO] [stdout] --> src/Day2.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut totalScore: i128 = 0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `total_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `totalScore` should have a snake case name [INFO] [stdout] --> src/Day2.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut totalScore: i128 = 0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `total_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] running `Command { std: "docker" "inspect" "41dce229399b062d38b8dfa8328e2cc9581a0bd2ee6c8e3b17ee23b090515c99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41dce229399b062d38b8dfa8328e2cc9581a0bd2ee6c8e3b17ee23b090515c99", kill_on_drop: false }` [INFO] [stdout] 41dce229399b062d38b8dfa8328e2cc9581a0bd2ee6c8e3b17ee23b090515c99