[INFO] cloning repository https://github.com/Danni4real/Poker-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Danni4real/Poker-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDanni4real%2FPoker-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDanni4real%2FPoker-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5dd3b4997a307cc8490842b17d29951d201bf45e [INFO] checking Danni4real/Poker-Rust against master#cced03bfd61a304243a34504618ecec86c17063f for pr-157082 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDanni4real%2FPoker-Rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Danni4real/Poker-Rust [INFO] finished tweaking git repo https://github.com/Danni4real/Poker-Rust [INFO] tweaked toml for git repo https://github.com/Danni4real/Poker-Rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Danni4real/Poker-Rust on toolchain cced03bfd61a304243a34504618ecec86c17063f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Danni4real/Poker-Rust 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" "+cced03bfd61a304243a34504618ecec86c17063f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3e793bdf10248eb2ddbd6b0faebed8155c11b4589982e2893733958d93e8d540" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 677e7f5c3caf5a3b32d2add13d07af2fda93e79e382e2597466bd2671533dea8 [INFO] running `Command { std: "docker" "start" "677e7f5c3caf5a3b32d2add13d07af2fda93e79e382e2597466bd2671533dea8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "677e7f5c3caf5a3b32d2add13d07af2fda93e79e382e2597466bd2671533dea8" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "677e7f5c3caf5a3b32d2add13d07af2fda93e79e382e2597466bd2671533dea8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "677e7f5c3caf5a3b32d2add13d07af2fda93e79e382e2597466bd2671533dea8" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking poker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:386:9 [INFO] [stdout] | [INFO] [stdout] 386 | let mut chars: Vec = combo.chars().collect(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:424:9 [INFO] [stdout] | [INFO] [stdout] 424 | let mut chars: Vec = combo.chars().collect(); [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/main.rs:460:8 [INFO] [stdout] | [INFO] [stdout] 460 | let mut chars: Vec = combo.chars().collect(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `played` is never read [INFO] [stdout] --> src/main.rs:532:20 [INFO] [stdout] | [INFO] [stdout] 532 | let mut played = Cards::new(); [INFO] [stdout] | ^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 541 | played = db.find_bigger_cards(&last_play, ¤_player); [INFO] [stdout] | ------ `played` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `class` and `rank` are never read [INFO] [stdout] --> src/main.rs:654:2 [INFO] [stdout] | [INFO] [stdout] 650 | struct Cards [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 654 | class: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 655 | rank: u32 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_rank` and `get_owner` are never used [INFO] [stdout] --> src/main.rs:663:5 [INFO] [stdout] | [INFO] [stdout] 657 | impl Cards [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 663 | fn set_rank(&mut self) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 675 | fn get_owner(&self) -> &String [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:386:9 [INFO] [stdout] | [INFO] [stdout] 386 | let mut chars: Vec = combo.chars().collect(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:424:9 [INFO] [stdout] | [INFO] [stdout] 424 | let mut chars: Vec = combo.chars().collect(); [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/main.rs:460:8 [INFO] [stdout] | [INFO] [stdout] 460 | let mut chars: Vec = combo.chars().collect(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `played` is never read [INFO] [stdout] --> src/main.rs:532:20 [INFO] [stdout] | [INFO] [stdout] 532 | let mut played = Cards::new(); [INFO] [stdout] | ^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 541 | played = db.find_bigger_cards(&last_play, ¤_player); [INFO] [stdout] | ------ `played` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `class` and `rank` are never read [INFO] [stdout] --> src/main.rs:654:2 [INFO] [stdout] | [INFO] [stdout] 650 | struct Cards [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 654 | class: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 655 | rank: u32 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_rank` and `get_owner` are never used [INFO] [stdout] --> src/main.rs:663:5 [INFO] [stdout] | [INFO] [stdout] 657 | impl Cards [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 663 | fn set_rank(&mut self) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 675 | fn get_owner(&self) -> &String [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.94s [INFO] running `Command { std: "docker" "inspect" "677e7f5c3caf5a3b32d2add13d07af2fda93e79e382e2597466bd2671533dea8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "677e7f5c3caf5a3b32d2add13d07af2fda93e79e382e2597466bd2671533dea8", kill_on_drop: false }` [INFO] [stdout] 677e7f5c3caf5a3b32d2add13d07af2fda93e79e382e2597466bd2671533dea8