[INFO] cloning repository https://github.com/kahirokunn/minimax_tic_tac_toe [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kahirokunn/minimax_tic_tac_toe" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkahirokunn%2Fminimax_tic_tac_toe", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkahirokunn%2Fminimax_tic_tac_toe'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c56f62d0b0700539f87d470f232e523024c1e4a9 [INFO] testing kahirokunn/minimax_tic_tac_toe against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkahirokunn%2Fminimax_tic_tac_toe" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kahirokunn/minimax_tic_tac_toe on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kahirokunn/minimax_tic_tac_toe [INFO] finished tweaking git repo https://github.com/kahirokunn/minimax_tic_tac_toe [INFO] tweaked toml for git repo https://github.com/kahirokunn/minimax_tic_tac_toe written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/kahirokunn/minimax_tic_tac_toe already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.47 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.47 [INFO] [stderr] Downloaded serde v1.0.93 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.47 [INFO] [stderr] Downloaded serde_derive v1.0.93 [INFO] [stderr] Downloaded wasm-bindgen v0.2.47 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.47 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c2c5806d26205eaea82708a6fa20e90805e2463f81e03629d9a9a8129f8da93b [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" "c2c5806d26205eaea82708a6fa20e90805e2463f81e03629d9a9a8129f8da93b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c2c5806d26205eaea82708a6fa20e90805e2463f81e03629d9a9a8129f8da93b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2c5806d26205eaea82708a6fa20e90805e2463f81e03629d9a9a8129f8da93b", kill_on_drop: false }` [INFO] [stdout] c2c5806d26205eaea82708a6fa20e90805e2463f81e03629d9a9a8129f8da93b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] db70973408b3d5d5a38c1b26d080ddb7566ab06168a429634abec178084f05b7 [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" "db70973408b3d5d5a38c1b26d080ddb7566ab06168a429634abec178084f05b7", kill_on_drop: false }` [INFO] [stderr] warning: The package `minimax_ttt` provides no linkable target. The compiler might raise an error while compiling `ttt`. Consider adding 'dylib' or 'rlib' to key `crate-type` in `minimax_ttt`'s Cargo.toml. This warning might turn into a hard error in the future. [INFO] [stderr] Compiling syn v0.15.38 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.47 [INFO] [stderr] Compiling bumpalo v2.4.3 [INFO] [stderr] Compiling ryu v0.2.8 [INFO] [stderr] Compiling serde v1.0.93 [INFO] [stderr] Compiling wasm-bindgen v0.2.47 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.47 [INFO] [stderr] Compiling serde_derive v1.0.93 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.47 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.47 [INFO] [stderr] Compiling serde_json v1.0.39 [INFO] [stderr] Compiling minimax_ttt v0.1.0 (/opt/rustwide/workdir/minimax_ttt) [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> minimax_ttt/src/lib.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | _ => panic!(format!("expected number type 0 or1 or 2 , got {}", num)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 67 - _ => panic!(format!("expected number type 0 or1 or 2 , got {}", num)), [INFO] [stdout] 67 + _ => panic!("expected number type 0 or1 or 2 , got {}", num), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ttt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0463]: can't find crate for `minimax_ttt` [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate minimax_ttt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | Some(Piece::Black) => "x".to_string(), [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | Some(Piece::White) => "o".to_string(), [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TicTacToeBoard` [INFO] [stdout] --> src/main.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 69 | let mut board = TicTacToeBoard::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `TicTacToeBoard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BoardState` [INFO] [stdout] --> src/main.rs:75:7 [INFO] [stdout] | [INFO] [stdout] 75 | BoardState::Playing => match board.who_can_put_next_piece() { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `BoardState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Turn` [INFO] [stdout] --> src/main.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | Turn::White => match is_first_player { [INFO] [stdout] | ^^^^ use of undeclared type `Turn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:80:30 [INFO] [stdout] | [INFO] [stdout] 80 | board.put(index, Piece::White); [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Turn` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | Turn::Black => match is_first_player { [INFO] [stdout] | ^^^^ use of undeclared type `Turn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 91 | board.put(index, Piece::Black); [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BoardState` [INFO] [stdout] --> src/main.rs:99:7 [INFO] [stdout] | [INFO] [stdout] 99 | BoardState::Draw => { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `BoardState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BoardState` [INFO] [stdout] --> src/main.rs:103:7 [INFO] [stdout] | [INFO] [stdout] 103 | BoardState::BlackWin => { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `BoardState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BoardState` [INFO] [stdout] --> src/main.rs:110:7 [INFO] [stdout] | [INFO] [stdout] 110 | BoardState::WhiteWin => { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `BoardState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Cell` in this scope [INFO] [stdout] --> src/main.rs:7:46 [INFO] [stdout] | [INFO] [stdout] 7 | fn get_cell_for_display(index: usize, cell: &Cell) -> String { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::cell::Cell; [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::Cell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TicTacToeBoard` in this scope [INFO] [stdout] --> src/main.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 15 | fn show_board(board: &TicTacToeBoard) { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TicTacToeBoard` in this scope [INFO] [stdout] --> src/main.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | fn user_input(board: &TicTacToeBoard) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ttt` due to 16 previous errors [INFO] running `Command { std: "docker" "inspect" "db70973408b3d5d5a38c1b26d080ddb7566ab06168a429634abec178084f05b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db70973408b3d5d5a38c1b26d080ddb7566ab06168a429634abec178084f05b7", kill_on_drop: false }` [INFO] [stdout] db70973408b3d5d5a38c1b26d080ddb7566ab06168a429634abec178084f05b7