[INFO] cloning repository https://github.com/paul-rodriguez/lost_cities [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/paul-rodriguez/lost_cities" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaul-rodriguez%2Flost_cities", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaul-rodriguez%2Flost_cities'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1babb1369ca298b507682290c8e16056778474fc [INFO] checking paul-rodriguez/lost_cities against master#ca77504943887037504c7fc0b9bf06dab3910373 for pr-145181 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaul-rodriguez%2Flost_cities" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/paul-rodriguez/lost_cities [INFO] finished tweaking git repo https://github.com/paul-rodriguez/lost_cities [INFO] tweaked toml for git repo https://github.com/paul-rodriguez/lost_cities written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/paul-rodriguez/lost_cities on toolchain ca77504943887037504c7fc0b9bf06dab3910373 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ca77504943887037504c7fc0b9bf06dab3910373" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/paul-rodriguez/lost_cities 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" "+ca77504943887037504c7fc0b9bf06dab3910373" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded archery v0.5.0 [INFO] [stderr] Downloaded rpds v0.13.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+ca77504943887037504c7fc0b9bf06dab3910373" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 89c4bcbd5d8aed923f3d1465ea512047bc67c4ae1d32ac9039e9bdca6772832a [INFO] running `Command { std: "docker" "start" "-a" "89c4bcbd5d8aed923f3d1465ea512047bc67c4ae1d32ac9039e9bdca6772832a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "89c4bcbd5d8aed923f3d1465ea512047bc67c4ae1d32ac9039e9bdca6772832a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89c4bcbd5d8aed923f3d1465ea512047bc67c4ae1d32ac9039e9bdca6772832a", kill_on_drop: false }` [INFO] [stdout] 89c4bcbd5d8aed923f3d1465ea512047bc67c4ae1d32ac9039e9bdca6772832a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+ca77504943887037504c7fc0b9bf06dab3910373" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2141a76ba23e957b03d6186f1aa71edf48408fea011dca9ebeeddab11a9ebdcf [INFO] running `Command { std: "docker" "start" "-a" "2141a76ba23e957b03d6186f1aa71edf48408fea011dca9ebeeddab11a9ebdcf", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Checking archery v0.5.0 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking rpds v0.13.0 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking maplit v0.1.6 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_xoshiro v0.6.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling enum-primitive-derive v0.2.2 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Checking lost_cities v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Card` [INFO] [stdout] --> src/player/keyboardplayer.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::model::{Card, Game}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Card` [INFO] [stdout] --> src/player/keyboardplayer.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::model::{Card, Game}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec::Vec` [INFO] [stdout] --> src/player/keyboardplayer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/player/keyboardplayer.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | let playTo = todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 40 | let drawFrom = todo!(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default` [INFO] [stdout] --> src/model/color.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | default => Err(Error::CannotParseColor { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default` [INFO] [stdout] --> src/model/value.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | default => Err(Error::CannotParseValue { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `errType` [INFO] [stdout] --> src/player/keyboardplayer.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let errType = BoxType::CannotPlay; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_errType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `playTo` [INFO] [stdout] --> src/player/keyboardplayer.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let playTo = todo!(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_playTo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `drawFrom` [INFO] [stdout] --> src/player/keyboardplayer.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let drawFrom = todo!(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_drawFrom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> src/player/keyboardplayer.rs:36:32 [INFO] [stdout] | [INFO] [stdout] 36 | fn makeDecision(&mut self, game: &Game) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/player/keyboardplayer.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let player = KeyboardPlayer::new(Box::new(io::stdin()), Box::new(io::stdout())); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decision` [INFO] [stdout] --> src/player/keyboardplayer.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let decision = player.makeDecision(&game); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decision` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/keyboardplayer.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut outBuf = Vec::::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CannotParseCard`, `CannotParseColor`, and `CannotParseValue` are never constructed [INFO] [stdout] --> src/error.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub enum BoxType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 67 | CannotParseCard, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 68 | CannotParseColor, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 69 | CannotParseValue, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `output` is never read [INFO] [stdout] --> src/player/keyboardplayer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct KeyboardPlayer { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 9 | input: Box, [INFO] [stdout] 10 | output: Box, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `card`, `playTo`, and `drawFrom` are never read [INFO] [stdout] --> src/player/playdecision.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PlayDecision { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 5 | pub card: Card, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub playTo: PlayTo, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | pub drawFrom: DrawFrom, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `applyTo` is never used [INFO] [stdout] --> src/player/playdecision.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PlayDecision { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 11 | pub fn applyTo(&self, game: Game) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/player/keyboardplayer.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | let playTo = todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 40 | let drawFrom = todo!(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default` [INFO] [stdout] --> src/model/color.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | default => Err(Error::CannotParseColor { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default` [INFO] [stdout] --> src/model/value.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | default => Err(Error::CannotParseValue { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `errType` [INFO] [stdout] --> src/player/keyboardplayer.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let errType = BoxType::CannotPlay; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_errType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `playTo` [INFO] [stdout] --> src/player/keyboardplayer.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let playTo = todo!(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_playTo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `drawFrom` [INFO] [stdout] --> src/player/keyboardplayer.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let drawFrom = todo!(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_drawFrom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> src/player/keyboardplayer.rs:36:32 [INFO] [stdout] | [INFO] [stdout] 36 | fn makeDecision(&mut self, game: &Game) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/error.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 6 | #[error("card not found: {card}")] [INFO] [stdout] 7 | CardNotFound { card: Card }, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 8 | #[error("hand already full")] [INFO] [stdout] 9 | HandFull, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | #[error("card already in hand: {card}")] [INFO] [stdout] 11 | DuplicateCard { card: Card }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 12 | #[error("the game is over")] [INFO] [stdout] 13 | GameOver, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | DiscardPileEmpty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | CannotPlay { cause: Box }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | #[error("I/O error: {cause}")] [INFO] [stdout] 31 | IOError { cause: String }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `boxed` is never used [INFO] [stdout] --> src/error.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Error { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 35 | pub fn boxed(self, boxType: BoxType) -> Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Boxable` is never used [INFO] [stdout] --> src/error.rs:53:11 [INFO] [stdout] | [INFO] [stdout] 53 | pub trait Boxable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BoxType` is never used [INFO] [stdout] --> src/error.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | pub enum BoxType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `play`, `discardCard`, `take`, and `discardPile` are never used [INFO] [stdout] --> src/model/board.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn play(self, side: Side, card: Card, playTo: PlayTo) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn discardCard(self, card: Card) -> Board { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn take(self, card: Card) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn discardPile(&self) -> &DiscardPile { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `DECK_SIZE` and `toId` are never used [INFO] [stdout] --> src/model/card.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 10 | impl Card { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 11 | pub const DECK_SIZE: usize = 60; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn toId(self) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Deck` is never constructed [INFO] [stdout] --> src/model/deck.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Deck { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `take`, `new`, `remainingCards`, `isEmpty`, and `literal` are never used [INFO] [stdout] --> src/model/deck.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Deck { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 12 | pub fn take(&self) -> Option<(Card, Deck)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn new(rng: &mut impl Rng) -> Deck { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn remainingCards(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn isEmpty(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn literal(ids: &[u8]) -> Deck { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with`, `top`, and `take` are never used [INFO] [stdout] --> src/model/discardpile.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl DiscardPile { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn with(&self, card: Card) -> DiscardPile { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn top(&self, color: Color) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn take(&self, card: Card) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DrawFrom` is never used [INFO] [stdout] --> src/model/drawfrom.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum DrawFrom { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has` is never used [INFO] [stdout] --> src/model/expedition.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Expedition { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn has(&self, card: Card) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Game` is never constructed [INFO] [stdout] --> src/model/game.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Game { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/model/game.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(rng: &mut impl Rng) -> Game { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn hand(&self, side: Side) -> Hand { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn board(&self) -> Board { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn deck(&self) -> Deck { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn turn(&self) -> Side { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn isOver(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn play(&self, card: Card, playTo: PlayTo, drawFrom: DrawFrom) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn handMapWith(&self, hand: Hand) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn playFromHand(&self, card: Card, playTo: PlayTo) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | fn drawFromDiscard(&self, color: Color) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | fn drawFromDeck(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `canAccept` is never used [INFO] [stdout] --> src/model/halfboard.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Halfboard { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn canAccept(&self, card: Card) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Hand` is never constructed [INFO] [stdout] --> src/model/hand.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Hand { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/model/hand.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 15 | impl Hand { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 16 | pub const SIZE: usize = 8; [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | pub fn new(side: Side, deck: &Deck) -> Option<(Hand, Deck)> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn literal(side: Side, ids: &[u8]) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn toSet(&self) -> HashSet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn toVec(&self) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn take(&self, card: Card) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn with(&self, card: Card) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn side(&self) -> Side { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PlayTo` is never used [INFO] [stdout] --> src/model/playto.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum PlayTo { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opposite` is never used [INFO] [stdout] --> src/model/side.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Side { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 8 | pub fn opposite(&self) -> Side { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Player` is never used [INFO] [stdout] --> src/player.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeyboardPlayer` is never constructed [INFO] [stdout] --> src/player/keyboardplayer.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct KeyboardPlayer { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `readn` are never used [INFO] [stdout] --> src/player/keyboardplayer.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl KeyboardPlayer { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(input: Box, output: Box) -> KeyboardPlayer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn readn(&mut self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlayDecision` is never constructed [INFO] [stdout] --> src/player/playdecision.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PlayDecision { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `applyTo` is never used [INFO] [stdout] --> src/player/playdecision.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PlayDecision { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 11 | pub fn applyTo(&self, game: Game) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.47s [INFO] running `Command { std: "docker" "inspect" "2141a76ba23e957b03d6186f1aa71edf48408fea011dca9ebeeddab11a9ebdcf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2141a76ba23e957b03d6186f1aa71edf48408fea011dca9ebeeddab11a9ebdcf", kill_on_drop: false }` [INFO] [stdout] 2141a76ba23e957b03d6186f1aa71edf48408fea011dca9ebeeddab11a9ebdcf