[INFO] cloning repository de-passage/tic-tac-toe.rust [INFO] running `"git" "clone" "--bare" "git://github.com/de-passage/tic-tac-toe.rust.git" "work/cache/sources/gh/de-passage/tic-tac-toe.rust"` [INFO] [stderr] Cloning into bare repository 'work/cache/sources/gh/de-passage/tic-tac-toe.rust'... [INFO] running `"git" "clone" "work/cache/sources/gh/de-passage/tic-tac-toe.rust" "work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/gh/de-passage/tic-tac-toe.rust"` [INFO] [stderr] Cloning into 'work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/gh/de-passage/tic-tac-toe.rust'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/de-passage/tic-tac-toe.rust" "work/ex/pr-61629/sources/try#e212b7d492c96d3837691ba29d32d5f468933fb8/gh/de-passage/tic-tac-toe.rust"` [INFO] [stderr] Cloning into 'work/ex/pr-61629/sources/try#e212b7d492c96d3837691ba29d32d5f468933fb8/gh/de-passage/tic-tac-toe.rust'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] c5e34ac55f9b7368a2b88ce5495e22bc5f375f34 [INFO] sha for GitHub repo de-passage/tic-tac-toe.rust: c5e34ac55f9b7368a2b88ce5495e22bc5f375f34 [INFO] validating manifest of de-passage/tic-tac-toe.rust on toolchain master#c8865d8e195813ade6b84434ac9f8850e7112d1a [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of de-passage/tic-tac-toe.rust on toolchain try#e212b7d492c96d3837691ba29d32d5f468933fb8 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e212b7d492c96d3837691ba29d32d5f468933fb8-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing de-passage/tic-tac-toe.rust [INFO] finished frobbing de-passage/tic-tac-toe.rust [INFO] frobbed toml for de-passage/tic-tac-toe.rust written to work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/gh/de-passage/tic-tac-toe.rust/Cargo.toml [INFO] started frobbing de-passage/tic-tac-toe.rust [INFO] finished frobbing de-passage/tic-tac-toe.rust [INFO] frobbed toml for de-passage/tic-tac-toe.rust written to work/ex/pr-61629/sources/try#e212b7d492c96d3837691ba29d32d5f468933fb8/gh/de-passage/tic-tac-toe.rust/Cargo.toml [INFO] crate de-passage/tic-tac-toe.rust already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e212b7d492c96d3837691ba29d32d5f468933fb8-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing de-passage/tic-tac-toe.rust against master#c8865d8e195813ade6b84434ac9f8850e7112d1a for pr-61629 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-61629/worker-6/master#c8865d8e195813ade6b84434ac9f8850e7112d1a:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/gh/de-passage/tic-tac-toe.rust:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/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" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "build" "--frozen"` [INFO] [stdout] ef24431afbaffb2983783757981fe957c0d68cd8eb667934e0a6a2d231e21e96 [INFO] running `"docker" "start" "-a" "ef24431afbaffb2983783757981fe957c0d68cd8eb667934e0a6a2d231e21e96"` [INFO] [stderr] Compiling tic-tac-toe v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_logic.rs:35:37 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn play(&mut self, player: &Player) -> Result<(), String> { [INFO] [stderr] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(bare_trait_objects)] on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_logic.rs:52:104 [INFO] [stderr] | [INFO] [stderr] 52 | pub fn available_moves(&self) -> std::iter::Filter>, &Fn(&(usize, &PlayerID)) -> bool> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&(usize, &PlayerID)) -> bool` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_logic.rs:137:14 [INFO] [stderr] | [INFO] [stderr] 137 | player: &Player, [INFO] [stderr] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_logic.rs:153:27 [INFO] [stderr] | [INFO] [stderr] 153 | let full = |locater: Box (usize, usize)>| { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(usize, usize) -> (usize, usize)` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_logic.rs:159:17 [INFO] [stderr] | [INFO] [stderr] 159 | let any = |f: &Fn(usize) -> bool| { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(usize) -> bool` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:245:18 [INFO] [stderr] | [INFO] [stderr] 245 | let player: &Player = if current_player == 1 { &Human(1) } else { &Computer(2) }; [INFO] [stderr] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.69s [INFO] running `"docker" "inspect" "ef24431afbaffb2983783757981fe957c0d68cd8eb667934e0a6a2d231e21e96"` [INFO] running `"docker" "rm" "-f" "ef24431afbaffb2983783757981fe957c0d68cd8eb667934e0a6a2d231e21e96"` [INFO] [stdout] ef24431afbaffb2983783757981fe957c0d68cd8eb667934e0a6a2d231e21e96 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-61629/worker-6/master#c8865d8e195813ade6b84434ac9f8850e7112d1a:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/gh/de-passage/tic-tac-toe.rust:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/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" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "test" "--frozen" "--no-run"` [INFO] [stdout] 32f4b0b9407e7d31f091d52c73374fde7254ed94747904ee8910f597cce62b74 [INFO] running `"docker" "start" "-a" "32f4b0b9407e7d31f091d52c73374fde7254ed94747904ee8910f597cce62b74"` [INFO] [stderr] Compiling tic-tac-toe v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error[E0423]: expected function, found struct `Board` [INFO] [stderr] --> src/main.rs:176:10 [INFO] [stderr] | [INFO] [stderr] 176 | let b = Board([1, 2, 1, 2, 0, 2, 1, 2, 1]); [INFO] [stderr] | ^^^^^ constructor is not visible here due to private fields [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found struct `Board` [INFO] [stderr] --> src/main.rs:183:10 [INFO] [stderr] | [INFO] [stderr] 183 | let b = Board([1, 1, 0, 1, 1, 0, 0, 1, 0]); // the algorithm doesnt actually care that the game is in a valid state [INFO] [stderr] | ^^^^^ constructor is not visible here due to private fields [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found struct `Board` [INFO] [stderr] --> src/main.rs:193:10 [INFO] [stderr] | [INFO] [stderr] 193 | let b = Board([1, 0, 0, 2, 1, 0, 0, 0, 2]); [INFO] [stderr] | ^^^^^ constructor is not visible here due to private fields [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found struct `Board` [INFO] [stderr] --> src/main.rs:204:10 [INFO] [stderr] | [INFO] [stderr] 204 | let b = Board([1, 2, 2, 2, 1, 0, 1, 1, 0]); [INFO] [stderr] | ^^^^^ constructor is not visible here due to private fields [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found struct `Board` [INFO] [stderr] --> src/main.rs:207:10 [INFO] [stderr] | [INFO] [stderr] 207 | let b = Board([1, 0, 0, 0, 0, 2, 0, 0, 2]); [INFO] [stderr] | ^^^^^ constructor is not visible here due to private fields [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found struct `Board` [INFO] [stderr] --> src/main.rs:210:10 [INFO] [stderr] | [INFO] [stderr] 210 | let b = Board([1, 2, 0, 1, 0, 2, 0, 0, 0]); [INFO] [stderr] | ^^^^^ constructor is not visible here due to private fields [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found struct `Board` [INFO] [stderr] --> src/main.rs:216:14 [INFO] [stderr] | [INFO] [stderr] 216 | let mut b = Board([1, 1, 0, 2, 0, 0, 2, 0, 0]); [INFO] [stderr] | ^^^^^ constructor is not visible here due to private fields [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found struct `Board` [INFO] [stderr] --> src/main.rs:223:14 [INFO] [stderr] | [INFO] [stderr] 223 | let mut b = Board([1, 1, 0, 2, 1, 0, 2, 0, 0]); [INFO] [stderr] | ^^^^^ constructor is not visible here due to private fields [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found struct `Board` [INFO] [stderr] --> src/main.rs:230:14 [INFO] [stderr] | [INFO] [stderr] 230 | let mut b = Board([0, 0, 0, 2, 0, 1, 2, 0, 1]); [INFO] [stderr] | ^^^^^ constructor is not visible here due to private fields [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_logic.rs:35:37 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn play(&mut self, player: &Player) -> Result<(), String> { [INFO] [stderr] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(bare_trait_objects)] on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_logic.rs:52:104 [INFO] [stderr] | [INFO] [stderr] 52 | pub fn available_moves(&self) -> std::iter::Filter>, &Fn(&(usize, &PlayerID)) -> bool> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&(usize, &PlayerID)) -> bool` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_logic.rs:137:14 [INFO] [stderr] | [INFO] [stderr] 137 | player: &Player, [INFO] [stderr] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_logic.rs:153:27 [INFO] [stderr] | [INFO] [stderr] 153 | let full = |locater: Box (usize, usize)>| { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(usize, usize) -> (usize, usize)` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_logic.rs:159:17 [INFO] [stderr] | [INFO] [stderr] 159 | let any = |f: &Fn(usize) -> bool| { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(usize) -> bool` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:245:18 [INFO] [stderr] | [INFO] [stderr] 245 | let player: &Player = if current_player == 1 { &Human(1) } else { &Computer(2) }; [INFO] [stderr] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stderr] [INFO] [stderr] error: aborting due to 9 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0423`. [INFO] [stderr] error: Could not compile `tic-tac-toe`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "32f4b0b9407e7d31f091d52c73374fde7254ed94747904ee8910f597cce62b74"` [INFO] running `"docker" "rm" "-f" "32f4b0b9407e7d31f091d52c73374fde7254ed94747904ee8910f597cce62b74"` [INFO] [stdout] 32f4b0b9407e7d31f091d52c73374fde7254ed94747904ee8910f597cce62b74