[INFO] cloning repository https://github.com/dhl-png/chess-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dhl-png/chess-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhl-png%2Fchess-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhl-png%2Fchess-rs'... [INFO] [stderr] error: copy-fd: write returned: No space left on device [INFO] [stderr] fatal: cannot copy '/usr/share/git-core/templates/hooks/pre-merge-commit.sample' to '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhl-png%2Fchess-rs/hooks/pre-merge-commit.sample': No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [INFO] cloning repository https://github.com/dhl-png/chess-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dhl-png/chess-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhl-png%2Fchess-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhl-png%2Fchess-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4957ecf4a29e6dfbf0b02b61fcb66eadc872c775 [INFO] checking dhl-png/chess-rs against master#b56aaec52bc0fa35591a872fb4aac81f606e265c for pr-122661-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhl-png%2Fchess-rs" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dhl-png/chess-rs [INFO] finished tweaking git repo https://github.com/dhl-png/chess-rs [INFO] tweaked toml for git repo https://github.com/dhl-png/chess-rs written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dhl-png/chess-rs on toolchain b56aaec52bc0fa35591a872fb4aac81f606e265c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b56aaec52bc0fa35591a872fb4aac81f606e265c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dhl-png/chess-rs 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" "+b56aaec52bc0fa35591a872fb4aac81f606e265c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+b56aaec52bc0fa35591a872fb4aac81f606e265c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1412c4e8593bd7edcd5a7190d4d003f7a0d940be6ea16f2227c69498c74ecd49 [INFO] running `Command { std: "docker" "start" "-a" "1412c4e8593bd7edcd5a7190d4d003f7a0d940be6ea16f2227c69498c74ecd49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1412c4e8593bd7edcd5a7190d4d003f7a0d940be6ea16f2227c69498c74ecd49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1412c4e8593bd7edcd5a7190d4d003f7a0d940be6ea16f2227c69498c74ecd49", kill_on_drop: false }` [INFO] [stdout] 1412c4e8593bd7edcd5a7190d4d003f7a0d940be6ea16f2227c69498c74ecd49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+b56aaec52bc0fa35591a872fb4aac81f606e265c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9882d91fde190b05a1d2293d6dd6f6a16b45eea7e7097fd8201f86eb4979a17 [INFO] running `Command { std: "docker" "start" "-a" "e9882d91fde190b05a1d2293d6dd6f6a16b45eea7e7097fd8201f86eb4979a17", kill_on_drop: false }` [INFO] [stderr] Checking chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/lib.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/lib.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:199:23 [INFO] [stdout] | [INFO] [stdout] 199 | pub piece: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 199 | pub piece: Option, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:199:23 [INFO] [stdout] | [INFO] [stdout] 199 | pub piece: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 199 | pub piece: Option, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0185]: method `new` has a `&self` declaration in the impl, but not in the trait [INFO] [stdout] --> src/lib.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 136 | fn new(piece_color: Color) -> Self; [INFO] [stdout] | ----------------------------------- trait method declared without `&self` [INFO] [stdout] ... [INFO] [stdout] 154 | fn new(&self,color: Color) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&self` used in impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0185]: method `new` has a `&self` declaration in the impl, but not in the trait [INFO] [stdout] --> src/lib.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 136 | fn new(piece_color: Color) -> Self; [INFO] [stdout] | ----------------------------------- trait method declared without `&self` [INFO] [stdout] ... [INFO] [stdout] 154 | fn new(&self,color: Color) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&self` used in impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:202:30 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn new(piece: Option) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 202 | pub fn new(piece: Option) -> Self { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:206:44 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn insert(&mut self, piece: Option) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 206 | pub fn insert(&mut self, piece: Option) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:202:30 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn new(piece: Option) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 202 | pub fn new(piece: Option) -> Self { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:206:44 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn insert(&mut self, piece: Option) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 206 | pub fn insert(&mut self, piece: Option) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `color` on type `&Self` [INFO] [stdout] --> src/lib.rs:140:14 [INFO] [stdout] | [INFO] [stdout] 135 | trait Piece { [INFO] [stdout] | ----------- type parameter 'Self' declared here [INFO] [stdout] ... [INFO] [stdout] 140 | self.color [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `color` on type `&Self` [INFO] [stdout] --> src/lib.rs:140:14 [INFO] [stdout] | [INFO] [stdout] 135 | trait Piece { [INFO] [stdout] | ----------- type parameter 'Self' declared here [INFO] [stdout] ... [INFO] [stdout] 140 | self.color [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:150:66 [INFO] [stdout] | [INFO] [stdout] 150 | fn can_enpessant(&self, position: Position, board: Board) -> bool { [INFO] [stdout] | ------------- ^^^^ expected `bool`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:150:66 [INFO] [stdout] | [INFO] [stdout] 150 | fn can_enpessant(&self, position: Position, board: Board) -> bool { [INFO] [stdout] | ------------- ^^^^ expected `bool`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:161:14 [INFO] [stdout] | [INFO] [stdout] 161 | vec![Position::new(0,3)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected `Position`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Position` [INFO] [stdout] found enum `Result` [INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 161 | vec![Position::new(0,3).expect("REASON")] [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:161:14 [INFO] [stdout] | [INFO] [stdout] 161 | vec![Position::new(0,3)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected `Position`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Position` [INFO] [stdout] found enum `Result` [INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 161 | vec![Position::new(0,3).expect("REASON")] [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:175:55 [INFO] [stdout] | [INFO] [stdout] 175 | fn get_moves(position:Position, board: &Board) -> 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] help: consider returning the local binding `possible_moves` [INFO] [stdout] | [INFO] [stdout] 176 ~ let mut possible_moves: Vec = Vec::new(); [INFO] [stdout] 177 + possible_moves [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:175:55 [INFO] [stdout] | [INFO] [stdout] 175 | fn get_moves(position:Position, board: &Board) -> 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] help: consider returning the local binding `possible_moves` [INFO] [stdout] | [INFO] [stdout] 176 ~ let mut possible_moves: Vec = Vec::new(); [INFO] [stdout] 177 + possible_moves [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0185, E0308, E0609, E0782. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0185`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0185, E0308, E0609, E0782. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0185`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chess` (lib) due to 8 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `chess` (lib test) due to 8 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "e9882d91fde190b05a1d2293d6dd6f6a16b45eea7e7097fd8201f86eb4979a17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9882d91fde190b05a1d2293d6dd6f6a16b45eea7e7097fd8201f86eb4979a17", kill_on_drop: false }` [INFO] [stdout] e9882d91fde190b05a1d2293d6dd6f6a16b45eea7e7097fd8201f86eb4979a17