[INFO] cloning repository https://github.com/petlindg/rhess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/petlindg/rhess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpetlindg%2Frhess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpetlindg%2Frhess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a3cdca6253df9ac2400180fd945f6605a7d5deb6 [INFO] testing petlindg/rhess against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpetlindg%2Frhess" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/petlindg/rhess [INFO] finished tweaking git repo https://github.com/petlindg/rhess [INFO] tweaked toml for git repo https://github.com/petlindg/rhess written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/petlindg/rhess on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/petlindg/rhess 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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "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 [ERROR] error running command: no output for 300 seconds [INFO] testing petlindg/rhess against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpetlindg%2Frhess" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/petlindg/rhess [INFO] finished tweaking git repo https://github.com/petlindg/rhess [INFO] tweaked toml for git repo https://github.com/petlindg/rhess written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/petlindg/rhess on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/petlindg/rhess 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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v2.0.76 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 621564d2aae2c3bb117992ddfc2efb2372f0ccd77bffa6e255bb97c171406d44 [INFO] running `Command { std: "docker" "start" "-a" "621564d2aae2c3bb117992ddfc2efb2372f0ccd77bffa6e255bb97c171406d44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "621564d2aae2c3bb117992ddfc2efb2372f0ccd77bffa6e255bb97c171406d44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "621564d2aae2c3bb117992ddfc2efb2372f0ccd77bffa6e255bb97c171406d44", kill_on_drop: false }` [INFO] [stdout] 621564d2aae2c3bb117992ddfc2efb2372f0ccd77bffa6e255bb97c171406d44 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a1c582f3f56633a83d2098835df17160b1d652d6dbd726e16dd05aee6f6844ab [INFO] running `Command { std: "docker" "start" "-a" "a1c582f3f56633a83d2098835df17160b1d652d6dbd726e16dd05aee6f6844ab", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.76 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling rhess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `:`, found `=` [INFO] [stdout] --> src/board.rs:279:13 [INFO] [stdout] | [INFO] [stdout] 279 | occ = 0u64 [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: replace equals symbol with a colon [INFO] [stdout] | [INFO] [stdout] 279 - occ = 0u64 [INFO] [stdout] 279 + occ: 0u64 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/board.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | Piece::PAWN => 'P', [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 4 + use crate::board::types::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/board.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | Piece::KNIGHT => 'N', [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 4 + use crate::board::types::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/board.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | Piece::BISHOP => 'B', [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 4 + use crate::board::types::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/board.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | Piece::ROOK => 'R', [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 4 + use crate::board::types::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/board.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | Piece::QUEEN => 'Q', [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 4 + use crate::board::types::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/board.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | Piece::KING => 'K', [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 4 + use crate::board::types::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:249:20 [INFO] [stdout] | [INFO] [stdout] 249 | 'w' => Color::WHITE, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 4 + use crate::board::types::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:250:20 [INFO] [stdout] | [INFO] [stdout] 250 | 'b' => Color::BLACK, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 4 + use crate::board::types::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToPrimitive` [INFO] [stdout] --> src/board.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/board.rs:32:63 [INFO] [stdout] | [INFO] [stdout] 32 | fn piece_to_char(color: types::Color, piece: types::Piece) -> (char) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - fn piece_to_char(color: types::Color, piece: types::Piece) -> (char) { [INFO] [stdout] 32 + fn piece_to_char(color: types::Color, piece: types::Piece) -> char { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_moves_pawn_black` found for reference `&Board` in the current scope [INFO] [stdout] --> src/board.rs:147:41 [INFO] [stdout] | [INFO] [stdout] 147 | types::Color::BLACK => self.get_moves_pawn_black() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_moves_pawn` with a similar name [INFO] [stdout] | [INFO] [stdout] 147 - types::Color::BLACK => self.get_moves_pawn_black() [INFO] [stdout] 147 + types::Color::BLACK => self.get_moves_pawn() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 195 | fn get_moves_knight(&self) -> Vec { [INFO] [stdout] | ---------------- expected `Vec` because of return type [INFO] [stdout] 196 | let mut moves: Vec = Vec::::new(); [INFO] [stdout] 197 | / for i in 0..64 { [INFO] [stdout] 198 | | [INFO] [stdout] 199 | | } [INFO] [stdout] | |_________^ expected `Vec`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found unit type `()` [INFO] [stdout] = note: `for` loops evaluate to unit type `()` [INFO] [stdout] help: consider returning a value here [INFO] [stdout] | [INFO] [stdout] 199 ~ } [INFO] [stdout] 200 + /* `Vec` value */ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board.rs:202:35 [INFO] [stdout] | [INFO] [stdout] 202 | fn get_moves_bishop(&self) -> Vec { [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^ expected `Vec`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board.rs:206:33 [INFO] [stdout] | [INFO] [stdout] 206 | fn get_moves_rook(&self) -> Vec { [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^ expected `Vec`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board.rs:210:34 [INFO] [stdout] | [INFO] [stdout] 210 | fn get_moves_queen(&self) -> Vec { [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^ expected `Vec`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board.rs:214:33 [INFO] [stdout] | [INFO] [stdout] 214 | fn get_moves_king(&self) -> Vec { [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^ expected `Vec`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Board` has no field named `white_occ` [INFO] [stdout] --> src/board.rs:277:9 [INFO] [stdout] | [INFO] [stdout] 277 | white_occ: 0u64, [INFO] [stdout] | ^^^^^^^^^ `Board` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `not_player`, `occ_opponent`, `occ_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Board` has no field named `black_occ` [INFO] [stdout] --> src/board.rs:278:9 [INFO] [stdout] | [INFO] [stdout] 278 | black_occ: 0u64, [INFO] [stdout] | ^^^^^^^^^ `Board` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `not_player`, `occ_opponent`, `occ_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `white_occ` [INFO] [stdout] --> src/board.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let white_occ = 0u64; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_white_occ` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/board.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | for n in 0..2 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/board.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | for m in 0..6 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0560, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rhess` (bin "rhess") due to 17 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a1c582f3f56633a83d2098835df17160b1d652d6dbd726e16dd05aee6f6844ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1c582f3f56633a83d2098835df17160b1d652d6dbd726e16dd05aee6f6844ab", kill_on_drop: false }` [INFO] [stdout] a1c582f3f56633a83d2098835df17160b1d652d6dbd726e16dd05aee6f6844ab