[INFO] cloning repository https://github.com/Joseph-Sharkey/ChessGame [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Joseph-Sharkey/ChessGame" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoseph-Sharkey%2FChessGame", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoseph-Sharkey%2FChessGame'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7004cc84c860d7a79f7d7028af3bc229e7311038 [INFO] checking Joseph-Sharkey/ChessGame against master#426a60abc213b28a7c7198e475476b6e650d871f for pr-129199 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoseph-Sharkey%2FChessGame" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Joseph-Sharkey/ChessGame on toolchain 426a60abc213b28a7c7198e475476b6e650d871f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+426a60abc213b28a7c7198e475476b6e650d871f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Joseph-Sharkey/ChessGame [INFO] finished tweaking git repo https://github.com/Joseph-Sharkey/ChessGame [INFO] tweaked toml for git repo https://github.com/Joseph-Sharkey/ChessGame written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Joseph-Sharkey/ChessGame 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" "+426a60abc213b28a7c7198e475476b6e650d871f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking Joseph-Sharkey/ChessGame against try#2c70eb47850052381670935f807d41647a7dc992 for pr-129199 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoseph-Sharkey%2FChessGame" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Joseph-Sharkey/ChessGame on toolchain 2c70eb47850052381670935f807d41647a7dc992 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c70eb47850052381670935f807d41647a7dc992" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Joseph-Sharkey/ChessGame [INFO] finished tweaking git repo https://github.com/Joseph-Sharkey/ChessGame [INFO] tweaked toml for git repo https://github.com/Joseph-Sharkey/ChessGame written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Joseph-Sharkey/ChessGame 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" "+2c70eb47850052381670935f807d41647a7dc992" "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] checking Joseph-Sharkey/ChessGame against try#2c70eb47850052381670935f807d41647a7dc992 for pr-129199 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoseph-Sharkey%2FChessGame" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Joseph-Sharkey/ChessGame on toolchain 2c70eb47850052381670935f807d41647a7dc992 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c70eb47850052381670935f807d41647a7dc992" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Joseph-Sharkey/ChessGame [INFO] finished tweaking git repo https://github.com/Joseph-Sharkey/ChessGame [INFO] tweaked toml for git repo https://github.com/Joseph-Sharkey/ChessGame written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Joseph-Sharkey/ChessGame 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" "+2c70eb47850052381670935f807d41647a7dc992" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+2c70eb47850052381670935f807d41647a7dc992" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8e20cf5d5078ce63a2e5f7c5080ecc6bcdd1a4942884ee15d2fc507b02fedb61 [INFO] running `Command { std: "docker" "start" "-a" "8e20cf5d5078ce63a2e5f7c5080ecc6bcdd1a4942884ee15d2fc507b02fedb61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8e20cf5d5078ce63a2e5f7c5080ecc6bcdd1a4942884ee15d2fc507b02fedb61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e20cf5d5078ce63a2e5f7c5080ecc6bcdd1a4942884ee15d2fc507b02fedb61", kill_on_drop: false }` [INFO] [stdout] 8e20cf5d5078ce63a2e5f7c5080ecc6bcdd1a4942884ee15d2fc507b02fedb61 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+2c70eb47850052381670935f807d41647a7dc992" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91db133cd8679680e06a51af560eca5b2895abfb62d6b361cf821abae9e648e9 [INFO] running `Command { std: "docker" "start" "-a" "91db133cd8679680e06a51af560eca5b2895abfb62d6b361cf821abae9e648e9", kill_on_drop: false }` [INFO] [stderr] Checking chessGame v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `:`, `@`, or `|`, found `)` [INFO] [stdout] --> src/main.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | fn eq(&self, &Rhs) -> bool {} [INFO] [stdout] | ^ expected one of `:`, `@`, or `|` [INFO] [stdout] | [INFO] [stdout] = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) [INFO] [stdout] help: if this is a parameter name, give it a type [INFO] [stdout] | [INFO] [stdout] 48 | fn eq(&self, Rhs: &TypeName) -> bool {} [INFO] [stdout] | ~~~~~~~~~~~~~~ [INFO] [stdout] help: if this is a type, explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 48 | fn eq(&self, _: &Rhs) -> bool {} [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `,` [INFO] [stdout] --> src/main.rs:226:22 [INFO] [stdout] | [INFO] [stdout] 226 | }, [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `:`, `@`, or `|`, found `)` [INFO] [stdout] --> src/main.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | fn eq(&self, &Rhs) -> bool {} [INFO] [stdout] | ^ expected one of `:`, `@`, or `|` [INFO] [stdout] | [INFO] [stdout] = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) [INFO] [stdout] help: if this is a parameter name, give it a type [INFO] [stdout] | [INFO] [stdout] 48 | fn eq(&self, Rhs: &TypeName) -> bool {} [INFO] [stdout] | ~~~~~~~~~~~~~~ [INFO] [stdout] help: if this is a type, explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 48 | fn eq(&self, _: &Rhs) -> bool {} [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `,` [INFO] [stdout] --> src/main.rs:226:22 [INFO] [stdout] | [INFO] [stdout] 226 | }, [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `:` [INFO] [stdout] --> src/main.rs:248:18 [INFO] [stdout] | [INFO] [stdout] 248 | yMove: usize = getInput("select square on y axis with piece that you want to move: 1-8: ").parse::().unwrap(); [INFO] [stdout] | ^ expected identifier [INFO] [stdout] | [INFO] [stdout] = note: type ascription syntax has been removed, see issue #101728 [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 248 | let yMove: usize = getInput("select square on y axis with piece that you want to move: 1-8: ").parse::().unwrap(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `:` [INFO] [stdout] --> src/main.rs:280:21 [INFO] [stdout] | [INFO] [stdout] 280 | distance: i32 = getInput("select your distance: ").parse::().unwrap(); [INFO] [stdout] | ^ expected identifier [INFO] [stdout] | [INFO] [stdout] = note: type ascription syntax has been removed, see issue #101728 [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 280 | let distance: i32 = getInput("select your distance: ").parse::().unwrap(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `:` [INFO] [stdout] --> src/main.rs:248:18 [INFO] [stdout] | [INFO] [stdout] 248 | yMove: usize = getInput("select square on y axis with piece that you want to move: 1-8: ").parse::().unwrap(); [INFO] [stdout] | ^ expected identifier [INFO] [stdout] | [INFO] [stdout] = note: type ascription syntax has been removed, see issue #101728 [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 248 | let yMove: usize = getInput("select square on y axis with piece that you want to move: 1-8: ").parse::().unwrap(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `:` [INFO] [stdout] --> src/main.rs:280:21 [INFO] [stdout] | [INFO] [stdout] 280 | distance: i32 = getInput("select your distance: ").parse::().unwrap(); [INFO] [stdout] | ^ expected identifier [INFO] [stdout] | [INFO] [stdout] = note: type ascription syntax has been removed, see issue #101728 [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 280 | let distance: i32 = getInput("select your distance: ").parse::().unwrap(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:48:27 [INFO] [stdout] | [INFO] [stdout] 48 | fn eq(&self, &Rhs) -> 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/main.rs:128:30 [INFO] [stdout] | [INFO] [stdout] 128 | fn isCheckMate(&self) -> 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/main.rs:230:24 [INFO] [stdout] | [INFO] [stdout] 230 | } else { [INFO] [stdout] | ________________________^ [INFO] [stdout] 231 | | [INFO] [stdout] 232 | | } [INFO] [stdout] | |_________________^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:234:20 [INFO] [stdout] | [INFO] [stdout] 234 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 235 | | [INFO] [stdout] 236 | | } [INFO] [stdout] | |_____________^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:48:27 [INFO] [stdout] | [INFO] [stdout] 48 | fn eq(&self, &Rhs) -> 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] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut ended: bool = false; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:128:30 [INFO] [stdout] | [INFO] [stdout] 128 | fn isCheckMate(&self) -> 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/main.rs:230:24 [INFO] [stdout] | [INFO] [stdout] 230 | } else { [INFO] [stdout] | ________________________^ [INFO] [stdout] 231 | | [INFO] [stdout] 232 | | } [INFO] [stdout] | |_________________^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.value` which is behind a shared reference [INFO] [stdout] --> src/main.rs:65:20 [INFO] [stdout] | [INFO] [stdout] 65 | value: self.value, [INFO] [stdout] | ^^^^^^^^^^ move occurs because `self.value` has type `ChessPiece`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `ChessPiece` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/main.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | enum ChessPiece { [INFO] [stdout] | ^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 65 | value: self.value, [INFO] [stdout] | ---------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:234:20 [INFO] [stdout] | [INFO] [stdout] 234 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 235 | | [INFO] [stdout] 236 | | } [INFO] [stdout] | |_____________^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Pa` is named the same as one of the variants of the type `ChessPiece` [INFO] [stdout] --> src/main.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | ^^ help: to match on the variant, qualify the path: `ChessPiece::Pa` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Ro` is named the same as one of the variants of the type `ChessPiece` [INFO] [stdout] --> src/main.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | Ro => "Ro", [INFO] [stdout] | ^^ help: to match on the variant, qualify the path: `ChessPiece::Ro` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Kn` is named the same as one of the variants of the type `ChessPiece` [INFO] [stdout] --> src/main.rs:115:21 [INFO] [stdout] | [INFO] [stdout] 115 | Kn => "Kn", [INFO] [stdout] | ^^ help: to match on the variant, qualify the path: `ChessPiece::Kn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Bi` is named the same as one of the variants of the type `ChessPiece` [INFO] [stdout] --> src/main.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | Bi => "Bi", [INFO] [stdout] | ^^ help: to match on the variant, qualify the path: `ChessPiece::Bi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Qu` is named the same as one of the variants of the type `ChessPiece` [INFO] [stdout] --> src/main.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | Qu => "Qu", [INFO] [stdout] | ^^ help: to match on the variant, qualify the path: `ChessPiece::Qu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Ki` is named the same as one of the variants of the type `ChessPiece` [INFO] [stdout] --> src/main.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | Ki => "Ki", [INFO] [stdout] | ^^ help: to match on the variant, qualify the path: `ChessPiece::Ki` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `O` is named the same as one of the variants of the type `ChessPiece` [INFO] [stdout] --> src/main.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 119 | O => "0" [INFO] [stdout] | ^ help: to match on the variant, qualify the path: `ChessPiece::O` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | -- matches any value [INFO] [stdout] 114 | Ro => "Ro", [INFO] [stdout] | ^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:115:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | -- matches any value [INFO] [stdout] 114 | Ro => "Ro", [INFO] [stdout] 115 | Kn => "Kn", [INFO] [stdout] | ^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | -- matches any value [INFO] [stdout] ... [INFO] [stdout] 116 | Bi => "Bi", [INFO] [stdout] | ^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | -- matches any value [INFO] [stdout] ... [INFO] [stdout] 117 | Qu => "Qu", [INFO] [stdout] | ^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | -- matches any value [INFO] [stdout] ... [INFO] [stdout] 118 | Ki => "Ki", [INFO] [stdout] | ^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | -- matches any value [INFO] [stdout] ... [INFO] [stdout] 119 | O => "0" [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Pa` [INFO] [stdout] --> src/main.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_Pa` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Ro` [INFO] [stdout] --> src/main.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | Ro => "Ro", [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_Ro` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Kn` [INFO] [stdout] --> src/main.rs:115:21 [INFO] [stdout] | [INFO] [stdout] 115 | Kn => "Kn", [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_Kn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Bi` [INFO] [stdout] --> src/main.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | Bi => "Bi", [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_Bi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Qu` [INFO] [stdout] --> src/main.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | Qu => "Qu", [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_Qu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Ki` [INFO] [stdout] --> src/main.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | Ki => "Ki", [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_Ki` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `O` [INFO] [stdout] --> src/main.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 119 | O => "0" [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_O` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.boardData` which is behind a shared reference [INFO] [stdout] --> src/main.rs:110:20 [INFO] [stdout] | [INFO] [stdout] 110 | for row in self.boardData { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `self.boardData` moved due to this implicit call to `.into_iter()` [INFO] [stdout] | move occurs because `self.boardData` has type `Vec>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `self.boardData` [INFO] [stdout] --> /rustc/2c70eb47850052381670935f807d41647a7dc992/library/core/src/iter/traits/collect.rs:346:18 [INFO] [stdout] help: consider iterating over a slice of the `Vec>`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 110 | for row in &self.boardData { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&_` not covered [INFO] [stdout] --> src/main.rs:292:19 [INFO] [stdout] | [INFO] [stdout] 292 | match direction { [INFO] [stdout] | ^^^^^^^^^ pattern `&_` not covered [INFO] [stdout] | [INFO] [stdout] = note: the matched value is of type `&str` [INFO] [stdout] = note: `&str` cannot be matched exhaustively, so a wildcard `_` is necessary [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown [INFO] [stdout] | [INFO] [stdout] 300 ~ "backwards left diagonal" => {newYCoord -= distance as usize; newXCoord -= distance as usize}, [INFO] [stdout] 301 ~ &_ => todo!() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&_` not covered [INFO] [stdout] --> src/main.rs:303:19 [INFO] [stdout] | [INFO] [stdout] 303 | match direction { [INFO] [stdout] | ^^^^^^^^^ pattern `&_` not covered [INFO] [stdout] | [INFO] [stdout] = note: the matched value is of type `&str` [INFO] [stdout] = note: `&str` cannot be matched exhaustively, so a wildcard `_` is necessary [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown [INFO] [stdout] | [INFO] [stdout] 311 ~ "backwards left diagonal" => {newYCoord += distance as usize; newXCoord -= distance as usize}, [INFO] [stdout] 312 + &_ => todo!() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut ended: bool = false; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `chessGame` (bin "chessGame" test) due to 20 previous errors; 14 warnings emitted [INFO] [stdout] error: aborting due to 19 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0004, E0170, E0308, E0507. [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.value` which is behind a shared reference [INFO] [stdout] --> src/main.rs:65:20 [INFO] [stdout] | [INFO] [stdout] 65 | value: self.value, [INFO] [stdout] | ^^^^^^^^^^ move occurs because `self.value` has type `ChessPiece`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `ChessPiece` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/main.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | enum ChessPiece { [INFO] [stdout] | ^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 65 | value: self.value, [INFO] [stdout] | ---------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Pa` is named the same as one of the variants of the type `ChessPiece` [INFO] [stdout] --> src/main.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | ^^ help: to match on the variant, qualify the path: `ChessPiece::Pa` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Ro` is named the same as one of the variants of the type `ChessPiece` [INFO] [stdout] --> src/main.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | Ro => "Ro", [INFO] [stdout] | ^^ help: to match on the variant, qualify the path: `ChessPiece::Ro` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Kn` is named the same as one of the variants of the type `ChessPiece` [INFO] [stdout] --> src/main.rs:115:21 [INFO] [stdout] | [INFO] [stdout] 115 | Kn => "Kn", [INFO] [stdout] | ^^ help: to match on the variant, qualify the path: `ChessPiece::Kn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Bi` is named the same as one of the variants of the type `ChessPiece` [INFO] [stdout] --> src/main.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | Bi => "Bi", [INFO] [stdout] | ^^ help: to match on the variant, qualify the path: `ChessPiece::Bi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Qu` is named the same as one of the variants of the type `ChessPiece` [INFO] [stdout] --> src/main.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | Qu => "Qu", [INFO] [stdout] | ^^ help: to match on the variant, qualify the path: `ChessPiece::Qu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Ki` is named the same as one of the variants of the type `ChessPiece` [INFO] [stdout] --> src/main.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | Ki => "Ki", [INFO] [stdout] | ^^ help: to match on the variant, qualify the path: `ChessPiece::Ki` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `O` is named the same as one of the variants of the type `ChessPiece` [INFO] [stdout] --> src/main.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 119 | O => "0" [INFO] [stdout] | ^ help: to match on the variant, qualify the path: `ChessPiece::O` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | -- matches any value [INFO] [stdout] 114 | Ro => "Ro", [INFO] [stdout] | ^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:115:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | -- matches any value [INFO] [stdout] 114 | Ro => "Ro", [INFO] [stdout] 115 | Kn => "Kn", [INFO] [stdout] | ^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | -- matches any value [INFO] [stdout] ... [INFO] [stdout] 116 | Bi => "Bi", [INFO] [stdout] | ^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | -- matches any value [INFO] [stdout] ... [INFO] [stdout] 117 | Qu => "Qu", [INFO] [stdout] | ^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | -- matches any value [INFO] [stdout] ... [INFO] [stdout] 118 | Ki => "Ki", [INFO] [stdout] | ^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | -- matches any value [INFO] [stdout] ... [INFO] [stdout] 119 | O => "0" [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Pa` [INFO] [stdout] --> src/main.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | Pa => "Pa", [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_Pa` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Ro` [INFO] [stdout] --> src/main.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | Ro => "Ro", [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_Ro` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Kn` [INFO] [stdout] --> src/main.rs:115:21 [INFO] [stdout] | [INFO] [stdout] 115 | Kn => "Kn", [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_Kn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Bi` [INFO] [stdout] --> src/main.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | Bi => "Bi", [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_Bi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Qu` [INFO] [stdout] --> src/main.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | Qu => "Qu", [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_Qu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Ki` [INFO] [stdout] --> src/main.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | Ki => "Ki", [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_Ki` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `O` [INFO] [stdout] --> src/main.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 119 | O => "0" [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_O` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.boardData` which is behind a shared reference [INFO] [stdout] --> src/main.rs:110:20 [INFO] [stdout] | [INFO] [stdout] 110 | for row in self.boardData { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `self.boardData` moved due to this implicit call to `.into_iter()` [INFO] [stdout] | move occurs because `self.boardData` has type `Vec>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `self.boardData` [INFO] [stdout] --> /rustc/2c70eb47850052381670935f807d41647a7dc992/library/core/src/iter/traits/collect.rs:346:18 [INFO] [stdout] help: consider iterating over a slice of the `Vec>`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 110 | for row in &self.boardData { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&_` not covered [INFO] [stdout] --> src/main.rs:292:19 [INFO] [stdout] | [INFO] [stdout] 292 | match direction { [INFO] [stdout] | ^^^^^^^^^ pattern `&_` not covered [INFO] [stdout] | [INFO] [stdout] = note: the matched value is of type `&str` [INFO] [stdout] = note: `&str` cannot be matched exhaustively, so a wildcard `_` is necessary [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown [INFO] [stdout] | [INFO] [stdout] 300 ~ "backwards left diagonal" => {newYCoord -= distance as usize; newXCoord -= distance as usize}, [INFO] [stdout] 301 ~ &_ => todo!() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&_` not covered [INFO] [stdout] --> src/main.rs:303:19 [INFO] [stdout] | [INFO] [stdout] 303 | match direction { [INFO] [stdout] | ^^^^^^^^^ pattern `&_` not covered [INFO] [stdout] | [INFO] [stdout] = note: the matched value is of type `&str` [INFO] [stdout] = note: `&str` cannot be matched exhaustively, so a wildcard `_` is necessary [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown [INFO] [stdout] | [INFO] [stdout] 311 ~ "backwards left diagonal" => {newYCoord += distance as usize; newXCoord -= distance as usize}, [INFO] [stdout] 312 + &_ => todo!() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0170, E0308, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chessGame` (bin "chessGame") due to 20 previous errors; 14 warnings emitted [INFO] running `Command { std: "docker" "inspect" "91db133cd8679680e06a51af560eca5b2895abfb62d6b361cf821abae9e648e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91db133cd8679680e06a51af560eca5b2895abfb62d6b361cf821abae9e648e9", kill_on_drop: false }` [INFO] [stdout] 91db133cd8679680e06a51af560eca5b2895abfb62d6b361cf821abae9e648e9