[INFO] cloning repository https://github.com/txtr/ticktacktoe.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/txtr/ticktacktoe.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftxtr%2Fticktacktoe.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftxtr%2Fticktacktoe.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bd414e42e941724cad936d4568a9c1f05ebe4e50 [INFO] checking txtr/ticktacktoe.rs against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftxtr%2Fticktacktoe.rs" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/txtr/ticktacktoe.rs on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/txtr/ticktacktoe.rs [INFO] finished tweaking git repo https://github.com/txtr/ticktacktoe.rs [INFO] tweaked toml for git repo https://github.com/txtr/ticktacktoe.rs written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/txtr/ticktacktoe.rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c92a501e56355eb8d397f176abd24ccccef6f14f55e537e86c89dfbdb5507987 [INFO] running `Command { std: "docker" "start" "-a" "c92a501e56355eb8d397f176abd24ccccef6f14f55e537e86c89dfbdb5507987", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c92a501e56355eb8d397f176abd24ccccef6f14f55e537e86c89dfbdb5507987", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c92a501e56355eb8d397f176abd24ccccef6f14f55e537e86c89dfbdb5507987", kill_on_drop: false }` [INFO] [stdout] c92a501e56355eb8d397f176abd24ccccef6f14f55e537e86c89dfbdb5507987 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 672a271c1bbe6aec619d68622a35c1d80180e6762811c1b1f1a030482a056b75 [INFO] running `Command { std: "docker" "start" "-a" "672a271c1bbe6aec619d68622a35c1d80180e6762811c1b1f1a030482a056b75", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking ticktacktoe v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:130:16 [INFO] [stdout] | [INFO] [stdout] 130 | if (row_i != BOARD_SIZE - 1) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_i` [INFO] [stdout] --> src/main.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let game_i: usize = 1; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> src/main.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | let game: Game = Game::new(&mut players.0, &mut players.1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ended` [INFO] [stdout] --> src/main.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | let mut ended: bool = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ended` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut ended: bool = false; [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:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | let mut board = Board::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `player_1` does not live long enough [INFO] [stdout] --> src/main.rs:158:56 [INFO] [stdout] | [INFO] [stdout] 158 | let players: (&'static Player, &'static Player) = (&mut player_1, &mut player_2); [INFO] [stdout] | ---------------------------------- ^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] | type annotation requires that `player_1` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 169 | } [INFO] [stdout] | - `player_1` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `player_2` does not live long enough [INFO] [stdout] --> src/main.rs:158:71 [INFO] [stdout] | [INFO] [stdout] 158 | let players: (&'static Player, &'static Player) = (&mut player_1, &mut player_2); [INFO] [stdout] | ---------------------------------- ^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] | type annotation requires that `player_2` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 169 | } [INFO] [stdout] | - `player_2` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ticktacktoe` due to 5 previous errors; 6 warnings emitted [INFO] [stdout] error[E0596]: cannot borrow `players.0` as mutable, as `players` is not declared as mutable [INFO] [stdout] --> src/main.rs:167:36 [INFO] [stdout] | [INFO] [stdout] 158 | let players: (&'static Player, &'static Player) = (&mut player_1, &mut player_2); [INFO] [stdout] | ------- help: consider changing this to be mutable: `mut players` [INFO] [stdout] ... [INFO] [stdout] 167 | let game: Game = Game::new(&mut players.0, &mut players.1); [INFO] [stdout] | ^^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0596]: cannot borrow `players.1` as mutable, as `players` is not declared as mutable [INFO] [stdout] --> src/main.rs:167:52 [INFO] [stdout] | [INFO] [stdout] 158 | let players: (&'static Player, &'static Player) = (&mut player_1, &mut player_2); [INFO] [stdout] | ------- help: consider changing this to be mutable: `mut players` [INFO] [stdout] ... [INFO] [stdout] 167 | let game: Game = Game::new(&mut players.0, &mut players.1); [INFO] [stdout] | ^^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0596, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:130:16 [INFO] [stdout] | [INFO] [stdout] 130 | if (row_i != BOARD_SIZE - 1) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_i` [INFO] [stdout] --> src/main.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let game_i: usize = 1; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> src/main.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | let game: Game = Game::new(&mut players.0, &mut players.1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ended` [INFO] [stdout] --> src/main.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | let mut ended: bool = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ended` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut ended: bool = false; [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:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | let mut board = Board::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `player_1` does not live long enough [INFO] [stdout] --> src/main.rs:158:56 [INFO] [stdout] | [INFO] [stdout] 158 | let players: (&'static Player, &'static Player) = (&mut player_1, &mut player_2); [INFO] [stdout] | ---------------------------------- ^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] | type annotation requires that `player_1` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 169 | } [INFO] [stdout] | - `player_1` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `player_2` does not live long enough [INFO] [stdout] --> src/main.rs:158:71 [INFO] [stdout] | [INFO] [stdout] 158 | let players: (&'static Player, &'static Player) = (&mut player_1, &mut player_2); [INFO] [stdout] | ---------------------------------- ^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] | type annotation requires that `player_2` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 169 | } [INFO] [stdout] | - `player_2` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `players.0` as mutable, as `players` is not declared as mutable [INFO] [stdout] --> src/main.rs:167:36 [INFO] [stdout] | [INFO] [stdout] 158 | let players: (&'static Player, &'static Player) = (&mut player_1, &mut player_2); [INFO] [stdout] | ------- help: consider changing this to be mutable: `mut players` [INFO] [stdout] ... [INFO] [stdout] 167 | let game: Game = Game::new(&mut players.0, &mut players.1); [INFO] [stdout] | ^^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `players.1` as mutable, as `players` is not declared as mutable [INFO] [stdout] --> src/main.rs:167:52 [INFO] [stdout] | [INFO] [stdout] 158 | let players: (&'static Player, &'static Player) = (&mut player_1, &mut player_2); [INFO] [stdout] | ------- help: consider changing this to be mutable: `mut players` [INFO] [stdout] ... [INFO] [stdout] 167 | let game: Game = Game::new(&mut players.0, &mut players.1); [INFO] [stdout] | ^^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0596, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "672a271c1bbe6aec619d68622a35c1d80180e6762811c1b1f1a030482a056b75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "672a271c1bbe6aec619d68622a35c1d80180e6762811c1b1f1a030482a056b75", kill_on_drop: false }` [INFO] [stdout] 672a271c1bbe6aec619d68622a35c1d80180e6762811c1b1f1a030482a056b75