[INFO] cloning repository https://github.com/PrestonSam/freecell-cheat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PrestonSam/freecell-cheat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPrestonSam%2Ffreecell-cheat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPrestonSam%2Ffreecell-cheat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2f4fe69ad15e98132449095e2d91e077d038a797 [INFO] checking PrestonSam/freecell-cheat against try#3652eaba14e5de752eaa5a8ffcac7132f9244f07 for pr-139272 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPrestonSam%2Ffreecell-cheat" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PrestonSam/freecell-cheat on toolchain 3652eaba14e5de752eaa5a8ffcac7132f9244f07 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/PrestonSam/freecell-cheat [INFO] finished tweaking git repo https://github.com/PrestonSam/freecell-cheat [INFO] tweaked toml for git repo https://github.com/PrestonSam/freecell-cheat written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/PrestonSam/freecell-cheat 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" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded arr_macro v0.2.1 [INFO] [stderr] Downloaded arr_macro_impl v0.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4b47a7ea0e95753436f482b9c7181760f35b8488e66e724a76ed614a529fce26 [INFO] running `Command { std: "docker" "start" "-a" "4b47a7ea0e95753436f482b9c7181760f35b8488e66e724a76ed614a529fce26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4b47a7ea0e95753436f482b9c7181760f35b8488e66e724a76ed614a529fce26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b47a7ea0e95753436f482b9c7181760f35b8488e66e724a76ed614a529fce26", kill_on_drop: false }` [INFO] [stdout] 4b47a7ea0e95753436f482b9c7181760f35b8488e66e724a76ed614a529fce26 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 110e4944a297d0d429226775ab9129b3d82ea5b232a32e608d8c865269e72ad8 [INFO] running `Command { std: "docker" "start" "-a" "110e4944a297d0d429226775ab9129b3d82ea5b232a32e608d8c865269e72ad8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling arr_macro_impl v0.2.1 [INFO] [stderr] Checking arr_macro v0.2.1 [INFO] [stderr] Checking derive_more v2.0.1 [INFO] [stderr] Checking freecell-cheat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `HoldsStack` and `StackMove` [INFO] [stdout] --> src/model/card_depots/mod.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | pub use pickables::{FindProxPair, HoldsCard, HoldsStack, PickableCard, PickableStack, CardMove, StackMove}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ColumnDepth` and `Column` [INFO] [stdout] --> src/model/card_depots/mod.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | pub use tableau::{Column, ColumnDepth}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FoundationDepth` and `FoundationPosition` [INFO] [stdout] --> src/model/card_depots/mod.rs:8:58 [INFO] [stdout] | [INFO] [stdout] 8 | pub use foundation::{Foundation, FoundationCardLocation, FoundationDepth, FoundationPosition}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ReservePosition` [INFO] [stdout] --> src/model/card_depots/mod.rs:9:49 [INFO] [stdout] | [INFO] [stdout] 9 | pub use reserve::{Reserve, ReserveCardLocation, ReservePosition}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TableauPosition` [INFO] [stdout] --> src/model/card_depots/mod.rs:10:49 [INFO] [stdout] | [INFO] [stdout] 10 | pub use tableau::{Tableau, TableauCardLocation, TableauPosition, NUMBER_OF_COLUMNS_IN_TABLEAU}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Card` [INFO] [stdout] --> src/model/mod.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | pub use card::{ACE, JACK, QUEEN, KING, Card, Suit}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HoldsStack` and `StackMove` [INFO] [stdout] --> src/model/card_depots/mod.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | pub use pickables::{FindProxPair, HoldsCard, HoldsStack, PickableCard, PickableStack, CardMove, StackMove}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ColumnDepth` and `Column` [INFO] [stdout] --> src/model/card_depots/mod.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | pub use tableau::{Column, ColumnDepth}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FoundationDepth` and `FoundationPosition` [INFO] [stdout] --> src/model/card_depots/mod.rs:8:58 [INFO] [stdout] | [INFO] [stdout] 8 | pub use foundation::{Foundation, FoundationCardLocation, FoundationDepth, FoundationPosition}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ReservePosition` [INFO] [stdout] --> src/model/card_depots/mod.rs:9:49 [INFO] [stdout] | [INFO] [stdout] 9 | pub use reserve::{Reserve, ReserveCardLocation, ReservePosition}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TableauPosition` [INFO] [stdout] --> src/model/card_depots/mod.rs:10:49 [INFO] [stdout] | [INFO] [stdout] 10 | pub use tableau::{Tableau, TableauCardLocation, TableauPosition, NUMBER_OF_COLUMNS_IN_TABLEAU}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Card` [INFO] [stdout] --> src/model/mod.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | pub use card::{ACE, JACK, QUEEN, KING, Card, Suit}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pick` [INFO] [stdout] --> src/model/game.rs:163:34 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn move_stack(&mut self, pick: PickableStack) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pick` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pick` [INFO] [stdout] --> src/model/game.rs:163:34 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn move_stack(&mut self, pick: PickableStack) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pick` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `game_02` is never used [INFO] [stdout] --> src/main.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn game_02() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stack_size` is never read [INFO] [stdout] --> src/model/error.rs:11:37 [INFO] [stdout] | [INFO] [stdout] 11 | InsufficientCardsForStackPick { stack_size: usize }, [INFO] [stdout] | ----------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GameError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NoSuchReserveSlot`, `NoSuchFoundationStack`, and `NoSuchColumn` are never constructed [INFO] [stdout] --> src/model/error.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum GameError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 3 | NoSuchReserveSlot(usize), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | NoSuchFoundationStack(usize), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | NoSuchColumn(usize), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_opposing_suits` is never used [INFO] [stdout] --> src/model/card.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Suit { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn get_opposing_suits(&self) -> (Suit, Suit) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_playable_pair_smaller` and `get_parents` are never used [INFO] [stdout] --> src/model/card.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 147 | impl<'data> Card { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn is_playable_pair_smaller(&self, other: &Card) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn get_parents(&self) -> Option<(Card, Card)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `try_get_card_pick` and `take_card_from` are never used [INFO] [stdout] --> src/model/card_depots/pickables.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub trait HoldsCard { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 52 | fn try_get_card_pick(&self) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn take_card_from(&mut self, from: &mut dyn HoldsCard) -> Result<(), GameError>; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_pick_stack`, `can_put_stack`, and `take_stack_from` are never used [INFO] [stdout] --> src/model/card_depots/pickables.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub trait HoldsStack [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 66 | fn can_pick_stack(&self, pick_size: usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn can_put_stack(&self, picked_stack: &PickableStack) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn take_stack_from(&mut self, from: &mut T, pick: PickableStack) -> Result<(), GameError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Move` is never used [INFO] [stdout] --> src/model/card_depots/pickables.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | pub enum Move { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `size`, `deepest_card`, `from`, and `to` are never read [INFO] [stdout] --> src/model/card_depots/pickables.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct StackMove { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 108 | pub size: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 109 | pub deepest_card: Card, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | pub from: CardLocation, [INFO] [stdout] | ^^^^ [INFO] [stdout] 111 | pub to: CardLocation, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `depth_index` is never used [INFO] [stdout] --> src/model/card_depots/foundation.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl FoundationDepth { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 22 | fn depth_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `position` is never used [INFO] [stdout] --> src/model/card_depots/foundation.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl FoundationCardLocation { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn position(&self) -> FoundationPosition { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_top_card` is never used [INFO] [stdout] --> src/model/card_depots/foundation.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl FoundationStack { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | fn get_top_card(&self) -> Option<&Card> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `position` is never used [INFO] [stdout] --> src/model/card_depots/reserve.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl ReserveCardLocation { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn position(&self) -> ReservePosition { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_next` is never used [INFO] [stdout] --> src/model/card_depots/tableau.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl StateToken { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | fn into_next(self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state_token` is never read [INFO] [stdout] --> src/model/card_depots/tableau.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Column { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | state_token: StateToken, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Column` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_largest_stack_pick` and `at_depth` are never used [INFO] [stdout] --> src/model/card_depots/tableau.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl<'data> Column { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn get_largest_stack_pick(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub(super) fn at_depth(&self, depth: ColumnDepth) -> &Card { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `position` is never used [INFO] [stdout] --> src/model/card_depots/tableau.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 227 | impl TableauCardLocation { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn position(&self) -> TableauPosition { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_valid_stack_picks` is never used [INFO] [stdout] --> src/model/card_depots/tableau.rs:279:12 [INFO] [stdout] | [INFO] [stdout] 260 | impl Tableau { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 279 | pub fn get_valid_stack_picks(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mut_refs` is never used [INFO] [stdout] --> src/model/game.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn get_mut_refs(arr: &mut [T], fst_idx: usize, snd_idx: usize) -> Option<(&mut T, &mut T)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_valid_stack_picks`, `get_card_holder`, `move_card`, and `move_stack` are never used [INFO] [stdout] --> src/model/game.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl Game { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn get_valid_stack_picks(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn get_card_holder(&self, location: &CardLocation) -> Rc> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn move_card(&mut self, card_move: CardMove) -> Result<(), GameError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn move_stack(&mut self, pick: PickableStack) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `and` and `and_then` are never used [INFO] [stdout] --> src/utils/ternary.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Ternary { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 8 | pub fn and(self, other: Self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn and_then(self, other: fn() -> Self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H` should have a snake case name [INFO] [stdout] --> src/main.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/main.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `D` should have a snake case name [INFO] [stdout] --> src/main.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case: `d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `S` should have a snake case name [INFO] [stdout] --> src/main.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H` should have a snake case name [INFO] [stdout] --> src/main.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `D` should have a snake case name [INFO] [stdout] --> src/main.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case: `d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `S` should have a snake case name [INFO] [stdout] --> src/main.rs:67:19 [INFO] [stdout] | [INFO] [stdout] 67 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `game_02` is never used [INFO] [stdout] --> src/main.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn game_02() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stack_size` is never read [INFO] [stdout] --> src/model/error.rs:11:37 [INFO] [stdout] | [INFO] [stdout] 11 | InsufficientCardsForStackPick { stack_size: usize }, [INFO] [stdout] | ----------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GameError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NoSuchReserveSlot`, `NoSuchFoundationStack`, and `NoSuchColumn` are never constructed [INFO] [stdout] --> src/model/error.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum GameError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 3 | NoSuchReserveSlot(usize), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | NoSuchFoundationStack(usize), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | NoSuchColumn(usize), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_opposing_suits` is never used [INFO] [stdout] --> src/model/card.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Suit { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn get_opposing_suits(&self) -> (Suit, Suit) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_playable_pair_smaller` and `get_parents` are never used [INFO] [stdout] --> src/model/card.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 147 | impl<'data> Card { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn is_playable_pair_smaller(&self, other: &Card) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn get_parents(&self) -> Option<(Card, Card)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `try_get_card_pick` and `take_card_from` are never used [INFO] [stdout] --> src/model/card_depots/pickables.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub trait HoldsCard { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 52 | fn try_get_card_pick(&self) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn take_card_from(&mut self, from: &mut dyn HoldsCard) -> Result<(), GameError>; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_pick_stack`, `can_put_stack`, and `take_stack_from` are never used [INFO] [stdout] --> src/model/card_depots/pickables.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub trait HoldsStack [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 66 | fn can_pick_stack(&self, pick_size: usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn can_put_stack(&self, picked_stack: &PickableStack) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn take_stack_from(&mut self, from: &mut T, pick: PickableStack) -> Result<(), GameError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Move` is never used [INFO] [stdout] --> src/model/card_depots/pickables.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | pub enum Move { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `size`, `deepest_card`, `from`, and `to` are never read [INFO] [stdout] --> src/model/card_depots/pickables.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct StackMove { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 108 | pub size: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 109 | pub deepest_card: Card, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | pub from: CardLocation, [INFO] [stdout] | ^^^^ [INFO] [stdout] 111 | pub to: CardLocation, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `depth_index` is never used [INFO] [stdout] --> src/model/card_depots/foundation.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl FoundationDepth { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 22 | fn depth_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `position` is never used [INFO] [stdout] --> src/model/card_depots/foundation.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl FoundationCardLocation { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn position(&self) -> FoundationPosition { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_top_card` is never used [INFO] [stdout] --> src/model/card_depots/foundation.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl FoundationStack { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | fn get_top_card(&self) -> Option<&Card> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `position` is never used [INFO] [stdout] --> src/model/card_depots/reserve.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl ReserveCardLocation { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn position(&self) -> ReservePosition { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_next` is never used [INFO] [stdout] --> src/model/card_depots/tableau.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl StateToken { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | fn into_next(self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state_token` is never read [INFO] [stdout] --> src/model/card_depots/tableau.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Column { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | state_token: StateToken, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Column` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_largest_stack_pick` and `at_depth` are never used [INFO] [stdout] --> src/model/card_depots/tableau.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl<'data> Column { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn get_largest_stack_pick(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub(super) fn at_depth(&self, depth: ColumnDepth) -> &Card { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `position` is never used [INFO] [stdout] --> src/model/card_depots/tableau.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 227 | impl TableauCardLocation { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn position(&self) -> TableauPosition { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_valid_stack_picks` is never used [INFO] [stdout] --> src/model/card_depots/tableau.rs:279:12 [INFO] [stdout] | [INFO] [stdout] 260 | impl Tableau { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 279 | pub fn get_valid_stack_picks(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mut_refs` is never used [INFO] [stdout] --> src/model/game.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn get_mut_refs(arr: &mut [T], fst_idx: usize, snd_idx: usize) -> Option<(&mut T, &mut T)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_valid_stack_picks`, `get_card_holder`, `move_card`, and `move_stack` are never used [INFO] [stdout] --> src/model/game.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl Game { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn get_valid_stack_picks(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn get_card_holder(&self, location: &CardLocation) -> Rc> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn move_card(&mut self, card_move: CardMove) -> Result<(), GameError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn move_stack(&mut self, pick: PickableStack) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `and` and `and_then` are never used [INFO] [stdout] --> src/utils/ternary.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Ternary { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 8 | pub fn and(self, other: Self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn and_then(self, other: fn() -> Self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H` should have a snake case name [INFO] [stdout] --> src/main.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/main.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `D` should have a snake case name [INFO] [stdout] --> src/main.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case: `d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `S` should have a snake case name [INFO] [stdout] --> src/main.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H` should have a snake case name [INFO] [stdout] --> src/main.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `D` should have a snake case name [INFO] [stdout] --> src/main.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case: `d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `S` should have a snake case name [INFO] [stdout] --> src/main.rs:67:19 [INFO] [stdout] | [INFO] [stdout] 67 | let (H, C, D, S) = (Suit::Hearts, Suit::Clubs, Suit::Diamonds, Suit::Spades); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `s` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.19s [INFO] running `Command { std: "docker" "inspect" "110e4944a297d0d429226775ab9129b3d82ea5b232a32e608d8c865269e72ad8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "110e4944a297d0d429226775ab9129b3d82ea5b232a32e608d8c865269e72ad8", kill_on_drop: false }` [INFO] [stdout] 110e4944a297d0d429226775ab9129b3d82ea5b232a32e608d8c865269e72ad8