[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#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaul-rodriguez%2Flost_cities" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/paul-rodriguez/lost_cities on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-4-tc1/source/Cargo.toml [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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rpds v0.13.0 [INFO] [stderr] Downloaded archery v0.5.0 [INFO] [stderr] Downloaded enum-primitive-derive v0.2.2 [INFO] [stderr] Downloaded maplit v0.1.6 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8719e4f7bfc74a3cfa009bb2b5625f64380ae4cef4c9170c341d82e12b5fee9e [INFO] running `Command { std: "docker" "start" "-a" "8719e4f7bfc74a3cfa009bb2b5625f64380ae4cef4c9170c341d82e12b5fee9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8719e4f7bfc74a3cfa009bb2b5625f64380ae4cef4c9170c341d82e12b5fee9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8719e4f7bfc74a3cfa009bb2b5625f64380ae4cef4c9170c341d82e12b5fee9e", kill_on_drop: false }` [INFO] [stdout] 8719e4f7bfc74a3cfa009bb2b5625f64380ae4cef4c9170c341d82e12b5fee9e [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ce2ba81345c2a380a2852c4877c3e5c36ee0f194822ae523179b843ba55a1912 [INFO] running `Command { std: "docker" "start" "-a" "ce2ba81345c2a380a2852c4877c3e5c36ee0f194822ae523179b843ba55a1912", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking maplit v0.1.6 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking archery v0.5.0 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking rpds v0.13.0 [INFO] [stderr] Checking itertools v0.11.0 [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: `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: 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: 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: 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/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: variants `CardNotFound`, `HandFull`, `DuplicateCard`, `GameOver`, and `DiscardPileEmpty` 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] = 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: 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] [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: 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: variants `Deck` and `Discard` are never constructed [INFO] [stdout] --> src/model/drawfrom.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum DrawFrom { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 5 | Deck, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | Discard { color: Color }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DrawFrom` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [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: 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: 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] 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: variants `Discard` and `Expedition` are never constructed [INFO] [stdout] --> src/model/playto.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum PlayTo { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 3 | Discard, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | Expedition, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlayTo` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [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: method `makeDecision` is never used [INFO] [stdout] --> src/player.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Player { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 9 | fn makeDecision(&mut self, game: &Game) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ [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: associated function `new` is never used [INFO] [stdout] --> src/player/keyboardplayer.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl KeyboardPlayer { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(input: Box, output: Box) -> KeyboardPlayer { [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: 27 warnings emitted [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: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.62s [INFO] running `Command { std: "docker" "inspect" "ce2ba81345c2a380a2852c4877c3e5c36ee0f194822ae523179b843ba55a1912", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce2ba81345c2a380a2852c4877c3e5c36ee0f194822ae523179b843ba55a1912", kill_on_drop: false }` [INFO] [stdout] ce2ba81345c2a380a2852c4877c3e5c36ee0f194822ae523179b843ba55a1912 [INFO] checking paul-rodriguez/lost_cities against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaul-rodriguez%2Flost_cities" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/paul-rodriguez/lost_cities on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-4-tc2/source/Cargo.toml [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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 59784edfc5db81346c874dc7465299ed892f09f776865902dd9d12290a854522 [INFO] running `Command { std: "docker" "start" "-a" "59784edfc5db81346c874dc7465299ed892f09f776865902dd9d12290a854522", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "59784edfc5db81346c874dc7465299ed892f09f776865902dd9d12290a854522", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "59784edfc5db81346c874dc7465299ed892f09f776865902dd9d12290a854522", kill_on_drop: false }` [INFO] [stdout] 59784edfc5db81346c874dc7465299ed892f09f776865902dd9d12290a854522 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c0f474a234194b7120bbf405f574fd6be92e539f1a0914827364ec724273c2c1 [INFO] running `Command { std: "docker" "start" "-a" "c0f474a234194b7120bbf405f574fd6be92e539f1a0914827364ec724273c2c1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking archery v0.5.0 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking maplit v0.1.6 [INFO] [stderr] Checking rpds v0.13.0 [INFO] [stderr] Checking itertools v0.11.0 [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 thiserror-impl v1.0.50 [INFO] [stderr] Compiling enum-primitive-derive v0.2.2 [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: `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: 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: 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: 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/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: variants `CardNotFound`, `HandFull`, `DuplicateCard`, `GameOver`, and `DiscardPileEmpty` 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] = 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: 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] [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: 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: variants `Deck` and `Discard` are never constructed [INFO] [stdout] --> src/model/drawfrom.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum DrawFrom { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 5 | Deck, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | Discard { color: Color }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DrawFrom` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [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: 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: 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] 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: variants `Discard` and `Expedition` are never constructed [INFO] [stdout] --> src/model/playto.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum PlayTo { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 3 | Discard, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | Expedition, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlayTo` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [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: method `makeDecision` is never used [INFO] [stdout] --> src/player.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Player { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 9 | fn makeDecision(&mut self, game: &Game) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ [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: associated function `new` is never used [INFO] [stdout] --> src/player/keyboardplayer.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl KeyboardPlayer { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(input: Box, output: Box) -> KeyboardPlayer { [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/model/deck.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 14 | let newCards = self.cards.pop()?; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 15 | Some((*card, Deck { cards: newCards })) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/model/game.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | Ok(Game { [INFO] [stdout] | ____________^ [INFO] [stdout] 77 | | board: boardAfterPlay, [INFO] [stdout] 78 | | deck: self.deck.clone(), [INFO] [stdout] 79 | | hands: self.handMapWith(handAfterPlay), [INFO] [stdout] 80 | | turn: self.turn, [INFO] [stdout] 81 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/model/game.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | Ok(Game { [INFO] [stdout] | ____________^ [INFO] [stdout] 89 | | board: newBoard, [INFO] [stdout] 90 | | deck: self.deck.clone(), [INFO] [stdout] 91 | | hands: self.handMapWith(newHand), [INFO] [stdout] 92 | | turn: self.turn.opposite(), [INFO] [stdout] 93 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/model/game.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 97 | let (card, newDeck) = match self.deck.take() { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 98 | Some((c, d)) => (c, d), [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 102 | Ok(Game { [INFO] [stdout] | ____________^ [INFO] [stdout] 103 | | board: self.board.clone(), [INFO] [stdout] 104 | | deck: newDeck, [INFO] [stdout] 105 | | hands: self.handMapWith(newHand), [INFO] [stdout] 106 | | turn: self.turn.opposite(), [INFO] [stdout] 107 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/model/hand.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 20 | let mut newDeck = deck.clone(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 26 | Some((Hand { side, cards }, newDeck)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lost_cities` (bin "lost_cities") due to 6 previous errors; 27 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/model/deck.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 14 | let newCards = self.cards.pop()?; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 15 | Some((*card, Deck { cards: newCards })) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/model/discardpile.rs:113:20 [INFO] [stdout] | [INFO] [stdout] 112 | let expected = Ok(DiscardPile::empty()); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 113 | assert_eq!(p.take(Card::fromId(0)), expected) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/model/game.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | Ok(Game { [INFO] [stdout] | ____________^ [INFO] [stdout] 77 | | board: boardAfterPlay, [INFO] [stdout] 78 | | deck: self.deck.clone(), [INFO] [stdout] 79 | | hands: self.handMapWith(handAfterPlay), [INFO] [stdout] 80 | | turn: self.turn, [INFO] [stdout] 81 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/model/game.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | Ok(Game { [INFO] [stdout] | ____________^ [INFO] [stdout] 89 | | board: newBoard, [INFO] [stdout] 90 | | deck: self.deck.clone(), [INFO] [stdout] 91 | | hands: self.handMapWith(newHand), [INFO] [stdout] 92 | | turn: self.turn.opposite(), [INFO] [stdout] 93 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/model/game.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 97 | let (card, newDeck) = match self.deck.take() { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 98 | Some((c, d)) => (c, d), [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 102 | Ok(Game { [INFO] [stdout] | ____________^ [INFO] [stdout] 103 | | board: self.board.clone(), [INFO] [stdout] 104 | | deck: newDeck, [INFO] [stdout] 105 | | hands: self.handMapWith(newHand), [INFO] [stdout] 106 | | turn: self.turn.opposite(), [INFO] [stdout] 107 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/model/game.rs:214:28 [INFO] [stdout] | [INFO] [stdout] 204 | let game = Game { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 213 | let result = game.play(Card::fromId(29), PlayTo::Expedition, DrawFrom::Deck); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 214 | assert_eq!(result, Err(Error::GameOver)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/model/game.rs:225:28 [INFO] [stdout] | [INFO] [stdout] 220 | let result = Game::new(&mut rng).play( [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 225 | assert_eq!(result, Err(Error::DiscardPileEmpty)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/model/hand.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 20 | let mut newDeck = deck.clone(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 26 | Some((Hand { side, cards }, newDeck)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lost_cities` (bin "lost_cities" test) due to 9 previous errors; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c0f474a234194b7120bbf405f574fd6be92e539f1a0914827364ec724273c2c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0f474a234194b7120bbf405f574fd6be92e539f1a0914827364ec724273c2c1", kill_on_drop: false }` [INFO] [stdout] c0f474a234194b7120bbf405f574fd6be92e539f1a0914827364ec724273c2c1