[INFO] cloning repository https://github.com/RealDummy/chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RealDummy/chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRealDummy%2Fchess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRealDummy%2Fchess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 387f7ae6b70d6a14c7d50335e58d910dabf3cb12 [INFO] building RealDummy/chess against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRealDummy%2Fchess" "/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/RealDummy/chess on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/RealDummy/chess [INFO] finished tweaking git repo https://github.com/RealDummy/chess [INFO] tweaked toml for git repo https://github.com/RealDummy/chess written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/RealDummy/chess 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ffe2d245d0b3e15b597fc35ace6335b16990934612a54c26c414b8c73f8223cf [INFO] running `Command { std: "docker" "start" "-a" "ffe2d245d0b3e15b597fc35ace6335b16990934612a54c26c414b8c73f8223cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ffe2d245d0b3e15b597fc35ace6335b16990934612a54c26c414b8c73f8223cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffe2d245d0b3e15b597fc35ace6335b16990934612a54c26c414b8c73f8223cf", kill_on_drop: false }` [INFO] [stdout] ffe2d245d0b3e15b597fc35ace6335b16990934612a54c26c414b8c73f8223cf [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fdcac889a52a88f6abf49b7b77385a657e5515bddfdcd9859747e60a1bb8b21e [INFO] running `Command { std: "docker" "start" "-a" "fdcac889a52a88f6abf49b7b77385a657e5515bddfdcd9859747e60a1bb8b21e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling numtoa v0.1.0 [INFO] [stderr] Compiling termion v1.5.6 [INFO] [stderr] Compiling chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::vec::Vec` [INFO] [stdout] --> src/chess/validator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chess/board.rs:427:13 [INFO] [stdout] | [INFO] [stdout] 427 | let mut state = &mut self.get_pieces_mut(owner)[index]; [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:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut game = chess::Game::from_fen("8/2p5/3p4/KP5r/1R3p1k/8/4P1P1/8 w - - "); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Checkmate`, `Draw`, and `Eval` are never constructed [INFO] [stdout] --> src/chess/mod.rs:11:2 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum GameEval { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 11 | Checkmate(piece::Player), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | Draw, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | Eval(f64), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameEval` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `eval` is never read [INFO] [stdout] --> src/chess/mod.rs:19:2 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Game{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 18 | board: board::Board, [INFO] [stdout] 19 | eval: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_input` is never used [INFO] [stdout] --> src/chess/mod.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn get_input() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_simple_input` is never used [INFO] [stdout] --> src/chess/mod.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn parse_simple_input(input: &str, player: piece::Player) -> Result:: { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `eval`, `print`, `print_for`, `print_possible_moves`, and `play` are never used [INFO] [stdout] --> src/chess/mod.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 78 | impl Game{ [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 79 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn eval(&mut self) -> GameEval { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn print_for(&self, p: piece::Player) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn print_possible_moves(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn play(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `print` are never used [INFO] [stdout] --> src/chess/board.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 143 | impl Board{ [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 144 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 316 | pub fn print(&self, active_player: piece::Player){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_char` is never used [INFO] [stdout] --> src/chess/piece.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Piece{ [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 36 | pub fn to_char(&self)-> char { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.76s [INFO] running `Command { std: "docker" "inspect" "fdcac889a52a88f6abf49b7b77385a657e5515bddfdcd9859747e60a1bb8b21e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdcac889a52a88f6abf49b7b77385a657e5515bddfdcd9859747e60a1bb8b21e", kill_on_drop: false }` [INFO] [stdout] fdcac889a52a88f6abf49b7b77385a657e5515bddfdcd9859747e60a1bb8b21e [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f99f417716083eaaaf24e5f299ff1c229e7034e19f7ba447df24caeb5e478808 [INFO] running `Command { std: "docker" "start" "-a" "f99f417716083eaaaf24e5f299ff1c229e7034e19f7ba447df24caeb5e478808", kill_on_drop: false }` [INFO] [stderr] Compiling chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::vec::Vec` [INFO] [stdout] --> src/chess/validator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chess/board.rs:427:13 [INFO] [stdout] | [INFO] [stdout] 427 | let mut state = &mut self.get_pieces_mut(owner)[index]; [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:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut game = chess::Game::from_fen("8/2p5/3p4/KP5r/1R3p1k/8/4P1P1/8 w - - "); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Checkmate`, `Draw`, and `Eval` are never constructed [INFO] [stdout] --> src/chess/mod.rs:11:2 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum GameEval { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 11 | Checkmate(piece::Player), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | Draw, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | Eval(f64), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameEval` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `eval` is never read [INFO] [stdout] --> src/chess/mod.rs:19:2 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Game{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 18 | board: board::Board, [INFO] [stdout] 19 | eval: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_input` is never used [INFO] [stdout] --> src/chess/mod.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn get_input() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_simple_input` is never used [INFO] [stdout] --> src/chess/mod.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn parse_simple_input(input: &str, player: piece::Player) -> Result:: { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `eval`, `print`, `print_for`, `print_possible_moves`, and `play` are never used [INFO] [stdout] --> src/chess/mod.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 78 | impl Game{ [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 79 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn eval(&mut self) -> GameEval { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn print_for(&self, p: piece::Player) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn print_possible_moves(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn play(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `print` are never used [INFO] [stdout] --> src/chess/board.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 143 | impl Board{ [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 144 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 316 | pub fn print(&self, active_player: piece::Player){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_char` is never used [INFO] [stdout] --> src/chess/piece.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Piece{ [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 36 | pub fn to_char(&self)-> char { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] running `Command { std: "docker" "inspect" "f99f417716083eaaaf24e5f299ff1c229e7034e19f7ba447df24caeb5e478808", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f99f417716083eaaaf24e5f299ff1c229e7034e19f7ba447df24caeb5e478808", kill_on_drop: false }` [INFO] [stdout] f99f417716083eaaaf24e5f299ff1c229e7034e19f7ba447df24caeb5e478808