[INFO] cloning repository https://github.com/WbaN314/battlesnake [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/WbaN314/battlesnake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWbaN314%2Fbattlesnake", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWbaN314%2Fbattlesnake'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b27dcd80b73e650f74ab023659ca25104957ae46 [INFO] checking WbaN314/battlesnake against a5689b034ad287112f709693384a37f1377eb9cc for pr-129249-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWbaN314%2Fbattlesnake" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/WbaN314/battlesnake [INFO] finished tweaking git repo https://github.com/WbaN314/battlesnake [INFO] tweaked toml for git repo https://github.com/WbaN314/battlesnake written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/WbaN314/battlesnake on toolchain a5689b034ad287112f709693384a37f1377eb9cc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/WbaN314/battlesnake 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" "+a5689b034ad287112f709693384a37f1377eb9cc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 0ac8c3b2abd9bbdff4841b2c7b7b3cca42aa948c9a7654b67dd47f5cf496ed8b [INFO] running `Command { std: "docker" "start" "0ac8c3b2abd9bbdff4841b2c7b7b3cca42aa948c9a7654b67dd47f5cf496ed8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0ac8c3b2abd9bbdff4841b2c7b7b3cca42aa948c9a7654b67dd47f5cf496ed8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0ac8c3b2abd9bbdff4841b2c7b7b3cca42aa948c9a7654b67dd47f5cf496ed8b" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0ac8c3b2abd9bbdff4841b2c7b7b3cca42aa948c9a7654b67dd47f5cf496ed8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0ac8c3b2abd9bbdff4841b2c7b7b3cca42aa948c9a7654b67dd47f5cf496ed8b" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.186 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Checking log v0.4.32 [INFO] [stderr] Checking memchr v2.8.2 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Checking bytes v1.11.1 [INFO] [stderr] Checking futures-core v0.3.32 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking futures-sink v0.3.32 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling tokio-macros v2.7.0 [INFO] [stderr] Checking hashbrown v0.17.1 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling ref-cast v1.0.25 [INFO] [stderr] Checking futures-channel v0.3.32 [INFO] [stderr] Checking futures-io v0.3.32 [INFO] [stderr] Checking futures-task v0.3.32 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling ref-cast-impl v1.0.25 [INFO] [stderr] Checking smallvec v1.15.2 [INFO] [stderr] Compiling zerocopy v0.8.52 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Checking bitflags v2.13.0 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Checking either v1.16.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Checking indexmap v2.14.0 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling darling_core v0.23.0 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking inlinable_string v0.1.15 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Checking unicode-width v0.2.0 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking mio v1.2.1 [INFO] [stderr] Checking socket2 v0.6.4 [INFO] [stderr] Checking is-terminal v0.4.17 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling tokio v1.52.3 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling serde_json v1.0.150 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Compiling instability v0.3.12 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Checking signal-hook-mio v0.2.5 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Checking http v1.4.2 [INFO] [stderr] Checking castaway v0.2.4 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking unicode-segmentation v1.13.3 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Compiling indoc v2.0.7 [INFO] [stderr] Checking bytecount v0.6.9 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking fastrand v2.4.1 [INFO] [stderr] Compiling darling_macro v0.23.0 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking ubyte v0.10.4 [INFO] [stderr] Checking compact_str v0.8.2 [INFO] [stderr] Checking crossterm v0.28.1 [INFO] [stderr] Checking papergrid v0.17.0 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Compiling tabled_derive v0.11.0 [INFO] [stderr] Compiling darling v0.23.0 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking testing_table v0.3.0 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking cassowary v0.3.0 [INFO] [stderr] Checking humantime v2.3.0 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking rustc-hash v2.1.2 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking unicode-truncate v1.1.0 [INFO] [stderr] Checking tempfile v3.27.0 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking ratatui v0.29.0 [INFO] [stderr] Checking tabled v0.20.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Checking regex v1.12.4 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking env_logger v0.9.3 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.6 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-stream v0.1.18 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Checking battlesnake_game_of_chicken v1.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated module `std::usize`: all constants in this module replaced by associated constants on the type [INFO] [stdout] --> src/logic/depth_first/simulation/mod.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{time::Duration, usize}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::u8`: all constants in this module replaced by associated constants on the type [INFO] [stdout] --> src/logic/legacy/breadth_first/e_state_node.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | u8, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::u8::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/logic/legacy/breadth_first/e_state_node.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 24 | lowest_length: u8::MAX, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::u8`: all constants in this module replaced by associated constants on the type [INFO] [stdout] --> src/logic/legacy/shared/e_game_state.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | u8, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::u8::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/logic/legacy/shared/e_game_state.rs:26:65 [INFO] [stdout] | [INFO] [stdout] 26 | let food_distance = state.food_distance().unwrap_or(u8::MAX); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::u8::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/logic/legacy/shared/e_game_state.rs:924:62 [INFO] [stdout] | [INFO] [stdout] 924 | if distance < min_distance.unwrap_or(u8::MAX) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::usize`: all constants in this module replaced by associated constants on the type [INFO] [stdout] --> src/logic/depth_first/simulation/mod.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{time::Duration, usize}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::u8`: all constants in this module replaced by associated constants on the type [INFO] [stdout] --> src/logic/legacy/breadth_first/e_state_node.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | u8, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::u8::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/logic/legacy/breadth_first/e_state_node.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 24 | lowest_length: u8::MAX, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::u8`: all constants in this module replaced by associated constants on the type [INFO] [stdout] --> src/logic/legacy/shared/e_game_state.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | u8, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::u8::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/logic/legacy/shared/e_game_state.rs:26:65 [INFO] [stdout] | [INFO] [stdout] 26 | let food_distance = state.food_distance().unwrap_or(u8::MAX); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::u8::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/logic/legacy/shared/e_game_state.rs:924:62 [INFO] [stdout] | [INFO] [stdout] 924 | if distance < min_distance.unwrap_or(u8::MAX) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::u8::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/logic/legacy/shared/e_game_state.rs:1029:46 [INFO] [stdout] | [INFO] [stdout] 1029 | new_board.move_snakes(moves, u8::MAX, true).unwrap(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::u8::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/logic/legacy/shared/e_game_state.rs:1039:58 [INFO] [stdout] | [INFO] [stdout] 1039 | black_box(board.relevant_moves(black_box(u8::MAX))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `turn` [INFO] [stdout] --> src/logic/general/field.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | turn: u8, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_turn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lengths` [INFO] [stdout] --> src/logic/general/field.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | lengths: [u8; SNAKES], [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lengths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `MAX_FLAGS`, `last_direction_for`, and `set_flags` are never used [INFO] [stdout] --> src/logic/single_gamestate_nodes/node/node_id.rs:85:15 [INFO] [stdout] | [INFO] [stdout] 82 | impl NodeId { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub const MAX_FLAGS: u32 = FLAGS_BITS; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | pub fn last_direction_for(&self, snake: u8) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn set_flags(&mut self, val: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `max_depth`, `max_nodes`, and `similarity_pruning` are never used [INFO] [stdout] --> src/logic/single_gamestate_nodes/tree/mod.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Tree { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn max_depth(mut self, max_depth: u8) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn max_nodes(mut self, max_nodes: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn similarity_pruning(mut self, distance_fn: fn(u8) -> u8) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `len` is never used [INFO] [stdout] --> src/logic/single_gamestate_nodes/tree/priority_queue.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 44 | impl PriorityQueue { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | pub(super) fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TreeStats` is never constructed [INFO] [stdout] --> src/logic/single_gamestate_nodes/tree/tree_stats.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct TreeStats { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `status_kind` is never used [INFO] [stdout] --> src/logic/single_gamestate_nodes/tree/tree_stats.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn status_kind(s: &NodeStatus) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DirectionStats` is never constructed [INFO] [stdout] --> src/logic/single_gamestate_nodes/tree/tree_stats.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct DirectionStats { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `stats` and `subtree_stats_for_direction` are never used [INFO] [stdout] --> src/logic/single_gamestate_nodes/tree/tree_stats.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl Tree { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 61 | pub fn stats(&self) -> TreeStats { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | fn subtree_stats_for_direction(&self, direction: Direction) -> (usize, u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/logic/single_gamestate_nodes/tree/tree_stats.rs:270:8 [INFO] [stdout] | [INFO] [stdout] 269 | impl TreeStats { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 270 | fn section(title: &str, table: Table) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | fn kv_table(title: &str, rows: &[(&str, String)]) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | fn overview_table(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | fn pruning_table(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | fn leaf_table(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | fn status_table(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 378 | fn direction_table(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `Direction` [INFO] [stdout] --> src/logic/single_gamestate_nodes/node/mod.rs:610:52 [INFO] [stdout] | [INFO] [stdout] 610 | self.update_direction_status_and_score(direction.into()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 610 - self.update_direction_status_and_score(direction.into()); [INFO] [stdout] 610 + self.update_direction_status_and_score(direction); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 610 - self.update_direction_status_and_score(direction.into()); [INFO] [stdout] 610 + self.update_direction_status_and_score(>::into(direction)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `Direction` [INFO] [stdout] --> src/logic/single_gamestate_nodes/node/mod.rs:634:60 [INFO] [stdout] | [INFO] [stdout] 634 | self.update_direction_status_and_score(d.into()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 634 - self.update_direction_status_and_score(d.into()); [INFO] [stdout] 634 + self.update_direction_status_and_score(d); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 634 - self.update_direction_status_and_score(d.into()); [INFO] [stdout] 634 + self.update_direction_status_and_score(>::into(d)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `battlesnake_game_of_chicken` (lib) due to 2 previous errors; 16 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `turn` [INFO] [stdout] --> src/logic/general/field.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | turn: u8, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_turn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lengths` [INFO] [stdout] --> src/logic/general/field.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | lengths: [u8; SNAKES], [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lengths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/logic/single_gamestate_nodes/situation/mod.rs:672:21 [INFO] [stdout] | [INFO] [stdout] 672 | let mut directions = black_box(Directions::new()); [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: unused variable: `directions` [INFO] [stdout] --> src/logic/single_gamestate_nodes/situation/mod.rs:672:21 [INFO] [stdout] | [INFO] [stdout] 672 | let mut directions = black_box(Directions::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_directions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `MAX_FLAGS` and `set_flags` are never used [INFO] [stdout] --> src/logic/single_gamestate_nodes/node/node_id.rs:85:15 [INFO] [stdout] | [INFO] [stdout] 82 | impl NodeId { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub const MAX_FLAGS: u32 = FLAGS_BITS; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn set_flags(&mut self, val: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nodes_per_depth` is never read [INFO] [stdout] --> src/logic/single_gamestate_nodes/tree/tree_stats.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct TreeStats { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub nodes_per_depth: Vec<(u8, usize)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TreeStats` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `direction::Direction` [INFO] [stdout] --> src/logic/single_gamestate_nodes/node/mod.rs:610:52 [INFO] [stdout] | [INFO] [stdout] 610 | self.update_direction_status_and_score(direction.into()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 610 - self.update_direction_status_and_score(direction.into()); [INFO] [stdout] 610 + self.update_direction_status_and_score(direction); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 610 - self.update_direction_status_and_score(direction.into()); [INFO] [stdout] 610 + self.update_direction_status_and_score(>::into(direction)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `direction::Direction` [INFO] [stdout] --> src/logic/single_gamestate_nodes/node/mod.rs:634:60 [INFO] [stdout] | [INFO] [stdout] 634 | self.update_direction_status_and_score(d.into()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 634 - self.update_direction_status_and_score(d.into()); [INFO] [stdout] 634 + self.update_direction_status_and_score(d); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 634 - self.update_direction_status_and_score(d.into()); [INFO] [stdout] 634 + self.update_direction_status_and_score(>::into(d)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `battlesnake_game_of_chicken` (lib test) due to 2 previous errors; 14 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0ac8c3b2abd9bbdff4841b2c7b7b3cca42aa948c9a7654b67dd47f5cf496ed8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ac8c3b2abd9bbdff4841b2c7b7b3cca42aa948c9a7654b67dd47f5cf496ed8b", kill_on_drop: false }` [INFO] [stdout] 0ac8c3b2abd9bbdff4841b2c7b7b3cca42aa948c9a7654b67dd47f5cf496ed8b