[INFO] cloning repository https://github.com/landchad/chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/landchad/chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flandchad%2Fchess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flandchad%2Fchess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e7cacb4e36d4646b6ef086c1e634a8c314223744 [INFO] checking landchad/chess against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flandchad%2Fchess" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/landchad/chess on toolchain 024378d9203a4009ed73d6db2681b88a8d74ce7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/landchad/chess [INFO] finished tweaking git repo https://github.com/landchad/chess [INFO] tweaked toml for git repo https://github.com/landchad/chess written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8ce8eb3c455e3e0e2098b6331b7a2edca0d6f4c4dff7efbbe0fd974d1befc912 [INFO] running `Command { std: "docker" "start" "-a" "8ce8eb3c455e3e0e2098b6331b7a2edca0d6f4c4dff7efbbe0fd974d1befc912", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ce8eb3c455e3e0e2098b6331b7a2edca0d6f4c4dff7efbbe0fd974d1befc912", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ce8eb3c455e3e0e2098b6331b7a2edca0d6f4c4dff7efbbe0fd974d1befc912", kill_on_drop: false }` [INFO] [stdout] 8ce8eb3c455e3e0e2098b6331b7a2edca0d6f4c4dff7efbbe0fd974d1befc912 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 771157f1670fa376f19431daae8ad225d6e204cfaab613ce2b8457973eb672fd [INFO] running `Command { std: "docker" "start" "-a" "771157f1670fa376f19431daae8ad225d6e204cfaab613ce2b8457973eb672fd", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.145 [INFO] [stderr] Compiling proc-macro2 v1.0.59 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling log v0.4.18 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling openssl-sys v0.9.88 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Compiling tokio v1.28.2 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.54 [INFO] [stderr] Compiling serde v1.0.163 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling signal-hook v0.3.15 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking form_urlencoded v1.2.0 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking encoding_rs v0.8.32 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking base64 v0.21.2 [INFO] [stderr] Checking ipnet v2.7.2 [INFO] [stderr] Checking indexmap v1.9.3 [INFO] [stderr] Checking idna v0.4.0 [INFO] [stderr] Compiling syn v2.0.18 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking url v2.4.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking parking_lot_core v0.9.7 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking crossterm v0.21.0 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.163 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking futures-util v0.3.28 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.19 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking serde_json v1.0.96 [INFO] [stderr] Checking hyper v0.14.26 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.18 [INFO] [stderr] Checking zchess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `board::Edge` [INFO] [stdout] --> src/chess/moves/bishop.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::chess::{board::Edge, Board, Move, Piece, Side, Square}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `board::Edge` [INFO] [stdout] --> src/chess/moves/bishop.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::chess::{board::Edge, Board, Move, Piece, Side, Square}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `board::Edge` [INFO] [stdout] --> src/chess/moves/king.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::chess::{board::Edge, Board, Move, MoveConstraint, Piece, PieceKind, Side}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `board::Edge` [INFO] [stdout] --> src/chess/moves/king.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::chess::{board::Edge, Board, Move, MoveConstraint, Piece, PieceKind, Side}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::debug` [INFO] [stdout] --> src/chess/moves/pawn.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::debug` [INFO] [stdout] --> src/chess/moves/pawn.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_tx` [INFO] [stdout] --> src/ui/mod.rs:449:5 [INFO] [stdout] | [INFO] [stdout] 449 | main_tx: Sender, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_tx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_tx` [INFO] [stdout] --> src/ui/mod.rs:449:5 [INFO] [stdout] | [INFO] [stdout] 449 | main_tx: Sender, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_tx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/ui/mod.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn draw_profile(user: &User, cursor_pos: (u16, u16), stdout: &mut Stdout) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cursor_pos` [INFO] [stdout] --> src/ui/mod.rs:57:34 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn draw_profile(user: &User, cursor_pos: (u16, u16), stdout: &mut Stdout) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cursor_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stdout` [INFO] [stdout] --> src/ui/mod.rs:57:58 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn draw_profile(user: &User, cursor_pos: (u16, u16), stdout: &mut Stdout) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stdout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/ui/mod.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn draw_profile(user: &User, cursor_pos: (u16, u16), stdout: &mut Stdout) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cursor_pos` [INFO] [stdout] --> src/ui/mod.rs:57:34 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn draw_profile(user: &User, cursor_pos: (u16, u16), stdout: &mut Stdout) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cursor_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stdout` [INFO] [stdout] --> src/ui/mod.rs:57:58 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn draw_profile(user: &User, cursor_pos: (u16, u16), stdout: &mut Stdout) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stdout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `en_passant` is never read [INFO] [stdout] --> src/chess/board.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Board { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 53 | pieces: Vec>, [INFO] [stdout] 54 | en_passant: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Board` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `blitz`, `bullet`, `rapid`, `correspondence`, and `classical` are never used [INFO] [stdout] --> src/user.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl Perfs { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 26 | fn blitz(&self) -> &Perf { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn bullet(&self) -> &Perf { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn rapid(&self) -> &Perf { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn correspondence(&self) -> &Perf { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn classical(&self) -> &Perf { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `games`, `rating`, `rd`, `prog`, and `prov` are never used [INFO] [stdout] --> src/user.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 56 | impl Perf { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 57 | fn games(&self) -> &u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn rating(&self) -> &u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn rd(&self) -> &i32 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn prog(&self) -> &i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn prov(&self) -> &Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/chess/mod.rs:27:42 [INFO] [stdout] | [INFO] [stdout] 27 | constraints: self.constraints.clone(), [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[MoveConstraint]` does not implement `Clone`, so calling `clone` on `&[MoveConstraint]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/chess/board.rs:384:13 [INFO] [stdout] | [INFO] [stdout] 384 | drop(p); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&Piece` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/ui/mod.rs:621:41 [INFO] [stdout] | [INFO] [stdout] 621 | ... drop(board); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Board` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `en_passant` is never read [INFO] [stdout] --> src/chess/board.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Board { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 53 | pieces: Vec>, [INFO] [stdout] 54 | en_passant: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Board` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `blitz`, `bullet`, `rapid`, `correspondence`, and `classical` are never used [INFO] [stdout] --> src/user.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl Perfs { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 26 | fn blitz(&self) -> &Perf { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn bullet(&self) -> &Perf { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn rapid(&self) -> &Perf { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn correspondence(&self) -> &Perf { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn classical(&self) -> &Perf { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `games`, `rating`, `rd`, `prog`, and `prov` are never used [INFO] [stdout] --> src/user.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 56 | impl Perf { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 57 | fn games(&self) -> &u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn rating(&self) -> &u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn rd(&self) -> &i32 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn prog(&self) -> &i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn prov(&self) -> &Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/chess/mod.rs:27:42 [INFO] [stdout] | [INFO] [stdout] 27 | constraints: self.constraints.clone(), [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[MoveConstraint]` does not implement `Clone`, so calling `clone` on `&[MoveConstraint]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/chess/board.rs:384:13 [INFO] [stdout] | [INFO] [stdout] 384 | drop(p); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&Piece` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `zchess` (lib test) due to 2 previous errors; 12 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/ui/mod.rs:621:41 [INFO] [stdout] | [INFO] [stdout] 621 | ... drop(board); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Board` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `zchess` (lib) due to 2 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "771157f1670fa376f19431daae8ad225d6e204cfaab613ce2b8457973eb672fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "771157f1670fa376f19431daae8ad225d6e204cfaab613ce2b8457973eb672fd", kill_on_drop: false }` [INFO] [stdout] 771157f1670fa376f19431daae8ad225d6e204cfaab613ce2b8457973eb672fd