[INFO] updating cached repository mylesmegyesi/tic-tac-toe-rust [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/mylesmegyesi/tic-tac-toe-rust [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/mylesmegyesi/tic-tac-toe-rust" "work/ex/pr-60914/sources/master#39401465da4ce27aeeb2c2a26133ac35c63aa515/gh/mylesmegyesi/tic-tac-toe-rust"` [INFO] [stderr] Cloning into 'work/ex/pr-60914/sources/master#39401465da4ce27aeeb2c2a26133ac35c63aa515/gh/mylesmegyesi/tic-tac-toe-rust'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/mylesmegyesi/tic-tac-toe-rust" "work/ex/pr-60914/sources/try#f45cc3094ee337acd688771b9234318046b0572d/gh/mylesmegyesi/tic-tac-toe-rust"` [INFO] [stderr] Cloning into 'work/ex/pr-60914/sources/try#f45cc3094ee337acd688771b9234318046b0572d/gh/mylesmegyesi/tic-tac-toe-rust'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 89bcb3adf82cda91b5907cc4b0b272fd86ce3eea [INFO] sha for GitHub repo mylesmegyesi/tic-tac-toe-rust: 89bcb3adf82cda91b5907cc4b0b272fd86ce3eea [INFO] validating manifest of mylesmegyesi/tic-tac-toe-rust on toolchain master#39401465da4ce27aeeb2c2a26133ac35c63aa515 [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+39401465da4ce27aeeb2c2a26133ac35c63aa515-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of mylesmegyesi/tic-tac-toe-rust on toolchain try#f45cc3094ee337acd688771b9234318046b0572d [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+f45cc3094ee337acd688771b9234318046b0572d-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing mylesmegyesi/tic-tac-toe-rust [INFO] finished frobbing mylesmegyesi/tic-tac-toe-rust [INFO] frobbed toml for mylesmegyesi/tic-tac-toe-rust written to work/ex/pr-60914/sources/master#39401465da4ce27aeeb2c2a26133ac35c63aa515/gh/mylesmegyesi/tic-tac-toe-rust/Cargo.toml [INFO] started frobbing mylesmegyesi/tic-tac-toe-rust [INFO] finished frobbing mylesmegyesi/tic-tac-toe-rust [INFO] frobbed toml for mylesmegyesi/tic-tac-toe-rust written to work/ex/pr-60914/sources/try#f45cc3094ee337acd688771b9234318046b0572d/gh/mylesmegyesi/tic-tac-toe-rust/Cargo.toml [INFO] crate mylesmegyesi/tic-tac-toe-rust already has a lockfile, it will not be regenerated [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+39401465da4ce27aeeb2c2a26133ac35c63aa515-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /mnt/crater-raid/crater/work/ex/pr-60914/sources/master#39401465da4ce27aeeb2c2a26133ac35c63aa515/gh/mylesmegyesi/tic-tac-toe-rust/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+39401465da4ce27aeeb2c2a26133ac35c63aa515-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+f45cc3094ee337acd688771b9234318046b0572d-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+39401465da4ce27aeeb2c2a26133ac35c63aa515-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache lock [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+f45cc3094ee337acd688771b9234318046b0572d-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache lock [INFO] checking mylesmegyesi/tic-tac-toe-rust against master#39401465da4ce27aeeb2c2a26133ac35c63aa515 for pr-60914 [INFO] running `"docker" "create" "-v" "/mnt/crater-raid/crater/work/local/target-dirs/pr-60914/worker-4/master#39401465da4ce27aeeb2c2a26133ac35c63aa515:/opt/crater/target:rw,Z" "-v" "/mnt/crater-raid/crater/work/ex/pr-60914/sources/master#39401465da4ce27aeeb2c2a26133ac35c63aa515/gh/mylesmegyesi/tic-tac-toe-rust:/opt/crater/workdir:ro,Z" "-v" "/mnt/crater-raid/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/crater-raid/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+39401465da4ce27aeeb2c2a26133ac35c63aa515-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] e1a38885c70171bc53a76f5fda16e53526b0c16c26745e8a4f19e21f2d83d680 [INFO] running `"docker" "start" "-a" "e1a38885c70171bc53a76f5fda16e53526b0c16c26745e8a4f19e21f2d83d680"` [INFO] [stderr] Checking tic-tac-toe-rust v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error[E0506]: cannot assign to `board` because it is borrowed [INFO] [stderr] --> src/lib.rs:21:17 [INFO] [stderr] | [INFO] [stderr] 12 | fn play_game<'players>(player_one: &'players Box, player_two: &'players Box) -> GameState<'players> { [INFO] [stderr] | -------- lifetime `'players` defined here [INFO] [stderr] ... [INFO] [stderr] 20 | let player_move = current_player.get_move(opposing_player, &board); [INFO] [stderr] | ------ borrow of `board` occurs here [INFO] [stderr] 21 | board = board.occupy_cell(current_player, player_move); [INFO] [stderr] | ^^^^^ assignment to borrowed `board` occurs here [INFO] [stderr] ... [INFO] [stderr] 26 | game_state => return game_state [INFO] [stderr] | ---------- returning this value requires that `board` is borrowed for `'players` [INFO] [stderr] [INFO] [stderr] error[E0515]: cannot return value referencing local variable `board` [INFO] [stderr] --> src/lib.rs:26:34 [INFO] [stderr] | [INFO] [stderr] 20 | let player_move = current_player.get_move(opposing_player, &board); [INFO] [stderr] | ------ `board` is borrowed here [INFO] [stderr] ... [INFO] [stderr] 26 | game_state => return game_state [INFO] [stderr] | ^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stderr] [INFO] [stderr] error[E0515]: cannot return value referencing local variable `board` [INFO] [stderr] --> src/lib.rs:26:34 [INFO] [stderr] | [INFO] [stderr] 21 | board = board.occupy_cell(current_player, player_move); [INFO] [stderr] | ----- `board` is borrowed here [INFO] [stderr] ... [INFO] [stderr] 26 | game_state => return game_state [INFO] [stderr] | ^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0506, E0515. [INFO] [stderr] For more information about an error, try `rustc --explain E0506`. [INFO] [stderr] error: Could not compile `tic-tac-toe-rust`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/board.rs:124:23 [INFO] [stderr] | [INFO] [stderr] 124 | .filter(|(index, c)| c.occupant.is_none()) [INFO] [stderr] | ^^^^^ help: consider prefixing with an underscore: `_index` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_variables)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cell` [INFO] [stderr] --> src/mock_player.rs:34:28 [INFO] [stderr] | [INFO] [stderr] 34 | .find(|(index, cell)| *index == move_index) [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_cell` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `other_player` [INFO] [stderr] --> src/mock_player.rs:30:31 [INFO] [stderr] | [INFO] [stderr] 30 | fn get_move<'a>(&'a self, other_player: &'a Box, board: &'a Board) -> &'a CellReference { [INFO] [stderr] | ^^^^^^^^^^^^ help: consider prefixing with an underscore: `_other_player` [INFO] [stderr] [INFO] [stderr] error[E0506]: cannot assign to `board` because it is borrowed [INFO] [stderr] --> src/lib.rs:21:17 [INFO] [stderr] | [INFO] [stderr] 12 | fn play_game<'players>(player_one: &'players Box, player_two: &'players Box) -> GameState<'players> { [INFO] [stderr] | -------- lifetime `'players` defined here [INFO] [stderr] ... [INFO] [stderr] 20 | let player_move = current_player.get_move(opposing_player, &board); [INFO] [stderr] | ------ borrow of `board` occurs here [INFO] [stderr] 21 | board = board.occupy_cell(current_player, player_move); [INFO] [stderr] | ^^^^^ assignment to borrowed `board` occurs here [INFO] [stderr] ... [INFO] [stderr] 26 | game_state => return game_state [INFO] [stderr] | ---------- returning this value requires that `board` is borrowed for `'players` [INFO] [stderr] [INFO] [stderr] error[E0515]: cannot return value referencing local variable `board` [INFO] [stderr] --> src/lib.rs:26:34 [INFO] [stderr] | [INFO] [stderr] 20 | let player_move = current_player.get_move(opposing_player, &board); [INFO] [stderr] | ------ `board` is borrowed here [INFO] [stderr] ... [INFO] [stderr] 26 | game_state => return game_state [INFO] [stderr] | ^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stderr] [INFO] [stderr] error[E0515]: cannot return value referencing local variable `board` [INFO] [stderr] --> src/lib.rs:26:34 [INFO] [stderr] | [INFO] [stderr] 21 | board = board.occupy_cell(current_player, player_move); [INFO] [stderr] | ----- `board` is borrowed here [INFO] [stderr] ... [INFO] [stderr] 26 | game_state => return game_state [INFO] [stderr] | ^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0506, E0515. [INFO] [stderr] For more information about an error, try `rustc --explain E0506`. [INFO] [stderr] error: Could not compile `tic-tac-toe-rust`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "e1a38885c70171bc53a76f5fda16e53526b0c16c26745e8a4f19e21f2d83d680"` [INFO] running `"docker" "rm" "-f" "e1a38885c70171bc53a76f5fda16e53526b0c16c26745e8a4f19e21f2d83d680"` [INFO] [stdout] e1a38885c70171bc53a76f5fda16e53526b0c16c26745e8a4f19e21f2d83d680