[INFO] cloning repository https://github.com/shubhu121/chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shubhu121/chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshubhu121%2Fchess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshubhu121%2Fchess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bc5fe2e754fe934e44094b6c5ac074511686f0da [INFO] checking shubhu121/chess/bc5fe2e754fe934e44094b6c5ac074511686f0da against master#021fc25b7a48f6051bee1e1f06c7a277e4de1cc9 for pr-151510 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshubhu121%2Fchess" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/shubhu121/chess [INFO] finished tweaking git repo https://github.com/shubhu121/chess [INFO] tweaked toml for git repo https://github.com/shubhu121/chess written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/shubhu121/chess on toolchain 021fc25b7a48f6051bee1e1f06c7a277e4de1cc9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+021fc25b7a48f6051bee1e1f06c7a277e4de1cc9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/shubhu121/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" "+021fc25b7a48f6051bee1e1f06c7a277e4de1cc9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+021fc25b7a48f6051bee1e1f06c7a277e4de1cc9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0a581cf2b16a7bc68899673a85827756625192adf7d623ee9ea29d4d3f13beac [INFO] running `Command { std: "docker" "start" "-a" "0a581cf2b16a7bc68899673a85827756625192adf7d623ee9ea29d4d3f13beac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0a581cf2b16a7bc68899673a85827756625192adf7d623ee9ea29d4d3f13beac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a581cf2b16a7bc68899673a85827756625192adf7d623ee9ea29d4d3f13beac", kill_on_drop: false }` [INFO] [stdout] 0a581cf2b16a7bc68899673a85827756625192adf7d623ee9ea29d4d3f13beac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+021fc25b7a48f6051bee1e1f06c7a277e4de1cc9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 97b6338da9fce350917fb8bd8c5144428bd942ae52c02fbe6dc35c9ed3de4517 [INFO] running `Command { std: "docker" "start" "-a" "97b6338da9fce350917fb8bd8c5144428bd942ae52c02fbe6dc35c9ed3de4517", kill_on_drop: false }` [INFO] [stderr] Checking chess_engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `crossterm` [INFO] [stdout] --> src/ui.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crossterm::{ [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `crossterm` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `crossterm`, use `cargo add crossterm` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crossterm` [INFO] [stdout] --> src/ui.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crossterm::{ [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `crossterm` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `crossterm`, use `cargo add crossterm` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/auth.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/gamesave.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `crossterm` [INFO] [stdout] --> src/ui.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crossterm::{ [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `crossterm` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `crossterm`, use `cargo add crossterm` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crossterm` [INFO] [stdout] --> src/ui.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crossterm::{ [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `crossterm` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `crossterm`, use `cargo add crossterm` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/auth.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/gamesave.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/auth.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[serde(skip_serializing)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tips.rs:213:16 [INFO] [stdout] | [INFO] [stdout] 213 | if (to_sq == 27 || to_sq == 28 || to_sq == 35 || to_sq == 36) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 213 - if (to_sq == 27 || to_sq == 28 || to_sq == 35 || to_sq == 36) { [INFO] [stdout] 213 + if to_sq == 27 || to_sq == 28 || to_sq == 35 || to_sq == 36 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/auth.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[serde(skip_serializing)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/auth.rs:80:36 [INFO] [stdout] | [INFO] [stdout] 80 | if let Ok(users) = serde_json::from_str::>(&content) { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/auth.rs:88:27 [INFO] [stdout] | [INFO] [stdout] 88 | if let Ok(json) = serde_json::to_string_pretty(&self.users) { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tips.rs:213:16 [INFO] [stdout] | [INFO] [stdout] 213 | if (to_sq == 27 || to_sq == 28 || to_sq == 35 || to_sq == 36) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 213 - if (to_sq == 27 || to_sq == 28 || to_sq == 35 || to_sq == 36) { [INFO] [stdout] 213 + if to_sq == 27 || to_sq == 28 || to_sq == 35 || to_sq == 36 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/gamesave.rs:60:15 [INFO] [stdout] | [INFO] [stdout] 60 | match serde_json::to_string_pretty(game) { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/auth.rs:80:36 [INFO] [stdout] | [INFO] [stdout] 80 | if let Ok(users) = serde_json::from_str::>(&content) { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/gamesave.rs:79:47 [INFO] [stdout] | [INFO] [stdout] 79 | ... if let Ok(game) = serde_json::from_str::(&content) { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/auth.rs:88:27 [INFO] [stdout] | [INFO] [stdout] 88 | if let Ok(json) = serde_json::to_string_pretty(&self.users) { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/gamesave.rs:97:34 [INFO] [stdout] | [INFO] [stdout] 97 | Ok(content) => match serde_json::from_str::(&content) { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/gamesave.rs:60:15 [INFO] [stdout] | [INFO] [stdout] 60 | match serde_json::to_string_pretty(game) { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/gamesave.rs:79:47 [INFO] [stdout] | [INFO] [stdout] 79 | ... if let Ok(game) = serde_json::from_str::(&content) { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/gamesave.rs:97:34 [INFO] [stdout] | [INFO] [stdout] 97 | Ok(content) => match serde_json::from_str::(&content) { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `back_rank` [INFO] [stdout] --> src/tips.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let back_rank = if color == WHITE { 0 } else { 7 }; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_back_rank` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `back_rank` [INFO] [stdout] --> src/tips.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let back_rank = if color == WHITE { 0 } else { 7 }; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_back_rank` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:246:50 [INFO] [stdout] | [INFO] [stdout] 246 | fn run_game_loop(auth_manager: &mut AuthManager, mut user: User) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chess_engine` (bin "chess_engine") due to 10 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:246:50 [INFO] [stdout] | [INFO] [stdout] 246 | fn run_game_loop(auth_manager: &mut AuthManager, mut user: User) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chess_engine` (bin "chess_engine" test) due to 10 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "97b6338da9fce350917fb8bd8c5144428bd942ae52c02fbe6dc35c9ed3de4517", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97b6338da9fce350917fb8bd8c5144428bd942ae52c02fbe6dc35c9ed3de4517", kill_on_drop: false }` [INFO] [stdout] 97b6338da9fce350917fb8bd8c5144428bd942ae52c02fbe6dc35c9ed3de4517