[INFO] fetching crate rummy 0.2.0...
[INFO] building rummy-0.2.0 against try#4987e9d4227139400384ab59296ffee3b0fb1183 for pr-146237-2
[INFO] extracting crate rummy 0.2.0 into /workspace/builds/worker-6-tc2/source
[INFO] started tweaking crates.io crate rummy 0.2.0
[INFO] removed 0 missing examples
[INFO] removed 0 missing tests
[INFO] finished tweaking crates.io crate rummy 0.2.0
[INFO] tweaked toml for crates.io crate rummy 0.2.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate rummy 0.2.0 on toolchain 4987e9d4227139400384ab59296ffee3b0fb1183
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate rummy 0.2.0 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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0fe156047aac05b27c3d50edbcb47f7e636130e907e6d8ba535590995b86702d
[INFO] running `Command { std: "docker" "start" "-a" "0fe156047aac05b27c3d50edbcb47f7e636130e907e6d8ba535590995b86702d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0fe156047aac05b27c3d50edbcb47f7e636130e907e6d8ba535590995b86702d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0fe156047aac05b27c3d50edbcb47f7e636130e907e6d8ba535590995b86702d", kill_on_drop: false }`
[INFO] [stdout] 0fe156047aac05b27c3d50edbcb47f7e636130e907e6d8ba535590995b86702d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 169b304112708595237588469032e8f8a361d98039dc52e3b042257932810aa5
[INFO] running `Command { std: "docker" "start" "-a" "169b304112708595237588469032e8f8a361d98039dc52e3b042257932810aa5", kill_on_drop: false }`
[INFO] [stderr] Compiling libc v0.2.175
[INFO] [stderr] Compiling serde_core v1.0.226
[INFO] [stderr] Compiling rustversion v1.0.17
[INFO] [stderr] Compiling serde v1.0.226
[INFO] [stderr] Compiling thiserror v2.0.15
[INFO] [stderr] Compiling iana-time-zone v0.1.64
[INFO] [stderr] Compiling proc-macro2 v1.0.99
[INFO] [stderr] Compiling quote v1.0.36
[INFO] [stderr] Compiling syn v2.0.106
[INFO] [stderr] Compiling getrandom v0.2.15
[INFO] [stderr] Compiling rand_core v0.6.4
[INFO] [stderr] Compiling rand_chacha v0.3.1
[INFO] [stderr] Compiling rand v0.8.5
[INFO] [stderr] Compiling chrono v0.4.42
[INFO] [stderr] Compiling strum_macros v0.26.4
[INFO] [stderr] Compiling thiserror-impl v2.0.15
[INFO] [stderr] Compiling strum v0.26.3
[INFO] [stderr] Compiling rummy v0.2.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout] --> src/game/state.rs:205:24
[INFO] [stdout] |
[INFO] [stdout] 205 | fn validate_action(state: &GameState
, action: &GameAction) -> Result<(), ActionError> {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `action`
[INFO] [stdout] --> src/game/state.rs:205:49
[INFO] [stdout] |
[INFO] [stdout] 205 | fn validate_action(state: &GameState
, action: &GameAction) -> Result<(), ActionError> {
[INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout] --> src/game/state.rs:110:27
[INFO] [stdout] |
[INFO] [stdout] 110 | .map_err(|err| InternalError::NoCardsInDeckOrDiscardPile)?;
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout] --> src/game/variants/basic/rules.rs:55:9
[INFO] [stdout] |
[INFO] [stdout] 55 | state: &GameState,
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `action`
[INFO] [stdout] --> src/game/variants/basic/rules.rs:95:9
[INFO] [stdout] |
[INFO] [stdout] 95 | action: DrawDeckAction,
[INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout] --> src/game/variants/basic/rules.rs:100:23
[INFO] [stdout] |
[INFO] [stdout] 100 | .map_err(|err| InternalError::NoCardsInDeckOrDiscardPile)?;
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout] --> src/game/variants/basic/rules.rs:124:23
[INFO] [stdout] |
[INFO] [stdout] 124 | .map_err(|err| FailedActionError::DiscardPileTooSmall)?;
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `min_idx`
[INFO] [stdout] --> src/game/variants/basic/rules.rs:162:18
[INFO] [stdout] |
[INFO] [stdout] 162 | let (min_idx, max_idx) = if current_idx < target_idx {
[INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_idx`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function `from_card_data` is never used
[INFO] [stdout] --> src/cards/card.rs:118:19
[INFO] [stdout] |
[INFO] [stdout] 42 | impl Card {
[INFO] [stdout] | --------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 118 | pub(crate) fn from_card_data(card_data: CardData, deck_config: Arc) -> Self {
[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 function `new` is never used
[INFO] [stdout] --> src/player.rs:25:19
[INFO] [stdout] |
[INFO] [stdout] 23 | impl Player {
[INFO] [stdout] | ----------- associated function in this implementation
[INFO] [stdout] 24 | /// Creates a new player.
[INFO] [stdout] 25 | pub(crate) fn new(id: usize, active: bool, joined_in_round: usize) -> Self {
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.38s
[INFO] running `Command { std: "docker" "inspect" "169b304112708595237588469032e8f8a361d98039dc52e3b042257932810aa5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "169b304112708595237588469032e8f8a361d98039dc52e3b042257932810aa5", kill_on_drop: false }`
[INFO] [stdout] 169b304112708595237588469032e8f8a361d98039dc52e3b042257932810aa5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9be18648dacafa1859badc99c4520dc5b06a7c1dfd3fadbbeaba2c67cccbde0c
[INFO] running `Command { std: "docker" "start" "-a" "9be18648dacafa1859badc99c4520dc5b06a7c1dfd3fadbbeaba2c67cccbde0c", kill_on_drop: false }`
[INFO] [stderr] Compiling libc v0.2.175
[INFO] [stderr] Compiling serde_core v1.0.226
[INFO] [stderr] Compiling strsim v0.11.1
[INFO] [stderr] Compiling rustix v0.38.44
[INFO] [stderr] Compiling convert_case v0.7.1
[INFO] [stderr] Compiling rustix v1.1.2
[INFO] [stderr] Compiling syn v2.0.106
[INFO] [stderr] Compiling castaway v0.2.4
[INFO] [stderr] Compiling indoc v2.0.6
[INFO] [stderr] Compiling document-features v0.2.11
[INFO] [stderr] Compiling lru v0.12.5
[INFO] [stderr] Compiling unicode-truncate v1.1.0
[INFO] [stderr] Compiling unicode-width v0.2.0
[INFO] [stderr] Compiling cassowary v0.3.0
[INFO] [stderr] Compiling compact_str v0.8.1
[INFO] [stderr] Compiling signal-hook-registry v1.4.6
[INFO] [stderr] Compiling getrandom v0.2.15
[INFO] [stderr] Compiling parking_lot_core v0.9.11
[INFO] [stderr] Compiling mio v1.0.4
[INFO] [stderr] Compiling rtoolbox v0.0.2
[INFO] [stderr] Compiling serde v1.0.226
[INFO] [stderr] Compiling serde_json v1.0.145
[INFO] [stderr] Compiling rand_core v0.6.4
[INFO] [stderr] Compiling rprompt v2.1.1
[INFO] [stderr] Compiling parking_lot v0.12.4
[INFO] [stderr] Compiling chrono v0.4.42
[INFO] [stderr] Compiling darling_core v0.20.11
[INFO] [stderr] Compiling signal-hook v0.3.18
[INFO] [stderr] Compiling rand_chacha v0.3.1
[INFO] [stderr] Compiling signal-hook-mio v0.2.4
[INFO] [stderr] Compiling crossterm v0.28.1
[INFO] [stderr] Compiling rand v0.8.5
[INFO] [stderr] Compiling strum_macros v0.26.4
[INFO] [stderr] Compiling thiserror-impl v2.0.15
[INFO] [stderr] Compiling derive_more-impl v2.0.1
[INFO] [stderr] Compiling derive_more v2.0.1
[INFO] [stderr] Compiling crossterm v0.29.0
[INFO] [stderr] Compiling darling_macro v0.20.11
[INFO] [stderr] Compiling thiserror v2.0.15
[INFO] [stderr] Compiling darling v0.20.11
[INFO] [stderr] Compiling strum v0.26.3
[INFO] [stderr] Compiling rummy v0.2.0 (/opt/rustwide/workdir)
[INFO] [stderr] Compiling instability v0.3.4
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout] --> src/game/variants/basic/rules.rs:55:9
[INFO] [stdout] |
[INFO] [stdout] 55 | state: &GameState,
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout] --> src/game/state.rs:110:27
[INFO] [stdout] |
[INFO] [stdout] 110 | .map_err(|err| InternalError::NoCardsInDeckOrDiscardPile)?;
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `action`
[INFO] [stdout] --> src/game/variants/basic/rules.rs:95:9
[INFO] [stdout] |
[INFO] [stdout] 95 | action: DrawDeckAction,
[INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout] --> src/game/variants/basic/rules.rs:100:23
[INFO] [stdout] |
[INFO] [stdout] 100 | .map_err(|err| InternalError::NoCardsInDeckOrDiscardPile)?;
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout] --> src/game/state.rs:205:24
[INFO] [stdout] |
[INFO] [stdout] 205 | fn validate_action(state: &GameState, action: &GameAction) -> Result<(), ActionError> {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `action`
[INFO] [stdout] --> src/game/state.rs:205:49
[INFO] [stdout] |
[INFO] [stdout] 205 | fn validate_action(state: &GameState
, action: &GameAction) -> Result<(), ActionError> {
[INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout] --> src/game/variants/basic/rules.rs:124:23
[INFO] [stdout] |
[INFO] [stdout] 124 | .map_err(|err| FailedActionError::DiscardPileTooSmall)?;
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `min_idx`
[INFO] [stdout] --> src/game/variants/basic/rules.rs:162:18
[INFO] [stdout] |
[INFO] [stdout] 162 | let (min_idx, max_idx) = if current_idx < target_idx {
[INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_idx`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function `from_card_data` is never used
[INFO] [stdout] --> src/cards/card.rs:118:19
[INFO] [stdout] |
[INFO] [stdout] 42 | impl Card {
[INFO] [stdout] | --------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 118 | pub(crate) fn from_card_data(card_data: CardData, deck_config: Arc) -> Self {
[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 function `new` is never used
[INFO] [stdout] --> src/player.rs:25:19
[INFO] [stdout] |
[INFO] [stdout] 23 | impl Player {
[INFO] [stdout] | ----------- associated function in this implementation
[INFO] [stdout] 24 | /// Creates a new player.
[INFO] [stdout] 25 | pub(crate) fn new(id: usize, active: bool, joined_in_round: usize) -> Self {
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Compiling ratatui v0.29.0
[INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::size`: use .area() as it's the more correct name
[INFO] [stdout] --> examples/basic_rummy/ui/mod.rs:22:18
[INFO] [stdout] |
[INFO] [stdout] 22 | .split(f.size());
[INFO] [stdout] | ^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(deprecated)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `meld::Meldable`
[INFO] [stdout] --> examples/basic_rummy/app.rs:3:31
[INFO] [stdout] |
[INFO] [stdout] 3 | cards::{deck::DeckConfig, meld::Meldable},
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `rummy::cards::meld::Meldable`
[INFO] [stdout] --> examples/basic_rummy/ui/components/discard.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use rummy::cards::meld::Meldable;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `rummy::cards::meld::Meldable`
[INFO] [stdout] --> examples/basic_rummy/ui/components/error.rs:8:5
[INFO] [stdout] |
[INFO] [stdout] 8 | use rummy::cards::meld::Meldable;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `rummy::cards::meld::Meldable`
[INFO] [stdout] --> examples/basic_rummy/ui/components/form_meld.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use rummy::cards::meld::Meldable;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `cards::meld::Meldable`
[INFO] [stdout] --> examples/basic_rummy/ui/components/layoff.rs:8:13
[INFO] [stdout] |
[INFO] [stdout] 8 | use rummy::{cards::meld::Meldable, game::r#trait::Game};
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `rummy::cards::meld::Meldable`
[INFO] [stdout] --> examples/basic_rummy/ui/components/main_menu.rs:8:5
[INFO] [stdout] |
[INFO] [stdout] 8 | use rummy::cards::meld::Meldable;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `cards::meld::Meldable`
[INFO] [stdout] --> examples/basic_rummy/ui/components/round_game_end.rs:9:13
[INFO] [stdout] |
[INFO] [stdout] 9 | use rummy::{cards::meld::Meldable, game::r#trait::Game};
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `app`
[INFO] [stdout] --> examples/basic_rummy/ui/components/round_game_end.rs:39:51
[INFO] [stdout] |
[INFO] [stdout] 39 | pub fn render_game_end(f: &mut Frame, area: Rect, app: &App) {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout] --> examples/basic_rummy/ui/components/game_state.rs:26:20
[INFO] [stdout] |
[INFO] [stdout] 26 | .map(|(i, card)| card.to_string())
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `DrawChoice` and `PlayChoice` are never constructed
[INFO] [stdout] --> examples/basic_rummy/app.rs:33:5
[INFO] [stdout] |
[INFO] [stdout] 31 | pub enum InputMode {
[INFO] [stdout] | --------- variants in this enum
[INFO] [stdout] 32 | Normal,
[INFO] [stdout] 33 | DrawChoice,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] 34 | PlayChoice,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `InputMode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout] --> src/game/variants/basic/rules.rs:55:9
[INFO] [stdout] |
[INFO] [stdout] 55 | state: &GameState,
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout] --> src/game/state.rs:110:27
[INFO] [stdout] |
[INFO] [stdout] 110 | .map_err(|err| InternalError::NoCardsInDeckOrDiscardPile)?;
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `action`
[INFO] [stdout] --> src/game/variants/basic/rules.rs:95:9
[INFO] [stdout] |
[INFO] [stdout] 95 | action: DrawDeckAction,
[INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout] --> src/game/variants/basic/rules.rs:100:23
[INFO] [stdout] |
[INFO] [stdout] 100 | .map_err(|err| InternalError::NoCardsInDeckOrDiscardPile)?;
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout] --> src/game/variants/basic/rules.rs:124:23
[INFO] [stdout] |
[INFO] [stdout] 124 | .map_err(|err| FailedActionError::DiscardPileTooSmall)?;
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `min_idx`
[INFO] [stdout] --> src/game/variants/basic/rules.rs:162:18
[INFO] [stdout] |
[INFO] [stdout] 162 | let (min_idx, max_idx) = if current_idx < target_idx {
[INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_idx`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout] --> src/cards/tests/meld/mod.rs:48:15
[INFO] [stdout] |
[INFO] [stdout] 48 | .map(|i| create_card(start_rank, suit, config.clone())) // Placeholder - needs proper rank arithmetic
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout] --> src/game/state.rs:205:24
[INFO] [stdout] |
[INFO] [stdout] 205 | fn validate_action(state: &GameState, action: &GameAction) -> Result<(), ActionError> {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `action`
[INFO] [stdout] --> src/game/state.rs:205:49
[INFO] [stdout] |
[INFO] [stdout] 205 | fn validate_action(state: &GameState
, action: &GameAction) -> Result<(), ActionError> {
[INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `backup_cards`
[INFO] [stdout] --> src/cards/tests/run/mod.rs:159:13
[INFO] [stdout] |
[INFO] [stdout] 159 | let backup_cards = cards.clone();
[INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_backup_cards`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function `from_card_data` is never used
[INFO] [stdout] --> src/cards/card.rs:118:19
[INFO] [stdout] |
[INFO] [stdout] 42 | impl Card {
[INFO] [stdout] | --------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 118 | pub(crate) fn from_card_data(card_data: CardData, deck_config: Arc) -> Self {
[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 function `new` is never used
[INFO] [stdout] --> src/player.rs:25:19
[INFO] [stdout] |
[INFO] [stdout] 23 | impl Player {
[INFO] [stdout] | ----------- associated function in this implementation
[INFO] [stdout] 24 | /// Creates a new player.
[INFO] [stdout] 25 | pub(crate) fn new(id: usize, active: bool, joined_in_round: usize) -> Self {
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 25.52s
[INFO] running `Command { std: "docker" "inspect" "9be18648dacafa1859badc99c4520dc5b06a7c1dfd3fadbbeaba2c67cccbde0c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9be18648dacafa1859badc99c4520dc5b06a7c1dfd3fadbbeaba2c67cccbde0c", kill_on_drop: false }`
[INFO] [stdout] 9be18648dacafa1859badc99c4520dc5b06a7c1dfd3fadbbeaba2c67cccbde0c