[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] testing hemangandhi/tichu against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhemangandhi%2Ftichu" "/workspace/builds/worker-59/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-59/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hemangandhi/tichu on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-59/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: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-59/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-59/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed0ebc887a7a0d74831fc77d5404a4505aed21d9e64b2c9f6a626ab029b9123f [INFO] running `Command { std: "docker" "start" "-a" "ed0ebc887a7a0d74831fc77d5404a4505aed21d9e64b2c9f6a626ab029b9123f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed0ebc887a7a0d74831fc77d5404a4505aed21d9e64b2c9f6a626ab029b9123f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed0ebc887a7a0d74831fc77d5404a4505aed21d9e64b2c9f6a626ab029b9123f", kill_on_drop: false }` [INFO] [stdout] ed0ebc887a7a0d74831fc77d5404a4505aed21d9e64b2c9f6a626ab029b9123f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-59/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-59/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4841bb77b9e8def779860aeef9fa0b3a21e40ce382cf9aff7731b31d6b9ff16e [INFO] running `Command { std: "docker" "start" "-a" "4841bb77b9e8def779860aeef9fa0b3a21e40ce382cf9aff7731b31d6b9ff16e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling rand_core v0.4.0 [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling smallvec v0.6.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling lock_api v0.1.5 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [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 semver v0.9.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling parking_lot v0.7.1 [INFO] [stderr] Compiling once_cell v0.1.8 [INFO] [stderr] Compiling cached v0.8.0 [INFO] [stderr] Compiling 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: associated function is never used: `distance_to` [INFO] [stdout] --> src/tichu/hand.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn distance_to(&self, other: &Self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `point_value` [INFO] [stdout] --> src/tichu/hand.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn point_value(&self, keep_dragon: bool) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Pass` [INFO] [stdout] --> src/tichu/hand.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | Pass, [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Single` [INFO] [stdout] --> src/tichu/hand.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | Single(Card), [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Pair` [INFO] [stdout] --> src/tichu/hand.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | Pair(Card), [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Triple` [INFO] [stdout] --> src/tichu/hand.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | Triple(Card), [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FourOfAKind` [INFO] [stdout] --> src/tichu/hand.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | FourOfAKind(Card), [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FullHouse` [INFO] [stdout] --> src/tichu/hand.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 139 | FullHouse(Card, Card), //first over second [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ConsecutivePairs` [INFO] [stdout] --> src/tichu/hand.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | ConsecutivePairs(Card, u32), //bottom and length [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Straight` [INFO] [stdout] --> src/tichu/hand.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | Straight(Card, u32), //bottom and length [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `StraightFlush` [INFO] [stdout] --> src/tichu/hand.rs:142:5 [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_cards` [INFO] [stdout] --> src/tichu/hand.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn num_cards(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `groups_of_n_such_that` [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 is never used: `length_n_straights_of_k_beating` [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 is never used: `count_straight_flush_bombs` [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: associated function is never used: `value` [INFO] [stdout] --> src/tichu/hand.rs:262:12 [INFO] [stdout] | [INFO] [stdout] 262 | pub fn value(&self, keep_dragon: bool) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_non_bomb_plays_that_beat` [INFO] [stdout] --> src/tichu/hand.rs:277:8 [INFO] [stdout] | [INFO] [stdout] 277 | fn num_non_bomb_plays_that_beat(&self, unseen_cards: &[Card]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_pass` [INFO] [stdout] --> src/tichu/hand.rs:315:8 [INFO] [stdout] | [INFO] [stdout] 315 | fn is_pass(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `probability_of_being_beaten` [INFO] [stdout] --> src/tichu/hand.rs:319:12 [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: variant is never constructed: `NoCall` [INFO] [stdout] --> src/tichu/game.rs:245:5 [INFO] [stdout] | [INFO] [stdout] 245 | NoCall, [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] --> src/tichu/game.rs:242:10 [INFO] [stdout] | [INFO] [stdout] 242 | #[derive(Debug, Clone, Copy, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Tichu` [INFO] [stdout] --> src/tichu/game.rs:249:5 [INFO] [stdout] | [INFO] [stdout] 249 | Tichu(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] --> src/tichu/game.rs:242:10 [INFO] [stdout] | [INFO] [stdout] 242 | #[derive(Debug, Clone, Copy, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `GrandTichu` [INFO] [stdout] --> src/tichu/game.rs:250:5 [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] --> src/tichu/game.rs:242:10 [INFO] [stdout] | [INFO] [stdout] 242 | #[derive(Debug, Clone, Copy, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `censor` [INFO] [stdout] --> src/tichu/game.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn censor(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `turn_index` [INFO] [stdout] --> src/tichu/game.rs:312:5 [INFO] [stdout] | [INFO] [stdout] 312 | turn_index: u8, [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] --> src/tichu/game.rs:306:10 [INFO] [stdout] | [INFO] [stdout] 306 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tichu_calls` [INFO] [stdout] --> src/tichu/game.rs:313:5 [INFO] [stdout] | [INFO] [stdout] 313 | tichu_calls: [TichuCall; 4], [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] --> src/tichu/game.rs:306:10 [INFO] [stdout] | [INFO] [stdout] 306 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play_move_helper` [INFO] [stdout] --> src/tichu/game.rs:383:8 [INFO] [stdout] | [INFO] [stdout] 383 | fn play_move_helper( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play_move` [INFO] [stdout] --> src/tichu/game.rs:447:8 [INFO] [stdout] | [INFO] [stdout] 447 | fn play_move( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `show_cards_to_player` [INFO] [stdout] --> src/tichu/game.rs:495:8 [INFO] [stdout] | [INFO] [stdout] 495 | fn show_cards_to_player(cards: PlayerCards, player: &mut T) -> TichuCall { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `swap_cards` [INFO] [stdout] --> src/tichu/game.rs:528:8 [INFO] [stdout] | [INFO] [stdout] 528 | fn swap_cards( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_pass` [INFO] [stdout] --> src/tichu/game.rs:557:8 [INFO] [stdout] | [INFO] [stdout] 557 | fn do_pass( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play_game` [INFO] [stdout] --> src/tichu/game.rs:627:12 [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: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3m 13s [INFO] running `Command { std: "docker" "inspect" "4841bb77b9e8def779860aeef9fa0b3a21e40ce382cf9aff7731b31d6b9ff16e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4841bb77b9e8def779860aeef9fa0b3a21e40ce382cf9aff7731b31d6b9ff16e", kill_on_drop: false }` [INFO] [stdout] 4841bb77b9e8def779860aeef9fa0b3a21e40ce382cf9aff7731b31d6b9ff16e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-59/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-59/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 58665c58eda938a6ecadb187e53e5f71621e40ec2c0882100e092735cc22ff96 [INFO] running `Command { std: "docker" "start" "-a" "58665c58eda938a6ecadb187e53e5f71621e40ec2c0882100e092735cc22ff96", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling 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: associated function is never used: `distance_to` [INFO] [stdout] --> src/tichu/hand.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn distance_to(&self, other: &Self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `point_value` [INFO] [stdout] --> src/tichu/hand.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn point_value(&self, keep_dragon: bool) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Pass` [INFO] [stdout] --> src/tichu/hand.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | Pass, [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Single` [INFO] [stdout] --> src/tichu/hand.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | Single(Card), [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Pair` [INFO] [stdout] --> src/tichu/hand.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | Pair(Card), [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Triple` [INFO] [stdout] --> src/tichu/hand.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | Triple(Card), [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FourOfAKind` [INFO] [stdout] --> src/tichu/hand.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | FourOfAKind(Card), [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FullHouse` [INFO] [stdout] --> src/tichu/hand.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 139 | FullHouse(Card, Card), //first over second [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ConsecutivePairs` [INFO] [stdout] --> src/tichu/hand.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | ConsecutivePairs(Card, u32), //bottom and length [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Straight` [INFO] [stdout] --> src/tichu/hand.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | Straight(Card, u32), //bottom and length [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `StraightFlush` [INFO] [stdout] --> src/tichu/hand.rs:142:5 [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] --> src/tichu/hand.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_cards` [INFO] [stdout] --> src/tichu/hand.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn num_cards(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `groups_of_n_such_that` [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 is never used: `length_n_straights_of_k_beating` [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 is never used: `count_straight_flush_bombs` [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: associated function is never used: `value` [INFO] [stdout] --> src/tichu/hand.rs:262:12 [INFO] [stdout] | [INFO] [stdout] 262 | pub fn value(&self, keep_dragon: bool) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_non_bomb_plays_that_beat` [INFO] [stdout] --> src/tichu/hand.rs:277:8 [INFO] [stdout] | [INFO] [stdout] 277 | fn num_non_bomb_plays_that_beat(&self, unseen_cards: &[Card]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_pass` [INFO] [stdout] --> src/tichu/hand.rs:315:8 [INFO] [stdout] | [INFO] [stdout] 315 | fn is_pass(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `probability_of_being_beaten` [INFO] [stdout] --> src/tichu/hand.rs:319:12 [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: variant is never constructed: `NoCall` [INFO] [stdout] --> src/tichu/game.rs:245:5 [INFO] [stdout] | [INFO] [stdout] 245 | NoCall, [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] --> src/tichu/game.rs:242:10 [INFO] [stdout] | [INFO] [stdout] 242 | #[derive(Debug, Clone, Copy, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Tichu` [INFO] [stdout] --> src/tichu/game.rs:249:5 [INFO] [stdout] | [INFO] [stdout] 249 | Tichu(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] --> src/tichu/game.rs:242:10 [INFO] [stdout] | [INFO] [stdout] 242 | #[derive(Debug, Clone, Copy, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `GrandTichu` [INFO] [stdout] --> src/tichu/game.rs:250:5 [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] --> src/tichu/game.rs:242:10 [INFO] [stdout] | [INFO] [stdout] 242 | #[derive(Debug, Clone, Copy, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `censor` [INFO] [stdout] --> src/tichu/game.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn censor(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `turn_index` [INFO] [stdout] --> src/tichu/game.rs:312:5 [INFO] [stdout] | [INFO] [stdout] 312 | turn_index: u8, [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] --> src/tichu/game.rs:306:10 [INFO] [stdout] | [INFO] [stdout] 306 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tichu_calls` [INFO] [stdout] --> src/tichu/game.rs:313:5 [INFO] [stdout] | [INFO] [stdout] 313 | tichu_calls: [TichuCall; 4], [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] --> src/tichu/game.rs:306:10 [INFO] [stdout] | [INFO] [stdout] 306 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play_move_helper` [INFO] [stdout] --> src/tichu/game.rs:383:8 [INFO] [stdout] | [INFO] [stdout] 383 | fn play_move_helper( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play_move` [INFO] [stdout] --> src/tichu/game.rs:447:8 [INFO] [stdout] | [INFO] [stdout] 447 | fn play_move( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `show_cards_to_player` [INFO] [stdout] --> src/tichu/game.rs:495:8 [INFO] [stdout] | [INFO] [stdout] 495 | fn show_cards_to_player(cards: PlayerCards, player: &mut T) -> TichuCall { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `swap_cards` [INFO] [stdout] --> src/tichu/game.rs:528:8 [INFO] [stdout] | [INFO] [stdout] 528 | fn swap_cards( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_pass` [INFO] [stdout] --> src/tichu/game.rs:557:8 [INFO] [stdout] | [INFO] [stdout] 557 | fn do_pass( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play_game` [INFO] [stdout] --> src/tichu/game.rs:627:12 [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: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.79s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/tishu-0c46fd7f1398fd22) [INFO] running `Command { std: "docker" "inspect" "58665c58eda938a6ecadb187e53e5f71621e40ec2c0882100e092735cc22ff96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58665c58eda938a6ecadb187e53e5f71621e40ec2c0882100e092735cc22ff96", kill_on_drop: false }` [INFO] [stdout] 58665c58eda938a6ecadb187e53e5f71621e40ec2c0882100e092735cc22ff96 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-59/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-59/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 870cdbfaaf58c42572c32cf417e81b0a0b3bfff3af271bd726af027b991aad4a [INFO] running `Command { std: "docker" "start" "-a" "870cdbfaaf58c42572c32cf417e81b0a0b3bfff3af271bd726af027b991aad4a", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] [INFO] [stderr] --> src/tichu/game.rs:357:57 [INFO] [stdout] running 0 tests [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] 357 | let mut hands: [PlayerCards; 4] = std::mem::uninitialized(); [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `distance_to` [INFO] [stderr] --> src/tichu/hand.rs:61:12 [INFO] [stderr] | [INFO] [stderr] 61 | pub fn distance_to(&self, other: &Self) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `point_value` [INFO] [stderr] --> src/tichu/hand.rs:65:12 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn point_value(&self, keep_dragon: bool) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Pass` [INFO] [stderr] --> src/tichu/hand.rs:134:5 [INFO] [stderr] | [INFO] [stderr] 134 | Pass, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `HandType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/tichu/hand.rs:132:25 [INFO] [stderr] | [INFO] [stderr] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Single` [INFO] [stderr] --> src/tichu/hand.rs:135:5 [INFO] [stderr] | [INFO] [stderr] 135 | Single(Card), [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `HandType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/tichu/hand.rs:132:25 [INFO] [stderr] | [INFO] [stderr] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Pair` [INFO] [stderr] --> src/tichu/hand.rs:136:5 [INFO] [stderr] | [INFO] [stderr] 136 | Pair(Card), [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `HandType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/tichu/hand.rs:132:25 [INFO] [stderr] | [INFO] [stderr] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Triple` [INFO] [stderr] --> src/tichu/hand.rs:137:5 [INFO] [stderr] | [INFO] [stderr] 137 | Triple(Card), [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `HandType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/tichu/hand.rs:132:25 [INFO] [stderr] | [INFO] [stderr] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `FourOfAKind` [INFO] [stderr] --> src/tichu/hand.rs:138:5 [INFO] [stderr] | [INFO] [stderr] 138 | FourOfAKind(Card), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `HandType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/tichu/hand.rs:132:25 [INFO] [stderr] | [INFO] [stderr] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `FullHouse` [INFO] [stderr] --> src/tichu/hand.rs:139:5 [INFO] [stderr] | [INFO] [stderr] 139 | FullHouse(Card, Card), //first over second [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `HandType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/tichu/hand.rs:132:25 [INFO] [stderr] | [INFO] [stderr] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `ConsecutivePairs` [INFO] [stderr] --> src/tichu/hand.rs:140:5 [INFO] [stderr] | [INFO] [stderr] 140 | ConsecutivePairs(Card, u32), //bottom and length [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `HandType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/tichu/hand.rs:132:25 [INFO] [stderr] | [INFO] [stderr] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Straight` [INFO] [stderr] --> src/tichu/hand.rs:141:5 [INFO] [stderr] | [INFO] [stderr] 141 | Straight(Card, u32), //bottom and length [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `HandType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/tichu/hand.rs:132:25 [INFO] [stderr] | [INFO] [stderr] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `StraightFlush` [INFO] [stderr] --> src/tichu/hand.rs:142:5 [INFO] [stderr] | [INFO] [stderr] 142 | StraightFlush(Card, u32), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `HandType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/tichu/hand.rs:132:25 [INFO] [stderr] | [INFO] [stderr] 132 | #[derive(PartialEq, Eq, Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `num_cards` [INFO] [stderr] --> src/tichu/hand.rs:146:12 [INFO] [stderr] | [INFO] [stderr] 146 | pub fn num_cards(&self) -> u32 { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `groups_of_n_such_that` [INFO] [stderr] --> src/tichu/hand.rs:176:4 [INFO] [stderr] | [INFO] [stderr] 176 | fn groups_of_n_such_that(n: u32, cond: Option<&Value>, use_pheonix: bool, unseen: &[Card]) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `length_n_straights_of_k_beating` [INFO] [stderr] --> src/tichu/hand.rs:198:4 [INFO] [stderr] | [INFO] [stderr] 198 | fn length_n_straights_of_k_beating( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `count_straight_flush_bombs` [INFO] [stderr] --> src/tichu/hand.rs:247:4 [INFO] [stderr] | [INFO] [stderr] 247 | fn count_straight_flush_bombs(n_cards: u32, unseen_cards: &[Card]) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `value` [INFO] [stderr] --> src/tichu/hand.rs:262:12 [INFO] [stderr] | [INFO] [stderr] 262 | pub fn value(&self, keep_dragon: bool) -> i32 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `num_non_bomb_plays_that_beat` [INFO] [stderr] --> src/tichu/hand.rs:277:8 [INFO] [stderr] | [INFO] [stderr] 277 | fn num_non_bomb_plays_that_beat(&self, unseen_cards: &[Card]) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_pass` [INFO] [stderr] --> src/tichu/hand.rs:315:8 [INFO] [stderr] | [INFO] [stderr] 315 | fn is_pass(&self) -> bool { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `probability_of_being_beaten` [INFO] [stderr] --> src/tichu/hand.rs:319:12 [INFO] [stderr] | [INFO] [stderr] 319 | pub fn probability_of_being_beaten(&self, unseen_cards: &[Card], opp_hand_size: u32) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `NoCall` [INFO] [stderr] --> src/tichu/game.rs:245:5 [INFO] [stderr] | [INFO] [stderr] 245 | NoCall, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TichuCall` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/tichu/game.rs:242:10 [INFO] [stderr] | [INFO] [stderr] 242 | #[derive(Debug, Clone, Copy, PartialEq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Tichu` [INFO] [stderr] --> src/tichu/game.rs:249:5 [INFO] [stderr] | [INFO] [stderr] 249 | Tichu(f64), [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TichuCall` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/tichu/game.rs:242:10 [INFO] [stderr] | [INFO] [stderr] 242 | #[derive(Debug, Clone, Copy, PartialEq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `GrandTichu` [INFO] [stderr] --> src/tichu/game.rs:250:5 [INFO] [stderr] | [INFO] [stderr] 250 | GrandTichu(f64), [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TichuCall` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/tichu/game.rs:242:10 [INFO] [stderr] | [INFO] [stderr] 242 | #[derive(Debug, Clone, Copy, PartialEq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `censor` [INFO] [stderr] --> src/tichu/game.rs:297:12 [INFO] [stderr] | [INFO] [stderr] 297 | pub fn censor(&self) -> Self { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `turn_index` [INFO] [stderr] --> src/tichu/game.rs:312:5 [INFO] [stderr] | [INFO] [stderr] 312 | turn_index: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Game` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/tichu/game.rs:306:10 [INFO] [stderr] | [INFO] [stderr] 306 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `tichu_calls` [INFO] [stderr] --> src/tichu/game.rs:313:5 [INFO] [stderr] | [INFO] [stderr] 313 | tichu_calls: [TichuCall; 4], [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Game` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/tichu/game.rs:306:10 [INFO] [stderr] | [INFO] [stderr] 306 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `play_move_helper` [INFO] [stderr] --> src/tichu/game.rs:383:8 [INFO] [stderr] | [INFO] [stderr] 383 | fn play_move_helper( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `play_move` [INFO] [stderr] --> src/tichu/game.rs:447:8 [INFO] [stderr] | [INFO] [stderr] 447 | fn play_move( [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `show_cards_to_player` [INFO] [stderr] --> src/tichu/game.rs:495:8 [INFO] [stderr] | [INFO] [stderr] 495 | fn show_cards_to_player(cards: PlayerCards, player: &mut T) -> TichuCall { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `swap_cards` [INFO] [stderr] --> src/tichu/game.rs:528:8 [INFO] [stderr] | [INFO] [stderr] 528 | fn swap_cards( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `do_pass` [INFO] [stderr] --> src/tichu/game.rs:557:8 [INFO] [stderr] | [INFO] [stderr] 557 | fn do_pass( [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `play_game` [INFO] [stderr] --> src/tichu/game.rs:627:12 [INFO] [stderr] | [INFO] [stderr] 627 | pub fn play_game( [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static variable `deck` should have an upper case name [INFO] [stderr] --> src/tichu/game.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 14 | pub static deck: [hand::Card; 14 * 4] = [ [INFO] [stderr] | ^^^^ help: convert the identifier to upper case: `DECK` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `tishu` (bin "tishu" test) generated 33 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.69s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/tishu-0c46fd7f1398fd22) [INFO] running `Command { std: "docker" "inspect" "870cdbfaaf58c42572c32cf417e81b0a0b3bfff3af271bd726af027b991aad4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "870cdbfaaf58c42572c32cf417e81b0a0b3bfff3af271bd726af027b991aad4a", kill_on_drop: false }` [INFO] [stdout] 870cdbfaaf58c42572c32cf417e81b0a0b3bfff3af271bd726af027b991aad4a