[INFO] cloning repository https://github.com/davetttt/ttt_rust_2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/davetttt/ttt_rust_2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavetttt%2Fttt_rust_2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavetttt%2Fttt_rust_2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 44ebdbd5f3afa5acc94ccdcac24f0b487ec608b7 [INFO] checking davetttt/ttt_rust_2 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavetttt%2Fttt_rust_2" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/davetttt/ttt_rust_2 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/davetttt/ttt_rust_2 [INFO] finished tweaking git repo https://github.com/davetttt/ttt_rust_2 [INFO] tweaked toml for git repo https://github.com/davetttt/ttt_rust_2 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/davetttt/ttt_rust_2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ae4aca46d6c229c9390bb6f5cf6f0436ea8fa4cffa678360d949329c85c818d5 [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" "ae4aca46d6c229c9390bb6f5cf6f0436ea8fa4cffa678360d949329c85c818d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ae4aca46d6c229c9390bb6f5cf6f0436ea8fa4cffa678360d949329c85c818d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae4aca46d6c229c9390bb6f5cf6f0436ea8fa4cffa678360d949329c85c818d5", kill_on_drop: false }` [INFO] [stdout] ae4aca46d6c229c9390bb6f5cf6f0436ea8fa4cffa678360d949329c85c818d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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] 48471ce7f5656d67dd1a4df89cc1dba1f6a5b6528700697e421ef5366d8b3690 [INFO] running `Command { std: "docker" "start" "-a" "48471ce7f5656d67dd1a4df89cc1dba1f6a5b6528700697e421ef5366d8b3690", kill_on_drop: false }` [INFO] [stderr] Checking ttt_rust_2 v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/main.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #![allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/main.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #![allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Float` [INFO] [stdout] --> src/board.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::num::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/io.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/token.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(PartialEq, Show)] // so that tokens can be compared [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::stdio::set_stdout` [INFO] [stdout] --> src/tests/io_tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::stdio::set_stdout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `set_stdout` in `io::stdio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::MemWriter` [INFO] [stdout] --> src/tests/io_tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::MemWriter; [INFO] [stdout] | ^^^^^^^^^--------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `BufWriter` [INFO] [stdout] | no `MemWriter` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Float` [INFO] [stdout] --> src/board.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::num::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/io.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/token.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(PartialEq, Show)] // so that tokens can be compared [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/board.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | for i in range(0, width * width) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/board.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | let space_numbers = range(0, board.len()). [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/board.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | for row_number in range(0, width) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/board.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | for column_number in range(0, width) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/board.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | range(0, board.len()). [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/io.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | for i in range(0, row.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/io.rs:87:27 [INFO] [stdout] | [INFO] [stdout] 87 | for row_number in range(0, rows.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/game.rs:6:36 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn game_loop(players: &Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn player::Player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/game.rs:24:43 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn play_game(players: &Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn player::Player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | fn human_cpu<'a>() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Player + 'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | let mut players: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | fn cpu_human<'a>() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Player + 'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:13:30 [INFO] [stdout] | [INFO] [stdout] 13 | let mut players: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:19:33 [INFO] [stdout] | [INFO] [stdout] 19 | fn human_human<'a>() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Player + 'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | let mut players: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:26:56 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn configure_players<'a, I: Io>(io: &I) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Player + 'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/board.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | for i in range(0, width * width) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/board.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | let space_numbers = range(0, board.len()). [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/board.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | for row_number in range(0, width) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/board.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | for column_number in range(0, width) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/board.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | range(0, board.len()). [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/io.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | for i in range(0, row.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/io.rs:87:27 [INFO] [stdout] | [INFO] [stdout] 87 | for row_number in range(0, rows.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `stdio` is private [INFO] [stdout] --> src/tests/io_tests.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::stdio::set_stdout; [INFO] [stdout] | ^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `stdio` is defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tests/game_tests.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | let mut players: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tests/game_tests.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | let mut players: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tests/game_tests.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | let mut players: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tests/config_tests.rs:14:31 [INFO] [stdout] | [INFO] [stdout] 14 | let mut expected: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tests/config_tests.rs:31:31 [INFO] [stdout] | [INFO] [stdout] 31 | let mut expected: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tests/config_tests.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | let mut expected: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/game.rs:6:36 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn game_loop(players: &Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn player::Player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/game.rs:24:43 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn play_game(players: &Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn player::Player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | fn human_cpu<'a>() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Player + 'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | let mut players: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | fn cpu_human<'a>() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Player + 'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:13:30 [INFO] [stdout] | [INFO] [stdout] 13 | let mut players: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:19:33 [INFO] [stdout] | [INFO] [stdout] 19 | fn human_human<'a>() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Player + 'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | let mut players: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:26:56 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn configure_players<'a, I: Io>(io: &I) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Player + 'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/io.rs:62:69 [INFO] [stdout] | [INFO] [stdout] 62 | result.push_str(self.format_space(row[i], space_number).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for reference `&&str` in the current scope [INFO] [stdout] --> src/io.rs:77:44 [INFO] [stdout] | [INFO] [stdout] 77 | position(|option| option.as_slice() == answer.trim()) { [INFO] [stdout] | ^^^^^^^^ method not found in `&&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/io.rs:90:59 [INFO] [stdout] | [INFO] [stdout] 90 | ... row_number * board_width).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/io.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | print!("{}", result.as_slice()) [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for reference `&String` in the current scope [INFO] [stdout] --> src/player.rs:31:60 [INFO] [stdout] | [INFO] [stdout] 31 | let options = empty_space_strings.iter().map(|s| s.as_slice()).collect(); [INFO] [stdout] | ^^^^^^^^ method not found in `&String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `push_all` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/rules.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | lines.push_all(board::get_columns(board).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `Vec>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `push_all` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/rules.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | lines.push_all(board::get_diagonals(board).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `Vec>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 2 arguments, but it takes 1 argument [INFO] [stdout] --> src/minimax.rs:37:29 [INFO] [stdout] | [INFO] [stdout] 37 | ... max_by(|tuple| tuple.1).unwrap(), [INFO] [stdout] | ^^^^^^ ------- takes 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 2 arguments, but it takes 1 argument [INFO] [stdout] --> src/minimax.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | ... min_by(|tuple| tuple.1).unwrap(), [INFO] [stdout] | ^^^^^^ ------- takes 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/board_tests.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | assert_eq!(board, expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/board_tests.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | assert_eq!(board, expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0593, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/board_tests.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | assert_eq!(get_rows(&board), expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec` [INFO] [stdout] = note: 1 redundant requirements hidden [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/board_tests.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | assert_eq!(get_rows(&board), expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec` [INFO] [stdout] = note: 1 redundant requirements hidden [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ttt_rust_2` [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/board_tests.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | assert_eq!(get_columns(&board), expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec` [INFO] [stdout] = note: 1 redundant requirements hidden [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/board_tests.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | assert_eq!(get_columns(&board), expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec` [INFO] [stdout] = note: 1 redundant requirements hidden [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/board_tests.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | assert_eq!(get_diagonals(&board), expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec` [INFO] [stdout] = note: 1 redundant requirements hidden [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/board_tests.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | assert_eq!(get_diagonals(&board), expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec` [INFO] [stdout] = note: 1 redundant requirements hidden [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/player_tests.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / assert_eq!(cpu_player.make_move(&board), [INFO] [stdout] 14 | | board::set_space(&board, 0, Token::X)); [INFO] [stdout] | |______________________________________________________^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/player_tests.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | / assert_eq!(cpu_player.make_move(&board), [INFO] [stdout] 26 | | board::set_space(&board, 7, Token::X)); [INFO] [stdout] | |______________________________________________________^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/player_tests.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / assert_eq!(cpu_player.make_move(&board), [INFO] [stdout] 38 | | board::set_space(&board, 5, Token::O)); [INFO] [stdout] | |______________________________________________________^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/player_tests.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | assert_eq!(human_player.make_move(&board), expected_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Vec` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/rules_tests.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | assert_eq!(get_winner(&board), Some(Token::O)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Option` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/rules_tests.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | assert_eq!(get_winner(&board), None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Option` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/rules_tests.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | assert_eq!(get_winner(&board), None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: required because of the requirements on the impl of `Debug` for `Option` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/rules_tests.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | assert_eq!(get_turn_token(&board), Token::X); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/rules_tests.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | assert_eq!(get_turn_token(&board), Token::O); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/game_tests.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | assert_eq!(winner.unwrap(), Token::X); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/game_tests.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | assert_eq!(winner.unwrap(), Token::O); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/config_tests.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | assert_eq!(players[0].get_token(), Token::X); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/config_tests.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(players[1].get_token(), Token::O); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/config_tests.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | assert_eq!(players[0].get_token(), Token::X); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/config_tests.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | assert_eq!(players[1].get_token(), Token::O); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/config_tests.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | assert_eq!(players[0].get_token(), Token::X); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `Debug` [INFO] [stdout] --> src/tests/config_tests.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | assert_eq!(players[1].get_token(), Token::O); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Token` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Token` [INFO] [stdout] = note: add `#[derive(Debug)]` or manually implement `Debug` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/io.rs:62:69 [INFO] [stdout] | [INFO] [stdout] 62 | result.push_str(self.format_space(row[i], space_number).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for reference `&&str` in the current scope [INFO] [stdout] --> src/io.rs:77:44 [INFO] [stdout] | [INFO] [stdout] 77 | position(|option| option.as_slice() == answer.trim()) { [INFO] [stdout] | ^^^^^^^^ method not found in `&&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/io.rs:90:59 [INFO] [stdout] | [INFO] [stdout] 90 | ... row_number * board_width).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/io.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | print!("{}", result.as_slice()) [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for reference `&String` in the current scope [INFO] [stdout] --> src/player.rs:31:60 [INFO] [stdout] | [INFO] [stdout] 31 | let options = empty_space_strings.iter().map(|s| s.as_slice()).collect(); [INFO] [stdout] | ^^^^^^^^ method not found in `&String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `push_all` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/rules.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | lines.push_all(board::get_columns(board).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `Vec>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `push_all` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/rules.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | lines.push_all(board::get_diagonals(board).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `Vec>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 2 arguments, but it takes 1 argument [INFO] [stdout] --> src/minimax.rs:37:29 [INFO] [stdout] | [INFO] [stdout] 37 | ... max_by(|tuple| tuple.1).unwrap(), [INFO] [stdout] | ^^^^^^ ------- takes 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 2 arguments, but it takes 1 argument [INFO] [stdout] --> src/minimax.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | ... min_by(|tuple| tuple.1).unwrap(), [INFO] [stdout] | ^^^^^^ ------- takes 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 47 previous errors; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0593, E0599, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "48471ce7f5656d67dd1a4df89cc1dba1f6a5b6528700697e421ef5366d8b3690", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48471ce7f5656d67dd1a4df89cc1dba1f6a5b6528700697e421ef5366d8b3690", kill_on_drop: false }` [INFO] [stdout] 48471ce7f5656d67dd1a4df89cc1dba1f6a5b6528700697e421ef5366d8b3690