[INFO] cloning repository https://github.com/TheChilliPL/macau [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TheChilliPL/macau" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheChilliPL%2Fmacau", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheChilliPL%2Fmacau'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1059caa703f63dc3e9478ed422c3345e0c934748 [INFO] testing TheChilliPL/macau against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheChilliPL%2Fmacau" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/TheChilliPL/macau [INFO] finished tweaking git repo https://github.com/TheChilliPL/macau [INFO] tweaked toml for git repo https://github.com/TheChilliPL/macau written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/TheChilliPL/macau on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/TheChilliPL/macau 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sorted-vec v0.8.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 01a548f7ebd7585a8abe2d9f0c177c05bfc0991e89a21a59edd2e46bd94c418e [INFO] running `Command { std: "docker" "start" "-a" "01a548f7ebd7585a8abe2d9f0c177c05bfc0991e89a21a59edd2e46bd94c418e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "01a548f7ebd7585a8abe2d9f0c177c05bfc0991e89a21a59edd2e46bd94c418e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01a548f7ebd7585a8abe2d9f0c177c05bfc0991e89a21a59edd2e46bd94c418e", kill_on_drop: false }` [INFO] [stdout] 01a548f7ebd7585a8abe2d9f0c177c05bfc0991e89a21a59edd2e46bd94c418e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 495030269b62a3935f9a7a861685f37cbf18984c12e2633f37ea46e40e251613 [INFO] running `Command { std: "docker" "start" "-a" "495030269b62a3935f9a7a861685f37cbf18984c12e2633f37ea46e40e251613", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.164 [INFO] [stderr] Compiling sorted-vec v0.8.5 [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling cardrs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `name` and `unicode_white` are never used [INFO] [stdout] --> src/cards.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl Suit { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn unicode_white(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/cards.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 122 | impl Rank { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/cards.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 199 | impl JokerColor { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 200 | pub fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_unicode` and `name` are never used [INFO] [stdout] --> src/cards.rs:254:12 [INFO] [stdout] | [INFO] [stdout] 209 | impl Card { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn to_unicode(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | pub fn name(&self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_capacity` and `remove_card` are never used [INFO] [stdout] --> src/cards/hand.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl + Into + Clone> Hand { [INFO] [stdout] | ------------------------------------------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn with_capacity(capacity: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn remove_card(&mut self, card: Card) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/cards/pile.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Pile { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 12 | pub fn new_empty() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn with_capacity(capacity: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn add_card(&mut self, card: Card) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn add_cards(&mut self, cards: Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn add_on_top(&mut self, card: Card) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn count_accessible(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn count_total(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn deal_to + Into + Clone>( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PileEmptyError` is never constructed [INFO] [stdout] --> src/cards/pile.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub struct PileEmptyError; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Play`, `PlayMultiple`, `Draw`, `DeclareMacau`, and `Pass` are never constructed [INFO] [stdout] --> src/macau/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum MacauAction<'a> { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 41 | Play(Card), [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | PlayMultiple(&'a [Card]), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 43 | Draw, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | DeclareMacau, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 45 | Pass, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MacauAction` 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 `PlayerWon` and `NotEnoughPlayers` are never constructed [INFO] [stdout] --> src/macau/mod.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum GameEndReason<'a> { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 50 | PlayerWon(&'a MacauPlayer), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 51 | NotEnoughPlayers, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameEndReason` 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 `TurnStart`, `TurnBlocked`, `PlayerAction`, `TurnEnd`, `AddCards`, and `GameEnd` are never constructed [INFO] [stdout] --> src/macau/mod.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub enum MacauEvent<'a> { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 61 | TurnStart { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | TurnBlocked { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | PlayerAction { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | TurnEnd { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | AddCards { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | GameEnd { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MacauEvent` 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 `get_player_by_id_mut` is never used [INFO] [stdout] --> src/macau/mod.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 90 | impl MacauGame { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 130 | fn get_player_by_id_mut(&mut self, id: u32) -> Option<&mut MacauPlayer> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `subscribe` and `notify_common` are never used [INFO] [stdout] --> src/macau/events.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl EventManager { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn subscribe(&mut self, player_id: u32, subscriber: F) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn notify_common(&self, game: &MacauGame, event: &MacauEvent) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/macau/variant.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct MacauVariant { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 5 | pub initial_hand: u8, [INFO] [stdout] 6 | pub cumulate_war: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 7 | pub war_king_of_spades: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | pub war_king_of_hearts: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub war_king_of_diamonds: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub war_king_of_clubs: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub cumulate_blocks: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub queen_of_spades_on_everything: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub queen_of_hearts_on_everything: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub queen_of_diamonds_on_everything: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | pub queen_of_clubs_on_everything: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub override_jack: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub override_ace: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MacauVariant` 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: methods `get_war_value`, `is_war_card`, and `is_action_card` are never used [INFO] [stdout] --> src/macau/variant.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl MacauVariant { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 41 | pub fn get_war_value(&self, card: Card) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn is_war_card(&self, card: Card) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn is_action_card(&self, card: Card) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.29s [INFO] running `Command { std: "docker" "inspect" "495030269b62a3935f9a7a861685f37cbf18984c12e2633f37ea46e40e251613", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "495030269b62a3935f9a7a861685f37cbf18984c12e2633f37ea46e40e251613", kill_on_drop: false }` [INFO] [stdout] 495030269b62a3935f9a7a861685f37cbf18984c12e2633f37ea46e40e251613 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f868bc9ae613d990017598b569ca679ade976372768657e9158cb4f205f0cec8 [INFO] running `Command { std: "docker" "start" "-a" "f868bc9ae613d990017598b569ca679ade976372768657e9158cb4f205f0cec8", kill_on_drop: false }` [INFO] [stderr] Compiling cardrs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `unicode_white` is never used [INFO] [stdout] --> src/cards.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl Suit { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn unicode_white(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_capacity` and `remove_card` are never used [INFO] [stdout] --> src/cards/hand.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl + Into + Clone> Hand { [INFO] [stdout] | ------------------------------------------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn with_capacity(capacity: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn remove_card(&mut self, card: Card) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_empty`, `with_capacity`, `add_cards`, `is_empty`, and `deal_to` are never used [INFO] [stdout] --> src/cards/pile.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Pile { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 12 | pub fn new_empty() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn with_capacity(capacity: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn add_cards(&mut self, cards: Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn deal_to + Into + Clone>( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PileEmptyError` is never constructed [INFO] [stdout] --> src/cards/pile.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub struct PileEmptyError; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Play`, `PlayMultiple`, `Draw`, `DeclareMacau`, and `Pass` are never constructed [INFO] [stdout] --> src/macau/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum MacauAction<'a> { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 41 | Play(Card), [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | PlayMultiple(&'a [Card]), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 43 | Draw, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | DeclareMacau, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 45 | Pass, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MacauAction` 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 `PlayerWon` and `NotEnoughPlayers` are never constructed [INFO] [stdout] --> src/macau/mod.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum GameEndReason<'a> { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 50 | PlayerWon(&'a MacauPlayer), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 51 | NotEnoughPlayers, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameEndReason` 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 `TurnStart`, `TurnBlocked`, `PlayerAction`, `TurnEnd`, `AddCards`, and `GameEnd` are never constructed [INFO] [stdout] --> src/macau/mod.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub enum MacauEvent<'a> { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 61 | TurnStart { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | TurnBlocked { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | PlayerAction { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | TurnEnd { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | AddCards { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | GameEnd { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MacauEvent` 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 `get_player_by_id_mut` is never used [INFO] [stdout] --> src/macau/mod.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 90 | impl MacauGame { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 130 | fn get_player_by_id_mut(&mut self, id: u32) -> Option<&mut MacauPlayer> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `subscribe` and `notify_common` are never used [INFO] [stdout] --> src/macau/events.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl EventManager { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn subscribe(&mut self, player_id: u32, subscriber: F) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn notify_common(&self, game: &MacauGame, event: &MacauEvent) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/macau/variant.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct MacauVariant { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 5 | pub initial_hand: u8, [INFO] [stdout] 6 | pub cumulate_war: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 7 | pub war_king_of_spades: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | pub war_king_of_hearts: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub war_king_of_diamonds: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub war_king_of_clubs: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub cumulate_blocks: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub queen_of_spades_on_everything: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub queen_of_hearts_on_everything: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub queen_of_diamonds_on_everything: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | pub queen_of_clubs_on_everything: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub override_jack: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub override_ace: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MacauVariant` 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: methods `get_war_value`, `is_war_card`, and `is_action_card` are never used [INFO] [stdout] --> src/macau/variant.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl MacauVariant { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 41 | pub fn get_war_value(&self, card: Card) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn is_war_card(&self, card: Card) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn is_action_card(&self, card: Card) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.66s [INFO] running `Command { std: "docker" "inspect" "f868bc9ae613d990017598b569ca679ade976372768657e9158cb4f205f0cec8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f868bc9ae613d990017598b569ca679ade976372768657e9158cb4f205f0cec8", kill_on_drop: false }` [INFO] [stdout] f868bc9ae613d990017598b569ca679ade976372768657e9158cb4f205f0cec8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 27883eef6c71a833941b0833f5daa89c348986f8d330187730e76bdf6082cdac [INFO] running `Command { std: "docker" "start" "-a" "27883eef6c71a833941b0833f5daa89c348986f8d330187730e76bdf6082cdac", kill_on_drop: false }` [INFO] [stderr] warning: method `unicode_white` is never used [INFO] [stderr] --> src/cards.rs:82:12 [INFO] [stderr] | [INFO] [stderr] 49 | impl Suit { [INFO] [stderr] | --------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 82 | pub fn unicode_white(&self) -> char { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `with_capacity` and `remove_card` are never used [INFO] [stderr] --> src/cards/hand.rs:86:12 [INFO] [stderr] | [INFO] [stderr] 79 | impl + Into + Clone> Hand { [INFO] [stderr] | ------------------------------------------------------ associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 86 | pub fn with_capacity(capacity: usize) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 96 | pub fn remove_card(&mut self, card: Card) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new_empty`, `with_capacity`, `add_cards`, `is_empty`, and `deal_to` are never used [INFO] [stderr] --> src/cards/pile.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 11 | impl Pile { [INFO] [stderr] | --------- associated items in this implementation [INFO] [stderr] 12 | pub fn new_empty() -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 19 | pub fn with_capacity(capacity: usize) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 37 | pub fn add_cards(&mut self, cards: Vec) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 88 | pub fn is_empty(&self) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 100 | pub fn deal_to + Into + Clone>( [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PileEmptyError` is never constructed [INFO] [stderr] --> src/cards/pile.rs:130:12 [INFO] [stderr] | [INFO] [stderr] 130 | pub struct PileEmptyError; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Play`, `PlayMultiple`, `Draw`, `DeclareMacau`, and `Pass` are never constructed [INFO] [stderr] --> src/macau/mod.rs:41:5 [INFO] [stderr] | [INFO] [stderr] 40 | pub enum MacauAction<'a> { [INFO] [stderr] | ----------- variants in this enum [INFO] [stderr] 41 | Play(Card), [INFO] [stderr] | ^^^^ [INFO] [stderr] 42 | PlayMultiple(&'a [Card]), [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 43 | Draw, [INFO] [stderr] | ^^^^ [INFO] [stderr] 44 | DeclareMacau, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 45 | Pass, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MacauAction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `PlayerWon` and `NotEnoughPlayers` are never constructed [INFO] [stderr] --> src/macau/mod.rs:50:5 [INFO] [stderr] | [INFO] [stderr] 49 | pub enum GameEndReason<'a> { [INFO] [stderr] | ------------- variants in this enum [INFO] [stderr] 50 | PlayerWon(&'a MacauPlayer), [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 51 | NotEnoughPlayers, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `GameEndReason` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `TurnStart`, `TurnBlocked`, `PlayerAction`, `TurnEnd`, `AddCards`, and `GameEnd` are never constructed [INFO] [stderr] --> src/macau/mod.rs:61:5 [INFO] [stderr] | [INFO] [stderr] 55 | pub enum MacauEvent<'a> { [INFO] [stderr] | ---------- variants in this enum [INFO] [stderr] ... [INFO] [stderr] 61 | TurnStart { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 64 | TurnBlocked { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 67 | PlayerAction { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 71 | TurnEnd { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 74 | AddCards { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 78 | GameEnd { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MacauEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `get_player_by_id_mut` is never used [INFO] [stderr] --> src/macau/mod.rs:130:8 [INFO] [stderr] | [INFO] [stderr] 90 | impl MacauGame { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 130 | fn get_player_by_id_mut(&mut self, id: u32) -> Option<&mut MacauPlayer> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `subscribe` and `notify_common` are never used [INFO] [stderr] --> src/macau/events.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 7 | impl EventManager { [INFO] [stderr] | ----------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 14 | pub fn subscribe(&mut self, player_id: u32, subscriber: F) [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 21 | pub fn notify_common(&self, game: &MacauGame, event: &MacauEvent) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/macau/variant.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct MacauVariant { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 5 | pub initial_hand: u8, [INFO] [stderr] 6 | pub cumulate_war: bool, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 7 | pub war_king_of_spades: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 8 | pub war_king_of_hearts: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 9 | pub war_king_of_diamonds: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 10 | pub war_king_of_clubs: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 11 | pub cumulate_blocks: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 12 | pub queen_of_spades_on_everything: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 13 | pub queen_of_hearts_on_everything: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 14 | pub queen_of_diamonds_on_everything: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 15 | pub queen_of_clubs_on_everything: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 16 | pub override_jack: bool, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 17 | pub override_ace: bool, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MacauVariant` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `get_war_value`, `is_war_card`, and `is_action_card` are never used [INFO] [stderr] --> src/macau/variant.rs:41:12 [INFO] [stderr] | [INFO] [stderr] 40 | impl MacauVariant { [INFO] [stderr] | ----------------- methods in this implementation [INFO] [stderr] 41 | pub fn get_war_value(&self, card: Card) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 56 | pub fn is_war_card(&self, card: Card) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 60 | pub fn is_action_card(&self, card: Card) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `cardrs` (bin "cardrs" test) generated 11 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/cardrs-d2c213f588c9f1b3) [INFO] [stdout] test cards::pile::tests::pile_test ... ok [INFO] [stdout] test cards::tests::construct ... ok [INFO] [stdout] test cards::tests::unicode ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "27883eef6c71a833941b0833f5daa89c348986f8d330187730e76bdf6082cdac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27883eef6c71a833941b0833f5daa89c348986f8d330187730e76bdf6082cdac", kill_on_drop: false }` [INFO] [stdout] 27883eef6c71a833941b0833f5daa89c348986f8d330187730e76bdf6082cdac