[INFO] cloning repository https://github.com/whitehwarang/poker_env [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/whitehwarang/poker_env" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhitehwarang%2Fpoker_env", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhitehwarang%2Fpoker_env'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ca15fed3cf7f64305a6aae681641eaaa47e7d012 [INFO] checking whitehwarang/poker_env against master#e4106065bf1bb515935d5d024e8d9c86454e2b22 for pr-112160 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhitehwarang%2Fpoker_env" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/whitehwarang/poker_env on toolchain e4106065bf1bb515935d5d024e8d9c86454e2b22 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/whitehwarang/poker_env [INFO] finished tweaking git repo https://github.com/whitehwarang/poker_env [INFO] tweaked toml for git repo https://github.com/whitehwarang/poker_env written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/whitehwarang/poker_env 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" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a5b915d1df11d69af729d5173ea0b3885f08820f03406c153875083634d99535 [INFO] running `Command { std: "docker" "start" "-a" "a5b915d1df11d69af729d5173ea0b3885f08820f03406c153875083634d99535", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a5b915d1df11d69af729d5173ea0b3885f08820f03406c153875083634d99535", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5b915d1df11d69af729d5173ea0b3885f08820f03406c153875083634d99535", kill_on_drop: false }` [INFO] [stdout] a5b915d1df11d69af729d5173ea0b3885f08820f03406c153875083634d99535 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a9b0804d01382a5ee051f5a765bd306b9a629850440bfe4a25e4e42fa16a5148 [INFO] running `Command { std: "docker" "start" "-a" "a9b0804d01382a5ee051f5a765bd306b9a629850440bfe4a25e4e42fa16a5148", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking either v1.8.0 [INFO] [stderr] Checking itertools v0.10.3 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking poker_env v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/hand.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hand::Hand` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::hand::Hand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::holdem::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::holdem::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/hand.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hand::Hand` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::hand::Hand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::holdem::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::holdem::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `shuffle`, `partial_shuffle`, and `set_front_cards` are never used [INFO] [stdout] --> src/deck.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 87 | impl Deck { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn shuffle(&mut self) -> () { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn partial_shuffle(&mut self) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn set_front_cards(&mut self, front_cards: Vec) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cards_cnt` is never read [INFO] [stdout] --> src/hand.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Hand { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 7 | cards_cnt: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Hand` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `clone`, `add_card`, `add_cards`, and `len` are never used [INFO] [stdout] --> src/hand.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Hand { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 18 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn clone(&self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn add_card(&mut self, card: Card) -> () { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn add_cards(&mut self, cards: &[Card]) -> () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/grade.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Grade { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 7 | StraightFlush([Card; 5]), [INFO] [stdout] 8 | FourOfAKind([Card; 5]), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | FullHouse([Card; 5]), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | Flush([Card; 5]), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | Straight([Card; 5]), [INFO] [stdout] 12 | ThreeOfAKind([Card; 5]), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 13 | TwoPairs([Card; 5]), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | OnePair([Card; 5]), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | Top([Card; 5]), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Grade` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/grade.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl Grade { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn new(cards: &[Card]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn extract_top5(cards: &mut [Card]) -> [Card; 5] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | fn get_major_num(cards: &[Card], num_of_cards: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | fn is_four_of_a_kind(cards: &mut [Card]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | fn is_full_house(cards: &mut [Card]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | fn is_flush(cards: &mut [Card]) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | fn is_three_of_a_kind(cards: &mut [Card]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 330 | fn is_two_pairs(cards: &mut [Card]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 364 | fn is_one_pair(cards: &mut [Card]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PreFlop`, `Flop`, `Turn`, and `River` are never constructed [INFO] [stdout] --> src/holdem.rs:8:2 [INFO] [stdout] | [INFO] [stdout] 7 | enum Stage { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 8 | PreFlop, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | Flop, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | Turn, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | River, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stage` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Showdown` is never used [INFO] [stdout] --> src/holdem.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | enum Showdown { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/holdem.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | impl HoldemGame { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 41 | pub fn new(players_cnt: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn add_community_card(&mut self) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn preflop(&mut self) -> () { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn preflop_to_flop(&mut self) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn flop_to_turn(&mut self) -> () { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | fn turn_to_river(&mut self) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn play_once(&mut self) -> Showdown { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn calc_win_rate(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn set_front_cards(&mut self, front_cards: Vec) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clone` is never used [INFO] [stdout] --> src/hand.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Hand { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn clone(&self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/holdem.rs:174:2 [INFO] [stdout] | [INFO] [stdout] 174 | game.set_front_cards(frontcards); [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] 174 | let _ = game.set_front_cards(frontcards); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized] target(s) in 1.32s [INFO] running `Command { std: "docker" "inspect" "a9b0804d01382a5ee051f5a765bd306b9a629850440bfe4a25e4e42fa16a5148", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9b0804d01382a5ee051f5a765bd306b9a629850440bfe4a25e4e42fa16a5148", kill_on_drop: false }` [INFO] [stdout] a9b0804d01382a5ee051f5a765bd306b9a629850440bfe4a25e4e42fa16a5148