[INFO] cloning repository https://github.com/Gsciarra/adventofcode2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Gsciarra/adventofcode2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGsciarra%2Fadventofcode2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGsciarra%2Fadventofcode2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b615f2b8c3e103a86374033e7c6333c3a159e45f [INFO] testing Gsciarra/adventofcode2020 against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGsciarra%2Fadventofcode2020" "/workspace/builds/worker-25/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-25/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Gsciarra/adventofcode2020 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Gsciarra/adventofcode2020 [INFO] finished tweaking git repo https://github.com/Gsciarra/adventofcode2020 [INFO] tweaked toml for git repo https://github.com/Gsciarra/adventofcode2020 written to /workspace/builds/worker-25/source/Cargo.toml [INFO] crate git repo https://github.com/Gsciarra/adventofcode2020 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d0e81ad5d45c3a64258e38372d1e5bf4788bc619f6af6f4a7f1b5969f5038ef7 [INFO] running `Command { std: "docker" "start" "-a" "d0e81ad5d45c3a64258e38372d1e5bf4788bc619f6af6f4a7f1b5969f5038ef7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d0e81ad5d45c3a64258e38372d1e5bf4788bc619f6af6f4a7f1b5969f5038ef7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0e81ad5d45c3a64258e38372d1e5bf4788bc619f6af6f4a7f1b5969f5038ef7", kill_on_drop: false }` [INFO] [stdout] d0e81ad5d45c3a64258e38372d1e5bf4788bc619f6af6f4a7f1b5969f5038ef7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d90a69bd8008fcdb976316602db1918795e65d30155b891f93a305ed0f9de9a8 [INFO] running `Command { std: "docker" "start" "-a" "d90a69bd8008fcdb976316602db1918795e65d30155b891f93a305ed0f9de9a8", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling advent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/day2/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/day5/mod.rs:47:22 [INFO] [stdout] | [INFO] [stdout] 47 | let m: f64 = ((range.0 + range.1) / 2f64); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 - let m: f64 = ((range.0 + range.1) / 2f64); [INFO] [stdout] 47 + let m: f64 = (range.0 + range.1) / 2f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/day5/mod.rs:71:22 [INFO] [stdout] | [INFO] [stdout] 71 | let m: f64 = ((range.0 + range.1) / 2f64); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - let m: f64 = ((range.0 + range.1) / 2f64); [INFO] [stdout] 71 + let m: f64 = (range.0 + range.1) / 2f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_input` [INFO] [stdout] --> src/day7/mod.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils::{get_input, get_input_by_lines, print_solution}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::ParseIntError` [INFO] [stdout] --> src/day7/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::num::ParseIntError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day4/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut input: String = get_input("input-day4.txt").unwrap(); [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/day7/mod.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | let mut contained: HashSet = bag_tree [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_combination_to_obtain_n` [INFO] [stdout] --> src/day1/mod.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn find_combination_to_obtain_n( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution1` [INFO] [stdout] --> src/day1/mod.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn solution1() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day1/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn solution2() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `str_contain_char_a_range_of_times` [INFO] [stdout] --> src/day2/mod.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn str_contain_char_a_range_of_times(times_char_password: &TimesCharPassword) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `str_contain_char_in_one_positions` [INFO] [stdout] --> src/day2/mod.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn str_contain_char_in_one_positions(positions_char_password: &PositionsCharPassword) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution1` [INFO] [stdout] --> src/day2/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn solution1() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day2/mod.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn solution2() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_trees_on_path` [INFO] [stdout] --> src/day3/mod.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn count_trees_on_path(area_map: &mut AreaMap, position: &Position) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution1` [INFO] [stdout] --> src/day3/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn solution1() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day3/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn solution2() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution1` [INFO] [stdout] --> src/day4/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn solution1() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day4/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn solution2() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validation` [INFO] [stdout] --> src/day4/mod.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn validation(k_v_field: &Vec<&str>) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_color` [INFO] [stdout] --> src/day4/mod.rs:138:4 [INFO] [stdout] | [INFO] [stdout] 138 | fn is_color(s: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_eye_color` [INFO] [stdout] --> src/day4/mod.rs:142:4 [INFO] [stdout] | [INFO] [stdout] 142 | fn is_eye_color(s: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution1` [INFO] [stdout] --> src/day5/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn solution1() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day5/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn solution2() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_row` [INFO] [stdout] --> src/day5/mod.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn get_row(indications: &str) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_column` [INFO] [stdout] --> src/day5/mod.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn get_column(indications: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution1` [INFO] [stdout] --> src/day6/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn solution1() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day6/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn solution2() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_input` [INFO] [stdout] --> src/utils/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn get_input(name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/utils/area_map.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(x: usize, y: usize) -> Position { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/utils/area_map.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | width: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/utils/area_map.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | height: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `has_pac_man_approach` [INFO] [stdout] --> src/utils/area_map.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | has_pac_man_approach: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_to` [INFO] [stdout] --> src/utils/area_map.rs:51:16 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn move_to(&mut self, p: Position) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_by` [INFO] [stdout] --> src/utils/area_map.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn move_by(&mut self, p: Position) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_on_bottom_map` [INFO] [stdout] --> src/utils/area_map.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn is_on_bottom_map(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_location` [INFO] [stdout] --> src/utils/area_map.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn get_location(&self) -> T { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_in` [INFO] [stdout] --> src/utils/area_map.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn is_in(&self, p: T) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_pac_man_approach` [INFO] [stdout] --> src/utils/area_map.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn set_pac_man_approach(&mut self, b: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_inside_base_map` [INFO] [stdout] --> src/utils/area_map.rs:82:16 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn is_inside_base_map(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day2/types.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | panic!(format!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 21 | | "The string '{}' can not be converted into Times", [INFO] [stdout] 22 | | s [INFO] [stdout] 23 | | )) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 20 ~ panic!( [INFO] [stdout] 21 | "The string '{}' can not be converted into Times", [INFO] [stdout] 22 | s [INFO] [stdout] 23 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day2/types.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | panic!(format!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 47 | | "The string '{}' can not be converted into Positions", [INFO] [stdout] 48 | | s [INFO] [stdout] 49 | | )) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 46 ~ panic!( [INFO] [stdout] 47 | "The string '{}' can not be converted into Positions", [INFO] [stdout] 48 | s [INFO] [stdout] 49 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day2/types.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | panic!(format!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 73 | | "The string '{}' can not be converted into TupleCharStr", [INFO] [stdout] 74 | | s [INFO] [stdout] 75 | | )) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 72 ~ panic!( [INFO] [stdout] 73 | "The string '{}' can not be converted into TupleCharStr", [INFO] [stdout] 74 | s [INFO] [stdout] 75 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day2/types.rs:80:28 [INFO] [stdout] | [INFO] [stdout] 80 | None => panic!(format!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 81 | | "The string '{}' can not be converted into TupleCharStr", [INFO] [stdout] 82 | | raw_data[1] [INFO] [stdout] 83 | | )), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 80 ~ None => panic!( [INFO] [stdout] 81 | "The string '{}' can not be converted into TupleCharStr", [INFO] [stdout] 82 | raw_data[1] [INFO] [stdout] 83 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day2/types.rs:100:20 [INFO] [stdout] | [INFO] [stdout] 100 | panic!(format!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 101 | | "The string '{}' can not be converted into TupleCharStr", [INFO] [stdout] 102 | | s [INFO] [stdout] 103 | | )) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 100 ~ panic!( [INFO] [stdout] 101 | "The string '{}' can not be converted into TupleCharStr", [INFO] [stdout] 102 | s [INFO] [stdout] 103 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day2/types.rs:108:28 [INFO] [stdout] | [INFO] [stdout] 108 | None => panic!(format!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 109 | | "The string '{}' can not be converted into PositionsCharPassword", [INFO] [stdout] 110 | | raw_data[1] [INFO] [stdout] 111 | | )), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 108 ~ None => panic!( [INFO] [stdout] 109 | "The string '{}' can not be converted into PositionsCharPassword", [INFO] [stdout] 110 | raw_data[1] [INFO] [stdout] 111 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day3/mod.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 62 | panic!(format!("Impossible to convert {} to Square", c)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 62 - panic!(format!("Impossible to convert {} to Square", c)) [INFO] [stdout] 62 + panic!("Impossible to convert {} to Square", c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day5/mod.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | panic!(format!("RANGE INVALID: {:?}", range)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 57 - panic!(format!("RANGE INVALID: {:?}", range)) [INFO] [stdout] 57 + panic!("RANGE INVALID: {:?}", range) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day5/mod.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 81 | panic!(format!("RANGE INVALID: {:?}", range)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 81 - panic!(format!("RANGE INVALID: {:?}", range)) [INFO] [stdout] 81 + panic!("RANGE INVALID: {:?}", range) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 14.76s [INFO] running `Command { std: "docker" "inspect" "d90a69bd8008fcdb976316602db1918795e65d30155b891f93a305ed0f9de9a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d90a69bd8008fcdb976316602db1918795e65d30155b891f93a305ed0f9de9a8", kill_on_drop: false }` [INFO] [stdout] d90a69bd8008fcdb976316602db1918795e65d30155b891f93a305ed0f9de9a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b9916b9099e60d7d4624e77c808a0ca4af73baca47c86b286f8ab5f01e3fe496 [INFO] running `Command { std: "docker" "start" "-a" "b9916b9099e60d7d4624e77c808a0ca4af73baca47c86b286f8ab5f01e3fe496", kill_on_drop: false }` [INFO] [stderr] Compiling advent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/day2/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/day5/mod.rs:47:22 [INFO] [stdout] | [INFO] [stdout] 47 | let m: f64 = ((range.0 + range.1) / 2f64); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 - let m: f64 = ((range.0 + range.1) / 2f64); [INFO] [stdout] 47 + let m: f64 = (range.0 + range.1) / 2f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/day5/mod.rs:71:22 [INFO] [stdout] | [INFO] [stdout] 71 | let m: f64 = ((range.0 + range.1) / 2f64); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - let m: f64 = ((range.0 + range.1) / 2f64); [INFO] [stdout] 71 + let m: f64 = (range.0 + range.1) / 2f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_input` [INFO] [stdout] --> src/day7/mod.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils::{get_input, get_input_by_lines, print_solution}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::ParseIntError` [INFO] [stdout] --> src/day7/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::num::ParseIntError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day4/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut input: String = get_input("input-day4.txt").unwrap(); [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/day7/mod.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | let mut contained: HashSet = bag_tree [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_combination_to_obtain_n` [INFO] [stdout] --> src/day1/mod.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn find_combination_to_obtain_n( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution1` [INFO] [stdout] --> src/day1/mod.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn solution1() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day1/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn solution2() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `str_contain_char_a_range_of_times` [INFO] [stdout] --> src/day2/mod.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn str_contain_char_a_range_of_times(times_char_password: &TimesCharPassword) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `str_contain_char_in_one_positions` [INFO] [stdout] --> src/day2/mod.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn str_contain_char_in_one_positions(positions_char_password: &PositionsCharPassword) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution1` [INFO] [stdout] --> src/day2/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn solution1() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day2/mod.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn solution2() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_trees_on_path` [INFO] [stdout] --> src/day3/mod.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn count_trees_on_path(area_map: &mut AreaMap, position: &Position) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution1` [INFO] [stdout] --> src/day3/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn solution1() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day3/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn solution2() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution1` [INFO] [stdout] --> src/day4/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn solution1() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day4/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn solution2() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validation` [INFO] [stdout] --> src/day4/mod.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn validation(k_v_field: &Vec<&str>) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_color` [INFO] [stdout] --> src/day4/mod.rs:138:4 [INFO] [stdout] | [INFO] [stdout] 138 | fn is_color(s: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_eye_color` [INFO] [stdout] --> src/day4/mod.rs:142:4 [INFO] [stdout] | [INFO] [stdout] 142 | fn is_eye_color(s: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution1` [INFO] [stdout] --> src/day5/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn solution1() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day5/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn solution2() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution1` [INFO] [stdout] --> src/day6/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn solution1() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day6/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn solution2() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_input` [INFO] [stdout] --> src/utils/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn get_input(name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/utils/area_map.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(x: usize, y: usize) -> Position { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/utils/area_map.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | width: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/utils/area_map.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | height: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `has_pac_man_approach` [INFO] [stdout] --> src/utils/area_map.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | has_pac_man_approach: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_to` [INFO] [stdout] --> src/utils/area_map.rs:51:16 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn move_to(&mut self, p: Position) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_by` [INFO] [stdout] --> src/utils/area_map.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn move_by(&mut self, p: Position) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_on_bottom_map` [INFO] [stdout] --> src/utils/area_map.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn is_on_bottom_map(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_location` [INFO] [stdout] --> src/utils/area_map.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn get_location(&self) -> T { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_in` [INFO] [stdout] --> src/utils/area_map.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn is_in(&self, p: T) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_pac_man_approach` [INFO] [stdout] --> src/utils/area_map.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn set_pac_man_approach(&mut self, b: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_inside_base_map` [INFO] [stdout] --> src/utils/area_map.rs:82:16 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn is_inside_base_map(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day2/types.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | panic!(format!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 21 | | "The string '{}' can not be converted into Times", [INFO] [stdout] 22 | | s [INFO] [stdout] 23 | | )) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 20 ~ panic!( [INFO] [stdout] 21 | "The string '{}' can not be converted into Times", [INFO] [stdout] 22 | s [INFO] [stdout] 23 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day2/types.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | panic!(format!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 47 | | "The string '{}' can not be converted into Positions", [INFO] [stdout] 48 | | s [INFO] [stdout] 49 | | )) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 46 ~ panic!( [INFO] [stdout] 47 | "The string '{}' can not be converted into Positions", [INFO] [stdout] 48 | s [INFO] [stdout] 49 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day2/types.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | panic!(format!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 73 | | "The string '{}' can not be converted into TupleCharStr", [INFO] [stdout] 74 | | s [INFO] [stdout] 75 | | )) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 72 ~ panic!( [INFO] [stdout] 73 | "The string '{}' can not be converted into TupleCharStr", [INFO] [stdout] 74 | s [INFO] [stdout] 75 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day2/types.rs:80:28 [INFO] [stdout] | [INFO] [stdout] 80 | None => panic!(format!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 81 | | "The string '{}' can not be converted into TupleCharStr", [INFO] [stdout] 82 | | raw_data[1] [INFO] [stdout] 83 | | )), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 80 ~ None => panic!( [INFO] [stdout] 81 | "The string '{}' can not be converted into TupleCharStr", [INFO] [stdout] 82 | raw_data[1] [INFO] [stdout] 83 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day2/types.rs:100:20 [INFO] [stdout] | [INFO] [stdout] 100 | panic!(format!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 101 | | "The string '{}' can not be converted into TupleCharStr", [INFO] [stdout] 102 | | s [INFO] [stdout] 103 | | )) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 100 ~ panic!( [INFO] [stdout] 101 | "The string '{}' can not be converted into TupleCharStr", [INFO] [stdout] 102 | s [INFO] [stdout] 103 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day2/types.rs:108:28 [INFO] [stdout] | [INFO] [stdout] 108 | None => panic!(format!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 109 | | "The string '{}' can not be converted into PositionsCharPassword", [INFO] [stdout] 110 | | raw_data[1] [INFO] [stdout] 111 | | )), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 108 ~ None => panic!( [INFO] [stdout] 109 | "The string '{}' can not be converted into PositionsCharPassword", [INFO] [stdout] 110 | raw_data[1] [INFO] [stdout] 111 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day3/mod.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 62 | panic!(format!("Impossible to convert {} to Square", c)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 62 - panic!(format!("Impossible to convert {} to Square", c)) [INFO] [stdout] 62 + panic!("Impossible to convert {} to Square", c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day5/mod.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | panic!(format!("RANGE INVALID: {:?}", range)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 57 - panic!(format!("RANGE INVALID: {:?}", range)) [INFO] [stdout] 57 + panic!("RANGE INVALID: {:?}", range) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day5/mod.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 81 | panic!(format!("RANGE INVALID: {:?}", range)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 81 - panic!(format!("RANGE INVALID: {:?}", range)) [INFO] [stdout] 81 + panic!("RANGE INVALID: {:?}", range) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.26s [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/advent-4e175f9e13e905ad) [INFO] running `Command { std: "docker" "inspect" "b9916b9099e60d7d4624e77c808a0ca4af73baca47c86b286f8ab5f01e3fe496", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9916b9099e60d7d4624e77c808a0ca4af73baca47c86b286f8ab5f01e3fe496", kill_on_drop: false }` [INFO] [stdout] b9916b9099e60d7d4624e77c808a0ca4af73baca47c86b286f8ab5f01e3fe496 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f843c6998abe14a1b3cc6ef260db6e75d1d33ae7ab91343e31ed4da7a426a5cf [INFO] running `Command { std: "docker" "start" "-a" "f843c6998abe14a1b3cc6ef260db6e75d1d33ae7ab91343e31ed4da7a426a5cf", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused import: `std::str::FromStr` [INFO] [stderr] --> src/day2/mod.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::str::FromStr; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/day5/mod.rs:47:22 [INFO] [stderr] | [INFO] [stderr] 47 | let m: f64 = ((range.0 + range.1) / 2f64); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 47 - let m: f64 = ((range.0 + range.1) / 2f64); [INFO] [stderr] 47 + let m: f64 = (range.0 + range.1) / 2f64; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/day5/mod.rs:71:22 [INFO] [stderr] | [INFO] [stderr] 71 | let m: f64 = ((range.0 + range.1) / 2f64); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 71 - let m: f64 = ((range.0 + range.1) / 2f64); [INFO] [stderr] 71 + let m: f64 = (range.0 + range.1) / 2f64; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `get_input` [INFO] [stderr] --> src/day7/mod.rs:1:20 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::utils::{get_input, get_input_by_lines, print_solution}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::num::ParseIntError` [INFO] [stderr] --> src/day7/mod.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::num::ParseIntError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/day4/mod.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 7 | let mut input: String = get_input("input-day4.txt").unwrap(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/day7/mod.rs:138:21 [INFO] [stderr] | [INFO] [stderr] 138 | let mut contained: HashSet = bag_tree [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: function is never used: `find_combination_to_obtain_n` [INFO] [stderr] --> src/day1/mod.rs:3:4 [INFO] [stderr] | [INFO] [stderr] 3 | fn find_combination_to_obtain_n( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `solution1` [INFO] [stderr] --> src/day1/mod.rs:45:8 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn solution1() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `solution2` [INFO] [stderr] --> src/day1/mod.rs:52:8 [INFO] [stderr] | [INFO] [stderr] 52 | pub fn solution2() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `str_contain_char_a_range_of_times` [INFO] [stderr] --> src/day2/mod.rs:7:4 [INFO] [stderr] | [INFO] [stderr] 7 | fn str_contain_char_a_range_of_times(times_char_password: &TimesCharPassword) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `str_contain_char_in_one_positions` [INFO] [stderr] --> src/day2/mod.rs:13:4 [INFO] [stderr] | [INFO] [stderr] 13 | fn str_contain_char_in_one_positions(positions_char_password: &PositionsCharPassword) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `solution1` [INFO] [stderr] --> src/day2/mod.rs:24:8 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn solution1() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `solution2` [INFO] [stderr] --> src/day2/mod.rs:37:8 [INFO] [stderr] | [INFO] [stderr] 37 | pub fn solution2() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `count_trees_on_path` [INFO] [stderr] --> src/day3/mod.rs:5:4 [INFO] [stderr] | [INFO] [stderr] 5 | fn count_trees_on_path(area_map: &mut AreaMap, position: &Position) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `solution1` [INFO] [stderr] --> src/day3/mod.rs:20:8 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn solution1() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `solution2` [INFO] [stderr] --> src/day3/mod.rs:30:8 [INFO] [stderr] | [INFO] [stderr] 30 | pub fn solution2() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `solution1` [INFO] [stderr] --> src/day4/mod.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn solution1() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `solution2` [INFO] [stderr] --> src/day4/mod.rs:40:8 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn solution2() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `validation` [INFO] [stderr] --> src/day4/mod.rs:84:4 [INFO] [stderr] | [INFO] [stderr] 84 | fn validation(k_v_field: &Vec<&str>) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `is_color` [INFO] [stderr] --> src/day4/mod.rs:138:4 [INFO] [stderr] | [INFO] [stderr] 138 | fn is_color(s: &str) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `is_eye_color` [INFO] [stderr] --> src/day4/mod.rs:142:4 [INFO] [stderr] | [INFO] [stderr] 142 | fn is_eye_color(s: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `solution1` [INFO] [stderr] --> src/day5/mod.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn solution1() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `solution2` [INFO] [stderr] --> src/day5/mod.rs:19:8 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn solution2() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `solution1` [INFO] [stderr] --> src/day6/mod.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn solution1() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `solution2` [INFO] [stderr] --> src/day6/mod.rs:25:8 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn solution2() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_input` [INFO] [stderr] --> src/utils/mod.rs:15:8 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn get_input(name: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/utils/area_map.rs:12:16 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn new(x: usize, y: usize) -> Position { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `width` [INFO] [stderr] --> src/utils/area_map.rs:30:9 [INFO] [stderr] | [INFO] [stderr] 30 | width: usize, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `height` [INFO] [stderr] --> src/utils/area_map.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 31 | height: usize, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `has_pac_man_approach` [INFO] [stderr] --> src/utils/area_map.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 33 | has_pac_man_approach: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `move_to` [INFO] [stderr] --> src/utils/area_map.rs:51:16 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn move_to(&mut self, p: Position) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `move_by` [INFO] [stderr] --> src/utils/area_map.rs:55:16 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn move_by(&mut self, p: Position) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_on_bottom_map` [INFO] [stderr] --> src/utils/area_map.rs:59:16 [INFO] [stderr] | [INFO] [stderr] 59 | pub fn is_on_bottom_map(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_location` [INFO] [stderr] --> src/utils/area_map.rs:66:16 [INFO] [stderr] | [INFO] [stderr] 66 | pub fn get_location(&self) -> T { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_in` [INFO] [stderr] --> src/utils/area_map.rs:74:16 [INFO] [stderr] | [INFO] [stderr] 74 | pub fn is_in(&self, p: T) -> bool { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_pac_man_approach` [INFO] [stderr] --> src/utils/area_map.rs:78:16 [INFO] [stderr] | [INFO] [stderr] 78 | pub fn set_pac_man_approach(&mut self, b: bool) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_inside_base_map` [INFO] [stderr] --> src/utils/area_map.rs:82:16 [INFO] [stderr] | [INFO] [stderr] 82 | pub fn is_inside_base_map(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/day2/types.rs:20:20 [INFO] [stderr] | [INFO] [stderr] 20 | panic!(format!( [INFO] [stderr] | ____________________^ [INFO] [stderr] 21 | | "The string '{}' can not be converted into Times", [INFO] [stderr] 22 | | s [INFO] [stderr] 23 | | )) [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 20 ~ panic!( [INFO] [stderr] 21 | "The string '{}' can not be converted into Times", [INFO] [stderr] 22 | s [INFO] [stderr] 23 ~ ) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/day2/types.rs:46:20 [INFO] [stderr] | [INFO] [stderr] 46 | panic!(format!( [INFO] [stderr] | ____________________^ [INFO] [stderr] 47 | | "The string '{}' can not be converted into Positions", [INFO] [stderr] 48 | | s [INFO] [stderr] 49 | | )) [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 46 ~ panic!( [INFO] [stderr] 47 | "The string '{}' can not be converted into Positions", [INFO] [stderr] 48 | s [INFO] [stderr] 49 ~ ) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/day2/types.rs:72:20 [INFO] [stderr] | [INFO] [stderr] 72 | panic!(format!( [INFO] [stderr] | ____________________^ [INFO] [stderr] 73 | | "The string '{}' can not be converted into TupleCharStr", [INFO] [stderr] 74 | | s [INFO] [stderr] 75 | | )) [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 72 ~ panic!( [INFO] [stderr] 73 | "The string '{}' can not be converted into TupleCharStr", [INFO] [stderr] 74 | s [INFO] [stderr] 75 ~ ) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/day2/types.rs:80:28 [INFO] [stderr] | [INFO] [stderr] 80 | None => panic!(format!( [INFO] [stderr] | ____________________________^ [INFO] [stderr] 81 | | "The string '{}' can not be converted into TupleCharStr", [INFO] [stderr] 82 | | raw_data[1] [INFO] [stderr] 83 | | )), [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 80 ~ None => panic!( [INFO] [stderr] 81 | "The string '{}' can not be converted into TupleCharStr", [INFO] [stderr] 82 | raw_data[1] [INFO] [stderr] 83 ~ ), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/day2/types.rs:100:20 [INFO] [stderr] | [INFO] [stderr] 100 | panic!(format!( [INFO] [stderr] | ____________________^ [INFO] [stderr] 101 | | "The string '{}' can not be converted into TupleCharStr", [INFO] [stderr] 102 | | s [INFO] [stderr] 103 | | )) [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 100 ~ panic!( [INFO] [stderr] 101 | "The string '{}' can not be converted into TupleCharStr", [INFO] [stderr] 102 | s [INFO] [stderr] 103 ~ ) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/day2/types.rs:108:28 [INFO] [stderr] | [INFO] [stderr] 108 | None => panic!(format!( [INFO] [stderr] | ____________________________^ [INFO] [stderr] 109 | | "The string '{}' can not be converted into PositionsCharPassword", [INFO] [stderr] 110 | | raw_data[1] [INFO] [stderr] 111 | | )), [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 108 ~ None => panic!( [INFO] [stderr] 109 | "The string '{}' can not be converted into PositionsCharPassword", [INFO] [stderr] 110 | raw_data[1] [INFO] [stderr] 111 ~ ), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/day3/mod.rs:62:20 [INFO] [stderr] | [INFO] [stderr] 62 | panic!(format!("Impossible to convert {} to Square", c)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 62 - panic!(format!("Impossible to convert {} to Square", c)) [INFO] [stderr] 62 + panic!("Impossible to convert {} to Square", c) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/day5/mod.rs:57:16 [INFO] [stderr] | [INFO] [stderr] 57 | panic!(format!("RANGE INVALID: {:?}", range)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 57 - panic!(format!("RANGE INVALID: {:?}", range)) [INFO] [stderr] 57 + panic!("RANGE INVALID: {:?}", range) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/day5/mod.rs:81:16 [INFO] [stderr] | [INFO] [stderr] 81 | panic!(format!("RANGE INVALID: {:?}", range)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 81 - panic!(format!("RANGE INVALID: {:?}", range)) [INFO] [stderr] 81 + panic!("RANGE INVALID: {:?}", range) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `advent` (bin "advent" test) generated 47 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/advent-4e175f9e13e905ad) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test day5::tests::it_works ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f843c6998abe14a1b3cc6ef260db6e75d1d33ae7ab91343e31ed4da7a426a5cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f843c6998abe14a1b3cc6ef260db6e75d1d33ae7ab91343e31ed4da7a426a5cf", kill_on_drop: false }` [INFO] [stdout] f843c6998abe14a1b3cc6ef260db6e75d1d33ae7ab91343e31ed4da7a426a5cf