[INFO] cloning repository https://github.com/Kitsai/TTC-AI [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Kitsai/TTC-AI" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKitsai%2FTTC-AI", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKitsai%2FTTC-AI'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f541bbcc50017d0b22bb7a90379005c23ace95f9 [INFO] checking Kitsai/TTC-AI against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKitsai%2FTTC-AI" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Kitsai/TTC-AI [INFO] finished tweaking git repo https://github.com/Kitsai/TTC-AI [INFO] tweaked toml for git repo https://github.com/Kitsai/TTC-AI written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Kitsai/TTC-AI on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Kitsai/TTC-AI already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 283315365e8a928cbe7796c07d5645b00a1b800c24c49d90aa24d3289f58a7ba [INFO] running `Command { std: "docker" "start" "-a" "283315365e8a928cbe7796c07d5645b00a1b800c24c49d90aa24d3289f58a7ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "283315365e8a928cbe7796c07d5645b00a1b800c24c49d90aa24d3289f58a7ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "283315365e8a928cbe7796c07d5645b00a1b800c24c49d90aa24d3289f58a7ba", kill_on_drop: false }` [INFO] [stdout] 283315365e8a928cbe7796c07d5645b00a1b800c24c49d90aa24d3289f58a7ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bccff2297238fa434ea5f03d294428294f52b935a3ec7f90904e583c1f848788 [INFO] running `Command { std: "docker" "start" "-a" "bccff2297238fa434ea5f03d294428294f52b935a3ec7f90904e583c1f848788", kill_on_drop: false }` [INFO] [stderr] Checking ttc-minimax v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::search_models::Agent` [INFO] [stdout] --> src/tic_tac_toe/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::search_models::Agent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TicTacToeTypes` [INFO] [stdout] --> src/search_models/reflexive_agent.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::tic_tac_toe::{TicTacToe, TicTacToeTypes}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::search_models::Agent` [INFO] [stdout] --> src/tic_tac_toe/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::search_models::Agent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TicTacToeTypes` [INFO] [stdout] --> src/search_models/reflexive_agent.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::tic_tac_toe::{TicTacToe, TicTacToeTypes}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_state_from_move` found for reference `&MinimaxAgent` in the current scope [INFO] [stdout] --> src/search_models/minimax/mod.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | valid_states.append(self.get_state_from_move()) [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^-- [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `MinimaxAgent::get_state_from_move()` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in an impl for the type `MinimaxAgent` [INFO] [stdout] --> src/search_models/minimax/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_state_from_move(p_move: (usize,usize), state:TicTacToe, symbol: TicTacToeTypes) -> TicTacToe { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/search_models/minimax/mod.rs:31:73 [INFO] [stdout] | [INFO] [stdout] 31 | fn choose_move(&self, vec: Vec<(usize,usize)>, state: TicTacToe) -> (usize, usize) { [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^ expected `(usize, usize)`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(usize, usize)` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/search_models/minimax/mod.rs:35:45 [INFO] [stdout] | [INFO] [stdout] 35 | fn evaluate(&self, state: TicTacToe) -> isize { [INFO] [stdout] | -------- ^^^^^ expected `isize`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_state_from_move` found for reference `&MinimaxAgent` in the current scope [INFO] [stdout] --> src/search_models/minimax/mod.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | valid_states.append(self.get_state_from_move()) [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^-- [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `MinimaxAgent::get_state_from_move()` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in an impl for the type `MinimaxAgent` [INFO] [stdout] --> src/search_models/minimax/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_state_from_move(p_move: (usize,usize), state:TicTacToe, symbol: TicTacToeTypes) -> TicTacToe { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/search_models/minimax/mod.rs:31:73 [INFO] [stdout] | [INFO] [stdout] 31 | fn choose_move(&self, vec: Vec<(usize,usize)>, state: TicTacToe) -> (usize, usize) { [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^ expected `(usize, usize)`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(usize, usize)` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/search_models/minimax/mod.rs:35:45 [INFO] [stdout] | [INFO] [stdout] 35 | fn evaluate(&self, state: TicTacToe) -> isize { [INFO] [stdout] | -------- ^^^^^ expected `isize`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tic_tac_toe/mod.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut none_false: 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: unused variable: `vec` [INFO] [stdout] --> src/search_models/reflexive_agent.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | fn choose_move(&self, vec: Vec<(usize,usize)>, state: TicTacToe) -> (usize, usize) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/search_models/reflexive_agent.rs:16:52 [INFO] [stdout] | [INFO] [stdout] 16 | fn choose_move(&self, vec: Vec<(usize,usize)>, state: TicTacToe) -> (usize, usize) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/search_models/reflexive_agent.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | fn evaluate(&self, state: TicTacToe) -> isize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/search_models/minimax/mod.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | fn value(&self, state: TicTacToe) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> src/main.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | fn ai_move(game: &mut TicTacToe, symbol: TicTacToeTypes, agent: &dyn Agent) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/main.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | fn ai_move(game: &mut TicTacToe, symbol: TicTacToeTypes, agent: &dyn Agent) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `agent` [INFO] [stdout] --> src/main.rs:61:58 [INFO] [stdout] | [INFO] [stdout] 61 | fn ai_move(game: &mut TicTacToe, symbol: TicTacToeTypes, agent: &dyn Agent) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_agent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ia` [INFO] [stdout] --> src/main.rs:105:20 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn run_1player(ia: &dyn Agent) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ia` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn run_0player(a: &dyn Agent, b: &dyn Agent) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:109:35 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn run_0player(a: &dyn Agent, b: &dyn Agent) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tic_tac_toe/mod.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut none_false: 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: unused variable: `vec` [INFO] [stdout] --> src/search_models/reflexive_agent.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | fn choose_move(&self, vec: Vec<(usize,usize)>, state: TicTacToe) -> (usize, usize) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/search_models/reflexive_agent.rs:16:52 [INFO] [stdout] | [INFO] [stdout] 16 | fn choose_move(&self, vec: Vec<(usize,usize)>, state: TicTacToe) -> (usize, usize) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/search_models/reflexive_agent.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | fn evaluate(&self, state: TicTacToe) -> isize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/search_models/minimax/mod.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | fn value(&self, state: TicTacToe) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> src/main.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | fn ai_move(game: &mut TicTacToe, symbol: TicTacToeTypes, agent: &dyn Agent) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/main.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | fn ai_move(game: &mut TicTacToe, symbol: TicTacToeTypes, agent: &dyn Agent) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `agent` [INFO] [stdout] --> src/main.rs:61:58 [INFO] [stdout] | [INFO] [stdout] 61 | fn ai_move(game: &mut TicTacToe, symbol: TicTacToeTypes, agent: &dyn Agent) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_agent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ia` [INFO] [stdout] --> src/main.rs:105:20 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn run_1player(ia: &dyn Agent) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ia` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn run_0player(a: &dyn Agent, b: &dyn Agent) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:109:35 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn run_0player(a: &dyn Agent, b: &dyn Agent) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ttc-minimax` (bin "ttc-minimax" test) due to 3 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ttc-minimax` (bin "ttc-minimax") due to 3 previous errors; 13 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bccff2297238fa434ea5f03d294428294f52b935a3ec7f90904e583c1f848788", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bccff2297238fa434ea5f03d294428294f52b935a3ec7f90904e583c1f848788", kill_on_drop: false }` [INFO] [stdout] bccff2297238fa434ea5f03d294428294f52b935a3ec7f90904e583c1f848788