[INFO] cloning repository https://github.com/NikolaiMGeorgiev/Bad-Luck-Cards [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NikolaiMGeorgiev/Bad-Luck-Cards" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNikolaiMGeorgiev%2FBad-Luck-Cards", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNikolaiMGeorgiev%2FBad-Luck-Cards'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f1534076bd1f7ac5bfe3e057d1095ba2f904e22d [INFO] building NikolaiMGeorgiev/Bad-Luck-Cards against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNikolaiMGeorgiev%2FBad-Luck-Cards" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NikolaiMGeorgiev/Bad-Luck-Cards on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/NikolaiMGeorgiev/Bad-Luck-Cards [INFO] finished tweaking git repo https://github.com/NikolaiMGeorgiev/Bad-Luck-Cards [INFO] tweaked toml for git repo https://github.com/NikolaiMGeorgiev/Bad-Luck-Cards written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/NikolaiMGeorgiev/Bad-Luck-Cards 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.86 [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 13b87e27e6eee75bfb2f01113ab0a4a65d92f7a0be4aca478a46b7b3eec12d1c [INFO] running `Command { std: "docker" "start" "-a" "13b87e27e6eee75bfb2f01113ab0a4a65d92f7a0be4aca478a46b7b3eec12d1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "13b87e27e6eee75bfb2f01113ab0a4a65d92f7a0be4aca478a46b7b3eec12d1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13b87e27e6eee75bfb2f01113ab0a4a65d92f7a0be4aca478a46b7b3eec12d1c", kill_on_drop: false }` [INFO] [stdout] 13b87e27e6eee75bfb2f01113ab0a4a65d92f7a0be4aca478a46b7b3eec12d1c [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef670c1afe172e715aa34608e38d07e7720e089e74770a9058ba78ad316d2c6c [INFO] running `Command { std: "docker" "start" "-a" "ef670c1afe172e715aa34608e38d07e7720e089e74770a9058ba78ad316d2c6c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling bad_luck_cards v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `card_index` is never read [INFO] [stdout] --> src/game_match.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let mut card_index = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/game_match.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | for line in stdin.lock().lines(){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_match.rs:271:13 [INFO] [stdout] | [INFO] [stdout] 271 | let mut n; [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: `e` [INFO] [stdout] --> src/game_match.rs:337:25 [INFO] [stdout] | [INFO] [stdout] 337 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_match.rs:312:13 [INFO] [stdout] | [INFO] [stdout] 312 | let mut own_suit; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_match.rs:314:13 [INFO] [stdout] | [INFO] [stdout] 314 | let mut own_rank; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `passes` is never read [INFO] [stdout] --> src/game_match.rs:389:17 [INFO] [stdout] | [INFO] [stdout] 389 | let mut passes = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_contract` is never read [INFO] [stdout] --> src/game_match.rs:391:17 [INFO] [stdout] | [INFO] [stdout] 391 | let mut current_contract = self.contract; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:450:13 [INFO] [stdout] | [INFO] [stdout] 450 | for i in 0..3{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:455:17 [INFO] [stdout] | [INFO] [stdout] 455 | for i in 0..3{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:460:13 [INFO] [stdout] | [INFO] [stdout] 460 | for i in 0..2{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:465:17 [INFO] [stdout] | [INFO] [stdout] 465 | for i in 0..2{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:480:13 [INFO] [stdout] | [INFO] [stdout] 480 | for i in 0..3{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:485:17 [INFO] [stdout] | [INFO] [stdout] 485 | for i in 0..3{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/player.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tens` [INFO] [stdout] --> src/computer.rs:31:111 [INFO] [stdout] | [INFO] [stdout] 31 | fn check_good_suit(cards_count: u8, suit_index: usize, jokers: &Vec, nines: &Vec, aces: &Vec, tens: &Vec) -> bool{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/computer.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut index; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/game_match.rs:325:28 [INFO] [stdout] | [INFO] [stdout] 325 | if index >= 0 && index < self.player.cards.len() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/game_match.rs:427:17 [INFO] [stdout] | [INFO] [stdout] 427 | &self.computers[i].choose_contract(&mut self.contract); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 427 | let _ = &self.computers[i].choose_contract(&mut self.contract); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/player.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | if index >= 0 && index < self.cards.len() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.49s [INFO] running `Command { std: "docker" "inspect" "ef670c1afe172e715aa34608e38d07e7720e089e74770a9058ba78ad316d2c6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef670c1afe172e715aa34608e38d07e7720e089e74770a9058ba78ad316d2c6c", kill_on_drop: false }` [INFO] [stdout] ef670c1afe172e715aa34608e38d07e7720e089e74770a9058ba78ad316d2c6c [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 44193ef04851fdfb5bbb928b38574d95f6e40a15c7509c19fd1f835a0f4da70b [INFO] running `Command { std: "docker" "start" "-a" "44193ef04851fdfb5bbb928b38574d95f6e40a15c7509c19fd1f835a0f4da70b", kill_on_drop: false }` [INFO] [stdout] warning: value assigned to `card_index` is never read [INFO] [stdout] --> src/game_match.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let mut card_index = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/game_match.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | for line in stdin.lock().lines(){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_match.rs:271:13 [INFO] [stdout] | [INFO] [stdout] 271 | let mut n; [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: `e` [INFO] [stdout] --> src/game_match.rs:337:25 [INFO] [stdout] | [INFO] [stdout] 337 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_match.rs:312:13 [INFO] [stdout] | [INFO] [stdout] 312 | let mut own_suit; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_match.rs:314:13 [INFO] [stdout] | [INFO] [stdout] 314 | let mut own_rank; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `passes` is never read [INFO] [stdout] --> src/game_match.rs:389:17 [INFO] [stdout] | [INFO] [stdout] 389 | let mut passes = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_contract` is never read [INFO] [stdout] --> src/game_match.rs:391:17 [INFO] [stdout] | [INFO] [stdout] 391 | let mut current_contract = self.contract; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:450:13 [INFO] [stdout] | [INFO] [stdout] 450 | for i in 0..3{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:455:17 [INFO] [stdout] | [INFO] [stdout] 455 | for i in 0..3{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:460:13 [INFO] [stdout] | [INFO] [stdout] 460 | for i in 0..2{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:465:17 [INFO] [stdout] | [INFO] [stdout] 465 | for i in 0..2{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:480:13 [INFO] [stdout] | [INFO] [stdout] 480 | for i in 0..3{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:485:17 [INFO] [stdout] | [INFO] [stdout] 485 | for i in 0..3{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/player.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tens` [INFO] [stdout] --> src/computer.rs:31:111 [INFO] [stdout] | [INFO] [stdout] 31 | fn check_good_suit(cards_count: u8, suit_index: usize, jokers: &Vec, nines: &Vec, aces: &Vec, tens: &Vec) -> bool{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tens` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling bad_luck_cards v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/computer.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut index; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/game_match.rs:325:28 [INFO] [stdout] | [INFO] [stdout] 325 | if index >= 0 && index < self.player.cards.len() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/game_match.rs:427:17 [INFO] [stdout] | [INFO] [stdout] 427 | &self.computers[i].choose_contract(&mut self.contract); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 427 | let _ = &self.computers[i].choose_contract(&mut self.contract); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/player.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | if index >= 0 && index < self.cards.len() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bad_luck_cards::player::Player` [INFO] [stdout] --> tests/test_computer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use bad_luck_cards::player::Player; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_computer.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let mut cards = Vec::new(); [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: value assigned to `card_index` is never read [INFO] [stdout] --> src/game_match.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let mut card_index = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/game_match.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | for line in stdin.lock().lines(){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_match.rs:271:13 [INFO] [stdout] | [INFO] [stdout] 271 | let mut n; [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: `e` [INFO] [stdout] --> src/game_match.rs:337:25 [INFO] [stdout] | [INFO] [stdout] 337 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_match.rs:312:13 [INFO] [stdout] | [INFO] [stdout] 312 | let mut own_suit; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_match.rs:314:13 [INFO] [stdout] | [INFO] [stdout] 314 | let mut own_rank; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `passes` is never read [INFO] [stdout] --> src/game_match.rs:389:17 [INFO] [stdout] | [INFO] [stdout] 389 | let mut passes = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_contract` is never read [INFO] [stdout] --> src/game_match.rs:391:17 [INFO] [stdout] | [INFO] [stdout] 391 | let mut current_contract = self.contract; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:450:13 [INFO] [stdout] | [INFO] [stdout] 450 | for i in 0..3{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:455:17 [INFO] [stdout] | [INFO] [stdout] 455 | for i in 0..3{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:460:13 [INFO] [stdout] | [INFO] [stdout] 460 | for i in 0..2{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:465:17 [INFO] [stdout] | [INFO] [stdout] 465 | for i in 0..2{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:480:13 [INFO] [stdout] | [INFO] [stdout] 480 | for i in 0..3{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_match.rs:485:17 [INFO] [stdout] | [INFO] [stdout] 485 | for i in 0..3{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/player.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tens` [INFO] [stdout] --> src/computer.rs:31:111 [INFO] [stdout] | [INFO] [stdout] 31 | fn check_good_suit(cards_count: u8, suit_index: usize, jokers: &Vec, nines: &Vec, aces: &Vec, tens: &Vec) -> bool{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/computer.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut index; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/game_match.rs:325:28 [INFO] [stdout] | [INFO] [stdout] 325 | if index >= 0 && index < self.player.cards.len() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/game_match.rs:427:17 [INFO] [stdout] | [INFO] [stdout] 427 | &self.computers[i].choose_contract(&mut self.contract); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 427 | let _ = &self.computers[i].choose_contract(&mut self.contract); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/player.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | if index >= 0 && index < self.cards.len() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] running `Command { std: "docker" "inspect" "44193ef04851fdfb5bbb928b38574d95f6e40a15c7509c19fd1f835a0f4da70b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44193ef04851fdfb5bbb928b38574d95f6e40a15c7509c19fd1f835a0f4da70b", kill_on_drop: false }` [INFO] [stdout] 44193ef04851fdfb5bbb928b38574d95f6e40a15c7509c19fd1f835a0f4da70b