[INFO] cloning repository https://github.com/alvaare/ChessTrainer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/alvaare/ChessTrainer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falvaare%2FChessTrainer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falvaare%2FChessTrainer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3aac5ff0c540a8063110770cc425d3bf183b4900 [INFO] checking alvaare/ChessTrainer/3aac5ff0c540a8063110770cc425d3bf183b4900 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falvaare%2FChessTrainer" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alvaare/ChessTrainer on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/alvaare/ChessTrainer [INFO] finished tweaking git repo https://github.com/alvaare/ChessTrainer [INFO] tweaked toml for git repo https://github.com/alvaare/ChessTrainer written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/alvaare/ChessTrainer 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 61cbf81f09140975bbc2e6f243d51a7997e9b4a43bdb742310244a818671b34a [INFO] running `Command { std: "docker" "start" "-a" "61cbf81f09140975bbc2e6f243d51a7997e9b4a43bdb742310244a818671b34a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "61cbf81f09140975bbc2e6f243d51a7997e9b4a43bdb742310244a818671b34a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61cbf81f09140975bbc2e6f243d51a7997e9b4a43bdb742310244a818671b34a", kill_on_drop: false }` [INFO] [stdout] 61cbf81f09140975bbc2e6f243d51a7997e9b4a43bdb742310244a818671b34a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 57c790ea0da7588b7d97d8fae62b7c594007bfcfcfdd27e7ab5d37045d031ced [INFO] running `Command { std: "docker" "start" "-a" "57c790ea0da7588b7d97d8fae62b7c594007bfcfcfdd27e7ab5d37045d031ced", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.42 [INFO] [stderr] Compiling libc v0.2.127 [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling serde_derive v1.0.140 [INFO] [stderr] Compiling serde v1.0.140 [INFO] [stderr] Compiling serde_json v1.0.82 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking chess_trainer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rand::thread_rng` [INFO] [stdout] --> src/game.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::thread_rng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::SliceRandom` [INFO] [stdout] --> src/game.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::seq::SliceRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::thread_rng` [INFO] [stdout] --> src/game.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::thread_rng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::SliceRandom` [INFO] [stdout] --> src/game.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::seq::SliceRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/chess_move.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let piece = Piece {piece_type, color: turn}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/chess_move.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let piece = Piece {piece_type, color: turn}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pawn` is never constructed [INFO] [stdout] --> src/piece.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Pawn; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pawn` is never constructed [INFO] [stdout] --> src/piece.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Pawn; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Knight` is never constructed [INFO] [stdout] --> src/piece.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct Knight; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Knight` is never constructed [INFO] [stdout] --> src/piece.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct Knight; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bishop` is never constructed [INFO] [stdout] --> src/piece.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct Bishop; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rook` is never constructed [INFO] [stdout] --> src/piece.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct Rook; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bishop` is never constructed [INFO] [stdout] --> src/piece.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct Bishop; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Queen` is never constructed [INFO] [stdout] --> src/piece.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Queen; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rook` is never constructed [INFO] [stdout] --> src/piece.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct Rook; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `King` is never constructed [INFO] [stdout] --> src/piece.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct King; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Queen` is never constructed [INFO] [stdout] --> src/piece.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Queen; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CanMove` is never used [INFO] [stdout] --> src/piece.rs:104:11 [INFO] [stdout] | [INFO] [stdout] 104 | pub trait CanMove { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `King` is never constructed [INFO] [stdout] --> src/piece.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct King; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PAWN_CAPTURE_DIRS` is never used [INFO] [stdout] --> src/piece.rs:108:7 [INFO] [stdout] | [INFO] [stdout] 108 | const PAWN_CAPTURE_DIRS: [Coord; 2] = [Coord(0,1), Coord(0,-1)]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CanMove` is never used [INFO] [stdout] --> src/piece.rs:104:11 [INFO] [stdout] | [INFO] [stdout] 104 | pub trait CanMove { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PAWN_CAPTURE_DIRS` is never used [INFO] [stdout] --> src/piece.rs:108:7 [INFO] [stdout] | [INFO] [stdout] 108 | const PAWN_CAPTURE_DIRS: [Coord; 2] = [Coord(0,1), Coord(0,-1)]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `moves` and `result` are never read [INFO] [stdout] --> src/game.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | moves: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | result: Option [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `moves` and `result` are never read [INFO] [stdout] --> src/game.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | moves: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | result: Option [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` 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/game.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Game { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 12 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Game { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 12 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reader` is never read [INFO] [stdout] --> src/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Parser { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | reader: BufReader [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reader` is never read [INFO] [stdout] --> src/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Parser { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | reader: BufReader [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Serialize, Deserialize, Clone, Copy, Debug, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Serialize, Deserialize, Clone, Copy, Debug, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/piece.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, Serialize, Deserialize, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/piece.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, Serialize, Deserialize, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `chess_trainer` (lib test) due to 3 previous errors; 14 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `chess_trainer` (lib) due to 3 previous errors; 14 warnings emitted [INFO] running `Command { std: "docker" "inspect" "57c790ea0da7588b7d97d8fae62b7c594007bfcfcfdd27e7ab5d37045d031ced", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57c790ea0da7588b7d97d8fae62b7c594007bfcfcfdd27e7ab5d37045d031ced", kill_on_drop: false }` [INFO] [stdout] 57c790ea0da7588b7d97d8fae62b7c594007bfcfcfdd27e7ab5d37045d031ced