[INFO] cloning repository https://github.com/xeals/stratagem [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xeals/stratagem" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxeals%2Fstratagem", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxeals%2Fstratagem'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 28d899c67d3d717aa0b8bb2cb3eec8cdb8872eaf [INFO] checking xeals/stratagem against master#b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18 for pr-79470 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxeals%2Fstratagem" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xeals/stratagem on toolchain b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/xeals/stratagem [INFO] finished tweaking git repo https://github.com/xeals/stratagem [INFO] tweaked toml for git repo https://github.com/xeals/stratagem written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/xeals/stratagem already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1499c65323817664ddcd113b077a3d5f9649e14cc9696594f0705840378c765e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1499c65323817664ddcd113b077a3d5f9649e14cc9696594f0705840378c765e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1499c65323817664ddcd113b077a3d5f9649e14cc9696594f0705840378c765e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1499c65323817664ddcd113b077a3d5f9649e14cc9696594f0705840378c765e", kill_on_drop: false }` [INFO] [stdout] 1499c65323817664ddcd113b077a3d5f9649e14cc9696594f0705840378c765e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8779196be3a183d4c5e03ee8c79a96a6424fcc6fa6e4636f495e8e0b308e230e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8779196be3a183d4c5e03ee8c79a96a6424fcc6fa6e4636f495e8e0b308e230e", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.3 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Checking libc v0.2.35 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Checking cfg-if v0.1.2 [INFO] [stderr] Checking rustc-demangle v0.1.5 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Checking rand v0.4.1 [INFO] [stderr] Checking termion v1.5.1 [INFO] [stderr] Compiling backtrace-sys v0.1.16 [INFO] [stderr] Compiling synstructure v0.6.1 [INFO] [stderr] Compiling failure_derive v0.1.1 [INFO] [stderr] Checking backtrace v0.3.5 [INFO] [stderr] Checking failure v0.1.1 [INFO] [stderr] Checking stratagem v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/main.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/main.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::vec::Vec::::remove_item`: Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stdout] --> src/game.rs:224:42 [INFO] [stdout] | [INFO] [stdout] 224 | self.highlighted.remove_item(&self.cursor); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::vec::Vec::::remove_item`: Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stdout] --> src/game.rs:224:42 [INFO] [stdout] | [INFO] [stdout] 224 | self.highlighted.remove_item(&self.cursor); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stderr` [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut stderr = stderr.lock(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stderr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/game.rs:340:25 [INFO] [stdout] | [INFO] [stdout] 340 | fn popup(&mut self, text: &str) -> error::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut stdout = stdout.lock(); [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/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut stderr = stderr.lock(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stderr` [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut stderr = stderr.lock(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stderr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/game.rs:340:25 [INFO] [stdout] | [INFO] [stdout] 340 | fn popup(&mut self, text: &str) -> error::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut stdout = stdout.lock(); [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/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut stderr = stderr.lock(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from` [INFO] [stdout] --> src/board.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn from(s: &str) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_side` [INFO] [stdout] --> src/board.rs:409:4 [INFO] [stdout] | [INFO] [stdout] 409 | fn create_side(colour: Colour) -> [[Tile; 10]; 4] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_BLUE_SIDE` [INFO] [stdout] --> src/board.rs:416:1 [INFO] [stdout] | [INFO] [stdout] 416 | / const DEFAULT_BLUE_SIDE: [[Tile; 10]; 4] = [INFO] [stdout] 417 | | [[Tile::Piece(Piece::Miner, Colour::Blue), [INFO] [stdout] 418 | | Tile::Piece(Piece::Captain, Colour::Blue), [INFO] [stdout] 419 | | Tile::Piece(Piece::Scout, Colour::Blue), [INFO] [stdout] ... | [INFO] [stdout] 458 | | Tile::Piece(Piece::Colonel, Colour::Blue), [INFO] [stdout] 459 | | Tile::Piece(Piece::Sergeant, Colour::Blue)]]; [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `GameResult` [INFO] [stdout] --> src/game.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | enum GameResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `popup` [INFO] [stdout] --> src/game.rs:340:8 [INFO] [stdout] | [INFO] [stdout] 340 | fn popup(&mut self, text: &str) -> error::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_game_end` [INFO] [stdout] --> src/game.rs:344:8 [INFO] [stdout] | [INFO] [stdout] 344 | fn check_game_end(&mut self) -> GameResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from` [INFO] [stdout] --> src/board.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn from(s: &str) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_side` [INFO] [stdout] --> src/board.rs:409:4 [INFO] [stdout] | [INFO] [stdout] 409 | fn create_side(colour: Colour) -> [[Tile; 10]; 4] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_BLUE_SIDE` [INFO] [stdout] --> src/board.rs:416:1 [INFO] [stdout] | [INFO] [stdout] 416 | / const DEFAULT_BLUE_SIDE: [[Tile; 10]; 4] = [INFO] [stdout] 417 | | [[Tile::Piece(Piece::Miner, Colour::Blue), [INFO] [stdout] 418 | | Tile::Piece(Piece::Captain, Colour::Blue), [INFO] [stdout] 419 | | Tile::Piece(Piece::Scout, Colour::Blue), [INFO] [stdout] ... | [INFO] [stdout] 458 | | Tile::Piece(Piece::Colonel, Colour::Blue), [INFO] [stdout] 459 | | Tile::Piece(Piece::Sergeant, Colour::Blue)]]; [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `GameResult` [INFO] [stdout] --> src/game.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | enum GameResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `popup` [INFO] [stdout] --> src/game.rs:340:8 [INFO] [stdout] | [INFO] [stdout] 340 | fn popup(&mut self, text: &str) -> error::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_game_end` [INFO] [stdout] --> src/game.rs:344:8 [INFO] [stdout] | [INFO] [stdout] 344 | fn check_game_end(&mut self) -> GameResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 29.56s [INFO] running `Command { std: "docker" "inspect" "8779196be3a183d4c5e03ee8c79a96a6424fcc6fa6e4636f495e8e0b308e230e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8779196be3a183d4c5e03ee8c79a96a6424fcc6fa6e4636f495e8e0b308e230e", kill_on_drop: false }` [INFO] [stdout] 8779196be3a183d4c5e03ee8c79a96a6424fcc6fa6e4636f495e8e0b308e230e