[INFO] cloning repository https://github.com/papersson/chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/papersson/chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpapersson%2Fchess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpapersson%2Fchess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c3a94f4f6e19325b791c412e09186d7eef353ba0 [INFO] linting papersson/chess against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpapersson%2Fchess" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/papersson/chess [INFO] finished tweaking git repo https://github.com/papersson/chess [INFO] tweaked toml for git repo https://github.com/papersson/chess written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/papersson/chess on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/papersson/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" "+nightly" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded symphonia-bundle-mp3 v0.5.4 [INFO] [stderr] Downloaded symphonia-metadata v0.5.4 [INFO] [stderr] Downloaded symphonia v0.5.4 [INFO] [stderr] Downloaded wgpu-hal v0.19.5 [INFO] [stderr] Downloaded symphonia-core v0.5.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3520396baf90f8178570391eab6f04ed6c0554d15f8411cb73be192ef4460a2a [INFO] running `Command { std: "docker" "start" "-a" "3520396baf90f8178570391eab6f04ed6c0554d15f8411cb73be192ef4460a2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3520396baf90f8178570391eab6f04ed6c0554d15f8411cb73be192ef4460a2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3520396baf90f8178570391eab6f04ed6c0554d15f8411cb73be192ef4460a2a", kill_on_drop: false }` [INFO] [stdout] 3520396baf90f8178570391eab6f04ed6c0554d15f8411cb73be192ef4460a2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c82e294555cd3cc4017fe48581467d7eedb63930803036b2bd4cda4d72c7265e [INFO] running `Command { std: "docker" "start" "-a" "c82e294555cd3cc4017fe48581467d7eedb63930803036b2bd4cda4d72c7265e", kill_on_drop: false }` [INFO] [stderr] Checking libloading v0.8.8 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Compiling wayland-sys v0.31.6 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling quick-xml v0.37.5 [INFO] [stderr] Compiling wayland-client v0.31.10 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Compiling ash v0.37.3+1.3.251 [INFO] [stderr] Compiling khronos-egl v6.0.0 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking codespan-reporting v0.11.1 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking spirv v0.3.0+sdk-1.3.268.0 [INFO] [stderr] Checking gpu-alloc-types v0.3.0 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling wgpu-hal v0.19.5 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Checking gpu-descriptor-types v0.1.2 [INFO] [stderr] Checking libloading v0.7.4 [INFO] [stderr] Checking unicode-xid v0.2.6 [INFO] [stderr] Checking gpu-alloc v0.6.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking wgpu-types v0.19.2 [INFO] [stderr] Compiling wgpu-core v0.19.4 [INFO] [stderr] Checking glow v0.13.1 [INFO] [stderr] Checking gpu-descriptor v0.2.4 [INFO] [stderr] Compiling wayland-scanner v0.31.6 [INFO] [stderr] Checking xcursor v0.3.8 [INFO] [stderr] Checking chess-core v0.1.0 (/opt/rustwide/workdir/core) [INFO] [stderr] Compiling smithay-client-toolkit v0.18.1 [INFO] [stderr] Checking profiling v1.0.16 [INFO] [stderr] Checking alsa-sys v0.3.1 [INFO] [stderr] Checking memmap2 v0.9.5 [INFO] [stderr] Checking memmap2 v0.8.0 [INFO] [stderr] Compiling wgpu v0.19.4 [INFO] [stderr] Checking unicode-bidi-mirroring v0.1.0 [INFO] [stderr] Checking ttf-parser v0.20.0 [INFO] [stderr] Checking ttf-parser v0.19.2 [INFO] [stderr] Checking unicode-properties v0.1.3 [INFO] [stderr] Checking unicode-ccc v0.1.2 [INFO] [stderr] Checking yazi v0.1.6 [INFO] [stdout] warning: you should consider adding a `Default` implementation for `MoveList` [INFO] [stdout] --> core/src/move_gen.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / pub const fn new() -> Self { [INFO] [stdout] 13 | | Self { [INFO] [stdout] 14 | | moves: [Move::new( [INFO] [stdout] 15 | | Square::from_index(0).unwrap(), [INFO] [stdout] ... | [INFO] [stdout] 20 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `#[warn(clippy::new_without_default)]` on by default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 10 + impl Default for MoveList { [INFO] [stdout] 11 + fn default() -> Self { [INFO] [stdout] 12 + Self::new() [INFO] [stdout] 13 + } [INFO] [stdout] 14 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking unicode-script v0.5.7 [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> core/src/types.rs:277:12 [INFO] [stdout] | [INFO] [stdout] 277 | if (self.file().0 + self.rank().0) % 2 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `(self.file().0 + self.rank().0).is_multiple_of(2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking zeno v0.2.3 [INFO] [stdout] warning: the loop variable `color` is only used to index `piece_square` [INFO] [stdout] --> core/src/zobrist.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | for color in 0..2 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 31 - for color in 0..2 { [INFO] [stdout] 31 + for in &mut piece_square { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `piece_type` is only used to index `piece_square` [INFO] [stdout] --> core/src/zobrist.rs:32:31 [INFO] [stdout] | [INFO] [stdout] 32 | for piece_type in 0..6 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 32 - for piece_type in 0..6 { [INFO] [stdout] 32 + for in &mut piece_square { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `square` is only used to index `piece_square` [INFO] [stdout] --> core/src/zobrist.rs:33:31 [INFO] [stdout] | [INFO] [stdout] 33 | for square in 0..64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 33 - for square in 0..64 { [INFO] [stdout] 33 + for in &mut piece_square { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `castling` [INFO] [stdout] --> core/src/zobrist.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | for i in 0..16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 42 - for i in 0..16 { [INFO] [stdout] 42 + for in &mut castling { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `en_passant` [INFO] [stdout] --> core/src/zobrist.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | for i in 0..8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 47 - for i in 0..8 { [INFO] [stdout] 47 + for in &mut en_passant { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking alsa v0.9.1 [INFO] [stderr] Checking chess-agents v0.1.0 (/opt/rustwide/workdir/agents) [INFO] [stderr] Checking euclid v0.22.11 [INFO] [stderr] Compiling winit v0.29.15 [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> agents/src/search.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | if self.nodes % TIME_CHECK_INTERVAL == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `self.nodes.is_multiple_of(TIME_CHECK_INTERVAL)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> agents/src/search.rs:287:9 [INFO] [stdout] | [INFO] [stdout] 282 | / let phase_moves = match state.fullmove_number { [INFO] [stdout] 283 | | 1..=10 => 30, // Opening: expect 30 more moves [INFO] [stdout] 284 | | 11..=30 => 20, // Middle game: expect 20 more moves [INFO] [stdout] 285 | | _ => 10, // Endgame: expect 10 more moves [INFO] [stdout] 286 | | }; [INFO] [stdout] | |__________- unnecessary `let` binding [INFO] [stdout] 287 | phase_moves [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 282 ~ [INFO] [stdout] 283 ~ match state.fullmove_number { [INFO] [stdout] 284 + 1..=10 => 30, // Opening: expect 30 more moves [INFO] [stdout] 285 + 11..=30 => 20, // Middle game: expect 20 more moves [INFO] [stdout] 286 + _ => 10, // Endgame: expect 10 more moves [INFO] [stdout] 287 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking dasp_sample v0.11.0 [INFO] [stderr] Checking x11rb-protocol v0.13.1 [INFO] [stderr] Checking rangemap v1.5.1 [INFO] [stderr] Checking self_cell v1.2.0 [INFO] [stderr] Checking x11-dl v2.21.0 [INFO] [stderr] Checking lewton v0.10.2 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking cpal v0.15.3 [INFO] [stderr] Checking smol_str v0.2.2 [INFO] [stderr] Checking hound v3.5.1 [INFO] [stderr] Checking claxon v0.4.3 [INFO] [stderr] Checking signal-hook v0.3.18 [INFO] [stderr] Compiling wayland-backend v0.3.10 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking raw-window-handle v0.5.2 [INFO] [stderr] Checking etagere v0.2.15 [INFO] [stderr] Checking polling v3.8.0 [INFO] [stderr] Checking pollster v0.3.0 [INFO] [stderr] Checking fontdb v0.15.0 [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> agents/src/search.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | if self.nodes % TIME_CHECK_INTERVAL == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `self.nodes.is_multiple_of(TIME_CHECK_INTERVAL)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> agents/src/search.rs:287:9 [INFO] [stdout] | [INFO] [stdout] 282 | / let phase_moves = match state.fullmove_number { [INFO] [stdout] 283 | | 1..=10 => 30, // Opening: expect 30 more moves [INFO] [stdout] 284 | | 11..=30 => 20, // Middle game: expect 20 more moves [INFO] [stdout] 285 | | _ => 10, // Endgame: expect 10 more moves [INFO] [stdout] 286 | | }; [INFO] [stdout] | |__________- unnecessary `let` binding [INFO] [stdout] 287 | phase_moves [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 282 ~ [INFO] [stdout] 283 ~ match state.fullmove_number { [INFO] [stdout] 284 + 1..=10 => 30, // Opening: expect 30 more moves [INFO] [stdout] 285 + 11..=30 => 20, // Middle game: expect 20 more moves [INFO] [stdout] 286 + _ => 10, // Endgame: expect 10 more moves [INFO] [stdout] 287 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling bytemuck_derive v1.9.3 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stdout] warning: you should consider adding a `Default` implementation for `MoveList` [INFO] [stdout] --> core/src/move_gen.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / pub const fn new() -> Self { [INFO] [stdout] 13 | | Self { [INFO] [stdout] 14 | | moves: [Move::new( [INFO] [stdout] 15 | | Square::from_index(0).unwrap(), [INFO] [stdout] ... | [INFO] [stdout] 20 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `#[warn(clippy::new_without_default)]` on by default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 10 + impl Default for MoveList { [INFO] [stdout] 11 + fn default() -> Self { [INFO] [stdout] 12 + Self::new() [INFO] [stdout] 13 + } [INFO] [stdout] 14 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking crossterm v0.27.0 [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> core/src/types.rs:277:12 [INFO] [stdout] | [INFO] [stdout] 277 | if (self.file().0 + self.rank().0) % 2 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `(self.file().0 + self.rank().0).is_multiple_of(2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `color` is only used to index `piece_square` [INFO] [stdout] --> core/src/zobrist.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | for color in 0..2 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 31 - for color in 0..2 { [INFO] [stdout] 31 + for in &mut piece_square { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `piece_type` is only used to index `piece_square` [INFO] [stdout] --> core/src/zobrist.rs:32:31 [INFO] [stdout] | [INFO] [stdout] 32 | for piece_type in 0..6 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 32 - for piece_type in 0..6 { [INFO] [stdout] 32 + for in &mut piece_square { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `square` is only used to index `piece_square` [INFO] [stdout] --> core/src/zobrist.rs:33:31 [INFO] [stdout] | [INFO] [stdout] 33 | for square in 0..64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 33 - for square in 0..64 { [INFO] [stdout] 33 + for in &mut piece_square { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `castling` [INFO] [stdout] --> core/src/zobrist.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | for i in 0..16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 42 - for i in 0..16 { [INFO] [stdout] 42 + for in &mut castling { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `en_passant` [INFO] [stdout] --> core/src/zobrist.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | for i in 0..8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 47 - for i in 0..8 { [INFO] [stdout] 47 + for in &mut en_passant { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chess v0.1.0 (/opt/rustwide/workdir/chess) [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> chess/src/interactive.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | / if self.handle_selection() { [INFO] [stdout] 89 | | // Player made a move, now engine's turn [INFO] [stdout] 90 | | self.engine_move()?; [INFO] [stdout] 91 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 87 ~ KeyCode::Enter | KeyCode::Char(' ') [INFO] [stdout] 88 ~ if self.handle_selection() => { [INFO] [stdout] 89 | // Player made a move, now engine's turn [INFO] [stdout] 90 | self.engine_move()?; [INFO] [stdout] 91 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `Range::contains` implementation [INFO] [stdout] --> chess/src/interactive.rs:107:45 [INFO] [stdout] | [INFO] [stdout] 107 | if new_file >= 0 && new_file < 8 && new_rank >= 0 && new_rank < 8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0..8).contains(&new_rank)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `Range::contains` implementation [INFO] [stdout] --> chess/src/interactive.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | if new_file >= 0 && new_file < 8 && new_rank >= 0 && new_rank < 8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0..8).contains(&new_file)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found call to `str::trim` before `str::split_whitespace` [INFO] [stdout] --> chess/src/uci.rs:32:41 [INFO] [stdout] | [INFO] [stdout] 32 | let parts: Vec<&str> = line.trim().split_whitespace().collect(); [INFO] [stdout] | ^^^^^^^ help: remove `trim()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trim_split_whitespace [INFO] [stdout] = note: `#[warn(clippy::trim_split_whitespace)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual checked division [INFO] [stdout] --> chess/src/uci.rs:271:24 [INFO] [stdout] | [INFO] [stdout] 271 | if info.time_ms > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ check performed here [INFO] [stdout] 272 | (info.nodes * 1000) / info.time_ms [INFO] [stdout] | ---------------------------------- division performed here [INFO] [stdout] | [INFO] [stdout] = help: consider using `checked_div` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_checked_ops [INFO] [stdout] = note: `#[warn(clippy::manual_checked_ops)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `promotion` after checking its variant with `is_some` [INFO] [stdout] --> chess/src/main.rs:110:43 [INFO] [stdout] | [INFO] [stdout] 109 | let mv = if promotion.is_some() { [INFO] [stdout] | ---------------------- help: try: `if let Some() = promotion` [INFO] [stdout] 110 | Move::new_promotion(from, to, promotion.unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent [INFO] [stdout] --> chess/src/main.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | let from_file = File::from_char(move_str.chars().nth(0)?)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `move_str.chars().next()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero [INFO] [stdout] = note: `#[warn(clippy::iter_nth_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> chess/src/interactive.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | / if self.handle_selection() { [INFO] [stdout] 89 | | // Player made a move, now engine's turn [INFO] [stdout] 90 | | self.engine_move()?; [INFO] [stdout] 91 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 87 ~ KeyCode::Enter | KeyCode::Char(' ') [INFO] [stdout] 88 ~ if self.handle_selection() => { [INFO] [stdout] 89 | // Player made a move, now engine's turn [INFO] [stdout] 90 | self.engine_move()?; [INFO] [stdout] 91 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `Range::contains` implementation [INFO] [stdout] --> chess/src/interactive.rs:107:45 [INFO] [stdout] | [INFO] [stdout] 107 | if new_file >= 0 && new_file < 8 && new_rank >= 0 && new_rank < 8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0..8).contains(&new_rank)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `Range::contains` implementation [INFO] [stdout] --> chess/src/interactive.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | if new_file >= 0 && new_file < 8 && new_rank >= 0 && new_rank < 8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0..8).contains(&new_file)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found call to `str::trim` before `str::split_whitespace` [INFO] [stdout] --> chess/src/uci.rs:32:41 [INFO] [stdout] | [INFO] [stdout] 32 | let parts: Vec<&str> = line.trim().split_whitespace().collect(); [INFO] [stdout] | ^^^^^^^ help: remove `trim()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trim_split_whitespace [INFO] [stdout] = note: `#[warn(clippy::trim_split_whitespace)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual checked division [INFO] [stdout] --> chess/src/uci.rs:271:24 [INFO] [stdout] | [INFO] [stdout] 271 | if info.time_ms > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ check performed here [INFO] [stdout] 272 | (info.nodes * 1000) / info.time_ms [INFO] [stdout] | ---------------------------------- division performed here [INFO] [stdout] | [INFO] [stdout] = help: consider using `checked_div` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_checked_ops [INFO] [stdout] = note: `#[warn(clippy::manual_checked_ops)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `promotion` after checking its variant with `is_some` [INFO] [stdout] --> chess/src/main.rs:110:43 [INFO] [stdout] | [INFO] [stdout] 109 | let mv = if promotion.is_some() { [INFO] [stdout] | ---------------------- help: try: `if let Some() = promotion` [INFO] [stdout] 110 | Move::new_promotion(from, to, promotion.unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent [INFO] [stdout] --> chess/src/main.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | let from_file = File::from_char(move_str.chars().nth(0)?)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `move_str.chars().next()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero [INFO] [stdout] = note: `#[warn(clippy::iter_nth_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking bytemuck v1.23.1 [INFO] [stderr] Checking font-types v0.7.3 [INFO] [stderr] Checking symphonia-core v0.5.4 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Checking rustybuzz v0.11.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking naga v0.19.2 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Checking read-fonts v0.22.7 [INFO] [stderr] Checking calloop v0.12.4 [INFO] [stderr] Checking symphonia-metadata v0.5.4 [INFO] [stderr] Checking symphonia-bundle-mp3 v0.5.4 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Checking symphonia v0.5.4 [INFO] [stderr] Checking rodio v0.20.1 [INFO] [stderr] Checking wayland-protocols v0.31.2 [INFO] [stderr] Checking calloop-wayland-source v0.2.0 [INFO] [stderr] Checking wayland-cursor v0.31.10 [INFO] [stderr] error: could not compile `ash` (lib) [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc --crate-name ash --edition=2021 /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ash-0.37.3+1.3.251/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="debug"' --cfg 'feature="default"' --cfg 'feature="libloading"' --cfg 'feature="loaded"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("debug", "default", "libloading", "linked", "loaded"))' -C metadata=a4ebd6789056ad80 -C extra-filename=-7dbdba903e475dad --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern libloading=/opt/rustwide/target/debug/deps/liblibloading-0482edcd26f24452.rmeta --cap-lints allow --cap-lints=forbid` (signal: 9, SIGKILL: kill) [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `x11rb-protocol` (lib) [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc --crate-name x11rb_protocol --edition=2021 /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/x11rb-protocol-0.13.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="randr"' --cfg 'feature="render"' --cfg 'feature="resource_manager"' --cfg 'feature="shape"' --cfg 'feature="std"' --cfg 'feature="xfixes"' --cfg 'feature="xinput"' --cfg 'feature="xkb"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("all-extensions", "composite", "damage", "dbe", "default", "dpms", "dri2", "dri3", "extra-traits", "glx", "present", "randr", "record", "render", "request-parsing", "res", "resource_manager", "screensaver", "serde", "shape", "shm", "std", "sync", "xevie", "xf86dri", "xf86vidmode", "xfixes", "xinerama", "xinput", "xkb", "xprint", "xselinux", "xtest", "xv", "xvmc"))' -C metadata=4ff9aa1926223154 -C extra-filename=-385b56e97b57194f --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --cap-lints allow --cap-lints=forbid` (signal: 9, SIGKILL: kill) [INFO] running `Command { std: "docker" "inspect" "c82e294555cd3cc4017fe48581467d7eedb63930803036b2bd4cda4d72c7265e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c82e294555cd3cc4017fe48581467d7eedb63930803036b2bd4cda4d72c7265e", kill_on_drop: false }` [INFO] [stdout] c82e294555cd3cc4017fe48581467d7eedb63930803036b2bd4cda4d72c7265e