[INFO] cloning repository https://github.com/Wallace-Watler/pokemon-battle-analysis-v5 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Wallace-Watler/pokemon-battle-analysis-v5" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWallace-Watler%2Fpokemon-battle-analysis-v5", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWallace-Watler%2Fpokemon-battle-analysis-v5'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0edd4e086e27a814b26cf8c896f6a7b73e0fe6f9 [INFO] checking Wallace-Watler/pokemon-battle-analysis-v5 against master#a58ec8ff03b3269b20104eb7eae407be48ab95a7 for pr-119849-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWallace-Watler%2Fpokemon-battle-analysis-v5" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Wallace-Watler/pokemon-battle-analysis-v5 on toolchain a58ec8ff03b3269b20104eb7eae407be48ab95a7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a58ec8ff03b3269b20104eb7eae407be48ab95a7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Wallace-Watler/pokemon-battle-analysis-v5 [INFO] finished tweaking git repo https://github.com/Wallace-Watler/pokemon-battle-analysis-v5 [INFO] tweaked toml for git repo https://github.com/Wallace-Watler/pokemon-battle-analysis-v5 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Wallace-Watler/pokemon-battle-analysis-v5 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" "+a58ec8ff03b3269b20104eb7eae407be48ab95a7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded csv-core v0.1.10 [INFO] [stderr] Downloaded statrs v0.13.0 [INFO] [stderr] Downloaded getrandom v0.1.15 [INFO] [stderr] Downloaded itoa v0.4.6 [INFO] [stderr] Downloaded jemallocator v0.3.2 [INFO] [stderr] Downloaded rand_distr v0.3.0 [INFO] [stderr] Downloaded ryu v1.0.5 [INFO] [stderr] Downloaded jemalloc-sys v0.3.2 [INFO] [stderr] Downloaded regex-automata v0.1.9 [INFO] [stderr] Downloaded csv v1.1.4 [INFO] [stderr] Downloaded bstr v0.2.13 [INFO] [stderr] Downloaded syn v1.0.41 [INFO] [stderr] Downloaded serde v1.0.117 [INFO] [stderr] Downloaded libm v0.2.1 [INFO] [stderr] Downloaded serde_json v1.0.59 [INFO] [stderr] Downloaded nalgebra v0.19.0 [INFO] [stderr] Downloaded libc v0.2.77 [INFO] [stderr] Downloaded quote v1.0.7 [INFO] [stderr] Downloaded unicode-xid v0.2.1 [INFO] [stderr] Downloaded byteorder v1.3.4 [INFO] [stderr] Downloaded memchr v2.3.3 [INFO] [stderr] Downloaded fs_extra v1.2.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.21 [INFO] [stderr] Downloaded serde_derive v1.0.117 [INFO] [stderr] Downloaded alga v0.9.3 [INFO] [stderr] Downloaded generic-array v0.13.3 [INFO] [stderr] Downloaded matrixmultiply v0.2.4 [INFO] [stderr] Downloaded rand_distr v0.2.2 [INFO] [stderr] Downloaded typenum v1.13.0 [INFO] [stderr] Downloaded almost v0.2.0 [INFO] [stderr] Downloaded num-integer v0.1.44 [INFO] [stderr] Downloaded autocfg v1.0.1 [INFO] [stderr] Downloaded num-traits v0.2.12 [INFO] [stderr] Downloaded cc v1.0.61 [INFO] [stderr] Downloaded ppv-lite86 v0.2.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+a58ec8ff03b3269b20104eb7eae407be48ab95a7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e05965bd000ab461316a03d35bab30e6bc5305043c453d6ed16663051c14b9f7 [INFO] running `Command { std: "docker" "start" "-a" "e05965bd000ab461316a03d35bab30e6bc5305043c453d6ed16663051c14b9f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e05965bd000ab461316a03d35bab30e6bc5305043c453d6ed16663051c14b9f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e05965bd000ab461316a03d35bab30e6bc5305043c453d6ed16663051c14b9f7", kill_on_drop: false }` [INFO] [stdout] e05965bd000ab461316a03d35bab30e6bc5305043c453d6ed16663051c14b9f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+a58ec8ff03b3269b20104eb7eae407be48ab95a7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac28c6fe4120d3bb53ddf7d6fd389f1a38d4ca3ca19ea670fa62b1ac6712a5f8 [INFO] running `Command { std: "docker" "start" "-a" "ac28c6fe4120d3bb53ddf7d6fd389f1a38d4ca3ca19ea670fa62b1ac6712a5f8", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling proc-macro2 v1.0.21 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.41 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Checking ppv-lite86 v0.2.9 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling fs_extra v1.2.0 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling cc v1.0.61 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking matrixmultiply v0.2.4 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking almost v0.2.0 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Compiling jemalloc-sys v0.3.2 [INFO] [stderr] Checking alga v0.9.3 [INFO] [stderr] Checking generic-array v0.13.3 [INFO] [stderr] Checking rand_distr v0.2.2 [INFO] [stderr] Checking rand_distr v0.3.0 [INFO] [stderr] Checking nalgebra v0.19.0 [INFO] [stderr] Checking statrs v0.13.0 [INFO] [stderr] Checking bstr v0.2.13 [INFO] [stderr] Checking csv v1.1.4 [INFO] [stderr] Checking jemallocator v0.3.2 [INFO] [stderr] Checking pokemon_battle_analysis_v5 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: shared reference of mutable static is discouraged [INFO] [stdout] --> src/lib.rs:16:54 [INFO] [stdout] | [INFO] [stdout] 16 | fn game_version() -> &'static GameVersion { unsafe { &GAME_VERSION } } [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: reference of mutable static is a hard error from 2024 edition [INFO] [stdout] = note: mutable statics can be written to by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] = note: `#[warn(static_mut_ref)]` on by default [INFO] [stdout] help: shared references are dangerous since if there's any kind of mutation of that static while the reference lives, that's UB; use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 16 | fn game_version() -> &'static GameVersion { unsafe { addr_of!(GAME_VERSION) } } [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: shared reference of mutable static is discouraged [INFO] [stdout] --> src/lib.rs:16:54 [INFO] [stdout] | [INFO] [stdout] 16 | fn game_version() -> &'static GameVersion { unsafe { &GAME_VERSION } } [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: reference of mutable static is a hard error from 2024 edition [INFO] [stdout] = note: mutable statics can be written to by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] = note: `#[warn(static_mut_ref)]` on by default [INFO] [stdout] help: shared references are dangerous since if there's any kind of mutation of that static while the reference lives, that's UB; use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 16 | fn game_version() -> &'static GameVersion { unsafe { addr_of!(GAME_VERSION) } } [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action_queue` [INFO] [stdout] --> src/battle_ai/move_effects.rs:162:59 [INFO] [stdout] | [INFO] [stdout] 162 | ...ID, state: &mut State, action_queue: &[&Action], user_id: u8, target_id: u8, rng: &mut StdRng) -> EffectResult { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_action_queue` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action_queue` [INFO] [stdout] --> src/battle_ai/move_effects.rs:162:59 [INFO] [stdout] | [INFO] [stdout] 162 | ...ID, state: &mut State, action_queue: &[&Action], user_id: u8, target_id: u8, rng: &mut StdRng) -> EffectResult { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_action_queue` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/battle_ai/pokemon.rs:370:13 [INFO] [stdout] | [INFO] [stdout] 370 | let mut child_build = &mut child.members[member_num]; [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/battle_ai/pokemon.rs:370:13 [INFO] [stdout] | [INFO] [stdout] 370 | let mut child_build = &mut child.members[member_num]; [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: methods `single_target` and `only_targets_allies` are never used [INFO] [stdout] --> src/move_.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 31 | impl MoveTargeting { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 32 | const fn single_target(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | const fn only_targets_allies(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sound_based` is never read [INFO] [stdout] --> src/move_.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct Move { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 78 | sound_based: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Move` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `weight` is never read [INFO] [stdout] --> src/species.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Species { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | weight: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Species` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:19:27 [INFO] [stdout] | [INFO] [stdout] 19 | if min > max { panic!(format!("min must not be greater than max. (min, max): ({:?}, {:?})", min, max)) } [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)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 19 - if min > max { panic!(format!("min must not be greater than max. (min, max): ({:?}, {:?})", min, max)) } [INFO] [stdout] 19 + if min > max { panic!("min must not be greater than max. (min, max): ({:?}, {:?})", min, max) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | panic!(format!("Weights must be non-negative. Given weights: {:?}", weights)); [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] 25 - panic!(format!("Weights must be non-negative. Given weights: {:?}", weights)); [INFO] [stdout] 25 + panic!("Weights must be non-negative. Given weights: {:?}", weights); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/battle_ai/pokemon.rs:551:16 [INFO] [stdout] | [INFO] [stdout] 551 | panic!(format!("ID of {} does not match any ID on the field.", pokemon_display_text)); [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] 551 - panic!(format!("ID of {} does not match any ID on the field.", pokemon_display_text)); [INFO] [stdout] 551 + panic!("ID of {} does not match any ID on the field.", pokemon_display_text); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `single_target` and `only_targets_allies` are never used [INFO] [stdout] --> src/move_.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 31 | impl MoveTargeting { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 32 | const fn single_target(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | const fn only_targets_allies(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sound_based` is never read [INFO] [stdout] --> src/move_.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct Move { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 78 | sound_based: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Move` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `weight` is never read [INFO] [stdout] --> src/species.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Species { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | weight: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Species` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:19:27 [INFO] [stdout] | [INFO] [stdout] 19 | if min > max { panic!(format!("min must not be greater than max. (min, max): ({:?}, {:?})", min, max)) } [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)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 19 - if min > max { panic!(format!("min must not be greater than max. (min, max): ({:?}, {:?})", min, max)) } [INFO] [stdout] 19 + if min > max { panic!("min must not be greater than max. (min, max): ({:?}, {:?})", min, max) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | panic!(format!("Weights must be non-negative. Given weights: {:?}", weights)); [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] 25 - panic!(format!("Weights must be non-negative. Given weights: {:?}", weights)); [INFO] [stdout] 25 + panic!("Weights must be non-negative. Given weights: {:?}", weights); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/battle_ai/pokemon.rs:551:16 [INFO] [stdout] | [INFO] [stdout] 551 | panic!(format!("ID of {} does not match any ID on the field.", pokemon_display_text)); [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] 551 - panic!(format!("ID of {} does not match any ID on the field.", pokemon_display_text)); [INFO] [stdout] 551 + panic!("ID of {} does not match any ID on the field.", pokemon_display_text); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 21s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: fs_extra v1.2.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "ac28c6fe4120d3bb53ddf7d6fd389f1a38d4ca3ca19ea670fa62b1ac6712a5f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac28c6fe4120d3bb53ddf7d6fd389f1a38d4ca3ca19ea670fa62b1ac6712a5f8", kill_on_drop: false }` [INFO] [stdout] ac28c6fe4120d3bb53ddf7d6fd389f1a38d4ca3ca19ea670fa62b1ac6712a5f8