[INFO] cloning repository https://github.com/nathanjent/ruby-the-ms.-hackman-bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nathanjent/ruby-the-ms.-hackman-bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnathanjent%2Fruby-the-ms.-hackman-bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnathanjent%2Fruby-the-ms.-hackman-bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9c1c98050ede3daf2a850ab0b0ccc218ecd51210 [INFO] checking nathanjent/ruby-the-ms.-hackman-bot against nightly-2024-02-05 for check-cfg-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnathanjent%2Fruby-the-ms.-hackman-bot" "/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/nathanjent/ruby-the-ms.-hackman-bot on toolchain nightly-2024-02-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nathanjent/ruby-the-ms.-hackman-bot [INFO] finished tweaking git repo https://github.com/nathanjent/ruby-the-ms.-hackman-bot [INFO] tweaked toml for git repo https://github.com/nathanjent/ruby-the-ms.-hackman-bot written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/nathanjent/ruby-the-ms.-hackman-bot 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" "+nightly-2024-02-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded scoped-tls v0.1.0 [INFO] [stderr] Downloaded tokio-io v0.1.4 [INFO] [stderr] Downloaded log v0.3.8 [INFO] [stderr] Downloaded slab v0.3.0 [INFO] [stderr] Downloaded lazycell v0.5.1 [INFO] [stderr] Downloaded slab v0.4.0 [INFO] [stderr] Downloaded iovec v0.1.1 [INFO] [stderr] Downloaded miow v0.2.1 [INFO] [stderr] Downloaded tokio-core v0.1.10 [INFO] [stderr] Downloaded futures v0.1.17 [INFO] [stderr] Downloaded mio v0.6.11 [INFO] [stderr] Downloaded bytes v0.4.5 [INFO] [stderr] Downloaded net2 v0.2.31 [INFO] [stderr] Downloaded tokio-file-unix v0.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+nightly-2024-02-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d6b23c2e0f9ffa9ca6b432bed2d7c1ced0d4c46dadc90f6d093f00f7b767164 [INFO] running `Command { std: "docker" "start" "-a" "2d6b23c2e0f9ffa9ca6b432bed2d7c1ced0d4c46dadc90f6d093f00f7b767164", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d6b23c2e0f9ffa9ca6b432bed2d7c1ced0d4c46dadc90f6d093f00f7b767164", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d6b23c2e0f9ffa9ca6b432bed2d7c1ced0d4c46dadc90f6d093f00f7b767164", kill_on_drop: false }` [INFO] [stdout] 2d6b23c2e0f9ffa9ca6b432bed2d7c1ced0d4c46dadc90f6d093f00f7b767164 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+nightly-2024-02-05" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 19523b290209ff62c06df72a9e564bb0c8222a1206ae21611e3b59a1f3282179 [INFO] running `Command { std: "docker" "start" "-a" "19523b290209ff62c06df72a9e564bb0c8222a1206ae21611e3b59a1f3282179", kill_on_drop: false }` [INFO] [stderr] Checking ruby_the_ms_hack_man_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BufRead`, `Write`, `self as stdio` [INFO] [stdout] --> src/main.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{self as stdio, BufRead, Write}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::*` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use error::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bot::BotState` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use bot::BotState; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handler::*` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use handler::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | type BoxAny = Box; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | type BoxAny = Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:49:32 [INFO] [stdout] | [INFO] [stdout] 49 | fn cause(&self) -> Option<&StdError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | fn cause(&self) -> Option<&dyn StdError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | type BoxAny = Box; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | type BoxAny = Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:49:32 [INFO] [stdout] | [INFO] [stdout] 49 | fn cause(&self) -> Option<&StdError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | fn cause(&self) -> Option<&dyn StdError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy` [INFO] [stdout] --> src/field.rs:89:37 [INFO] [stdout] | [INFO] [stdout] 89 | CellItem::Enemy(enemy) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/field.rs:92:36 [INFO] [stdout] | [INFO] [stdout] 92 | CellItem::Bomb(n) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy` [INFO] [stdout] --> src/field.rs:89:37 [INFO] [stdout] | [INFO] [stdout] 89 | CellItem::Enemy(enemy) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/field.rs:92:36 [INFO] [stdout] | [INFO] [stdout] 92 | CellItem::Bomb(n) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/handler.rs:86:62 [INFO] [stdout] | [INFO] [stdout] 86 | Message::Action(Action::Character { time_to_respond: n }) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/handler.rs:90:57 [INFO] [stdout] | [INFO] [stdout] 90 | Message::Action(Action::Move { time_to_respond: n }) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `action` is never read [INFO] [stdout] --> src/handler.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | let mut action = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected_cells` [INFO] [stdout] --> src/field.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | let expected_cells = vec![CellItem::Empty, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected_cells` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `actual_cells` [INFO] [stdout] --> src/field.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | let actual_cells = parse_field(field_str); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_actual_cells` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/handler.rs:86:62 [INFO] [stdout] | [INFO] [stdout] 86 | Message::Action(Action::Character { time_to_respond: n }) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/handler.rs:90:57 [INFO] [stdout] | [INFO] [stdout] 90 | Message::Action(Action::Move { time_to_respond: n }) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `action` is never read [INFO] [stdout] --> src/handler.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | let mut action = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `en_pos` [INFO] [stdout] --> src/handler.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let en_pos = &field.enemy_positions; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_en_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bm_pos` [INFO] [stdout] --> src/handler.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let bm_pos = &field.bomb_positions; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bm_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sn_pos` [INFO] [stdout] --> src/handler.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let sn_pos = &field.snippet_positions; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sn_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_id` [INFO] [stdout] --> src/handler.rs:117:29 [INFO] [stdout] | [INFO] [stdout] 117 | fn make_move(field: &Field, player_id: &i32) -> Move { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `en_pos` [INFO] [stdout] --> src/handler.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let en_pos = &field.enemy_positions; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_en_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bm_pos` [INFO] [stdout] --> src/handler.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let bm_pos = &field.bomb_positions; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bm_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sn_pos` [INFO] [stdout] --> src/handler.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let sn_pos = &field.snippet_positions; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sn_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_id` [INFO] [stdout] --> src/handler.rs:117:29 [INFO] [stdout] | [INFO] [stdout] 117 | fn make_move(field: &Field, player_id: &i32) -> Move { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut next_move = Move::new(); [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/player.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut next_move = Move::new(); [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: associated function `new` is never used [INFO] [stdout] --> src/bot.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl BotState { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 27 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UnintentionalBreak` and `PlayerNotFound` are never constructed [INFO] [stdout] --> src/error.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | UnintentionalBreak, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | PlayerNotFound(String), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_point`, `update_field`, `set_width`, and `set_height` are never used [INFO] [stdout] --> src/field.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Field { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 55 | pub fn new(width: usize, height: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn get_point(&self, index: usize) -> Point { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn update_field(&mut self, field: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn set_width(&mut self, width: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn set_height(&mut self, height: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_message` is never used [INFO] [stdout] --> src/handler.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn handle_message(line: String, bot: &BotState) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_move` is never used [INFO] [stdout] --> src/handler.rs:117:4 [INFO] [stdout] | [INFO] [stdout] 117 | fn make_move(field: &Field, player_id: &i32) -> Move { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `character_type` is never used [INFO] [stdout] --> src/player.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Player { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn character_type(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `character_type` are never used [INFO] [stdout] --> src/player.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Player { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn character_type(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Bixiette` is never constructed [INFO] [stdout] --> src/player.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum CharacterType { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 33 | Bixie, [INFO] [stdout] 34 | Bixiette, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CharacterType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Bixie` and `Bixiette` are never constructed [INFO] [stdout] --> src/player.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum CharacterType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 33 | Bixie, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 34 | Bixiette, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CharacterType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_move` is never used [INFO] [stdout] --> src/player.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn make_move() -> Move { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset_to` is never used [INFO] [stdout] --> src/simple_matrix.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Matrix { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn reset_to(&mut self, value: T) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Up`, `Down`, `Left`, `Right`, and `Pass` are never constructed [INFO] [stdout] --> src/player.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum MoveType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 47 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] 48 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 50 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 51 | Pass, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MoveType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/player.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Move { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 55 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_move` is never used [INFO] [stdout] --> src/player.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn make_move() -> Move { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `reset_to` are never used [INFO] [stdout] --> src/simple_matrix.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Matrix { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(width: usize, height: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn reset_to(&mut self, value: T) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Test` should have a snake case name [INFO] [stdout] --> src/field.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 191 | mod Test { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Test` should have a snake case name [INFO] [stdout] --> src/simple_matrix.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | mod Test { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.29s [INFO] running `Command { std: "docker" "inspect" "19523b290209ff62c06df72a9e564bb0c8222a1206ae21611e3b59a1f3282179", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19523b290209ff62c06df72a9e564bb0c8222a1206ae21611e3b59a1f3282179", kill_on_drop: false }` [INFO] [stdout] 19523b290209ff62c06df72a9e564bb0c8222a1206ae21611e3b59a1f3282179 [INFO] checking nathanjent/ruby-the-ms.-hackman-bot against nightly-2024-02-05+rustflags=-Dunexpected_cfgs+cargoflags=-Zcheck-cfg for check-cfg-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnathanjent%2Fruby-the-ms.-hackman-bot" "/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/nathanjent/ruby-the-ms.-hackman-bot on toolchain nightly-2024-02-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nathanjent/ruby-the-ms.-hackman-bot [INFO] finished tweaking git repo https://github.com/nathanjent/ruby-the-ms.-hackman-bot [INFO] tweaked toml for git repo https://github.com/nathanjent/ruby-the-ms.-hackman-bot written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/nathanjent/ruby-the-ms.-hackman-bot 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" "+nightly-2024-02-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e6c6fba0473bd67cfca716297e3c3eb4ca4d11cecaf93fe32a13d74d13da6881 [INFO] running `Command { std: "docker" "start" "-a" "e6c6fba0473bd67cfca716297e3c3eb4ca4d11cecaf93fe32a13d74d13da6881", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e6c6fba0473bd67cfca716297e3c3eb4ca4d11cecaf93fe32a13d74d13da6881", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6c6fba0473bd67cfca716297e3c3eb4ca4d11cecaf93fe32a13d74d13da6881", kill_on_drop: false }` [INFO] [stdout] e6c6fba0473bd67cfca716297e3c3eb4ca4d11cecaf93fe32a13d74d13da6881 [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 -Dunexpected_cfgs" "-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" "+nightly-2024-02-05" "check" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zcheck-cfg", kill_on_drop: false }` [INFO] [stdout] 02eebba35727139d69d4040a9fcaba94815a98504dbb54171ad714270b2f687b [INFO] running `Command { std: "docker" "start" "-a" "02eebba35727139d69d4040a9fcaba94815a98504dbb54171ad714270b2f687b", kill_on_drop: false }` [INFO] [stderr] Checking ruby_the_ms_hack_man_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(external)] extern crate futures; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `unix`, `windows` [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: requested on the command line with `-D unexpected-cfgs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | #[cfg(external)] extern crate tokio_core; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(external)] extern crate tokio_io; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | #[cfg(external)] extern crate tokio_file_unix; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(external)] use futures::Stream; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(external)] use tokio_io::io; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[cfg(external)] use tokio_file_unix::{File, StdFile}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | #[cfg(external)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `Write`, `self as stdio` [INFO] [stdout] --> src/main.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{self as stdio, BufRead, Write}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::*` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use error::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bot::BotState` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use bot::BotState; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handler::*` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use handler::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | type BoxAny = Box; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | type BoxAny = Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:49:32 [INFO] [stdout] | [INFO] [stdout] 49 | fn cause(&self) -> Option<&StdError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | fn cause(&self) -> Option<&dyn StdError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(external)] extern crate futures; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `unix`, `windows` [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: requested on the command line with `-D unexpected-cfgs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | #[cfg(external)] extern crate tokio_core; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(external)] extern crate tokio_io; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | #[cfg(external)] extern crate tokio_file_unix; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(external)] use futures::Stream; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(external)] use tokio_io::io; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[cfg(external)] use tokio_file_unix::{File, StdFile}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `external` [INFO] [stdout] --> src/main.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | #[cfg(external)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(external)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | type BoxAny = Box; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | type BoxAny = Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:49:32 [INFO] [stdout] | [INFO] [stdout] 49 | fn cause(&self) -> Option<&StdError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | fn cause(&self) -> Option<&dyn StdError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy` [INFO] [stdout] --> src/field.rs:89:37 [INFO] [stdout] | [INFO] [stdout] 89 | CellItem::Enemy(enemy) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/field.rs:92:36 [INFO] [stdout] | [INFO] [stdout] 92 | CellItem::Bomb(n) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected_cells` [INFO] [stdout] --> src/field.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | let expected_cells = vec![CellItem::Empty, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected_cells` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `actual_cells` [INFO] [stdout] --> src/field.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | let actual_cells = parse_field(field_str); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_actual_cells` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/handler.rs:86:62 [INFO] [stdout] | [INFO] [stdout] 86 | Message::Action(Action::Character { time_to_respond: n }) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/handler.rs:90:57 [INFO] [stdout] | [INFO] [stdout] 90 | Message::Action(Action::Move { time_to_respond: n }) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `action` is never read [INFO] [stdout] --> src/handler.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | let mut action = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `en_pos` [INFO] [stdout] --> src/handler.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let en_pos = &field.enemy_positions; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_en_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bm_pos` [INFO] [stdout] --> src/handler.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let bm_pos = &field.bomb_positions; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bm_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sn_pos` [INFO] [stdout] --> src/handler.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let sn_pos = &field.snippet_positions; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sn_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_id` [INFO] [stdout] --> src/handler.rs:117:29 [INFO] [stdout] | [INFO] [stdout] 117 | fn make_move(field: &Field, player_id: &i32) -> Move { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut next_move = Move::new(); [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: associated function `new` is never used [INFO] [stdout] --> src/bot.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl BotState { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 27 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UnintentionalBreak` and `PlayerNotFound` are never constructed [INFO] [stdout] --> src/error.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | UnintentionalBreak, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | PlayerNotFound(String), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_point`, `update_field`, `set_width`, and `set_height` are never used [INFO] [stdout] --> src/field.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Field { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 55 | pub fn new(width: usize, height: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn get_point(&self, index: usize) -> Point { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn update_field(&mut self, field: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn set_width(&mut self, width: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn set_height(&mut self, height: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_message` is never used [INFO] [stdout] --> src/handler.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn handle_message(line: String, bot: &BotState) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_move` is never used [INFO] [stdout] --> src/handler.rs:117:4 [INFO] [stdout] | [INFO] [stdout] 117 | fn make_move(field: &Field, player_id: &i32) -> Move { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `character_type` are never used [INFO] [stdout] --> src/player.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Player { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn character_type(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Bixie` and `Bixiette` are never constructed [INFO] [stdout] --> src/player.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum CharacterType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 33 | Bixie, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 34 | Bixiette, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CharacterType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Up`, `Down`, `Left`, `Right`, and `Pass` are never constructed [INFO] [stdout] --> src/player.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum MoveType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 47 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] 48 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 50 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 51 | Pass, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MoveType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/player.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Move { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 55 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_move` is never used [INFO] [stdout] --> src/player.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn make_move() -> Move { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `reset_to` are never used [INFO] [stdout] --> src/simple_matrix.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Matrix { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(width: usize, height: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn reset_to(&mut self, value: T) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy` [INFO] [stdout] --> src/field.rs:89:37 [INFO] [stdout] | [INFO] [stdout] 89 | CellItem::Enemy(enemy) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/field.rs:92:36 [INFO] [stdout] | [INFO] [stdout] 92 | CellItem::Bomb(n) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Test` should have a snake case name [INFO] [stdout] --> src/field.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 191 | mod Test { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Test` should have a snake case name [INFO] [stdout] --> src/simple_matrix.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | mod Test { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/handler.rs:86:62 [INFO] [stdout] | [INFO] [stdout] 86 | Message::Action(Action::Character { time_to_respond: n }) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/handler.rs:90:57 [INFO] [stdout] | [INFO] [stdout] 90 | Message::Action(Action::Move { time_to_respond: n }) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `action` is never read [INFO] [stdout] --> src/handler.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | let mut action = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `en_pos` [INFO] [stdout] --> src/handler.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let en_pos = &field.enemy_positions; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_en_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bm_pos` [INFO] [stdout] --> src/handler.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let bm_pos = &field.bomb_positions; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bm_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sn_pos` [INFO] [stdout] --> src/handler.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let sn_pos = &field.snippet_positions; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sn_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_id` [INFO] [stdout] --> src/handler.rs:117:29 [INFO] [stdout] | [INFO] [stdout] 117 | fn make_move(field: &Field, player_id: &i32) -> Move { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ruby_the_ms_hack_man_bot` (bin "ruby_the_ms_hack_man_bot" test) due to 9 previous errors; 31 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut next_move = Move::new(); [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: method `character_type` is never used [INFO] [stdout] --> src/player.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Player { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn character_type(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Bixiette` is never constructed [INFO] [stdout] --> src/player.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum CharacterType { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 33 | Bixie, [INFO] [stdout] 34 | Bixiette, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CharacterType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_move` is never used [INFO] [stdout] --> src/player.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn make_move() -> Move { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset_to` is never used [INFO] [stdout] --> src/simple_matrix.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Matrix { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn reset_to(&mut self, value: T) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ruby_the_ms_hack_man_bot` (bin "ruby_the_ms_hack_man_bot") due to 9 previous errors; 16 warnings emitted [INFO] running `Command { std: "docker" "inspect" "02eebba35727139d69d4040a9fcaba94815a98504dbb54171ad714270b2f687b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02eebba35727139d69d4040a9fcaba94815a98504dbb54171ad714270b2f687b", kill_on_drop: false }` [INFO] [stdout] 02eebba35727139d69d4040a9fcaba94815a98504dbb54171ad714270b2f687b