[INFO] cloning repository https://github.com/ChrisHamilton91/poker [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ChrisHamilton91/poker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChrisHamilton91%2Fpoker", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChrisHamilton91%2Fpoker'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 46ef231a1ceba7f684cd94047a343fa63a01808c [INFO] building ChrisHamilton91/poker 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%2FChrisHamilton91%2Fpoker" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ChrisHamilton91/poker 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/ChrisHamilton91/poker [INFO] finished tweaking git repo https://github.com/ChrisHamilton91/poker [INFO] tweaked toml for git repo https://github.com/ChrisHamilton91/poker written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ChrisHamilton91/poker 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] 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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 433f0f383be54b82d44a862a2ab7317192915af2b155bbe54f662c1cab3199e5 [INFO] running `Command { std: "docker" "start" "-a" "433f0f383be54b82d44a862a2ab7317192915af2b155bbe54f662c1cab3199e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "433f0f383be54b82d44a862a2ab7317192915af2b155bbe54f662c1cab3199e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "433f0f383be54b82d44a862a2ab7317192915af2b155bbe54f662c1cab3199e5", kill_on_drop: false }` [INFO] [stdout] 433f0f383be54b82d44a862a2ab7317192915af2b155bbe54f662c1cab3199e5 [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 -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] c8a3180569a41f184a944a46e08ce62d9e13adb1dfd2acae3d4bc8d3322fc475 [INFO] running `Command { std: "docker" "start" "-a" "c8a3180569a41f184a944a46e08ce62d9e13adb1dfd2acae3d4bc8d3322fc475", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling poker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/game.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let player = match self.seats.get(position) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/card.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Rank { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 5 | Two, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | Three, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Four, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Five, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Six, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | Seven, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | Eight, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | Nine, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | Ten, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | Jack, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | Queen, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | King, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | Ace, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rank` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Clubs`, `Diamonds`, `Hearts`, and `Spades` are never constructed [INFO] [stdout] --> src/card.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Suit { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 22 | Clubs, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 23 | Diamonds, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | Hearts, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | Spades, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Suit` 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: type alias `Card` is never used [INFO] [stdout] --> src/card.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub type Card = (Rank, Suit); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deck_52` is never used [INFO] [stdout] --> src/card.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn deck_52() -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dealer` is never constructed [INFO] [stdout] --> src/dealer.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Dealer { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Dealer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `shuffle`, and `deal` are never used [INFO] [stdout] --> src/dealer.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Dealer { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn shuffle(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn deal(&mut self, n: usize) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameOptions` is never constructed [INFO] [stdout] --> src/game.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct GameOptions { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameOptions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Game` is never constructed [INFO] [stdout] --> src/game.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Game { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` 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 items are never used [INFO] [stdout] --> src/game.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 26 | pub fn new(options: GameOptions) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn seat_player(&mut self, position: usize, player: Player) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn remove_player(&mut self, position: usize) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn deal_to_board(&mut self, num_cards: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn deal_to_players(&mut self, num_cards: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn rake_bets(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn position_at_or_next_to(&mut self, position: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn position_next_to(&mut self, mut position: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | fn get_mut_player(&mut self, position: usize) -> &mut Player { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn start_hand(&mut self) -> Result<&mut Player, String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn next_hand(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn advance_button(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn next_turn(&mut self) -> &mut Player { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/hand.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum Hand { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 29 | HighCard(HighCardRanks), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 30 | OnePair(OnePairRanks), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 31 | TwoPair(TwoPairRanks), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 32 | ThreeOfAKind(ThreeOfAKindRanks), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 33 | Straight(Rank), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 34 | Flush(FlushRanks), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 35 | FullHouse(FullHouseRanks), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 36 | FourOfAKind(FourOfAKindRanks), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 37 | StraightFlush(Rank), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 38 | RoyalFlush, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Hand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `best_hand` is never used [INFO] [stdout] --> src/hand/five_card_hand.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn best_hand(cards: [Card; 5]) -> Hand { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_royal_flush` is never used [INFO] [stdout] --> src/hand/five_card_hand.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn is_royal_flush(cards: [Card; 5]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_royal` is never used [INFO] [stdout] --> src/hand/five_card_hand.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn is_royal(cards: [Card; 5]) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_straight_flush` is never used [INFO] [stdout] --> src/hand/five_card_hand.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn is_straight_flush(cards: [Card; 5]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_full_house` is never used [INFO] [stdout] --> src/hand/five_card_hand.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn is_full_house(cards: [Card; 5]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_flush` is never used [INFO] [stdout] --> src/hand/five_card_hand.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn is_flush(cards: [Card; 5]) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_four_of_a_kind` is never used [INFO] [stdout] --> src/hand/five_card_hand.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn is_four_of_a_kind(cards: [Card; 5]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_straight` is never used [INFO] [stdout] --> src/hand/five_card_hand.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn is_straight(cards: [Card; 5]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_three_of_a_kind` is never used [INFO] [stdout] --> src/hand/five_card_hand.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn is_three_of_a_kind(cards: [Card; 5]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_two_pair` is never used [INFO] [stdout] --> src/hand/five_card_hand.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn is_two_pair(cards: [Card; 5]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_one_pair` is never used [INFO] [stdout] --> src/hand/five_card_hand.rs:133:4 [INFO] [stdout] | [INFO] [stdout] 133 | fn is_one_pair(cards: [Card; 5]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `best_hand` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn best_hand(cards: [Card; 7]) -> Hand { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_royal_flush` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn is_royal_flush(cards: [Card; 7]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_straight_flush` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn is_straight_flush(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_wheel_flush` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn is_wheel_flush(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_full_house` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:111:4 [INFO] [stdout] | [INFO] [stdout] 111 | fn is_full_house(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_flush` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:131:4 [INFO] [stdout] | [INFO] [stdout] 131 | fn is_flush(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_four_of_a_kind` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:148:4 [INFO] [stdout] | [INFO] [stdout] 148 | fn is_four_of_a_kind(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_straight` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:163:4 [INFO] [stdout] | [INFO] [stdout] 163 | fn is_straight(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_wheel` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | fn is_wheel(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_three_of_a_kind` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn is_three_of_a_kind(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_two_pair` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:216:4 [INFO] [stdout] | [INFO] [stdout] 216 | fn is_two_pair(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_one_pair` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:238:4 [INFO] [stdout] | [INFO] [stdout] 238 | fn is_one_pair(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Player` is never constructed [INFO] [stdout] --> src/player.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Player` 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`, `bet`, `take_cards`, and `muck` are never used [INFO] [stdout] --> src/player.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Player { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(chips: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn bet(&mut self, mut bet: u64) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn take_cards(&mut self, cards: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn muck(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | self.start_hand(); [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] 165 | let _ = self.start_hand(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.50s [INFO] running `Command { std: "docker" "inspect" "c8a3180569a41f184a944a46e08ce62d9e13adb1dfd2acae3d4bc8d3322fc475", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8a3180569a41f184a944a46e08ce62d9e13adb1dfd2acae3d4bc8d3322fc475", kill_on_drop: false }` [INFO] [stdout] c8a3180569a41f184a944a46e08ce62d9e13adb1dfd2acae3d4bc8d3322fc475 [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 -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] b89dab0ee5f6fecd98116a1bc0c03fc9c06af037a5d22338a4c80f24e3ca93a4 [INFO] running `Command { std: "docker" "start" "-a" "b89dab0ee5f6fecd98116a1bc0c03fc9c06af037a5d22338a4c80f24e3ca93a4", kill_on_drop: false }` [INFO] [stderr] Compiling poker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/game.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let player = match self.seats.get(position) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/card.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Rank { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 5 | Two, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | Three, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Four, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Five, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Six, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | Seven, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | King, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | Ace, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rank` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Diamonds`, `Hearts`, and `Spades` are never constructed [INFO] [stdout] --> src/card.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Suit { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 22 | Clubs, [INFO] [stdout] 23 | Diamonds, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | Hearts, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | Spades, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Suit` 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: function `deck_52` is never used [INFO] [stdout] --> src/card.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn deck_52() -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dealer` is never constructed [INFO] [stdout] --> src/dealer.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Dealer { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Dealer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `shuffle`, and `deal` are never used [INFO] [stdout] --> src/dealer.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Dealer { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn shuffle(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn deal(&mut self, n: usize) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameOptions` is never constructed [INFO] [stdout] --> src/game.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct GameOptions { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameOptions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Game` is never constructed [INFO] [stdout] --> src/game.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Game { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` 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 items are never used [INFO] [stdout] --> src/game.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 26 | pub fn new(options: GameOptions) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn seat_player(&mut self, position: usize, player: Player) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn remove_player(&mut self, position: usize) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn deal_to_board(&mut self, num_cards: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn deal_to_players(&mut self, num_cards: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn rake_bets(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn position_at_or_next_to(&mut self, position: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn position_next_to(&mut self, mut position: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | fn get_mut_player(&mut self, position: usize) -> &mut Player { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn start_hand(&mut self) -> Result<&mut Player, String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn next_hand(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn advance_button(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn next_turn(&mut self) -> &mut Player { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `best_hand` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn best_hand(cards: [Card; 7]) -> Hand { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_royal_flush` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn is_royal_flush(cards: [Card; 7]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_straight_flush` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn is_straight_flush(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_wheel_flush` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn is_wheel_flush(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_full_house` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:111:4 [INFO] [stdout] | [INFO] [stdout] 111 | fn is_full_house(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_flush` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:131:4 [INFO] [stdout] | [INFO] [stdout] 131 | fn is_flush(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_four_of_a_kind` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:148:4 [INFO] [stdout] | [INFO] [stdout] 148 | fn is_four_of_a_kind(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_straight` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:163:4 [INFO] [stdout] | [INFO] [stdout] 163 | fn is_straight(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_wheel` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | fn is_wheel(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_three_of_a_kind` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn is_three_of_a_kind(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_two_pair` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:216:4 [INFO] [stdout] | [INFO] [stdout] 216 | fn is_two_pair(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_one_pair` is never used [INFO] [stdout] --> src/hand/seven_card_hand.rs:238:4 [INFO] [stdout] | [INFO] [stdout] 238 | fn is_one_pair(cards: [Card; 7]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Player` is never constructed [INFO] [stdout] --> src/player.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Player` 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`, `bet`, `take_cards`, and `muck` are never used [INFO] [stdout] --> src/player.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Player { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(chips: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn bet(&mut self, mut bet: u64) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn take_cards(&mut self, cards: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn muck(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | self.start_hand(); [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] 165 | let _ = self.start_hand(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] running `Command { std: "docker" "inspect" "b89dab0ee5f6fecd98116a1bc0c03fc9c06af037a5d22338a4c80f24e3ca93a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b89dab0ee5f6fecd98116a1bc0c03fc9c06af037a5d22338a4c80f24e3ca93a4", kill_on_drop: false }` [INFO] [stdout] b89dab0ee5f6fecd98116a1bc0c03fc9c06af037a5d22338a4c80f24e3ca93a4