[INFO] cloning repository https://github.com/plaflamme/advent-2018 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/plaflamme/advent-2018" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fplaflamme%2Fadvent-2018", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fplaflamme%2Fadvent-2018'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e016bb36207aeecc63423e9059903b4bff99439d [INFO] building plaflamme/advent-2018 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fplaflamme%2Fadvent-2018" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/plaflamme/advent-2018 [INFO] finished tweaking git repo https://github.com/plaflamme/advent-2018 [INFO] tweaked toml for git repo https://github.com/plaflamme/advent-2018 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/plaflamme/advent-2018 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/plaflamme/advent-2018 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded which v3.1.1 [INFO] [stderr] Downloaded z3 v0.11.2 [INFO] [stderr] Downloaded serde_plain v1.0.0 [INFO] [stderr] Downloaded cached_proc_macro_types v0.1.0 [INFO] [stderr] Downloaded async_once v0.2.6 [INFO] [stderr] Downloaded cached_proc_macro v0.12.0 [INFO] [stderr] Downloaded cached v0.34.0 [INFO] [stderr] Downloaded bindgen v0.58.1 [INFO] [stderr] Downloaded fixedbitset v0.4.1 [INFO] [stderr] Downloaded clang-sys v1.3.3 [INFO] [stderr] Downloaded z3-sys v0.7.1 [INFO] [stderr] Downloaded ixlist v0.1.0 [INFO] [stderr] Downloaded pathfinding v3.0.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1a38e28e50d517ceb08136cb4afc4e64f410237867eed755edb84b246e9fad97 [INFO] running `Command { std: "docker" "start" "-a" "1a38e28e50d517ceb08136cb4afc4e64f410237867eed755edb84b246e9fad97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1a38e28e50d517ceb08136cb4afc4e64f410237867eed755edb84b246e9fad97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a38e28e50d517ceb08136cb4afc4e64f410237867eed755edb84b246e9fad97", kill_on_drop: false }` [INFO] [stdout] 1a38e28e50d517ceb08136cb4afc4e64f410237867eed755edb84b246e9fad97 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7194a608bef2377893eae43752dde7a767add9caf86c533e41663defe37787c8 [INFO] running `Command { std: "docker" "start" "-a" "7194a608bef2377893eae43752dde7a767add9caf86c533e41663defe37787c8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling regex-syntax v0.6.26 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling libloading v0.7.3 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling bindgen v0.58.1 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling shlex v1.1.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling clang-sys v1.3.3 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling indexmap v1.8.2 [INFO] [stderr] Compiling async-trait v0.1.56 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling cached_proc_macro_types v0.1.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling numtoa v0.1.0 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling async_once v0.2.6 [INFO] [stderr] Compiling fixedbitset v0.4.1 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling hashbrown v0.12.1 [INFO] [stderr] Compiling ixlist v0.1.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling termion v1.5.6 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Compiling integer-sqrt v0.1.5 [INFO] [stderr] Compiling regex v1.5.6 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling tokio v1.19.2 [INFO] [stderr] Compiling thiserror v1.0.31 [INFO] [stderr] Compiling pathfinding v3.0.12 [INFO] [stderr] Compiling structopt v0.3.26 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling z3-sys v0.7.1 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling cached_proc_macro v0.12.0 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling cached v0.34.0 [INFO] [stderr] Compiling serde_plain v1.0.0 [INFO] [stderr] Compiling z3 v0.11.2 [INFO] [stderr] Compiling advent-2018 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/puzzle10/mod.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | ((self.top_left.x - self.bottom_right.x).abs() as u64 * (self.top_left.y - self.bottom_right.y).abs() as u64) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 110 - ((self.top_left.x - self.bottom_right.x).abs() as u64 * (self.top_left.y - self.bottom_right.y).abs() as u64) [INFO] [stdout] 110 + (self.top_left.x - self.bottom_right.x).abs() as u64 * (self.top_left.y - self.bottom_right.y).abs() as u64 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/puzzle9/mod.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | let mut prev = self.marbles.get_mut(self.current_marble.prev).expect("no previous marble"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/puzzle9/mod.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | let mut next = self.marbles.get_mut(self.current_marble.next).expect("no next marble"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/puzzle9/mod.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | let mut prev = self.marbles.get_mut(self.current_marble.prev).expect("no previous marble"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/puzzle9/mod.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | let mut next = self.marbles.get_mut(self.current_marble.idx).expect("no previous marble"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/puzzle15/mod.rs:148:14 [INFO] [stdout] | [INFO] [stdout] 148 | Attacked(Unit) [INFO] [stdout] | -------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AttackOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 148 - Attacked(Unit) [INFO] [stdout] 148 + Attacked(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/puzzle15/mod.rs:154:11 [INFO] [stdout] | [INFO] [stdout] 154 | Moved(Pt, Pt) [INFO] [stdout] | ----- ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `MoveOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 154 - Moved(Pt, Pt) [INFO] [stdout] 154 + Moved((), ()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/puzzle15/mod.rs:161:10 [INFO] [stdout] | [INFO] [stdout] 161 | Dead(Unit), [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TurnOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 161 - Dead(Unit), [INFO] [stdout] 161 + Dead(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/puzzle15/mod.rs:162:11 [INFO] [stdout] | [INFO] [stdout] 162 | Alive(Unit, Option, AttackOutcome) [INFO] [stdout] | ----- ^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TurnOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 162 - Alive(Unit, Option, AttackOutcome) [INFO] [stdout] 162 + Alive((), (), ()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/puzzle15/mod.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | Partial(Vec), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RoundOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 167 - Partial(Vec), [INFO] [stdout] 167 + Partial(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/puzzle15/mod.rs:168:10 [INFO] [stdout] | [INFO] [stdout] 168 | Full(Vec) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RoundOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 168 - Full(Vec) [INFO] [stdout] 168 + Full(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `bots_in_range` is never read [INFO] [stdout] --> src/puzzle23/mod.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 74 | struct Solution { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 75 | bots_in_range: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Solution` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/puzzle6/mod.rs:84:16 [INFO] [stdout] | [INFO] [stdout] 84 | fn analyze(&self, max_distance: u32) -> AreaAnalysis { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 84 | fn analyze(&self, max_distance: u32) -> AreaAnalysis<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/puzzle8/mod.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | fn iter(&self) -> NodeIterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 60 | fn iter(&self) -> NodeIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle15/mod.rs:396:37 [INFO] [stdout] | [INFO] [stdout] 396 | _ => panic!(format!("unexpected char {}", 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] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 396 - _ => panic!(format!("unexpected char {}", c)) [INFO] [stdout] 396 + _ => panic!("unexpected char {}", c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle16/mod.rs:115:29 [INFO] [stdout] | [INFO] [stdout] 115 | assert!(*index < 4, format!("Register should be [0,4[, but was {}", index)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `assert!()` 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] 115 - assert!(*index < 4, format!("Register should be [0,4[, but was {}", index)); [INFO] [stdout] 115 + assert!(*index < 4, "Register should be [0,4[, but was {}", index); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle16/mod.rs:122:29 [INFO] [stdout] | [INFO] [stdout] 122 | assert!(*index < 4, format!("Register should be [0,4[, but was {}", index)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `assert!()` 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] 122 - assert!(*index < 4, format!("Register should be [0,4[, but was {}", index)); [INFO] [stdout] 122 + assert!(*index < 4, "Register should be [0,4[, but was {}", index); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle17/mod.rs:303:65 [INFO] [stdout] | [INFO] [stdout] 303 | assert!(!ground.soil_at(¤t.down()).blocks_flow(), format!("{} {:?}", ground, self.origin)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `assert!()` 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] 303 - assert!(!ground.soil_at(¤t.down()).blocks_flow(), format!("{} {:?}", ground, self.origin)); [INFO] [stdout] 303 + assert!(!ground.soil_at(¤t.down()).blocks_flow(), "{} {:?}", ground, self.origin); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle18/mod.rs:67:36 [INFO] [stdout] | [INFO] [stdout] 67 | None => panic!(format!("missing acre at {:?}", pt)), [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] 67 - None => panic!(format!("missing acre at {:?}", pt)), [INFO] [stdout] 67 + None => panic!("missing acre at {:?}", pt), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle18/mod.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | _ => panic!(format!("unexpected char {}", 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] 121 - _ => panic!(format!("unexpected char {}", c)) [INFO] [stdout] 121 + _ => panic!("unexpected char {}", c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle20/mod.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | c => panic!(format!("unexpected char {:?}", 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] 77 - c => panic!(format!("unexpected char {:?}", c)) [INFO] [stdout] 77 + c => panic!("unexpected char {:?}", c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle20/mod.rs:105:37 [INFO] [stdout] | [INFO] [stdout] 105 | c => panic!(format!("unexpected char {:?}", 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] 105 - c => panic!(format!("unexpected char {:?}", c)) [INFO] [stdout] 105 + c => panic!("unexpected char {:?}", c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 53.89s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v5.1.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "7194a608bef2377893eae43752dde7a767add9caf86c533e41663defe37787c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7194a608bef2377893eae43752dde7a767add9caf86c533e41663defe37787c8", kill_on_drop: false }` [INFO] [stdout] 7194a608bef2377893eae43752dde7a767add9caf86c533e41663defe37787c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ea00d0b2f46985d51689643a489d07556d92aa2009c2c3544b3f1cd689e43e79 [INFO] running `Command { std: "docker" "start" "-a" "ea00d0b2f46985d51689643a489d07556d92aa2009c2c3544b3f1cd689e43e79", kill_on_drop: false }` [INFO] [stderr] Compiling advent-2018 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/puzzle10/mod.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | ((self.top_left.x - self.bottom_right.x).abs() as u64 * (self.top_left.y - self.bottom_right.y).abs() as u64) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 110 - ((self.top_left.x - self.bottom_right.x).abs() as u64 * (self.top_left.y - self.bottom_right.y).abs() as u64) [INFO] [stdout] 110 + (self.top_left.x - self.bottom_right.x).abs() as u64 * (self.top_left.y - self.bottom_right.y).abs() as u64 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/puzzle9/mod.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | let mut prev = self.marbles.get_mut(self.current_marble.prev).expect("no previous marble"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/puzzle9/mod.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | let mut next = self.marbles.get_mut(self.current_marble.next).expect("no next marble"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/puzzle9/mod.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | let mut prev = self.marbles.get_mut(self.current_marble.prev).expect("no previous marble"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/puzzle9/mod.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | let mut next = self.marbles.get_mut(self.current_marble.idx).expect("no previous marble"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/puzzle15/mod.rs:148:14 [INFO] [stdout] | [INFO] [stdout] 148 | Attacked(Unit) [INFO] [stdout] | -------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AttackOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 148 - Attacked(Unit) [INFO] [stdout] 148 + Attacked(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/puzzle15/mod.rs:154:11 [INFO] [stdout] | [INFO] [stdout] 154 | Moved(Pt, Pt) [INFO] [stdout] | ----- ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `MoveOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 154 - Moved(Pt, Pt) [INFO] [stdout] 154 + Moved((), ()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/puzzle15/mod.rs:161:10 [INFO] [stdout] | [INFO] [stdout] 161 | Dead(Unit), [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TurnOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 161 - Dead(Unit), [INFO] [stdout] 161 + Dead(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/puzzle15/mod.rs:162:11 [INFO] [stdout] | [INFO] [stdout] 162 | Alive(Unit, Option, AttackOutcome) [INFO] [stdout] | ----- ^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TurnOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 162 - Alive(Unit, Option, AttackOutcome) [INFO] [stdout] 162 + Alive((), (), ()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/puzzle15/mod.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | Partial(Vec), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RoundOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 167 - Partial(Vec), [INFO] [stdout] 167 + Partial(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/puzzle15/mod.rs:168:10 [INFO] [stdout] | [INFO] [stdout] 168 | Full(Vec) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RoundOutcome` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 168 - Full(Vec) [INFO] [stdout] 168 + Full(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `bots_in_range` is never read [INFO] [stdout] --> src/puzzle23/mod.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 74 | struct Solution { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 75 | bots_in_range: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Solution` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/puzzle6/mod.rs:84:16 [INFO] [stdout] | [INFO] [stdout] 84 | fn analyze(&self, max_distance: u32) -> AreaAnalysis { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 84 | fn analyze(&self, max_distance: u32) -> AreaAnalysis<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/puzzle8/mod.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | fn iter(&self) -> NodeIterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 60 | fn iter(&self) -> NodeIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle15/mod.rs:396:37 [INFO] [stdout] | [INFO] [stdout] 396 | _ => panic!(format!("unexpected char {}", 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] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 396 - _ => panic!(format!("unexpected char {}", c)) [INFO] [stdout] 396 + _ => panic!("unexpected char {}", c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle16/mod.rs:115:29 [INFO] [stdout] | [INFO] [stdout] 115 | assert!(*index < 4, format!("Register should be [0,4[, but was {}", index)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `assert!()` 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] 115 - assert!(*index < 4, format!("Register should be [0,4[, but was {}", index)); [INFO] [stdout] 115 + assert!(*index < 4, "Register should be [0,4[, but was {}", index); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle16/mod.rs:122:29 [INFO] [stdout] | [INFO] [stdout] 122 | assert!(*index < 4, format!("Register should be [0,4[, but was {}", index)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `assert!()` 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] 122 - assert!(*index < 4, format!("Register should be [0,4[, but was {}", index)); [INFO] [stdout] 122 + assert!(*index < 4, "Register should be [0,4[, but was {}", index); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle17/mod.rs:303:65 [INFO] [stdout] | [INFO] [stdout] 303 | assert!(!ground.soil_at(¤t.down()).blocks_flow(), format!("{} {:?}", ground, self.origin)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `assert!()` 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] 303 - assert!(!ground.soil_at(¤t.down()).blocks_flow(), format!("{} {:?}", ground, self.origin)); [INFO] [stdout] 303 + assert!(!ground.soil_at(¤t.down()).blocks_flow(), "{} {:?}", ground, self.origin); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle18/mod.rs:67:36 [INFO] [stdout] | [INFO] [stdout] 67 | None => panic!(format!("missing acre at {:?}", pt)), [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] 67 - None => panic!(format!("missing acre at {:?}", pt)), [INFO] [stdout] 67 + None => panic!("missing acre at {:?}", pt), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle18/mod.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | _ => panic!(format!("unexpected char {}", 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] 121 - _ => panic!(format!("unexpected char {}", c)) [INFO] [stdout] 121 + _ => panic!("unexpected char {}", c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle20/mod.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | c => panic!(format!("unexpected char {:?}", 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] 77 - c => panic!(format!("unexpected char {:?}", c)) [INFO] [stdout] 77 + c => panic!("unexpected char {:?}", c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/puzzle20/mod.rs:105:37 [INFO] [stdout] | [INFO] [stdout] 105 | c => panic!(format!("unexpected char {:?}", 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] 105 - c => panic!(format!("unexpected char {:?}", c)) [INFO] [stdout] 105 + c => panic!("unexpected char {:?}", c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.81s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v5.1.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "ea00d0b2f46985d51689643a489d07556d92aa2009c2c3544b3f1cd689e43e79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea00d0b2f46985d51689643a489d07556d92aa2009c2c3544b3f1cd689e43e79", kill_on_drop: false }` [INFO] [stdout] ea00d0b2f46985d51689643a489d07556d92aa2009c2c3544b3f1cd689e43e79