[INFO] cloning repository https://github.com/DenSev/rust-chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DenSev/rust-chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDenSev%2Frust-chess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDenSev%2Frust-chess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4a3b7afe8b86d7e15b60e7afe7a3179ce93ce29d [INFO] checking DenSev/rust-chess against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDenSev%2Frust-chess" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DenSev/rust-chess on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/DenSev/rust-chess [INFO] finished tweaking git repo https://github.com/DenSev/rust-chess [INFO] tweaked toml for git repo https://github.com/DenSev/rust-chess written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/DenSev/rust-chess 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] da8937665721654d4e762fe9eab0bf4829ca0d7454ad21f8aafd79f4c6b9d3bf [INFO] running `Command { std: "docker" "start" "-a" "da8937665721654d4e762fe9eab0bf4829ca0d7454ad21f8aafd79f4c6b9d3bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "da8937665721654d4e762fe9eab0bf4829ca0d7454ad21f8aafd79f4c6b9d3bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da8937665721654d4e762fe9eab0bf4829ca0d7454ad21f8aafd79f4c6b9d3bf", kill_on_drop: false }` [INFO] [stdout] da8937665721654d4e762fe9eab0bf4829ca0d7454ad21f8aafd79f4c6b9d3bf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7613b04032bf5abc4899f7812b069a0da54405920b490ca4737558fe44216749 [INFO] running `Command { std: "docker" "start" "-a" "7613b04032bf5abc4899f7812b069a0da54405920b490ca4737558fe44216749", kill_on_drop: false }` [INFO] [stderr] Checking rust-chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Option` is imported redundantly [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:124:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Option` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Option` is imported redundantly [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:124:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Option` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `insert` exists for struct `HashMap`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:255:28 [INFO] [stdout] | [INFO] [stdout] 255 | pieces.insert(Pos { x: j, y: i }, cell_at); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 328 | pub struct Pos { [INFO] [stdout] | -------------- doesn't satisfy `Pos: Hash` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Pos: Hash` [INFO] [stdout] help: consider annotating `Pos` with `#[derive(Hash)]` [INFO] [stdout] | [INFO] [stdout] 328 + #[derive(Hash)] [INFO] [stdout] 329 | pub struct Pos { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `insert` exists for struct `HashMap`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:255:28 [INFO] [stdout] | [INFO] [stdout] 255 | pieces.insert(Pos { x: j, y: i }, cell_at); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 328 | pub struct Pos { [INFO] [stdout] | -------------- doesn't satisfy `Pos: Hash` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Pos: Hash` [INFO] [stdout] help: consider annotating `Pos` with `#[derive(Hash)]` [INFO] [stdout] | [INFO] [stdout] 328 + #[derive(Hash)] [INFO] [stdout] 329 | pub struct Pos { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:279:35 [INFO] [stdout] | [INFO] [stdout] 279 | if positions.contains(opposing_king_pos) { [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^ expected `&_`, found `Pos` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `Pos` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/slice/mod.rs:2520:12 [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 279 | if positions.contains(&opposing_king_pos) { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:298:34 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn check_board(&self) -> Option { [INFO] [stdout] | ----------- ^^^^^^^^^^^^^ expected `Option`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:279:35 [INFO] [stdout] | [INFO] [stdout] 279 | if positions.contains(opposing_king_pos) { [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^ expected `&_`, found `Pos` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `Pos` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/slice/mod.rs:2520:12 [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 279 | if positions.contains(&opposing_king_pos) { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:298:34 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn check_board(&self) -> Option { [INFO] [stdout] | ----------- ^^^^^^^^^^^^^ expected `Option`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [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] error: aborting due to 3 previous errors; 1 warning emitted [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] [stderr] error: could not compile `rust-chess` (lib) due to 4 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-chess` (lib test) due to 4 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "7613b04032bf5abc4899f7812b069a0da54405920b490ca4737558fe44216749", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7613b04032bf5abc4899f7812b069a0da54405920b490ca4737558fe44216749", kill_on_drop: false }` [INFO] [stdout] 7613b04032bf5abc4899f7812b069a0da54405920b490ca4737558fe44216749