[INFO] cloning repository https://github.com/minipub/poker [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/minipub/poker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminipub%2Fpoker", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminipub%2Fpoker'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fb6df48ef8084eefd749557f4e4bccc5f5c7269c [INFO] checking minipub/poker against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminipub%2Fpoker" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/minipub/poker on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/minipub/poker [INFO] finished tweaking git repo https://github.com/minipub/poker [INFO] tweaked toml for git repo https://github.com/minipub/poker written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/minipub/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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e126a29a6b77dee08b1a799b775fc276ff2ac49aa1052f82aad19009f53fd41c [INFO] running `Command { std: "docker" "start" "-a" "e126a29a6b77dee08b1a799b775fc276ff2ac49aa1052f82aad19009f53fd41c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e126a29a6b77dee08b1a799b775fc276ff2ac49aa1052f82aad19009f53fd41c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e126a29a6b77dee08b1a799b775fc276ff2ac49aa1052f82aad19009f53fd41c", kill_on_drop: false }` [INFO] [stdout] e126a29a6b77dee08b1a799b775fc276ff2ac49aa1052f82aad19009f53fd41c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8aec836d96d6f975e55dc89521c98d6daf32f145ebc939e29c3aade7ae1cac61 [INFO] running `Command { std: "docker" "start" "-a" "8aec836d96d6f975e55dc89521c98d6daf32f145ebc939e29c3aade7ae1cac61", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking poker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DECK_TWO` [INFO] [stdout] --> src/lib/judger.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lib::deck::{DECK_ONE, DECK_TWO}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::card::*` [INFO] [stdout] --> src/lib/mgr.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::lib::card::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::color::*` [INFO] [stdout] --> src/lib/mgr.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::lib::color::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::deck::*` [INFO] [stdout] --> src/lib/mgr.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::lib::deck::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::judger::*` [INFO] [stdout] --> src/lib/mgr.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::lib::judger::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::player::*` [INFO] [stdout] --> src/lib/mgr.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::lib::player::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::point::*` [INFO] [stdout] --> src/lib/mgr.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lib::point::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::session::*` [INFO] [stdout] --> src/lib/mgr.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::lib::session::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::chain::Chain` [INFO] [stdout] --> src/lib/mgr.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::lib::style::chain::Chain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::iface::Suit` [INFO] [stdout] --> src/lib/mgr.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::lib::style::iface::Suit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::pairs::Pairs` [INFO] [stdout] --> src/lib/mgr.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::lib::style::pairs::Pairs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::three_with_ones::ThreeWithOnes` [INFO] [stdout] --> src/lib/mgr.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::lib::style::three_with_ones::ThreeWithOnes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::player::PlayerNum` [INFO] [stdout] --> src/lib/session.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::lib::player::PlayerNum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::card::*` [INFO] [stdout] --> src/lib/style/fools.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lib::card::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DECK_TWO` [INFO] [stdout] --> src/lib/judger.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lib::deck::{DECK_ONE, DECK_TWO}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::card::*` [INFO] [stdout] --> src/lib/mgr.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::lib::card::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::color::*` [INFO] [stdout] --> src/lib/mgr.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::lib::color::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::deck::*` [INFO] [stdout] --> src/lib/mgr.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::lib::deck::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::judger::*` [INFO] [stdout] --> src/lib/mgr.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::lib::judger::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::player::*` [INFO] [stdout] --> src/lib/mgr.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::lib::player::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::point::*` [INFO] [stdout] --> src/lib/mgr.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lib::point::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::session::*` [INFO] [stdout] --> src/lib/mgr.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::lib::session::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::chain::Chain` [INFO] [stdout] --> src/lib/mgr.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::lib::style::chain::Chain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::iface::Suit` [INFO] [stdout] --> src/lib/mgr.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::lib::style::iface::Suit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::pairs::Pairs` [INFO] [stdout] --> src/lib/mgr.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::lib::style::pairs::Pairs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::three_with_ones::ThreeWithOnes` [INFO] [stdout] --> src/lib/mgr.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::lib::style::three_with_ones::ThreeWithOnes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::player::PlayerNum` [INFO] [stdout] --> src/lib/session.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::lib::player::PlayerNum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::card::*` [INFO] [stdout] --> src/lib/style/fools.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lib::card::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cs` [INFO] [stdout] --> src/lib/player.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn play(cs: Box>) {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cs` [INFO] [stdout] --> src/lib/style/fools.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | fn cmp(&self, cs: &Vec) -> Option { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | fn eq(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | fn ne(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | fn gt(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:81:18 [INFO] [stdout] | [INFO] [stdout] 81 | fn ge(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | fn le(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 89 | fn lt(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/four_with_pairs.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/four_with_two.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/three_with_ones.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/three_with_pairs.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/threes.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cs` [INFO] [stdout] --> src/lib/player.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn play(cs: Box>) {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Spades`, `Plum`, `Square`, and `Hearts` are never constructed [INFO] [stdout] --> src/lib/color.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Color { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 3 | Spades, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | Plum, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Square, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | Hearts, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Color` 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: constant `DECK_ONE` is never used [INFO] [stdout] --> src/lib/deck.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const DECK_ONE: u8 = 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DECK_TWO` is never used [INFO] [stdout] --> src/lib/deck.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const DECK_TWO: u8 = 2; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Deck` is never constructed [INFO] [stdout] --> src/lib/deck.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Deck {} [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Deck` 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 function `new` is never used [INFO] [stdout] --> src/lib/deck.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Deck { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(cnt: u8) -> Box> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Judger` is never constructed [INFO] [stdout] --> src/lib/judger.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Judger { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Judger` 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/lib/judger.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Judger { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(deck_num: u8, cards: Box>) -> Judger { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn shuffle(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn reserve(&mut self, cnt: u8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn deal_lord(&mut self, p: Rc>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn deal(&mut self, ps: &Vec>>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn cards_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn lords_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/lib/mgr.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Three` and `Four` are never constructed [INFO] [stdout] --> src/lib/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum PlayerNum { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 8 | Three(u8), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Four(u8), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlayerNum` 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 `Player` is never constructed [INFO] [stdout] --> src/lib/player.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Player<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Player` 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/lib/player.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl<'a> Player<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new(id: u8, name: &str) -> Player { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn set_lord(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn push_card_func(p: Rc>, is_diff: bool) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn push_diff_card(&mut self, t: Card) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn push_dup_card(&mut self, t: Card) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn find_card(&mut self, t: &Card) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn del_card_by_idx(&mut self, idx: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn del_card(&mut self, t: &Card) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn cards_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn set_seat(&mut self, i: usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn play(cs: Box>) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lib/point.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Point { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 24 | BigTwo(BigTwo), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | Ace(Ace), [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | King(King), [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | Queen(Queen), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | Jack(Jack), [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | Ten(Ten), [INFO] [stdout] | ^^^ [INFO] [stdout] 30 | Nine(Nine), [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | Eight(Eight), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | Seven(Seven), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | Six(Six), [INFO] [stdout] | ^^^ [INFO] [stdout] 34 | Five(Five), [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | Four(Four), [INFO] [stdout] | ^^^^ [INFO] [stdout] 36 | Three(Three), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` 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: variants `Three`, `Four`, and `None` are never constructed [INFO] [stdout] --> src/lib/session.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum NumConfig { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 16 | Three(u8, u8, u8), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | Four(u8, u8, u8), [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NumConfig` 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 `Session` is never constructed [INFO] [stdout] --> src/lib/session.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Session<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Session` 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 `Round` is never constructed [INFO] [stdout] --> src/lib/session.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Round<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Round` 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`, `push_player`, `begin`, `set_lord`, and `play_round` are never used [INFO] [stdout] --> src/lib/session.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl<'a> Session<'a> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 39 | pub fn new(id: u64, nc: NumConfig) -> Result, &'a str> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn push_player(&mut self, p: Rc>>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn begin(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn set_lord(&mut self, i: usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn play_round(&mut self, p: Rc>>, cs: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | FourWithPairs(Rc), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 21 | FourWithPairs(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | FourWithTwo(Rc), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 22 | FourWithTwo(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | Boom(Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 | Boom(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | Chain(Rc), [INFO] [stdout] | ----- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 | Chain(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | Pairs(Rc), [INFO] [stdout] | ----- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 25 | Pairs(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | ThreeWithOnes(Rc), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 26 | ThreeWithOnes(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | ThreeWithPairs(Rc), [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 27 | ThreeWithPairs(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | Threes(Rc), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 28 | Threes(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | Single(Rc), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 29 | Single(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Fools` is never constructed [INFO] [stdout] --> src/lib/style/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum CardStyle { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 20 | Fools(Rc), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` 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 `cmp` and `to_style` are never used [INFO] [stdout] --> src/lib/style/mod.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl CardStyle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 33 | pub fn cmp(&self, cs: &Vec) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/boom.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Bomb { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 13 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/chain.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Chain { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 13 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/fools.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Fools { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 16 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/four_with_pairs.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl FourWithPairs { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 14 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/four_with_two.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl FourWithTwo { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 14 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `same_layer` is never used [INFO] [stdout] --> src/lib/style/iface.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Layer { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 10 | type Other; [INFO] [stdout] 11 | fn same_layer(&self, _: Self::Other) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp` is never used [INFO] [stdout] --> src/lib/style/iface.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait StyleCmp { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 17 | fn cmp(&self, cs: &Vec) -> Option; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ToStyle` is never used [INFO] [stdout] --> src/lib/style/iface.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub type ToStyle = fn(cs: &Vec) -> Option; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/pairs.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Pairs { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 13 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/single.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Single { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 10 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/three_with_ones.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ThreeWithOnes { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 14 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/three_with_pairs.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ThreeWithPairs { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 14 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/threes.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Threes { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 14 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 68 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cs` [INFO] [stdout] --> src/lib/style/fools.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | fn cmp(&self, cs: &Vec) -> Option { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | fn eq(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | fn ne(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | fn gt(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:81:18 [INFO] [stdout] | [INFO] [stdout] 81 | fn ge(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | fn le(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 89 | fn lt(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/four_with_pairs.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/four_with_two.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/three_with_ones.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/three_with_pairs.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/threes.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cards_count` and `lords_count` are never used [INFO] [stdout] --> src/lib/judger.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Judger { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn cards_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn lords_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/lib/mgr.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Three` and `Four` are never constructed [INFO] [stdout] --> src/lib/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum PlayerNum { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 8 | Three(u8), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Four(u8), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlayerNum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `name` are never read [INFO] [stdout] --> src/lib/player.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Player<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 14 | id: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 15 | name: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Player` 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 `find_card`, `del_card_by_idx`, and `play` are never used [INFO] [stdout] --> src/lib/player.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl<'a> Player<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn find_card(&mut self, t: &Card) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn del_card_by_idx(&mut self, idx: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn play(cs: Box>) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `round`, `player_num`, `deck_num`, and `reserve_num` are never read [INFO] [stdout] --> src/lib/session.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Session<'a> { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 23 | id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 26 | round: Round<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | player_num: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 28 | deck_num: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 29 | reserve_num: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Session` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `player` and `style` are never read [INFO] [stdout] --> src/lib/session.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Round<'a> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 34 | player: Option>>>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 35 | style: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Round` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `play_round` is never used [INFO] [stdout] --> src/lib/session.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl<'a> Session<'a> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn play_round(&mut self, p: Rc>>, cs: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Fools` is never constructed [INFO] [stdout] --> src/lib/style/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum CardStyle { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 20 | Fools(Rc), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` 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 function `to_style` is never used [INFO] [stdout] --> src/lib/style/fools.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Fools { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 16 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/four_with_pairs.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl FourWithPairs { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 14 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/four_with_two.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl FourWithTwo { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 14 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.17s [INFO] running `Command { std: "docker" "inspect" "8aec836d96d6f975e55dc89521c98d6daf32f145ebc939e29c3aade7ae1cac61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8aec836d96d6f975e55dc89521c98d6daf32f145ebc939e29c3aade7ae1cac61", kill_on_drop: false }` [INFO] [stdout] 8aec836d96d6f975e55dc89521c98d6daf32f145ebc939e29c3aade7ae1cac61 [INFO] checking minipub/poker against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminipub%2Fpoker" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/minipub/poker on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/minipub/poker [INFO] finished tweaking git repo https://github.com/minipub/poker [INFO] tweaked toml for git repo https://github.com/minipub/poker written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/minipub/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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e2f7eb959c1dbf0972e65adea8dcbd3c6e69941d8f6173c7933029c1c0009c33 [INFO] running `Command { std: "docker" "start" "-a" "e2f7eb959c1dbf0972e65adea8dcbd3c6e69941d8f6173c7933029c1c0009c33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e2f7eb959c1dbf0972e65adea8dcbd3c6e69941d8f6173c7933029c1c0009c33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2f7eb959c1dbf0972e65adea8dcbd3c6e69941d8f6173c7933029c1c0009c33", kill_on_drop: false }` [INFO] [stdout] e2f7eb959c1dbf0972e65adea8dcbd3c6e69941d8f6173c7933029c1c0009c33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 130bd198a9b0e665c4cb1bef3e6f9591faf0ae7ba46bb3f7dda0e94e6ed5405e [INFO] running `Command { std: "docker" "start" "-a" "130bd198a9b0e665c4cb1bef3e6f9591faf0ae7ba46bb3f7dda0e94e6ed5405e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking poker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DECK_TWO` [INFO] [stdout] --> src/lib/judger.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lib::deck::{DECK_ONE, DECK_TWO}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::card::*` [INFO] [stdout] --> src/lib/mgr.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::lib::card::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::color::*` [INFO] [stdout] --> src/lib/mgr.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::lib::color::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::deck::*` [INFO] [stdout] --> src/lib/mgr.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::lib::deck::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::judger::*` [INFO] [stdout] --> src/lib/mgr.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::lib::judger::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::player::*` [INFO] [stdout] --> src/lib/mgr.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::lib::player::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::point::*` [INFO] [stdout] --> src/lib/mgr.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lib::point::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::session::*` [INFO] [stdout] --> src/lib/mgr.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::lib::session::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::chain::Chain` [INFO] [stdout] --> src/lib/mgr.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::lib::style::chain::Chain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::iface::Suit` [INFO] [stdout] --> src/lib/mgr.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::lib::style::iface::Suit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::pairs::Pairs` [INFO] [stdout] --> src/lib/mgr.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::lib::style::pairs::Pairs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::three_with_ones::ThreeWithOnes` [INFO] [stdout] --> src/lib/mgr.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::lib::style::three_with_ones::ThreeWithOnes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::player::PlayerNum` [INFO] [stdout] --> src/lib/session.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::lib::player::PlayerNum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::card::*` [INFO] [stdout] --> src/lib/style/fools.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lib::card::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DECK_TWO` [INFO] [stdout] --> src/lib/judger.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lib::deck::{DECK_ONE, DECK_TWO}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::card::*` [INFO] [stdout] --> src/lib/mgr.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::lib::card::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::color::*` [INFO] [stdout] --> src/lib/mgr.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::lib::color::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::deck::*` [INFO] [stdout] --> src/lib/mgr.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::lib::deck::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::judger::*` [INFO] [stdout] --> src/lib/mgr.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::lib::judger::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::player::*` [INFO] [stdout] --> src/lib/mgr.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::lib::player::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::point::*` [INFO] [stdout] --> src/lib/mgr.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lib::point::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::session::*` [INFO] [stdout] --> src/lib/mgr.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::lib::session::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::chain::Chain` [INFO] [stdout] --> src/lib/mgr.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::lib::style::chain::Chain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::iface::Suit` [INFO] [stdout] --> src/lib/mgr.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::lib::style::iface::Suit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::pairs::Pairs` [INFO] [stdout] --> src/lib/mgr.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::lib::style::pairs::Pairs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::style::three_with_ones::ThreeWithOnes` [INFO] [stdout] --> src/lib/mgr.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::lib::style::three_with_ones::ThreeWithOnes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::player::PlayerNum` [INFO] [stdout] --> src/lib/session.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::lib::player::PlayerNum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::card::*` [INFO] [stdout] --> src/lib/style/fools.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lib::card::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cs` [INFO] [stdout] --> src/lib/player.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn play(cs: Box>) {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cs` [INFO] [stdout] --> src/lib/style/fools.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | fn cmp(&self, cs: &Vec) -> Option { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | fn eq(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | fn ne(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | fn gt(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:81:18 [INFO] [stdout] | [INFO] [stdout] 81 | fn ge(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | fn le(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 89 | fn lt(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/four_with_pairs.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/four_with_two.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/three_with_ones.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/three_with_pairs.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cs` [INFO] [stdout] --> src/lib/player.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn play(cs: Box>) {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/threes.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Spades`, `Plum`, `Square`, and `Hearts` are never constructed [INFO] [stdout] --> src/lib/color.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Color { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 3 | Spades, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | Plum, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Square, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | Hearts, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Color` 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: constant `DECK_ONE` is never used [INFO] [stdout] --> src/lib/deck.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const DECK_ONE: u8 = 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DECK_TWO` is never used [INFO] [stdout] --> src/lib/deck.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const DECK_TWO: u8 = 2; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Deck` is never constructed [INFO] [stdout] --> src/lib/deck.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Deck {} [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Deck` 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 function `new` is never used [INFO] [stdout] --> src/lib/deck.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Deck { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(cnt: u8) -> Box> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Judger` is never constructed [INFO] [stdout] --> src/lib/judger.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Judger { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Judger` 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/lib/judger.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Judger { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(deck_num: u8, cards: Box>) -> Judger { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn shuffle(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn reserve(&mut self, cnt: u8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn deal_lord(&mut self, p: Rc>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn deal(&mut self, ps: &Vec>>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn cards_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn lords_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/lib/mgr.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Three` and `Four` are never constructed [INFO] [stdout] --> src/lib/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum PlayerNum { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 8 | Three(u8), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Four(u8), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlayerNum` 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 `Player` is never constructed [INFO] [stdout] --> src/lib/player.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Player<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Player` 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/lib/player.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl<'a> Player<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new(id: u8, name: &str) -> Player { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn set_lord(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn push_card_func(p: Rc>, is_diff: bool) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn push_diff_card(&mut self, t: Card) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn push_dup_card(&mut self, t: Card) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn find_card(&mut self, t: &Card) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn del_card_by_idx(&mut self, idx: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn del_card(&mut self, t: &Card) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn cards_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn set_seat(&mut self, i: usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn play(cs: Box>) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lib/point.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Point { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 24 | BigTwo(BigTwo), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | Ace(Ace), [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | King(King), [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | Queen(Queen), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | Jack(Jack), [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | Ten(Ten), [INFO] [stdout] | ^^^ [INFO] [stdout] 30 | Nine(Nine), [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | Eight(Eight), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | Seven(Seven), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | Six(Six), [INFO] [stdout] | ^^^ [INFO] [stdout] 34 | Five(Five), [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | Four(Four), [INFO] [stdout] | ^^^^ [INFO] [stdout] 36 | Three(Three), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` 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: variants `Three`, `Four`, and `None` are never constructed [INFO] [stdout] --> src/lib/session.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum NumConfig { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 16 | Three(u8, u8, u8), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | Four(u8, u8, u8), [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NumConfig` 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 `Session` is never constructed [INFO] [stdout] --> src/lib/session.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Session<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Session` 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 `Round` is never constructed [INFO] [stdout] --> src/lib/session.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Round<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Round` 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`, `push_player`, `begin`, `set_lord`, and `play_round` are never used [INFO] [stdout] --> src/lib/session.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl<'a> Session<'a> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 39 | pub fn new(id: u64, nc: NumConfig) -> Result, &'a str> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn push_player(&mut self, p: Rc>>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn begin(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn set_lord(&mut self, i: usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn play_round(&mut self, p: Rc>>, cs: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | FourWithPairs(Rc), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 21 | FourWithPairs(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | FourWithTwo(Rc), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 22 | FourWithTwo(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | Boom(Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 | Boom(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | Chain(Rc), [INFO] [stdout] | ----- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 | Chain(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | Pairs(Rc), [INFO] [stdout] | ----- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 25 | Pairs(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | ThreeWithOnes(Rc), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 26 | ThreeWithOnes(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | ThreeWithPairs(Rc), [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 27 | ThreeWithPairs(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | Threes(Rc), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 28 | Threes(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib/style/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | Single(Rc), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 29 | Single(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Fools` is never constructed [INFO] [stdout] --> src/lib/style/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum CardStyle { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 20 | Fools(Rc), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` 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 `cmp` and `to_style` are never used [INFO] [stdout] --> src/lib/style/mod.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl CardStyle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 33 | pub fn cmp(&self, cs: &Vec) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/boom.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Bomb { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 13 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/chain.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Chain { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 13 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/fools.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Fools { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 16 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/four_with_pairs.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl FourWithPairs { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 14 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/four_with_two.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl FourWithTwo { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 14 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `same_layer` is never used [INFO] [stdout] --> src/lib/style/iface.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Layer { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 10 | type Other; [INFO] [stdout] 11 | fn same_layer(&self, _: Self::Other) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp` is never used [INFO] [stdout] --> src/lib/style/iface.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait StyleCmp { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 17 | fn cmp(&self, cs: &Vec) -> Option; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ToStyle` is never used [INFO] [stdout] --> src/lib/style/iface.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub type ToStyle = fn(cs: &Vec) -> Option; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/pairs.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Pairs { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 13 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/single.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Single { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 10 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/three_with_ones.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ThreeWithOnes { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 14 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/three_with_pairs.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ThreeWithPairs { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 14 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/threes.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Threes { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 14 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib/judger.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(deck_num: u8, cards: Box>) -> Judger { [INFO] [stdout] | --------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 21 | lords: Box::new(vec![]), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib/player.rs:38:31 [INFO] [stdout] | [INFO] [stdout] 38 | Box::new(move |c| p.borrow_mut().push_diff_card(c)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib/player.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | Box::new(move |c| p.borrow_mut().push_dup_card(c)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib/session.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 50 | let ds = deck::Deck::new(deck_num); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 53 | let mut j = judger::Judger::new(deck_num, ds); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 62 | Ok(Session { [INFO] [stdout] | ____________^ [INFO] [stdout] 63 | | id, [INFO] [stdout] 64 | | judger: j, [INFO] [stdout] 65 | | players: vec![], [INFO] [stdout] ... | [INFO] [stdout] 72 | | reserve_num, [INFO] [stdout] 73 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 68 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cs` [INFO] [stdout] --> src/lib/style/fools.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | fn cmp(&self, cs: &Vec) -> Option { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | fn eq(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | fn ne(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | fn gt(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:81:18 [INFO] [stdout] | [INFO] [stdout] 81 | fn ge(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | fn le(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lib/style/fools.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 89 | fn lt(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/four_with_pairs.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `poker` (bin "poker") due to 5 previous errors; 68 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/four_with_two.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/three_with_ones.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/three_with_pairs.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib/style/threes.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | for (k, v) in buckets { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cards_count` and `lords_count` are never used [INFO] [stdout] --> src/lib/judger.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Judger { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn cards_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn lords_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/lib/mgr.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Three` and `Four` are never constructed [INFO] [stdout] --> src/lib/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum PlayerNum { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 8 | Three(u8), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Four(u8), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlayerNum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `name` are never read [INFO] [stdout] --> src/lib/player.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Player<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 14 | id: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 15 | name: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Player` 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 `find_card`, `del_card_by_idx`, and `play` are never used [INFO] [stdout] --> src/lib/player.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl<'a> Player<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn find_card(&mut self, t: &Card) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn del_card_by_idx(&mut self, idx: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn play(cs: Box>) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `round`, `player_num`, `deck_num`, and `reserve_num` are never read [INFO] [stdout] --> src/lib/session.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Session<'a> { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 23 | id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 26 | round: Round<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | player_num: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 28 | deck_num: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 29 | reserve_num: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Session` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `player` and `style` are never read [INFO] [stdout] --> src/lib/session.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Round<'a> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 34 | player: Option>>>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 35 | style: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Round` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `play_round` is never used [INFO] [stdout] --> src/lib/session.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl<'a> Session<'a> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn play_round(&mut self, p: Rc>>, cs: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Fools` is never constructed [INFO] [stdout] --> src/lib/style/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum CardStyle { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 20 | Fools(Rc), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CardStyle` 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 function `to_style` is never used [INFO] [stdout] --> src/lib/style/fools.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Fools { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 16 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/four_with_pairs.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl FourWithPairs { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 14 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_style` is never used [INFO] [stdout] --> src/lib/style/four_with_two.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl FourWithTwo { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 14 | pub fn to_style(cs: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib/judger.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(deck_num: u8, cards: Box>) -> Judger { [INFO] [stdout] | --------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 21 | lords: Box::new(vec![]), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib/player.rs:38:31 [INFO] [stdout] | [INFO] [stdout] 38 | Box::new(move |c| p.borrow_mut().push_diff_card(c)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib/player.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | Box::new(move |c| p.borrow_mut().push_dup_card(c)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib/session.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 50 | let ds = deck::Deck::new(deck_num); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 53 | let mut j = judger::Judger::new(deck_num, ds); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 62 | Ok(Session { [INFO] [stdout] | ____________^ [INFO] [stdout] 63 | | id, [INFO] [stdout] 64 | | judger: j, [INFO] [stdout] 65 | | players: vec![], [INFO] [stdout] ... | [INFO] [stdout] 72 | | reserve_num, [INFO] [stdout] 73 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `poker` (bin "poker" test) due to 5 previous errors; 40 warnings emitted [INFO] running `Command { std: "docker" "inspect" "130bd198a9b0e665c4cb1bef3e6f9591faf0ae7ba46bb3f7dda0e94e6ed5405e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "130bd198a9b0e665c4cb1bef3e6f9591faf0ae7ba46bb3f7dda0e94e6ed5405e", kill_on_drop: false }` [INFO] [stdout] 130bd198a9b0e665c4cb1bef3e6f9591faf0ae7ba46bb3f7dda0e94e6ed5405e