[INFO] cloning repository https://github.com/Easpect/AOC [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Easpect/AOC" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEaspect%2FAOC", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEaspect%2FAOC'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6a067cb1ee8072e53bb5eb72b5f579c6725bc989 [INFO] building Easpect/AOC 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%2FEaspect%2FAOC" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Easpect/AOC 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] removed /workspace/builds/worker-0-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/Easpect/AOC [INFO] finished tweaking git repo https://github.com/Easpect/AOC [INFO] tweaked toml for git repo https://github.com/Easpect/AOC written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Easpect/AOC 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] e834009d08f106b38aeb8bb4b9c2485e709b5fdc97f95650756525f000bab081 [INFO] running `Command { std: "docker" "start" "-a" "e834009d08f106b38aeb8bb4b9c2485e709b5fdc97f95650756525f000bab081", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e834009d08f106b38aeb8bb4b9c2485e709b5fdc97f95650756525f000bab081", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e834009d08f106b38aeb8bb4b9c2485e709b5fdc97f95650756525f000bab081", kill_on_drop: false }` [INFO] [stdout] e834009d08f106b38aeb8bb4b9c2485e709b5fdc97f95650756525f000bab081 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] ac854f3e1e14b1e75e16800c9913525d6d41be886c60509d2da4afc018ca5f3b [INFO] running `Command { std: "docker" "start" "-a" "ac854f3e1e14b1e75e16800c9913525d6d41be886c60509d2da4afc018ca5f3b", kill_on_drop: false }` [INFO] [stderr] Compiling pico-args v0.5.0 [INFO] [stderr] Compiling tinyjson v2.5.1 [INFO] [stderr] Compiling advent_of_code v0.11.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/02.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | if(firstCheck <= 0 || firstCheck > 3) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - if(firstCheck <= 0 || firstCheck > 3) [INFO] [stdout] 29 + if firstCheck <= 0 || firstCheck > 3 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/bin/02.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | return(Some(totalSafe.try_into().unwrap())); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 67 - return(Some(totalSafe.try_into().unwrap())); [INFO] [stdout] 67 + return Some(totalSafe.try_into().unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/02.rs:99:11 [INFO] [stdout] | [INFO] [stdout] 99 | if(firstCheck <= 0 || firstCheck > 3) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 99 - if(firstCheck <= 0 || firstCheck > 3) [INFO] [stdout] 99 + if firstCheck <= 0 || firstCheck > 3 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/bin/02.rs:158:11 [INFO] [stdout] | [INFO] [stdout] 158 | return(Some(totalSafe.try_into().unwrap())); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 158 - return(Some(totalSafe.try_into().unwrap())); [INFO] [stdout] 158 + return Some(totalSafe.try_into().unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/02.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut firstVal; [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/bin/02.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut firstVal; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `totalSafe` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut totalSafe = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `total_safe` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `reportSize` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let reportSize = reactor.len(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `report_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstVal` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | let mut firstVal; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `first_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currVal` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | let mut currVal; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `curr_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstCheck` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let firstCheck = (reactor[1] - reactor[0]).abs(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `first_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `totalSafe` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let mut totalSafe = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `total_safe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `reportSize` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let reportSize = reactor.len(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `report_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstVal` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | let mut firstVal; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `first_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currVal` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let mut currVal; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `curr_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/bin/01.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | return(returnSum); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - return(returnSum); [INFO] [stdout] 25 + return returnSum; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/01.rs:46:15 [INFO] [stdout] | [INFO] [stdout] 46 | if(leftList[i] == rightList[j]) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - if(leftList[i] == rightList[j]) [INFO] [stdout] 46 + if leftList[i] == rightList[j] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/bin/01.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | return(returnSum); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 54 - return(returnSum); [INFO] [stdout] 54 + return returnSum; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstCheck` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | let firstCheck = (reactor[1] - reactor[0]).abs(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `first_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `totalSum` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut totalSum= 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `total_sum` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftList` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut leftList = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `left_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightList` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut rightList = Vec::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `right_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numVec` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let numVec : Vec<_>=line.split(" ").map(|c| c.parse::().unwrap()).collect(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `num_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vecSize` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let vecSize = leftList.len(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `vec_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vecSum` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let vecSum = rightList[i] - leftList[i]; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `vec_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sumAdd` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let sumAdd = vecSum.abs(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `sum_add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `returnSum` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let returnSum: Option = Some(totalSum.try_into().unwrap()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `return_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `totalSum` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut totalSum = 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `total_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftList` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut leftList = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `left_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightList` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut rightList = Vec::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `right_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numVec` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let numVec : Vec<_>=line.split(" ").map(|c| c.parse::().unwrap()).collect(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `num_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vecSize` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let vecSize = leftList.len(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `vec_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `returnSum` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let returnSum: Option = Some(totalSum.try_into().unwrap()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `return_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.14s [INFO] running `Command { std: "docker" "inspect" "ac854f3e1e14b1e75e16800c9913525d6d41be886c60509d2da4afc018ca5f3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac854f3e1e14b1e75e16800c9913525d6d41be886c60509d2da4afc018ca5f3b", kill_on_drop: false }` [INFO] [stdout] ac854f3e1e14b1e75e16800c9913525d6d41be886c60509d2da4afc018ca5f3b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 48fbefa88d4edecca263fa25b91c43179d07b7cfc1beaace32fa83ed6611a452 [INFO] running `Command { std: "docker" "start" "-a" "48fbefa88d4edecca263fa25b91c43179d07b7cfc1beaace32fa83ed6611a452", kill_on_drop: false }` [INFO] [stderr] Compiling advent_of_code v0.11.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/02.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | if(firstCheck <= 0 || firstCheck > 3) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - if(firstCheck <= 0 || firstCheck > 3) [INFO] [stdout] 29 + if firstCheck <= 0 || firstCheck > 3 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/bin/02.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | return(Some(totalSafe.try_into().unwrap())); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 67 - return(Some(totalSafe.try_into().unwrap())); [INFO] [stdout] 67 + return Some(totalSafe.try_into().unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/02.rs:99:11 [INFO] [stdout] | [INFO] [stdout] 99 | if(firstCheck <= 0 || firstCheck > 3) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 99 - if(firstCheck <= 0 || firstCheck > 3) [INFO] [stdout] 99 + if firstCheck <= 0 || firstCheck > 3 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/bin/02.rs:158:11 [INFO] [stdout] | [INFO] [stdout] 158 | return(Some(totalSafe.try_into().unwrap())); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 158 - return(Some(totalSafe.try_into().unwrap())); [INFO] [stdout] 158 + return Some(totalSafe.try_into().unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/bin/01.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | return(returnSum); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - return(returnSum); [INFO] [stdout] 25 + return returnSum; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/01.rs:46:15 [INFO] [stdout] | [INFO] [stdout] 46 | if(leftList[i] == rightList[j]) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - if(leftList[i] == rightList[j]) [INFO] [stdout] 46 + if leftList[i] == rightList[j] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/bin/01.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | return(returnSum); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 54 - return(returnSum); [INFO] [stdout] 54 + return returnSum; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/02.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut firstVal; [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/bin/02.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut firstVal; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `totalSafe` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut totalSafe = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `total_safe` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `reportSize` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let reportSize = reactor.len(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `report_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstVal` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | let mut firstVal; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `first_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currVal` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | let mut currVal; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `curr_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstCheck` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let firstCheck = (reactor[1] - reactor[0]).abs(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `first_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `totalSafe` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let mut totalSafe = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `total_safe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `reportSize` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let reportSize = reactor.len(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `report_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstVal` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | let mut firstVal; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `first_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currVal` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let mut currVal; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `curr_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstCheck` should have a snake case name [INFO] [stdout] --> src/bin/02.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | let firstCheck = (reactor[1] - reactor[0]).abs(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `first_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `totalSum` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut totalSum= 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `total_sum` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftList` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut leftList = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `left_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightList` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut rightList = Vec::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `right_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numVec` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let numVec : Vec<_>=line.split(" ").map(|c| c.parse::().unwrap()).collect(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `num_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vecSize` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let vecSize = leftList.len(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `vec_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vecSum` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let vecSum = rightList[i] - leftList[i]; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `vec_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sumAdd` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let sumAdd = vecSum.abs(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `sum_add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `returnSum` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let returnSum: Option = Some(totalSum.try_into().unwrap()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `return_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `totalSum` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut totalSum = 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `total_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftList` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut leftList = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `left_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightList` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut rightList = Vec::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `right_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numVec` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let numVec : Vec<_>=line.split(" ").map(|c| c.parse::().unwrap()).collect(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `num_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vecSize` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let vecSize = leftList.len(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `vec_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `returnSum` should have a snake case name [INFO] [stdout] --> src/bin/01.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let returnSum: Option = Some(totalSum.try_into().unwrap()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `return_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.78s [INFO] running `Command { std: "docker" "inspect" "48fbefa88d4edecca263fa25b91c43179d07b7cfc1beaace32fa83ed6611a452", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48fbefa88d4edecca263fa25b91c43179d07b7cfc1beaace32fa83ed6611a452", kill_on_drop: false }` [INFO] [stdout] 48fbefa88d4edecca263fa25b91c43179d07b7cfc1beaace32fa83ed6611a452