[INFO] cloning repository https://github.com/dhl-png/chess-rs
[INFO] running `"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"`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhl-png%2Fchess-rs'...
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] 4957ecf4a29e6dfbf0b02b61fcb66eadc872c775
[INFO] testing dhl-png/chess-rs against 1.100.0-beta.13+cargoflags=--release for beta-release-1.101-2
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhl-png%2Fchess-rs" "/workspace/builds/worker-6-tc1/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-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-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/dhl-png/chess-rs on toolchain 1.100.0-beta.13
[INFO] running `"cargo" "+1.100.0-beta.13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps"`
[INFO] crate git repo https://github.com/dhl-png/chess-rs already has a lockfile, it will not be regenerated
[INFO] running `"cargo" "+1.100.0-beta.13" "fetch" "--manifest-path" "Cargo.toml"`
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:13253766d39459fde29cea4e7c35a3fe37c2c19b4a224f71f2c27711c2837d36" "sleep" "infinity"`
[INFO] [stdout] 392bbe31fa094c6c0a2e6028072687c2f7e6d71cf915934ebb41ebe2580f17fe
[INFO] running `"docker" "start" "392bbe31fa094c6c0a2e6028072687c2f7e6d71cf915934ebb41ebe2580f17fe"`
[INFO] running `"docker" "inspect" "392bbe31fa094c6c0a2e6028072687c2f7e6d71cf915934ebb41ebe2580f17fe"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "392bbe31fa094c6c0a2e6028072687c2f7e6d71cf915934ebb41ebe2580f17fe" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "metadata" "--no-deps" "--format-version=1"`
[INFO] running `"docker" "inspect" "392bbe31fa094c6c0a2e6028072687c2f7e6d71cf915934ebb41ebe2580f17fe"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "392bbe31fa094c6c0a2e6028072687c2f7e6d71cf915934ebb41ebe2580f17fe" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "build" "--frozen" "--message-format=json" "--release"`
[INFO] [stderr]    Compiling 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)]` (part of `#[warn(unused)]`) 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<Piece>,
[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<dyn Piece>,
[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[E0782]: expected a type, found a trait
[INFO] [stdout]    --> src/lib.rs:202:30
[INFO] [stdout]     |
[INFO] [stdout] 202 |     pub fn new(piece: Option<Piece>) -> 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<dyn Piece>) -> 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<Piece>) {
[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<dyn Piece>) {
[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[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<Position, SelectError>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Position`
[INFO] [stdout]                  found enum `Result<Position, SelectError>`
[INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result<Position, SelectError>` 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<Position> {
[INFO] [stdout]     |        ---------                                      ^^^^^^^^^^^^^ expected `Vec<Position>`, found `()`
[INFO] [stdout]     |        |
[INFO] [stdout]     |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Vec<Position>`
[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<Position> = 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] [stderr] error: could not compile `chess` (lib) due to 8 previous errors; 1 warning emitted
[INFO] running `"docker" "inspect" "392bbe31fa094c6c0a2e6028072687c2f7e6d71cf915934ebb41ebe2580f17fe"`
[INFO] running `"docker" "rm" "-f" "392bbe31fa094c6c0a2e6028072687c2f7e6d71cf915934ebb41ebe2580f17fe"`
[INFO] [stdout] 392bbe31fa094c6c0a2e6028072687c2f7e6d71cf915934ebb41ebe2580f17fe
