[INFO] cloning repository https://github.com/hemangandhi/tichu [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hemangandhi/tichu" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhemangandhi%2Ftichu", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhemangandhi%2Ftichu'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0c441cd5ba38b2148b04017f44b1ae28f33d2f79 [INFO] checking hemangandhi/tichu against try#d8a5ee01b913730aca7ab44c72c8f2722c0533ff for pr-139022 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhemangandhi%2Ftichu" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hemangandhi/tichu on toolchain d8a5ee01b913730aca7ab44c72c8f2722c0533ff [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hemangandhi/tichu [INFO] finished tweaking git repo https://github.com/hemangandhi/tichu [INFO] tweaked toml for git repo https://github.com/hemangandhi/tichu written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/hemangandhi/tichu 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" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 14 packages to latest compatible versions [INFO] [stderr] Adding cfg-if v1.0.0 [INFO] [stderr] Updating getrandom v0.1.6 -> v0.2.15 [INFO] [stderr] Updating libc v0.2.58 -> v0.2.171 [INFO] [stderr] Updating ppv-lite86 v0.2.5 -> v0.2.21 [INFO] [stderr] Adding proc-macro2 v1.0.94 [INFO] [stderr] Adding quote v1.0.40 [INFO] [stderr] Updating rand v0.7.0 -> v0.8.5 (available: v0.9.0) [INFO] [stderr] Updating rand_chacha v0.2.0 -> v0.3.1 [INFO] [stderr] Updating rand_core v0.5.0 -> v0.6.4 [INFO] [stderr] Adding syn v2.0.100 [INFO] [stderr] Adding unicode-ident v1.0.18 [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 [INFO] [stderr] Adding zerocopy v0.8.24 [INFO] [stderr] Adding zerocopy-derive v0.8.24 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b2cc34f7df6dee63d71143517b7068ffea707ce4f1a541992ee2e4119946016 [INFO] running `Command { std: "docker" "start" "-a" "1b2cc34f7df6dee63d71143517b7068ffea707ce4f1a541992ee2e4119946016", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b2cc34f7df6dee63d71143517b7068ffea707ce4f1a541992ee2e4119946016", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b2cc34f7df6dee63d71143517b7068ffea707ce4f1a541992ee2e4119946016", kill_on_drop: false }` [INFO] [stdout] 1b2cc34f7df6dee63d71143517b7068ffea707ce4f1a541992ee2e4119946016 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1249059f06231459a8d0aad7766d1cafdf602f00853299f8e7c5ec4df786527 [INFO] running `Command { std: "docker" "start" "-a" "c1249059f06231459a8d0aad7766d1cafdf602f00853299f8e7c5ec4df786527", kill_on_drop: false }` [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Checking smallvec v0.6.10 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Checking lock_api v0.1.5 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking parking_lot v0.7.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking once_cell v0.1.8 [INFO] [stderr] Checking cached v0.8.0 [INFO] [stderr] Checking tishu v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/tichu/game.rs:357:57 [INFO] [stdout] | [INFO] [stdout] 357 | let mut hands: [PlayerCards; 4] = std::mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/tichu/game.rs:357:57 [INFO] [stdout] | [INFO] [stdout] 357 | let mut hands: [PlayerCards; 4] = std::mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `distance_to` and `point_value` are never used [INFO] [stdout] --> src/tichu/hand.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Value { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn distance_to(&self, other: &Self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn point_value(&self, keep_dragon: bool) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/tichu/hand.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub enum HandType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 134 | Pass, [INFO] [stdout] | ^^^^ [INFO] [stdout] 135 | Single(Card), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 136 | Pair(Card), [INFO] [stdout] | ^^^^ [INFO] [stdout] 137 | Triple(Card), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 138 | FourOfAKind(Card), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 139 | FullHouse(Card, Card), //first over second [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 140 | ConsecutivePairs(Card, u32), //bottom and length [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 141 | Straight(Card, u32), //bottom and length [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 142 | StraightFlush(Card, u32), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HandType` 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: method `num_cards` is never used [INFO] [stdout] --> src/tichu/hand.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 145 | impl HandType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 146 | pub fn num_cards(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `groups_of_n_such_that` is never used [INFO] [stdout] --> src/tichu/hand.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn groups_of_n_such_that(n: u32, cond: Option<&Value>, use_pheonix: bool, unseen: &[Card]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `length_n_straights_of_k_beating` is never used [INFO] [stdout] --> src/tichu/hand.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn length_n_straights_of_k_beating( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_straight_flush_bombs` is never used [INFO] [stdout] --> src/tichu/hand.rs:247:4 [INFO] [stdout] | [INFO] [stdout] 247 | fn count_straight_flush_bombs(n_cards: u32, unseen_cards: &[Card]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `value`, `num_non_bomb_plays_that_beat`, `is_pass`, and `probability_of_being_beaten` are never used [INFO] [stdout] --> src/tichu/hand.rs:262:12 [INFO] [stdout] | [INFO] [stdout] 261 | impl<'a> Hand<'a> { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 262 | pub fn value(&self, keep_dragon: bool) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | fn num_non_bomb_plays_that_beat(&self, unseen_cards: &[Card]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | fn is_pass(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | pub fn probability_of_being_beaten(&self, unseen_cards: &[Card], opp_hand_size: u32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NoCall`, `Tichu`, and `GrandTichu` are never constructed [INFO] [stdout] --> src/tichu/game.rs:245:5 [INFO] [stdout] | [INFO] [stdout] 243 | pub enum TichuCall { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 244 | NotYetPlayed, [INFO] [stdout] 245 | NoCall, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | Tichu(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 250 | GrandTichu(f64), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TichuCall` 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: method `censor` is never used [INFO] [stdout] --> src/tichu/game.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 296 | impl TichuCall { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 297 | pub fn censor(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/tichu/game.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 307 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 308 | pub players: [PlayerCards; 4], [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 309 | pub slash_score: i32, // slash and cross are arbitrary, just [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 310 | pub cross_score: i32, // to distinguish the teams (players know [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 311 | // about their partner) [INFO] [stdout] 312 | turn_index: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 313 | tichu_calls: [TichuCall; 4], [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 314 | pub expected_slash_points: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 315 | pub expected_cross_points: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Player` is never used [INFO] [stdout] --> src/tichu/game.rs:318:11 [INFO] [stdout] | [INFO] [stdout] 318 | pub trait Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `play_move_helper`, `play_move`, `show_cards_to_player`, `swap_cards`, `do_pass`, and `play_game` are never used [INFO] [stdout] --> src/tichu/game.rs:383:8 [INFO] [stdout] | [INFO] [stdout] 345 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 383 | fn play_move_helper( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 447 | fn play_move( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 495 | fn show_cards_to_player(cards: PlayerCards, player: &mut T) -> TichuCall { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 528 | fn swap_cards( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 557 | fn do_pass( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 627 | pub fn play_game( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `deck` should have an upper case name [INFO] [stdout] --> src/tichu/game.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub static deck: [hand::Card; 14 * 4] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `DECK` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[[Option; 14]; 4]` does not permit being left uninitialized [INFO] [stdout] --> src/tichu/game.rs:357:47 [INFO] [stdout] | [INFO] [stdout] 357 | let mut hands: [PlayerCards; 4] = std::mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: enums with multiple inhabited variants have to be initialized to a variant [INFO] [stdout] --> /rustc/d8a5ee01b913730aca7ab44c72c8f2722c0533ff/library/core/src/option.rs:572:1 [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `distance_to` and `point_value` are never used [INFO] [stdout] --> src/tichu/hand.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Value { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn distance_to(&self, other: &Self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn point_value(&self, keep_dragon: bool) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/tichu/hand.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub enum HandType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 134 | Pass, [INFO] [stdout] | ^^^^ [INFO] [stdout] 135 | Single(Card), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 136 | Pair(Card), [INFO] [stdout] | ^^^^ [INFO] [stdout] 137 | Triple(Card), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 138 | FourOfAKind(Card), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 139 | FullHouse(Card, Card), //first over second [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 140 | ConsecutivePairs(Card, u32), //bottom and length [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 141 | Straight(Card, u32), //bottom and length [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 142 | StraightFlush(Card, u32), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HandType` 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: method `num_cards` is never used [INFO] [stdout] --> src/tichu/hand.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 145 | impl HandType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 146 | pub fn num_cards(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `groups_of_n_such_that` is never used [INFO] [stdout] --> src/tichu/hand.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn groups_of_n_such_that(n: u32, cond: Option<&Value>, use_pheonix: bool, unseen: &[Card]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `length_n_straights_of_k_beating` is never used [INFO] [stdout] --> src/tichu/hand.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn length_n_straights_of_k_beating( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_straight_flush_bombs` is never used [INFO] [stdout] --> src/tichu/hand.rs:247:4 [INFO] [stdout] | [INFO] [stdout] 247 | fn count_straight_flush_bombs(n_cards: u32, unseen_cards: &[Card]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `value`, `num_non_bomb_plays_that_beat`, `is_pass`, and `probability_of_being_beaten` are never used [INFO] [stdout] --> src/tichu/hand.rs:262:12 [INFO] [stdout] | [INFO] [stdout] 261 | impl<'a> Hand<'a> { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 262 | pub fn value(&self, keep_dragon: bool) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | fn num_non_bomb_plays_that_beat(&self, unseen_cards: &[Card]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | fn is_pass(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | pub fn probability_of_being_beaten(&self, unseen_cards: &[Card], opp_hand_size: u32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NoCall`, `Tichu`, and `GrandTichu` are never constructed [INFO] [stdout] --> src/tichu/game.rs:245:5 [INFO] [stdout] | [INFO] [stdout] 243 | pub enum TichuCall { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 244 | NotYetPlayed, [INFO] [stdout] 245 | NoCall, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | Tichu(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 250 | GrandTichu(f64), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TichuCall` 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: method `censor` is never used [INFO] [stdout] --> src/tichu/game.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 296 | impl TichuCall { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 297 | pub fn censor(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/tichu/game.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 307 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 308 | pub players: [PlayerCards; 4], [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 309 | pub slash_score: i32, // slash and cross are arbitrary, just [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 310 | pub cross_score: i32, // to distinguish the teams (players know [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 311 | // about their partner) [INFO] [stdout] 312 | turn_index: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 313 | tichu_calls: [TichuCall; 4], [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 314 | pub expected_slash_points: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 315 | pub expected_cross_points: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Player` is never used [INFO] [stdout] --> src/tichu/game.rs:318:11 [INFO] [stdout] | [INFO] [stdout] 318 | pub trait Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `play_move_helper`, `play_move`, `show_cards_to_player`, `swap_cards`, `do_pass`, and `play_game` are never used [INFO] [stdout] --> src/tichu/game.rs:383:8 [INFO] [stdout] | [INFO] [stdout] 345 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 383 | fn play_move_helper( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 447 | fn play_move( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 495 | fn show_cards_to_player(cards: PlayerCards, player: &mut T) -> TichuCall { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 528 | fn swap_cards( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 557 | fn do_pass( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 627 | pub fn play_game( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `deck` should have an upper case name [INFO] [stdout] --> src/tichu/game.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub static deck: [hand::Card; 14 * 4] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `DECK` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[[Option; 14]; 4]` does not permit being left uninitialized [INFO] [stdout] --> src/tichu/game.rs:357:47 [INFO] [stdout] | [INFO] [stdout] 357 | let mut hands: [PlayerCards; 4] = std::mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: enums with multiple inhabited variants have to be initialized to a variant [INFO] [stdout] --> /rustc/d8a5ee01b913730aca7ab44c72c8f2722c0533ff/library/core/src/option.rs:572:1 [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.58s [INFO] running `Command { std: "docker" "inspect" "c1249059f06231459a8d0aad7766d1cafdf602f00853299f8e7c5ec4df786527", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1249059f06231459a8d0aad7766d1cafdf602f00853299f8e7c5ec4df786527", kill_on_drop: false }` [INFO] [stdout] c1249059f06231459a8d0aad7766d1cafdf602f00853299f8e7c5ec4df786527