[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#a299aa5df79dd8e5a1405b97ddd7b367b61eecc6 for pr-125923-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-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Wallace-Watler/pokemon-battle-analysis-v5 on toolchain a299aa5df79dd8e5a1405b97ddd7b367b61eecc6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a299aa5df79dd8e5a1405b97ddd7b367b61eecc6" "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-0-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" "+a299aa5df79dd8e5a1405b97ddd7b367b61eecc6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking Wallace-Watler/pokemon-battle-analysis-v5 against try#8585d8c57bfa6d7d66340412e06b5611fa79cc61 for pr-125923-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-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Wallace-Watler/pokemon-battle-analysis-v5 on toolchain 8585d8c57bfa6d7d66340412e06b5611fa79cc61 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8585d8c57bfa6d7d66340412e06b5611fa79cc61" "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-0-tc2/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" "+8585d8c57bfa6d7d66340412e06b5611fa79cc61" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde v1.0.117 [INFO] [stderr] Downloaded serde_derive v1.0.117 [INFO] [stderr] Downloaded syn v1.0.41 [INFO] [stderr] Downloaded almost v0.2.0 [INFO] [stderr] Downloaded rand_distr v0.3.0 [INFO] [stderr] Downloaded statrs v0.13.0 [INFO] [stderr] Downloaded csv v1.1.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+8585d8c57bfa6d7d66340412e06b5611fa79cc61" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a27a9d3a970332bc61cd90ac7ff6f2ebfb70f04ba46a1a7662741ad4f7f740af [INFO] running `Command { std: "docker" "start" "-a" "a27a9d3a970332bc61cd90ac7ff6f2ebfb70f04ba46a1a7662741ad4f7f740af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a27a9d3a970332bc61cd90ac7ff6f2ebfb70f04ba46a1a7662741ad4f7f740af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a27a9d3a970332bc61cd90ac7ff6f2ebfb70f04ba46a1a7662741ad4f7f740af", kill_on_drop: false }` [INFO] [stdout] a27a9d3a970332bc61cd90ac7ff6f2ebfb70f04ba46a1a7662741ad4f7f740af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+8585d8c57bfa6d7d66340412e06b5611fa79cc61" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8dc378c4dfb188ab348e139e327753b102db66bbce69e36203f4c8cb4ffd8eb3 [INFO] running `Command { std: "docker" "start" "-a" "8dc378c4dfb188ab348e139e327753b102db66bbce69e36203f4c8cb4ffd8eb3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling proc-macro2 v1.0.21 [INFO] [stderr] Compiling getrandom v0.1.15 [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 num-complex v0.2.4 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling cc v1.0.61 [INFO] [stderr] Compiling fs_extra v1.2.0 [INFO] [stderr] Checking matrixmultiply v0.2.4 [INFO] [stderr] Checking generic-array v0.13.3 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Checking almost v0.2.0 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling jemalloc-sys v0.3.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking num-integer v0.1.44 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking alga v0.9.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 bstr v0.2.13 [INFO] [stderr] Checking csv v1.1.4 [INFO] [stderr] Checking statrs v0.13.0 [INFO] [stderr] Checking jemallocator v0.3.2 [INFO] [stderr] Checking pokemon_battle_analysis_v5 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to 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 to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: 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: creating a shared reference to 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 to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: 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: 9 warnings emitted [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 45.51s [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 3` [INFO] running `Command { std: "docker" "inspect" "8dc378c4dfb188ab348e139e327753b102db66bbce69e36203f4c8cb4ffd8eb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8dc378c4dfb188ab348e139e327753b102db66bbce69e36203f4c8cb4ffd8eb3", kill_on_drop: false }` [INFO] [stdout] 8dc378c4dfb188ab348e139e327753b102db66bbce69e36203f4c8cb4ffd8eb3