[INFO] cloning repository https://github.com/robinsonj/ruke-cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/robinsonj/ruke-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobinsonj%2Fruke-cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobinsonj%2Fruke-cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4f70a38ae77b279d01fc9ed023a365abe0e7f619 [INFO] checking robinsonj/ruke-cli against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobinsonj%2Fruke-cli" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/robinsonj/ruke-cli on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/robinsonj/ruke-cli [INFO] finished tweaking git repo https://github.com/robinsonj/ruke-cli [INFO] tweaked toml for git repo https://github.com/robinsonj/ruke-cli written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/robinsonj/ruke-cli 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded toml v0.4.1 [INFO] [stderr] Downloaded libc v0.2.23 [INFO] [stderr] Downloaded serde v1.0.8 [INFO] [stderr] Downloaded serde_derive v1.0.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 569776b77d448a6837d69cb40a56a954350a50d34a867c6651341821cc60b673 [INFO] running `Command { std: "docker" "start" "-a" "569776b77d448a6837d69cb40a56a954350a50d34a867c6651341821cc60b673", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "569776b77d448a6837d69cb40a56a954350a50d34a867c6651341821cc60b673", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "569776b77d448a6837d69cb40a56a954350a50d34a867c6651341821cc60b673", kill_on_drop: false }` [INFO] [stdout] 569776b77d448a6837d69cb40a56a954350a50d34a867c6651341821cc60b673 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8696a63054f73a8422d09b58e5ad802ff56c9893f799ec1a8f765a9ebb2f62ea [INFO] running `Command { std: "docker" "start" "-a" "8696a63054f73a8422d09b58e5ad802ff56c9893f799ec1a8f765a9ebb2f62ea", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Checking serde v1.0.8 [INFO] [stderr] Checking libc v0.2.23 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Compiling serde_derive_internals v0.15.1 [INFO] [stderr] Compiling serde_derive v1.0.8 [INFO] [stderr] Checking toml v0.4.1 [INFO] [stderr] Checking ruke v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `FULL` [INFO] [stdout] --> src/duke/board.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use bitboard::{BitBoard, EMPTY, FULL}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/duke/player/mod.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | fn setup_duke(&self, &Board) -> Option; [INFO] [stdout] | ^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Board` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FULL` [INFO] [stdout] --> src/duke/board.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use bitboard::{BitBoard, EMPTY, FULL}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BitBoard` [INFO] [stdout] --> src/duke/board.rs:75:18 [INFO] [stdout] | [INFO] [stdout] 75 | use bitboard::{BitBoard, EMPTY}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Board` [INFO] [stdout] --> src/duke/player/ai_random.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | use duke::board::{Board}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/duke/player/mod.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | fn setup_duke(&self, &Board) -> Option; [INFO] [stdout] | ^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Board` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/duke/board.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let mut board = String::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/duke/board.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut board = String::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `square` [INFO] [stdout] --> src/duke/player/ai_random.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | let square: Square = *(thread_rng().choose(&valid).take().unwrap()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_square` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summon` [INFO] [stdout] --> src/duke/player/ai_random.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | let summon = Summon::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_summon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pink_duke` [INFO] [stdout] --> src/duke/mod.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let pink_duke: Option = self.pink.as_ref().unwrap().setup_duke(&(self.board)); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pink_duke` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FULL` is never used [INFO] [stdout] --> src/bitboard.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const FULL: BitBoard = BitBoard(0xFFFFFFFFFFFFFFFFu64); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRAVEYARD` is never used [INFO] [stdout] --> src/duke/board.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const GRAVEYARD: u8 = 255; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BAG` is never used [INFO] [stdout] --> src/duke/board.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const BAG: u8 = 254; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_COLORS` is never used [INFO] [stdout] --> src/duke/color.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const NUM_COLORS: usize = 2; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALL_COLORS` is never used [INFO] [stdout] --> src/duke/color.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const ALL_COLORS: [Color; NUM_COLORS] = [Color::Pink, Color::Blue]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `index` and `opponent_backrank` are never used [INFO] [stdout] --> src/duke/color.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 18 | impl Color { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 19 | /// Convert the color to a usize. [INFO] [stdout] 20 | pub fn index(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn opponent_backrank(&self) -> Rank { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `A`, `B`, `C`, `D`, `E`, and `F` are never constructed [INFO] [stdout] --> src/duke/file.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum File { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 4 | A, [INFO] [stdout] | ^ [INFO] [stdout] 5 | B, [INFO] [stdout] | ^ [INFO] [stdout] 6 | C, [INFO] [stdout] | ^ [INFO] [stdout] 7 | D, [INFO] [stdout] | ^ [INFO] [stdout] 8 | E, [INFO] [stdout] | ^ [INFO] [stdout] 9 | F [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `File` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALL_FILES` is never used [INFO] [stdout] --> src/duke/file.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const ALL_FILES: [File; NUM_FILES] = [ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_index`, `index`, `left`, and `right` are never used [INFO] [stdout] --> src/duke/file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 25 | impl File { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 26 | /// Convert a file number to a File. [INFO] [stdout] 27 | pub fn from_index(i: usize) -> File { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn index(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn left(&self) -> File { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn right(&self) -> File { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `source`, `destination`, `remove`, and `flip` are never read [INFO] [stdout] --> src/duke/move_type/mod.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct MoveType { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 7 | source: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | destination: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | remove: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | flip: Option [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MoveType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/duke/move_type/mod.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait Execute { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 14 | fn execute(&self) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Second`, `Third`, `Fourth`, and `Fifth` are never constructed [INFO] [stdout] --> src/duke/rank.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Rank { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 4 | First, [INFO] [stdout] 5 | Second, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | Third, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Fourth, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | Fifth, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rank` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALL_RANKS` is never used [INFO] [stdout] --> src/duke/rank.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const ALL_RANKS: [Rank; NUM_RANKS] = [ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_index`, `down`, and `up` are never used [INFO] [stdout] --> src/duke/rank.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 25 | impl Rank { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn from_index(i: usize) -> Rank { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn down(&self) -> Rank { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn up (&self) -> Rank { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_SQUARES` is never used [INFO] [stdout] --> src/duke/square.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const NUM_SQUARES: usize = 36; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/duke/square.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 12 | impl Square { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn make(r: Rank, f: File) -> Square { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn rank(&self) -> Rank { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn file(&self) -> File { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn up(&self) -> Option { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn down(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn right(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn left(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn player_forward(&self, color: Color) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn player_backward(&self, color: Color) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn player_left(&self, color: Color) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn player_right(&self, color: Color) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `a`, and `b` are never read [INFO] [stdout] --> src/duke/tile/mod.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Tile { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 8 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | a: Side, [INFO] [stdout] | ^ [INFO] [stdout] 10 | b: Side [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Tile` 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/duke/tile/mod.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 13 | impl Tile { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(name: String, a: Side, b: Side) -> Tile { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Error` is never used [INFO] [stdout] --> src/duke/tile/config.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/duke/tile/config.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `a`, and `b` are never read [INFO] [stdout] --> src/duke/tile/config.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 18 | name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | a: Option, [INFO] [stdout] | ^ [INFO] [stdout] 20 | b: Option [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` 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 `parse` and `tile` are never used [INFO] [stdout] --> src/duke/tile/config.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 23 | impl Config { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 24 | fn parse(filename: &str) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn tile(&self) -> Tile { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `x`, and `y` are never used [INFO] [stdout] --> src/duke/tile/side.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 7 | impl Side { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 8 | pub fn new(x: u8, y: u8) -> Side { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn x(&self) -> u8 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn y(&self) -> u8 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AIPlayer` is never used [INFO] [stdout] --> src/duke/player/ai.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait AIPlayer : super::Player {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/duke/mod.rs:100:35 [INFO] [stdout] | [INFO] [stdout] 100 | Ok(self.blue.as_ref().unwrap().clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Random` does not implement `Clone`, so calling `clone` on `&Random` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 100 - Ok(self.blue.as_ref().unwrap().clone()) [INFO] [stdout] 100 + Ok(self.blue.as_ref().unwrap()) [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Random`, implement `Clone` for it [INFO] [stdout] --> src/duke/player/ai_random.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 + #[derive(Clone)] [INFO] [stdout] 10 | pub struct Random { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/duke/mod.rs:104:35 [INFO] [stdout] | [INFO] [stdout] 104 | Ok(self.pink.as_ref().unwrap().clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Random` does not implement `Clone`, so calling `clone` on `&Random` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 104 - Ok(self.pink.as_ref().unwrap().clone()) [INFO] [stdout] 104 + Ok(self.pink.as_ref().unwrap()) [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Random`, implement `Clone` for it [INFO] [stdout] --> src/duke/player/ai_random.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 + #[derive(Clone)] [INFO] [stdout] 10 | pub struct Random { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/duke/board.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let mut board = String::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/duke/board.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut board = String::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `square` [INFO] [stdout] --> src/duke/player/ai_random.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | let square: Square = *(thread_rng().choose(&valid).take().unwrap()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_square` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summon` [INFO] [stdout] --> src/duke/player/ai_random.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | let summon = Summon::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_summon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pink_duke` [INFO] [stdout] --> src/duke/mod.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let pink_duke: Option = self.pink.as_ref().unwrap().setup_duke(&(self.board)); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pink_duke` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `source`, `destination`, `remove`, and `flip` are never read [INFO] [stdout] --> src/duke/move_type/mod.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct MoveType { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 7 | source: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | destination: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | remove: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | flip: Option [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MoveType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/duke/move_type/mod.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait Execute { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 14 | fn execute(&self) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/duke/tile/config.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | OpenError(std::io::Error), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | OpenError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/duke/tile/config.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | ReadError(std::io::Error), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 10 | ReadError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/duke/tile/config.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | ParseError(toml::de::Error) [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 11 | ParseError(()) [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tile` is never used [INFO] [stdout] --> src/duke/tile/config.rs:63:6 [INFO] [stdout] | [INFO] [stdout] 63 | fn tile() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AIPlayer` is never used [INFO] [stdout] --> src/duke/player/ai.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait AIPlayer : super::Player {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/duke/mod.rs:100:35 [INFO] [stdout] | [INFO] [stdout] 100 | Ok(self.blue.as_ref().unwrap().clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Random` does not implement `Clone`, so calling `clone` on `&Random` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 100 - Ok(self.blue.as_ref().unwrap().clone()) [INFO] [stdout] 100 + Ok(self.blue.as_ref().unwrap()) [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Random`, implement `Clone` for it [INFO] [stdout] --> src/duke/player/ai_random.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 + #[derive(Clone)] [INFO] [stdout] 10 | pub struct Random { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/duke/mod.rs:104:35 [INFO] [stdout] | [INFO] [stdout] 104 | Ok(self.pink.as_ref().unwrap().clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Random` does not implement `Clone`, so calling `clone` on `&Random` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 104 - Ok(self.pink.as_ref().unwrap().clone()) [INFO] [stdout] 104 + Ok(self.pink.as_ref().unwrap()) [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Random`, implement `Clone` for it [INFO] [stdout] --> src/duke/player/ai_random.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 + #[derive(Clone)] [INFO] [stdout] 10 | pub struct Random { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.83s [INFO] running `Command { std: "docker" "inspect" "8696a63054f73a8422d09b58e5ad802ff56c9893f799ec1a8f765a9ebb2f62ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8696a63054f73a8422d09b58e5ad802ff56c9893f799ec1a8f765a9ebb2f62ea", kill_on_drop: false }` [INFO] [stdout] 8696a63054f73a8422d09b58e5ad802ff56c9893f799ec1a8f765a9ebb2f62ea