[INFO] cloning repository https://github.com/ProgrammingIncluded/Unstable-Unicorns-RS [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ProgrammingIncluded/Unstable-Unicorns-RS" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FProgrammingIncluded%2FUnstable-Unicorns-RS", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FProgrammingIncluded%2FUnstable-Unicorns-RS'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4384d2c4840621c145690bddab08131afa1209c5 [INFO] checking ProgrammingIncluded/Unstable-Unicorns-RS against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FProgrammingIncluded%2FUnstable-Unicorns-RS" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ProgrammingIncluded/Unstable-Unicorns-RS on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ProgrammingIncluded/Unstable-Unicorns-RS [INFO] finished tweaking git repo https://github.com/ProgrammingIncluded/Unstable-Unicorns-RS [INFO] tweaked toml for git repo https://github.com/ProgrammingIncluded/Unstable-Unicorns-RS written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ProgrammingIncluded/Unstable-Unicorns-RS 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5266aec57ebd55b009b3eb9c76374429fa4577ab45297de4d341813b4db1c894 [INFO] running `Command { std: "docker" "start" "-a" "5266aec57ebd55b009b3eb9c76374429fa4577ab45297de4d341813b4db1c894", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5266aec57ebd55b009b3eb9c76374429fa4577ab45297de4d341813b4db1c894", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5266aec57ebd55b009b3eb9c76374429fa4577ab45297de4d341813b4db1c894", kill_on_drop: false }` [INFO] [stdout] 5266aec57ebd55b009b3eb9c76374429fa4577ab45297de4d341813b4db1c894 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 73e42fba1fa06c92ee7757be7ad62a1a3c96319b5027cae9491004a26134a2fc [INFO] running `Command { std: "docker" "start" "-a" "73e42fba1fa06c92ee7757be7ad62a1a3c96319b5027cae9491004a26134a2fc", kill_on_drop: false }` [INFO] [stderr] Checking dyn-clone v1.0.4 [INFO] [stderr] Checking unstable_unicorns v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> src/cards.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/cards.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Actions`, `Board` [INFO] [stdout] --> src/cards.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::state::{Actions, Action, ActionType, Board, History}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any`, `TypeId` [INFO] [stdout] --> src/state.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/state.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/game.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::cards::*` [INFO] [stdout] --> src/game.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | use crate::cards::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> src/cards.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Actions` [INFO] [stdout] --> src/cards.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::state::{Actions, Action, ActionType, Board, History}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any`, `TypeId` [INFO] [stdout] --> src/state.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | fn play(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:39:45 [INFO] [stdout] | [INFO] [stdout] 39 | fn play(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | fn react(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:40:46 [INFO] [stdout] | [INFO] [stdout] 40 | fn react(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:41:23 [INFO] [stdout] | [INFO] [stdout] 41 | fn destroy(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:41:38 [INFO] [stdout] | [INFO] [stdout] 41 | fn destroy(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 42 | fn steal(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:42:36 [INFO] [stdout] | [INFO] [stdout] 42 | fn steal(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:107:30 [INFO] [stdout] | [INFO] [stdout] 107 | fn play(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:107:45 [INFO] [stdout] | [INFO] [stdout] 107 | fn play(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:141:31 [INFO] [stdout] | [INFO] [stdout] 141 | fn react(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:163:31 [INFO] [stdout] | [INFO] [stdout] 163 | fn react(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/state.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | for i in 0..player_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | fn play(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:39:45 [INFO] [stdout] | [INFO] [stdout] 39 | fn play(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | fn react(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:40:46 [INFO] [stdout] | [INFO] [stdout] 40 | fn react(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:41:23 [INFO] [stdout] | [INFO] [stdout] 41 | fn destroy(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:41:38 [INFO] [stdout] | [INFO] [stdout] 41 | fn destroy(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 42 | fn steal(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:42:36 [INFO] [stdout] | [INFO] [stdout] 42 | fn steal(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ep` [INFO] [stdout] --> src/game.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let ep = self.effect_phase(player, history); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ep` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:107:30 [INFO] [stdout] | [INFO] [stdout] 107 | fn play(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:107:45 [INFO] [stdout] | [INFO] [stdout] 107 | fn play(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | let mut react_node = Node::new(vec![], None, start_action.clone()); [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: unused variable: `player` [INFO] [stdout] --> src/cards.rs:141:31 [INFO] [stdout] | [INFO] [stdout] 141 | fn react(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:163:31 [INFO] [stdout] | [INFO] [stdout] 163 | fn react(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/state.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | for i in 0..player_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CardType` is more private than the item `cards::Card::ctype` [INFO] [stdout] --> src/cards.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | fn ctype(&self) -> CardType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `cards::Card::ctype` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | fn ctype(&self) -> CardType { CardType::Null } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | fn ctype(&self) -> CardType { CardType::Instant } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 139 | fn ctype(&self) -> CardType { CardType::Instant } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | fn ctype(&self) -> CardType { CardType::Instant } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Magic`, `Downgrade`, `Upgrade`, `BasicUnicorn`, `MagicUnicorn`, and `BabyUnicorn` are never constructed [INFO] [stdout] --> src/cards.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | Magic, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | Downgrade, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | Upgrade, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 20 | BasicUnicorn, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 21 | MagicUnicorn, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 22 | BabyUnicorn [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CardType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_unicorn` is never used [INFO] [stdout] --> src/cards.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl CardType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 26 | fn is_unicorn(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_card` and `count_card` are never used [INFO] [stdout] --> src/cards.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub trait QueryCards { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 70 | fn has_card(&self) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn count_card(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Actions` is never used [INFO] [stdout] --> src/state.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub type Actions = Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Link` is never used [INFO] [stdout] --> src/game.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | type Link = Rc>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `WeakLink` is never used [INFO] [stdout] --> src/game.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type WeakLink = Weak>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/game.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 17 | fn new(children: Vec>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameTree` is never constructed [INFO] [stdout] --> src/game.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct GameTree { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl GameTree { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 37 | fn new(action: Action) -> GameTree { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Game` is never constructed [INFO] [stdout] --> src/game.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | struct Game {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_states`, `effect_phase`, `draw_phase`, `react_phase`, and `play_phase` are never used [INFO] [stdout] --> src/game.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 50 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 51 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn get_states(&self, player: usize, history: &History) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn effect_phase(&self, player: usize, history: &History) -> Link { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn draw_phase(&self, player: usize, history: &History) -> Link { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn react_phase(&self, player: usize, history: &History) -> Link { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | fn play_phase(&self, player: usize, history: &History) -> Link { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `StateTest` should have a snake case name [INFO] [stdout] --> src/state.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | mod StateTest { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `state_test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `GameTest` should have a snake case name [INFO] [stdout] --> src/game.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | mod GameTest { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ep` [INFO] [stdout] --> src/game.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let ep = self.effect_phase(player, history); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ep` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | let mut react_node = Node::new(vec![], None, start_action.clone()); [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: unused variable: `result` [INFO] [stdout] --> src/game.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | let result = game.effect_phase(0, &history); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `cards::CardType` is more private than the item `cards::Card::ctype` [INFO] [stdout] --> src/cards.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | fn ctype(&self) -> CardType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `cards::Card::ctype` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `cards::CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `cards::CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | fn ctype(&self) -> CardType { CardType::Null } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `cards::CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `cards::CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | fn ctype(&self) -> CardType { CardType::Instant } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `cards::CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `cards::CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 139 | fn ctype(&self) -> CardType { CardType::Instant } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `cards::CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `cards::CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | fn ctype(&self) -> CardType { CardType::Instant } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `cards::CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `count_card` is never used [INFO] [stdout] --> src/cards.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub trait QueryCards { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 73 | fn count_card(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_count_card` is never used [INFO] [stdout] --> src/cards.rs:200:8 [INFO] [stdout] | [INFO] [stdout] 200 | fn test_count_card() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_states`, and `play_phase` are never used [INFO] [stdout] --> src/game.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 50 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 51 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn get_states(&self, player: usize, history: &History) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | fn play_phase(&self, player: usize, history: &History) -> Link { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `CardTest` should have a snake case name [INFO] [stdout] --> src/cards.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 186 | mod CardTest { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `card_test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `StateTest` should have a snake case name [INFO] [stdout] --> src/state.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | mod StateTest { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `state_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `GameTest` should have a snake case name [INFO] [stdout] --> src/game.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | mod GameTest { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] running `Command { std: "docker" "inspect" "73e42fba1fa06c92ee7757be7ad62a1a3c96319b5027cae9491004a26134a2fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73e42fba1fa06c92ee7757be7ad62a1a3c96319b5027cae9491004a26134a2fc", kill_on_drop: false }` [INFO] [stdout] 73e42fba1fa06c92ee7757be7ad62a1a3c96319b5027cae9491004a26134a2fc [INFO] checking ProgrammingIncluded/Unstable-Unicorns-RS against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FProgrammingIncluded%2FUnstable-Unicorns-RS" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ProgrammingIncluded/Unstable-Unicorns-RS on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ProgrammingIncluded/Unstable-Unicorns-RS [INFO] finished tweaking git repo https://github.com/ProgrammingIncluded/Unstable-Unicorns-RS [INFO] tweaked toml for git repo https://github.com/ProgrammingIncluded/Unstable-Unicorns-RS written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ProgrammingIncluded/Unstable-Unicorns-RS 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] abb985bc25f5014c8446590e4ab315d3ee8a6f8231bd4545e145057df060b166 [INFO] running `Command { std: "docker" "start" "-a" "abb985bc25f5014c8446590e4ab315d3ee8a6f8231bd4545e145057df060b166", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "abb985bc25f5014c8446590e4ab315d3ee8a6f8231bd4545e145057df060b166", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "abb985bc25f5014c8446590e4ab315d3ee8a6f8231bd4545e145057df060b166", kill_on_drop: false }` [INFO] [stdout] abb985bc25f5014c8446590e4ab315d3ee8a6f8231bd4545e145057df060b166 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8582cf7f3845496c590df8cc8b804c2897c2d9796dee1b95eb05f15929376d0a [INFO] running `Command { std: "docker" "start" "-a" "8582cf7f3845496c590df8cc8b804c2897c2d9796dee1b95eb05f15929376d0a", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking dyn-clone v1.0.4 [INFO] [stderr] Checking unstable_unicorns v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/game.rs (1 fix) [INFO] [stderr] Fixed src/state.rs (2 fixes) [INFO] [stderr] Fixed src/cards.rs (2 fixes) [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | fn play(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:39:45 [INFO] [stdout] | [INFO] [stdout] 39 | fn play(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | fn react(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:40:46 [INFO] [stdout] | [INFO] [stdout] 40 | fn react(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:41:23 [INFO] [stdout] | [INFO] [stdout] 41 | fn destroy(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:41:38 [INFO] [stdout] | [INFO] [stdout] 41 | fn destroy(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 42 | fn steal(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:42:36 [INFO] [stdout] | [INFO] [stdout] 42 | fn steal(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:107:30 [INFO] [stdout] | [INFO] [stdout] 107 | fn play(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:107:45 [INFO] [stdout] | [INFO] [stdout] 107 | fn play(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:141:31 [INFO] [stdout] | [INFO] [stdout] 141 | fn react(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:163:31 [INFO] [stdout] | [INFO] [stdout] 163 | fn react(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/state.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | for i in 0..player_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ep` [INFO] [stdout] --> src/game.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let ep = self.effect_phase(player, history); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ep` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/game.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | let result = game.effect_phase(0, &history); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `cards::CardType` is more private than the item `cards::Card::ctype` [INFO] [stdout] --> src/cards.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | fn ctype(&self) -> CardType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `cards::Card::ctype` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `cards::CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `cards::CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | fn ctype(&self) -> CardType { CardType::Null } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `cards::CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `cards::CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | fn ctype(&self) -> CardType { CardType::Instant } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `cards::CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `cards::CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 139 | fn ctype(&self) -> CardType { CardType::Instant } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `cards::CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `cards::CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | fn ctype(&self) -> CardType { CardType::Instant } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `cards::CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `count_card` is never used [INFO] [stdout] --> src/cards.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub trait QueryCards { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 73 | fn count_card(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_count_card` is never used [INFO] [stdout] --> src/cards.rs:200:8 [INFO] [stdout] | [INFO] [stdout] 200 | fn test_count_card() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_states`, and `play_phase` are never used [INFO] [stdout] --> src/game.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 50 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 51 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn get_states(&self, player: usize, history: &History) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | fn play_phase(&self, player: usize, history: &History) -> Link { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `CardTest` should have a snake case name [INFO] [stdout] --> src/cards.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 186 | mod CardTest { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `card_test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `StateTest` should have a snake case name [INFO] [stdout] --> src/state.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | mod StateTest { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `state_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `GameTest` should have a snake case name [INFO] [stdout] --> src/game.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | mod GameTest { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/game.rs (2 fixes) [INFO] [stderr] Fixed src/cards.rs (2 fixes) [INFO] [stderr] Fixed src/state.rs (1 fix) [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:38:30 [INFO] [stdout] | [INFO] [stdout] 38 | fn play(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:38:45 [INFO] [stdout] | [INFO] [stdout] 38 | fn play(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | fn react(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:39:46 [INFO] [stdout] | [INFO] [stdout] 39 | fn react(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:40:23 [INFO] [stdout] | [INFO] [stdout] 40 | fn destroy(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | fn destroy(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | fn steal(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:41:36 [INFO] [stdout] | [INFO] [stdout] 41 | fn steal(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | fn play(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:106:45 [INFO] [stdout] | [INFO] [stdout] 106 | fn play(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:140:31 [INFO] [stdout] | [INFO] [stdout] 140 | fn react(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:162:31 [INFO] [stdout] | [INFO] [stdout] 162 | fn react(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/state.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | for i in 0..player_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ep` [INFO] [stdout] --> src/game.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let ep = self.effect_phase(player, history); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ep` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CardType` is more private than the item `cards::Card::ctype` [INFO] [stdout] --> src/cards.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | fn ctype(&self) -> CardType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `cards::Card::ctype` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | fn ctype(&self) -> CardType { CardType::Null } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | fn ctype(&self) -> CardType { CardType::Instant } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | fn ctype(&self) -> CardType { CardType::Instant } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | fn ctype(&self) -> CardType { CardType::Instant } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Magic`, `Downgrade`, `Upgrade`, `BasicUnicorn`, `MagicUnicorn`, and `BabyUnicorn` are never constructed [INFO] [stdout] --> src/cards.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 13 | enum CardType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | Magic, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | Downgrade, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 18 | Upgrade, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | BasicUnicorn, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 20 | MagicUnicorn, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 21 | BabyUnicorn [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CardType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_unicorn` is never used [INFO] [stdout] --> src/cards.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl CardType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 25 | fn is_unicorn(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_card` and `count_card` are never used [INFO] [stdout] --> src/cards.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub trait QueryCards { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 69 | fn has_card(&self) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn count_card(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Actions` is never used [INFO] [stdout] --> src/state.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type Actions = Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Link` is never used [INFO] [stdout] --> src/game.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | type Link = Rc>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `WeakLink` is never used [INFO] [stdout] --> src/game.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type WeakLink = Weak>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/game.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 17 | fn new(children: Vec>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameTree` is never constructed [INFO] [stdout] --> src/game.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct GameTree { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl GameTree { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 37 | fn new(action: Action) -> GameTree { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Game` is never constructed [INFO] [stdout] --> src/game.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | struct Game {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_states`, `effect_phase`, `draw_phase`, `react_phase`, and `play_phase` are never used [INFO] [stdout] --> src/game.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 50 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 51 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn get_states(&self, player: usize, history: &History) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn effect_phase(&self, player: usize, history: &History) -> Link { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn draw_phase(&self, player: usize, history: &History) -> Link { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn react_phase(&self, player: usize, history: &History) -> Link { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | fn play_phase(&self, player: usize, history: &History) -> Link { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `StateTest` should have a snake case name [INFO] [stdout] --> src/state.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | mod StateTest { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `state_test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `GameTest` should have a snake case name [INFO] [stdout] --> src/game.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | mod GameTest { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking unstable_unicorns v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0412]: cannot find type `Board` in this scope [INFO] [stdout] --> src/cards.rs:188:27 [INFO] [stdout] | [INFO] [stdout] 188 | fn default_board() -> Board { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 186 + use crate::state::Board; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Board` [INFO] [stdout] --> src/cards.rs:189:16 [INFO] [stdout] | [INFO] [stdout] 189 | return Board::new_base_game(2); [INFO] [stdout] | ^^^^^ use of undeclared type `Board` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 186 + use crate::state::Board; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rc` [INFO] [stdout] --> src/cards.rs:215:50 [INFO] [stdout] | [INFO] [stdout] 215 | let option = forced_neigh.react(0, &vec![Rc::new(neigh_action)]).unwrap(); [INFO] [stdout] | ^^ use of undeclared type `Rc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 186 + use std::rc::Rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rc` [INFO] [stdout] --> src/cards.rs:232:50 [INFO] [stdout] | [INFO] [stdout] 232 | let option = forced_neigh.react(0, &vec![Rc::new(neigh_action)]); [INFO] [stdout] | ^^ use of undeclared type `Rc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 186 + use std::rc::Rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Board` [INFO] [stdout] --> src/state.rs:140:26 [INFO] [stdout] | [INFO] [stdout] 140 | let drawn_card = Board::new_base_game(2).draw_specific_card::().unwrap().card; [INFO] [stdout] | ^^^^^ use of undeclared type `Board` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 138 + use crate::state::Board; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Neigh` in this scope [INFO] [stdout] --> src/state.rs:140:71 [INFO] [stdout] | [INFO] [stdout] 140 | let drawn_card = Board::new_base_game(2).draw_specific_card::().unwrap().card; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 138 + use crate::state::Neigh; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Game` in this scope [INFO] [stdout] --> src/game.rs:196:20 [INFO] [stdout] | [INFO] [stdout] 196 | let game = Game {}; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::Game; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Board` [INFO] [stdout] --> src/game.rs:197:21 [INFO] [stdout] | [INFO] [stdout] 197 | let board = Board::new_base_game(2); [INFO] [stdout] | ^^^^^ use of undeclared type `Board` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::Board; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GameTree` [INFO] [stdout] --> src/game.rs:199:20 [INFO] [stdout] | [INFO] [stdout] 199 | let tree = GameTree::new(Action{ [INFO] [stdout] | ^^^^^^^^ use of undeclared type `GameTree` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::GameTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Action` in this scope [INFO] [stdout] --> src/game.rs:199:34 [INFO] [stdout] | [INFO] [stdout] 199 | let tree = GameTree::new(Action{ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::Action; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Neigh` in this scope [INFO] [stdout] --> src/game.rs:200:28 [INFO] [stdout] | [INFO] [stdout] 200 | card: Box::new(Neigh {}), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 194 + use crate::cards::Neigh; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ActionType` [INFO] [stdout] --> src/game.rs:201:20 [INFO] [stdout] | [INFO] [stdout] 201 | atype: ActionType::GameStart, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ActionType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::ActionType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rc` [INFO] [stdout] --> src/game.rs:204:28 [INFO] [stdout] | [INFO] [stdout] 204 | let history = vec![Rc::new(tree.root.borrow().action.clone())]; [INFO] [stdout] | ^^ use of undeclared type `Rc` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::Rc; [INFO] [stdout] | [INFO] [stdout] 194 + use std::rc::Rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Game` in this scope [INFO] [stdout] --> src/game.rs:216:20 [INFO] [stdout] | [INFO] [stdout] 216 | let game = Game {}; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::Game; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GameTree` [INFO] [stdout] --> src/game.rs:217:20 [INFO] [stdout] | [INFO] [stdout] 217 | let tree = GameTree::new(Action{ [INFO] [stdout] | ^^^^^^^^ use of undeclared type `GameTree` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::GameTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Action` in this scope [INFO] [stdout] --> src/game.rs:217:34 [INFO] [stdout] | [INFO] [stdout] 217 | let tree = GameTree::new(Action{ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::Action; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Neigh` in this scope [INFO] [stdout] --> src/game.rs:218:28 [INFO] [stdout] | [INFO] [stdout] 218 | card: Box::new(Neigh {}), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 194 + use crate::cards::Neigh; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ActionType` [INFO] [stdout] --> src/game.rs:219:20 [INFO] [stdout] | [INFO] [stdout] 219 | atype: ActionType::GameStart, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ActionType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::ActionType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Board` [INFO] [stdout] --> src/game.rs:220:20 [INFO] [stdout] | [INFO] [stdout] 220 | board: Board::new_base_game(2) [INFO] [stdout] | ^^^^^ use of undeclared type `Board` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::Board; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rc` [INFO] [stdout] --> src/game.rs:222:28 [INFO] [stdout] | [INFO] [stdout] 222 | let history = vec![Rc::new(tree.root.borrow().action.clone())]; [INFO] [stdout] | ^^ use of undeclared type `Rc` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::Rc; [INFO] [stdout] | [INFO] [stdout] 194 + use std::rc::Rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/game.rs:228:20 [INFO] [stdout] | [INFO] [stdout] 228 | let root = Node::new( [INFO] [stdout] | ^^^^ use of undeclared type `Node` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::Node; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Action` in this scope [INFO] [stdout] --> src/game.rs:231:13 [INFO] [stdout] | [INFO] [stdout] 231 | Action{ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::Action; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Neigh` in this scope [INFO] [stdout] --> src/game.rs:232:32 [INFO] [stdout] | [INFO] [stdout] 232 | card: Box::new(Neigh {}), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 194 + use crate::cards::Neigh; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ActionType` [INFO] [stdout] --> src/game.rs:233:24 [INFO] [stdout] | [INFO] [stdout] 233 | atype: ActionType::GameStart, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ActionType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::ActionType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Board` [INFO] [stdout] --> src/game.rs:234:24 [INFO] [stdout] | [INFO] [stdout] 234 | board: Board::new_base_game(2) [INFO] [stdout] | ^^^^^ use of undeclared type `Board` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::Board; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/game.rs:240:24 [INFO] [stdout] | [INFO] [stdout] 240 | let leaf = Node::new( [INFO] [stdout] | ^^^^ use of undeclared type `Node` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::Node; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rc` [INFO] [stdout] --> src/game.rs:242:22 [INFO] [stdout] | [INFO] [stdout] 242 | Some(Rc::downgrade(&root)), [INFO] [stdout] | ^^ use of undeclared type `Rc` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::Rc; [INFO] [stdout] | [INFO] [stdout] 194 + use std::rc::Rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Neigh` in this scope [INFO] [stdout] --> src/game.rs:243:62 [INFO] [stdout] | [INFO] [stdout] 243 | root_value.action.board.draw_specific_card::().unwrap() [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 194 + use crate::cards::Neigh; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `GameTree` in this scope [INFO] [stdout] --> src/game.rs:249:20 [INFO] [stdout] | [INFO] [stdout] 249 | let tree = GameTree { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::GameTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rc` [INFO] [stdout] --> src/game.rs:257:17 [INFO] [stdout] | [INFO] [stdout] 257 | assert!(Rc::ptr_eq(&root_borrowed.children[0].borrow().parent.as_ref().unwrap().upgrade().unwrap(), &tree.root)); [INFO] [stdout] | ^^ use of undeclared type `Rc` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 194 + use crate::game::Rc; [INFO] [stdout] | [INFO] [stdout] 194 + use std::rc::Rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:38:30 [INFO] [stdout] | [INFO] [stdout] 38 | fn play(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:38:45 [INFO] [stdout] | [INFO] [stdout] 38 | fn play(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | fn react(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:39:46 [INFO] [stdout] | [INFO] [stdout] 39 | fn react(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:40:23 [INFO] [stdout] | [INFO] [stdout] 40 | fn destroy(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | fn destroy(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | fn steal(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:41:36 [INFO] [stdout] | [INFO] [stdout] 41 | fn steal(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | fn play(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:106:45 [INFO] [stdout] | [INFO] [stdout] 106 | fn play(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:140:31 [INFO] [stdout] | [INFO] [stdout] 140 | fn react(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:162:31 [INFO] [stdout] | [INFO] [stdout] 162 | fn react(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/state.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | for i in 0..player_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ep` [INFO] [stdout] --> src/game.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let ep = self.effect_phase(player, history); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ep` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CardType` is more private than the item `cards::Card::ctype` [INFO] [stdout] --> src/cards.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | fn ctype(&self) -> CardType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `cards::Card::ctype` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | fn ctype(&self) -> CardType { CardType::Null } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | fn ctype(&self) -> CardType { CardType::Instant } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | fn ctype(&self) -> CardType { CardType::Instant } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CardType` is more private than the item `::ctype` [INFO] [stdout] --> src/cards.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | fn ctype(&self) -> CardType { CardType::Instant } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::ctype` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `CardType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cards.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | enum CardType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Magic`, `Downgrade`, `Upgrade`, `BasicUnicorn`, `MagicUnicorn`, and `BabyUnicorn` are never constructed [INFO] [stdout] --> src/cards.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 13 | enum CardType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | Magic, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | Downgrade, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 18 | Upgrade, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | BasicUnicorn, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 20 | MagicUnicorn, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 21 | BabyUnicorn [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CardType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_unicorn` is never used [INFO] [stdout] --> src/cards.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl CardType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 25 | fn is_unicorn(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_card` and `count_card` are never used [INFO] [stdout] --> src/cards.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub trait QueryCards { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 69 | fn has_card(&self) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn count_card(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Actions` is never used [INFO] [stdout] --> src/state.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type Actions = Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Link` is never used [INFO] [stdout] --> src/game.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | type Link = Rc>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `WeakLink` is never used [INFO] [stdout] --> src/game.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type WeakLink = Weak>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/game.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 17 | fn new(children: Vec>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameTree` is never constructed [INFO] [stdout] --> src/game.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct GameTree { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl GameTree { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 37 | fn new(action: Action) -> GameTree { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Game` is never constructed [INFO] [stdout] --> src/game.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | struct Game {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_states`, `effect_phase`, `draw_phase`, `react_phase`, and `play_phase` are never used [INFO] [stdout] --> src/game.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 50 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 51 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn get_states(&self, player: usize, history: &History) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn effect_phase(&self, player: usize, history: &History) -> Link { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn draw_phase(&self, player: usize, history: &History) -> Link { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn react_phase(&self, player: usize, history: &History) -> Link { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | fn play_phase(&self, player: usize, history: &History) -> Link { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `StateTest` should have a snake case name [INFO] [stdout] --> src/state.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | mod StateTest { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `state_test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `GameTest` should have a snake case name [INFO] [stdout] --> src/game.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | mod GameTest { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:38:30 [INFO] [stdout] | [INFO] [stdout] 38 | fn play(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:38:45 [INFO] [stdout] | [INFO] [stdout] 38 | fn play(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | fn react(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:39:46 [INFO] [stdout] | [INFO] [stdout] 39 | fn react(self: Box, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:40:23 [INFO] [stdout] | [INFO] [stdout] 40 | fn destroy(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | fn destroy(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | fn steal(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:41:36 [INFO] [stdout] | [INFO] [stdout] 41 | fn steal(&self, player: usize, history: &History) -> Option { None } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | fn play(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/cards.rs:106:45 [INFO] [stdout] | [INFO] [stdout] 106 | fn play(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:140:31 [INFO] [stdout] | [INFO] [stdout] 140 | fn react(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/cards.rs:162:31 [INFO] [stdout] | [INFO] [stdout] 162 | fn react(self: Box, player: usize, history: &History) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/state.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | for i in 0..player_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ep` [INFO] [stdout] --> src/game.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let ep = self.effect_phase(player, history); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ep` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 30 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `unstable_unicorns` (bin "unstable_unicorns" test) due to 31 previous errors; 14 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "8582cf7f3845496c590df8cc8b804c2897c2d9796dee1b95eb05f15929376d0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8582cf7f3845496c590df8cc8b804c2897c2d9796dee1b95eb05f15929376d0a", kill_on_drop: false }` [INFO] [stdout] 8582cf7f3845496c590df8cc8b804c2897c2d9796dee1b95eb05f15929376d0a