[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-60162/sources/master#a850a426491e14186af2250549bf41256b5938d2/gh/mylesmegyesi/tic-tac-toe-rust"` [INFO] [stderr] Cloning into 'work/ex/pr-60162/sources/master#a850a426491e14186af2250549bf41256b5938d2/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-60162/sources/try#06a150c7d11500b41499224f165e9de1de096768/gh/mylesmegyesi/tic-tac-toe-rust"` [INFO] [stderr] Cloning into 'work/ex/pr-60162/sources/try#06a150c7d11500b41499224f165e9de1de096768/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#a850a426491e14186af2250549bf41256b5938d2 [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+a850a426491e14186af2250549bf41256b5938d2-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of mylesmegyesi/tic-tac-toe-rust on toolchain try#06a150c7d11500b41499224f165e9de1de096768 [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+06a150c7d11500b41499224f165e9de1de096768-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-60162/sources/master#a850a426491e14186af2250549bf41256b5938d2/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-60162/sources/try#06a150c7d11500b41499224f165e9de1de096768/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" "+a850a426491e14186af2250549bf41256b5938d2-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /mnt/crater-raid/crater/work/ex/pr-60162/sources/master#a850a426491e14186af2250549bf41256b5938d2/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" "+a850a426491e14186af2250549bf41256b5938d2-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+06a150c7d11500b41499224f165e9de1de096768-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+a850a426491e14186af2250549bf41256b5938d2-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+06a150c7d11500b41499224f165e9de1de096768-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking mylesmegyesi/tic-tac-toe-rust against master#a850a426491e14186af2250549bf41256b5938d2 for pr-60162 [INFO] running `"docker" "create" "-v" "/mnt/crater-raid/crater/work/local/target-dirs/pr-60162/worker-2/master#a850a426491e14186af2250549bf41256b5938d2:/opt/crater/target:rw,Z" "-v" "/mnt/crater-raid/crater/work/ex/pr-60162/sources/master#a850a426491e14186af2250549bf41256b5938d2/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" "+a850a426491e14186af2250549bf41256b5938d2-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] f1245b7dfcd577e3cf0a122f8f943e1b974eee4da84bba77cb3cc7ffaee33a38 [INFO] running `"docker" "start" "-a" "f1245b7dfcd577e3cf0a122f8f943e1b974eee4da84bba77cb3cc7ffaee33a38"` [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" "f1245b7dfcd577e3cf0a122f8f943e1b974eee4da84bba77cb3cc7ffaee33a38"` [INFO] running `"docker" "rm" "-f" "f1245b7dfcd577e3cf0a122f8f943e1b974eee4da84bba77cb3cc7ffaee33a38"` [INFO] [stdout] f1245b7dfcd577e3cf0a122f8f943e1b974eee4da84bba77cb3cc7ffaee33a38