[INFO] cloning repository https://github.com/michalrzak/AoC_22_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/michalrzak/AoC_22_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmichalrzak%2FAoC_22_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmichalrzak%2FAoC_22_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 682ee629b397e5817a3f7ca42fe6cf7dc9facea3 [INFO] checking michalrzak/AoC_22_rust against master#2e6fc425411280c658d852813de01c5157255088 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmichalrzak%2FAoC_22_rust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/michalrzak/AoC_22_rust on toolchain 2e6fc425411280c658d852813de01c5157255088 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/michalrzak/AoC_22_rust [INFO] finished tweaking git repo https://github.com/michalrzak/AoC_22_rust [INFO] tweaked toml for git repo https://github.com/michalrzak/AoC_22_rust written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/michalrzak/AoC_22_rust 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" "+2e6fc425411280c658d852813de01c5157255088" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d2a1c6ae12d716ce79a7cd082366741bb0b1dd99900ab1b1767fc8efe57a416e [INFO] running `Command { std: "docker" "start" "-a" "d2a1c6ae12d716ce79a7cd082366741bb0b1dd99900ab1b1767fc8efe57a416e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d2a1c6ae12d716ce79a7cd082366741bb0b1dd99900ab1b1767fc8efe57a416e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2a1c6ae12d716ce79a7cd082366741bb0b1dd99900ab1b1767fc8efe57a416e", kill_on_drop: false }` [INFO] [stdout] d2a1c6ae12d716ce79a7cd082366741bb0b1dd99900ab1b1767fc8efe57a416e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04d2d2e28a1eefaf99123b80a233871b8b96205f32eac6ed11587dcc7eb8dc71 [INFO] running `Command { std: "docker" "start" "-a" "04d2d2e28a1eefaf99123b80a233871b8b96205f32eac6ed11587dcc7eb8dc71", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Checking advent_of_code_22 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::day_13::day_13_1::solve` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::day_13::day_13_1::solve; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::day_13::day_13_1::solve` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::day_13::day_13_1::solve; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/day_03/day_3_2.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/day_05/day_5_1.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/day_05/day_5_2.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/day_03/day_3_2.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/day_05/day_5_1.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut` and `Borrow` [INFO] [stdout] --> src/day_07/day_7_1.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | use std::borrow::{Borrow, BorrowMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/day_05/day_5_2.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/day_07/day_7_1.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut` and `Borrow` [INFO] [stdout] --> src/day_07/day_7_1.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | use std::borrow::{Borrow, BorrowMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LinkedList` [INFO] [stdout] --> src/day_09/day_9_2.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashSet, LinkedList}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/day_11/day_11_1.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/day_11/day_11_2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/day_07/day_7_1.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToBigUint` [INFO] [stdout] --> src/day_11/day_11_2.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use num_bigint::{BigUint, ToBigUint}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `One` [INFO] [stdout] --> src/day_11/day_11_2.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use num_traits::{Zero, One}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/day_13/day_13_1.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LinkedList` [INFO] [stdout] --> src/day_09/day_9_2.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashSet, LinkedList}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/day_13/day_13_2.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/day_11/day_11_1.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/day_15/day_15_2.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/day_11/day_11_2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToBigUint` [INFO] [stdout] --> src/day_11/day_11_2.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use num_bigint::{BigUint, ToBigUint}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `One` [INFO] [stdout] --> src/day_11/day_11_2.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use num_traits::{Zero, One}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/day_13/day_13_1.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/day_13/day_13_2.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/day_15/day_15_2.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day_05/day_5_1.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | for i in 0..move_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ele` [INFO] [stdout] --> src/day_05/day_5_1.rs:16:59 [INFO] [stdout] | [INFO] [stdout] 16 | let mut ship:Vec> = (0..num_of_stacks).map(|ele| Vec::new()).collect::>>(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ele` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day_05/day_5_2.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | for i in 0..move_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ele` [INFO] [stdout] --> src/day_05/day_5_2.rs:16:59 [INFO] [stdout] | [INFO] [stdout] 16 | let mut ship:Vec> = (0..num_of_stacks).map(|ele| Vec::new()).collect::>>(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ele` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day_05/day_5_1.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | for i in 0..move_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ele` [INFO] [stdout] --> src/day_05/day_5_1.rs:16:59 [INFO] [stdout] | [INFO] [stdout] 16 | let mut ship:Vec> = (0..num_of_stacks).map(|ele| Vec::new()).collect::>>(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ele` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_path` [INFO] [stdout] --> src/day_07/day_7_1.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut current_path:Vec<&mut Directory> = Vec::from([&mut root]); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_size` [INFO] [stdout] --> src/day_07/day_7_1.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | let file_size: u32 = command_line[0].parse::().expect("file size converted successfully"); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day_05/day_5_2.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | for i in 0..move_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_07/day_7_1.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut current_path:Vec<&mut Directory> = Vec::from([&mut root]); [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: value assigned to `not_edge` is never read [INFO] [stdout] --> src/day_08/day_8_1.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | not_edge = false; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ele` [INFO] [stdout] --> src/day_05/day_5_2.rs:16:59 [INFO] [stdout] | [INFO] [stdout] 16 | let mut ship:Vec> = (0..num_of_stacks).map(|ele| Vec::new()).collect::>>(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ele` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `not_edge` is never read [INFO] [stdout] --> src/day_08/day_8_2.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | not_edge = false; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_path` [INFO] [stdout] --> src/day_07/day_7_1.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut current_path:Vec<&mut Directory> = Vec::from([&mut root]); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_size` [INFO] [stdout] --> src/day_07/day_7_1.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | let file_size: u32 = command_line[0].parse::().expect("file size converted successfully"); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_07/day_7_1.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut current_path:Vec<&mut Directory> = Vec::from([&mut root]); [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: value assigned to `not_edge` is never read [INFO] [stdout] --> src/day_08/day_8_1.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | not_edge = false; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day_09/day_9_2.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `not_edge` is never read [INFO] [stdout] --> src/day_08/day_8_2.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | not_edge = false; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_10/day_10_2.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut res: i64 = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day_09/day_9_2.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day_11/day_11_1.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | for i in 0..20 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret` is never read [INFO] [stdout] --> src/day_11/day_11_2.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | let mut ret = BigUint::from(0u32); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_10/day_10_2.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut res: i64 = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day_11/day_11_1.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | for i in 0..20 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret` is never read [INFO] [stdout] --> src/day_11/day_11_2.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | let mut ret = BigUint::from(0u32); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_pos` [INFO] [stdout] --> src/day_12/day_12_2.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let a_pos: Vec<(usize, usize)> = find_a(&height_map); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_a_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `found` [INFO] [stdout] --> src/day_12/day_12_2.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | let mut found = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_found` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shortest` [INFO] [stdout] --> src/day_12/day_12_2.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | let mut shortest: u32 = 0; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shortest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_12/day_12_2.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | let mut found = false; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_12/day_12_2.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | let mut shortest: u32 = 0; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `skip_after_recursion` [INFO] [stdout] --> src/day_13/day_13_1.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let mut skip_after_recursion = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_skip_after_recursion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `skip_after_recursion_right` [INFO] [stdout] --> src/day_13/day_13_1.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut skip_after_recursion_right = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_skip_after_recursion_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_13/day_13_1.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut skip_after_recursion = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_13/day_13_1.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let mut skip_after_recursion_right = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `skip_after_recursion` [INFO] [stdout] --> src/day_13/day_13_2.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut skip_after_recursion = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_skip_after_recursion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `skip_after_recursion_right` [INFO] [stdout] --> src/day_13/day_13_2.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let mut skip_after_recursion_right = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_skip_after_recursion_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_pos` [INFO] [stdout] --> src/day_12/day_12_2.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let a_pos: Vec<(usize, usize)> = find_a(&height_map); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_a_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `found` [INFO] [stdout] --> src/day_12/day_12_2.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | let mut found = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_found` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shortest` [INFO] [stdout] --> src/day_12/day_12_2.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | let mut shortest: u32 = 0; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shortest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_12/day_12_2.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | let mut found = false; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_12/day_12_2.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | let mut shortest: u32 = 0; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `skip_after_recursion` [INFO] [stdout] --> src/day_13/day_13_1.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let mut skip_after_recursion = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_skip_after_recursion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `skip_after_recursion_right` [INFO] [stdout] --> src/day_13/day_13_1.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut skip_after_recursion_right = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_skip_after_recursion_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_13/day_13_2.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let mut skip_after_recursion = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_13/day_13_2.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut skip_after_recursion_right = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/day_13/day_13_2.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | let mut res = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_13/day_13_2.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | let mut res = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_13/day_13_2.rs:163:17 [INFO] [stdout] | [INFO] [stdout] 163 | let mut ordered = is_right_order(packages[prev], packages[ele]).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sand_falling` is never read [INFO] [stdout] --> src/day_14/day_14_1.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | sand_falling = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sand_falling` is never read [INFO] [stdout] --> src/day_14/day_14_1.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | sand_falling = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_13/day_13_1.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut skip_after_recursion = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_13/day_13_1.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let mut skip_after_recursion_right = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sand_overflow` [INFO] [stdout] --> src/day_14/day_14_2.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut sand_overflow = false; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sand_overflow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sand_falling` is never read [INFO] [stdout] --> src/day_14/day_14_2.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | sand_falling = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sand_falling` is never read [INFO] [stdout] --> src/day_14/day_14_2.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | sand_falling = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `skip_after_recursion` [INFO] [stdout] --> src/day_13/day_13_2.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut skip_after_recursion = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_skip_after_recursion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `skip_after_recursion_right` [INFO] [stdout] --> src/day_13/day_13_2.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let mut skip_after_recursion_right = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_skip_after_recursion_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_14/day_14_2.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let mut sand_overflow = false; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x_num` is never read [INFO] [stdout] --> src/day_15/day_15_1.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let mut x_num = 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x_num` is never read [INFO] [stdout] --> src/day_15/day_15_1.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | x_num += x_num_dif; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_13/day_13_2.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let mut skip_after_recursion = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_13/day_13_2.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut skip_after_recursion_right = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/day_13/day_13_2.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | let mut res = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_15/day_15_1.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut x_num_dif = 2; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_13/day_13_2.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | let mut res = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_13/day_13_2.rs:163:17 [INFO] [stdout] | [INFO] [stdout] 163 | let mut ordered = is_right_order(packages[prev], packages[ele]).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sand_falling` is never read [INFO] [stdout] --> src/day_14/day_14_1.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | sand_falling = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sand_falling` is never read [INFO] [stdout] --> src/day_14/day_14_1.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | sand_falling = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode` is never used [INFO] [stdout] --> src/day_02/day_2_2.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn decode(input: char) -> char { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_list` and `directory_list` are never read [INFO] [stdout] --> src/day_07/day_7_1.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | struct Directory { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 18 | file_list: Vec<(String, u32)>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | directory_list: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `substring_ascii` is never used [INFO] [stdout] --> src/day_13/day_13_1.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn substring_ascii<'a>(input: &'a str, start: &str, end: &str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `substring_ascii` is never used [INFO] [stdout] --> src/day_13/day_13_2.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn substring_ascii<'a>(input: &'a str, start: &str, end: &str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sand_overflow` [INFO] [stdout] --> src/day_14/day_14_2.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut sand_overflow = false; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sand_overflow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sand_falling` is never read [INFO] [stdout] --> src/day_14/day_14_2.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | sand_falling = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sand_falling` is never read [INFO] [stdout] --> src/day_14/day_14_2.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | sand_falling = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_14/day_14_2.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let mut sand_overflow = false; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x_num` is never read [INFO] [stdout] --> src/day_15/day_15_1.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let mut x_num = 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x_num` is never read [INFO] [stdout] --> src/day_15/day_15_1.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | x_num += x_num_dif; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_15/day_15_1.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut x_num_dif = 2; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode` is never used [INFO] [stdout] --> src/day_02/day_2_2.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn decode(input: char) -> char { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_list` and `directory_list` are never read [INFO] [stdout] --> src/day_07/day_7_1.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | struct Directory { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 18 | file_list: Vec<(String, u32)>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | directory_list: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `substring_ascii` is never used [INFO] [stdout] --> src/day_13/day_13_1.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn substring_ascii<'a>(input: &'a str, start: &str, end: &str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `substring_ascii` is never used [INFO] [stdout] --> src/day_13/day_13_2.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn substring_ascii<'a>(input: &'a str, start: &str, end: &str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.99s [INFO] running `Command { std: "docker" "inspect" "04d2d2e28a1eefaf99123b80a233871b8b96205f32eac6ed11587dcc7eb8dc71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04d2d2e28a1eefaf99123b80a233871b8b96205f32eac6ed11587dcc7eb8dc71", kill_on_drop: false }` [INFO] [stdout] 04d2d2e28a1eefaf99123b80a233871b8b96205f32eac6ed11587dcc7eb8dc71 [INFO] checking michalrzak/AoC_22_rust against try#d856f2da3433420b7077c0dc7ee9441455bc1302 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmichalrzak%2FAoC_22_rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/michalrzak/AoC_22_rust on toolchain d856f2da3433420b7077c0dc7ee9441455bc1302 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/michalrzak/AoC_22_rust [INFO] finished tweaking git repo https://github.com/michalrzak/AoC_22_rust [INFO] tweaked toml for git repo https://github.com/michalrzak/AoC_22_rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/michalrzak/AoC_22_rust 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" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 489cbc16b2b95e97baf63c7446bb66c7724f8ed22033e566dc415b811f23931b [INFO] running `Command { std: "docker" "start" "-a" "489cbc16b2b95e97baf63c7446bb66c7724f8ed22033e566dc415b811f23931b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "489cbc16b2b95e97baf63c7446bb66c7724f8ed22033e566dc415b811f23931b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "489cbc16b2b95e97baf63c7446bb66c7724f8ed22033e566dc415b811f23931b", kill_on_drop: false }` [INFO] [stdout] 489cbc16b2b95e97baf63c7446bb66c7724f8ed22033e566dc415b811f23931b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 25bcdd917695ed0e68a4d3585ad32b8727f3a3d59fb05ae3e3bf47960ce88f50 [INFO] running `Command { std: "docker" "start" "-a" "25bcdd917695ed0e68a4d3585ad32b8727f3a3d59fb05ae3e3bf47960ce88f50", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Checking num-integer v0.1.45 [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 825 | impl_integer_for_isize!(i8, test_integer_i8); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 826 | impl_integer_for_isize!(i16, test_integer_i16); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 827 | impl_integer_for_isize!(i32, test_integer_i32); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 828 | impl_integer_for_isize!(i64, test_integer_i64); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 829 | impl_integer_for_isize!(isize, test_integer_isize); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 831 | impl_integer_for_isize!(i128, test_integer_i128); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `num-integer` (lib) due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "25bcdd917695ed0e68a4d3585ad32b8727f3a3d59fb05ae3e3bf47960ce88f50", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25bcdd917695ed0e68a4d3585ad32b8727f3a3d59fb05ae3e3bf47960ce88f50", kill_on_drop: false }` [INFO] [stdout] 25bcdd917695ed0e68a4d3585ad32b8727f3a3d59fb05ae3e3bf47960ce88f50