[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] building Gsciarra/adventofcode2020 against master#222c5724ecc922fe67815f428c19f82c129d9386 for pr-97334 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGsciarra%2Fadventofcode2020" "/workspace/builds/worker-15/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-15/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Gsciarra/adventofcode2020 on toolchain 222c5724ecc922fe67815f428c19f82c129d9386 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "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-15/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" "+222c5724ecc922fe67815f428c19f82c129d9386" "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-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7018bcacbc5b0086ef9032f3efac27fa88746ba221668564496307e3467943e6 [INFO] running `Command { std: "docker" "start" "-a" "7018bcacbc5b0086ef9032f3efac27fa88746ba221668564496307e3467943e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7018bcacbc5b0086ef9032f3efac27fa88746ba221668564496307e3467943e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7018bcacbc5b0086ef9032f3efac27fa88746ba221668564496307e3467943e6", kill_on_drop: false }` [INFO] [stdout] 7018bcacbc5b0086ef9032f3efac27fa88746ba221668564496307e3467943e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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" "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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fcc1a852899ecc9c92bd6973bfff74c2be8a2010de9bc0ad130f6255e78c85cb [INFO] running `Command { std: "docker" "start" "-a" "fcc1a852899ecc9c92bd6973bfff74c2be8a2010de9bc0ad130f6255e78c85cb", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling lazy_static v1.4.0 [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 6.36s [INFO] running `Command { std: "docker" "inspect" "fcc1a852899ecc9c92bd6973bfff74c2be8a2010de9bc0ad130f6255e78c85cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fcc1a852899ecc9c92bd6973bfff74c2be8a2010de9bc0ad130f6255e78c85cb", kill_on_drop: false }` [INFO] [stdout] fcc1a852899ecc9c92bd6973bfff74c2be8a2010de9bc0ad130f6255e78c85cb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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" "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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f84170e2712630c22d5e37c9345085d72477544fcb7acec885b71b5cd1db5815 [INFO] running `Command { std: "docker" "start" "-a" "f84170e2712630c22d5e37c9345085d72477544fcb7acec885b71b5cd1db5815", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.08s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/advent-84d20a1cd995bdcb) [INFO] running `Command { std: "docker" "inspect" "f84170e2712630c22d5e37c9345085d72477544fcb7acec885b71b5cd1db5815", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f84170e2712630c22d5e37c9345085d72477544fcb7acec885b71b5cd1db5815", kill_on_drop: false }` [INFO] [stdout] f84170e2712630c22d5e37c9345085d72477544fcb7acec885b71b5cd1db5815