[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 beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftxtr%2Fticktacktoe.rs" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/txtr/ticktacktoe.rs on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", 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-11/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" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ba0be744e8f249c2740f7a10f80a9072de5367d6d0b18ff979afcc820bcb189 [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" "9ba0be744e8f249c2740f7a10f80a9072de5367d6d0b18ff979afcc820bcb189", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ba0be744e8f249c2740f7a10f80a9072de5367d6d0b18ff979afcc820bcb189", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ba0be744e8f249c2740f7a10f80a9072de5367d6d0b18ff979afcc820bcb189", kill_on_drop: false }` [INFO] [stdout] 9ba0be744e8f249c2740f7a10f80a9072de5367d6d0b18ff979afcc820bcb189 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 042821b273c6b8afaf6d286bf559f2737e6a53e5a9da511727c93c9dfb4591c8 [INFO] running `Command { std: "docker" "start" "-a" "042821b273c6b8afaf6d286bf559f2737e6a53e5a9da511727c93c9dfb4591c8", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking ticktacktoe v0.1.0 (/opt/rustwide/workdir) [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: 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:13 [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] [stderr] error: could not compile `ticktacktoe` [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] [stderr] [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] To learn more, run the command again with --verbose. [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: 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:13 [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] [stderr] error: build failed [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] running `Command { std: "docker" "inspect" "042821b273c6b8afaf6d286bf559f2737e6a53e5a9da511727c93c9dfb4591c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "042821b273c6b8afaf6d286bf559f2737e6a53e5a9da511727c93c9dfb4591c8", kill_on_drop: false }` [INFO] [stdout] 042821b273c6b8afaf6d286bf559f2737e6a53e5a9da511727c93c9dfb4591c8