[INFO] cloning repository https://github.com/omar-khaled-2/chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/omar-khaled-2/chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomar-khaled-2%2Fchess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomar-khaled-2%2Fchess'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomar-khaled-2%2Fchess: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [INFO] cloning repository https://github.com/omar-khaled-2/chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/omar-khaled-2/chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomar-khaled-2%2Fchess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomar-khaled-2%2Fchess'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomar-khaled-2%2Fchess: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 2) [INFO] cloning repository https://github.com/omar-khaled-2/chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/omar-khaled-2/chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomar-khaled-2%2Fchess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomar-khaled-2%2Fchess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 102980748a958e11a1a4788eb54098e7831f1545 [INFO] checking omar-khaled-2/chess against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomar-khaled-2%2Fchess" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/omar-khaled-2/chess [INFO] finished tweaking git repo https://github.com/omar-khaled-2/chess [INFO] tweaked toml for git repo https://github.com/omar-khaled-2/chess written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/omar-khaled-2/chess on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/omar-khaled-2/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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 774c23cb6be2d162727baa339fb73615f05f322dec0c649b469743a60fbc36f2 [INFO] running `Command { std: "docker" "start" "-a" "774c23cb6be2d162727baa339fb73615f05f322dec0c649b469743a60fbc36f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "774c23cb6be2d162727baa339fb73615f05f322dec0c649b469743a60fbc36f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "774c23cb6be2d162727baa339fb73615f05f322dec0c649b469743a60fbc36f2", kill_on_drop: false }` [INFO] [stdout] 774c23cb6be2d162727baa339fb73615f05f322dec0c649b469743a60fbc36f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 444b621f8ee1bc7d7fba02beb087e44804da3cdbfa05bdbb12042cabee8dc1c1 [INFO] running `Command { std: "docker" "start" "-a" "444b621f8ee1bc7d7fba02beb087e44804da3cdbfa05bdbb12042cabee8dc1c1", kill_on_drop: false }` [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{borrow::BorrowMut, io::{Error, ErrorKind}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{borrow::BorrowMut, io::{Error, ErrorKind}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captured_piece` [INFO] [stdout] --> src/main.rs:412:25 [INFO] [stdout] | [INFO] [stdout] 412 | let captured_piece = get_piece(pieces, p - 8).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captured_piece` [INFO] [stdout] --> src/main.rs:429:25 [INFO] [stdout] | [INFO] [stdout] 429 | let captured_piece = get_piece(pieces, p + 8).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captured_piece` [INFO] [stdout] --> src/main.rs:444:25 [INFO] [stdout] | [INFO] [stdout] 444 | let captured_piece = get_piece(pieces, p - 1).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captured_piece` [INFO] [stdout] --> src/main.rs:460:25 [INFO] [stdout] | [INFO] [stdout] 460 | let captured_piece = get_piece(pieces, p + 1).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captured_piece` [INFO] [stdout] --> src/main.rs:461:47 [INFO] [stdout] | [INFO] [stdout] 461 | if !matches!(&piece.color,captured_piece){ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captured_piece` [INFO] [stdout] --> src/main.rs:412:25 [INFO] [stdout] | [INFO] [stdout] 412 | let captured_piece = get_piece(pieces, p - 8).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captured_piece` [INFO] [stdout] --> src/main.rs:429:25 [INFO] [stdout] | [INFO] [stdout] 429 | let captured_piece = get_piece(pieces, p + 8).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captured_piece` [INFO] [stdout] --> src/main.rs:444:25 [INFO] [stdout] | [INFO] [stdout] 444 | let captured_piece = get_piece(pieces, p - 1).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captured_piece` [INFO] [stdout] --> src/main.rs:460:25 [INFO] [stdout] | [INFO] [stdout] 460 | let captured_piece = get_piece(pieces, p + 1).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captured_piece` [INFO] [stdout] --> src/main.rs:461:47 [INFO] [stdout] | [INFO] [stdout] 461 | if !matches!(&piece.color,captured_piece){ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 305 | let mut piece = get_piece(pieces, position).unwrap(); [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] warning: unused variable: `pieces` [INFO] [stdout] --> src/main.rs:489:14 [INFO] [stdout] | [INFO] [stdout] 489 | fn is_pinned(pieces:&Vec, position:u8) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pieces` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/main.rs:489:40 [INFO] [stdout] | [INFO] [stdout] 489 | fn is_pinned(pieces:&Vec, position:u8) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:498:34 [INFO] [stdout] | [INFO] [stdout] 498 | if matches!(&piece.color,color) && matches!(piece.piece,Piece::King) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:496:48 [INFO] [stdout] | [INFO] [stdout] 496 | fn get_king_position(pieces:&Vec, color:Color) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:511:34 [INFO] [stdout] | [INFO] [stdout] 511 | if matches!(&piece.color,color) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 305 | let mut piece = get_piece(pieces, position).unwrap(); [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] warning: unused variable: `pieces` [INFO] [stdout] --> src/main.rs:489:14 [INFO] [stdout] | [INFO] [stdout] 489 | fn is_pinned(pieces:&Vec, position:u8) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pieces` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/main.rs:489:40 [INFO] [stdout] | [INFO] [stdout] 489 | fn is_pinned(pieces:&Vec, position:u8) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:498:34 [INFO] [stdout] | [INFO] [stdout] 498 | if matches!(&piece.color,color) && matches!(piece.piece,Piece::King) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:496:48 [INFO] [stdout] | [INFO] [stdout] 496 | fn get_king_position(pieces:&Vec, color:Color) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:511:34 [INFO] [stdout] | [INFO] [stdout] 511 | if matches!(&piece.color,color) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:636:9 [INFO] [stdout] | [INFO] [stdout] 636 | let mut number = notation.chars().nth(1).unwrap().to_digit(10).unwrap() as u8; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selected_promotion` [INFO] [stdout] --> src/main.rs:717:37 [INFO] [stdout] | [INFO] [stdout] 717 | ... let selected_promotion = &promated_pieces[selected_promotion_index]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selected_promotion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EnPassant`, `Castling`, and `Promotion` are never constructed [INFO] [stdout] --> src/main.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 202 | enum MoveType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 205 | EnPassant, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 206 | Castling, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 207 | Promotion, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_pinned` is never used [INFO] [stdout] --> src/main.rs:489:4 [INFO] [stdout] | [INFO] [stdout] 489 | fn is_pinned(pieces:&Vec, position:u8) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_king_position` is never used [INFO] [stdout] --> src/main.rs:496:4 [INFO] [stdout] | [INFO] [stdout] 496 | fn get_king_position(pieces:&Vec, color:Color) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_checkmate` is never used [INFO] [stdout] --> src/main.rs:506:4 [INFO] [stdout] | [INFO] [stdout] 506 | fn is_checkmate(pieces:&Vec,color:Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:636:9 [INFO] [stdout] | [INFO] [stdout] 636 | let mut number = notation.chars().nth(1).unwrap().to_digit(10).unwrap() as u8; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selected_promotion` [INFO] [stdout] --> src/main.rs:717:37 [INFO] [stdout] | [INFO] [stdout] 717 | ... let selected_promotion = &promated_pieces[selected_promotion_index]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selected_promotion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EnPassant`, `Castling`, and `Promotion` are never constructed [INFO] [stdout] --> src/main.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 202 | enum MoveType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 205 | EnPassant, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 206 | Castling, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 207 | Promotion, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_pinned` is never used [INFO] [stdout] --> src/main.rs:489:4 [INFO] [stdout] | [INFO] [stdout] 489 | fn is_pinned(pieces:&Vec, position:u8) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_king_position` is never used [INFO] [stdout] --> src/main.rs:496:4 [INFO] [stdout] | [INFO] [stdout] 496 | fn get_king_position(pieces:&Vec, color:Color) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_checkmate` is never used [INFO] [stdout] --> src/main.rs:506:4 [INFO] [stdout] | [INFO] [stdout] 506 | fn is_checkmate(pieces:&Vec,color:Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [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/main.rs:257:17 [INFO] [stdout] | [INFO] [stdout] 257 | drop(piece); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut MovingPiece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 257 - drop(piece); [INFO] [stdout] 257 + let _ = piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:408:19 [INFO] [stdout] | [INFO] [stdout] 408 | while get_row(p - 8) >= 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:440:19 [INFO] [stdout] | [INFO] [stdout] 440 | while get_column(p - 1) >= 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:684:13 [INFO] [stdout] | [INFO] [stdout] 684 | std::io::stdin().read_line(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 684 | let _ = std::io::stdin().read_line(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:699:29 [INFO] [stdout] | [INFO] [stdout] 699 | ... std::io::stdin().read_line(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 699 | let _ = std::io::stdin().read_line(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:714:33 [INFO] [stdout] | [INFO] [stdout] 714 | ... std::io::stdin().read_line(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 714 | let _ = std::io::stdin().read_line(&mut input); [INFO] [stdout] | +++++++ [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/main.rs:257:17 [INFO] [stdout] | [INFO] [stdout] 257 | drop(piece); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut MovingPiece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 257 - drop(piece); [INFO] [stdout] 257 + let _ = piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:408:19 [INFO] [stdout] | [INFO] [stdout] 408 | while get_row(p - 8) >= 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:440:19 [INFO] [stdout] | [INFO] [stdout] 440 | while get_column(p - 1) >= 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:684:13 [INFO] [stdout] | [INFO] [stdout] 684 | std::io::stdin().read_line(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 684 | let _ = std::io::stdin().read_line(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:699:29 [INFO] [stdout] | [INFO] [stdout] 699 | ... std::io::stdin().read_line(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 699 | let _ = std::io::stdin().read_line(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:714:33 [INFO] [stdout] | [INFO] [stdout] 714 | ... std::io::stdin().read_line(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 714 | let _ = std::io::stdin().read_line(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] running `Command { std: "docker" "inspect" "444b621f8ee1bc7d7fba02beb087e44804da3cdbfa05bdbb12042cabee8dc1c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "444b621f8ee1bc7d7fba02beb087e44804da3cdbfa05bdbb12042cabee8dc1c1", kill_on_drop: false }` [INFO] [stdout] 444b621f8ee1bc7d7fba02beb087e44804da3cdbfa05bdbb12042cabee8dc1c1