[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] checking Gsciarra/adventofcode2020 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGsciarra%2Fadventofcode2020" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Gsciarra/adventofcode2020 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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-6/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76bec7e273d45bff9c955305701a145a22b3ac87d036fb57ab7e31e9a9d187ed [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "76bec7e273d45bff9c955305701a145a22b3ac87d036fb57ab7e31e9a9d187ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76bec7e273d45bff9c955305701a145a22b3ac87d036fb57ab7e31e9a9d187ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76bec7e273d45bff9c955305701a145a22b3ac87d036fb57ab7e31e9a9d187ed", kill_on_drop: false }` [INFO] [stdout] 76bec7e273d45bff9c955305701a145a22b3ac87d036fb57ab7e31e9a9d187ed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dbc7182e02a924280db6bcb645638caaec8d97d99f6888b097ca4bf1405672f6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "dbc7182e02a924280db6bcb645638caaec8d97d99f6888b097ca4bf1405672f6", kill_on_drop: false }` [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking 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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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: 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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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: 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: 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: 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_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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!("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 is no longer accepted in Rust 2021 [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!("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 is no longer accepted in Rust 2021 [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!("RANGE INVALID: {:?}", range) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [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: 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: 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: 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_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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!("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 is no longer accepted in Rust 2021 [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!("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 is no longer accepted in Rust 2021 [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!("RANGE INVALID: {:?}", range) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.97s [INFO] running `Command { std: "docker" "inspect" "dbc7182e02a924280db6bcb645638caaec8d97d99f6888b097ca4bf1405672f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbc7182e02a924280db6bcb645638caaec8d97d99f6888b097ca4bf1405672f6", kill_on_drop: false }` [INFO] [stdout] dbc7182e02a924280db6bcb645638caaec8d97d99f6888b097ca4bf1405672f6