[INFO] cloning repository https://github.com/EtiNL/mare_nostrum [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/EtiNL/mare_nostrum" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEtiNL%2Fmare_nostrum", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEtiNL%2Fmare_nostrum'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d8ee51eee94d64b33c193d22479593ff2dfe8ba6 [INFO] checking EtiNL/mare_nostrum against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEtiNL%2Fmare_nostrum" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/EtiNL/mare_nostrum [INFO] finished tweaking git repo https://github.com/EtiNL/mare_nostrum [INFO] tweaked toml for git repo https://github.com/EtiNL/mare_nostrum written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/EtiNL/mare_nostrum on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/EtiNL/mare_nostrum 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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 666245d03be62cc7740f84dc59a38e2daa589aa08d3b479dee37482eb4f4876a [INFO] running `Command { std: "docker" "start" "-a" "666245d03be62cc7740f84dc59a38e2daa589aa08d3b479dee37482eb4f4876a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "666245d03be62cc7740f84dc59a38e2daa589aa08d3b479dee37482eb4f4876a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "666245d03be62cc7740f84dc59a38e2daa589aa08d3b479dee37482eb4f4876a", kill_on_drop: false }` [INFO] [stdout] 666245d03be62cc7740f84dc59a38e2daa589aa08d3b479dee37482eb4f4876a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 24fd50cb58d16d6000617fb03c5a1426b138d3c0e628f0e91a67598cc2f54e5d [INFO] running `Command { std: "docker" "start" "-a" "24fd50cb58d16d6000617fb03c5a1426b138d3c0e628f0e91a67598cc2f54e5d", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking thiserror v1.0.61 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking serde_json v1.0.117 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking warp v0.3.7 [INFO] [stderr] Checking mare_nostrum v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let mut roman_player = Arc::new(Mutex::new(Player { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let mut carthaginois_player = Arc::new(Mutex::new(Player { [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let mut greek_player = Arc::new(Mutex::new(Player { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut egypsian_player = Arc::new(Mutex::new(Player { [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_ref` [INFO] [stdout] --> src/game_state.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | for player_ref in &self.players {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_ref` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_get_territoire` is never used [INFO] [stdout] --> src/plateau.rs:406:12 [INFO] [stdout] | [INFO] [stdout] 406 | pub fn test_get_territoire() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_player_name` is never used [INFO] [stdout] --> src/player.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl PlayerEnum { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn from_player_name(name: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Converti`, `Pille`, `Occupe`, and `Deffend` are never constructed [INFO] [stdout] --> src/materiel_militaire.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ActionsLegions { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 4 | Converti, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | Pille, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | Occupe, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | Deffend [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActionsLegions` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Legion` and `Trireme` are never constructed [INFO] [stdout] --> src/materiel_militaire.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum MaterielMilitaire { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 12 | Legion(ActionsLegions), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | Trireme, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MaterielMilitaire` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/heroes_and_wonders.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | AttackDice(GamePhases, Terrain, u8), [INFO] [stdout] | ---------- ^^^^^^^^^^ ^^^^^^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 11 - AttackDice(GamePhases, Terrain, u8), [INFO] [stdout] 11 + AttackDice((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:12:42 [INFO] [stdout] | [INFO] [stdout] 12 | IncludeTaxTokenInGoodCombination(GamePhases), [INFO] [stdout] | -------------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 12 - IncludeTaxTokenInGoodCombination(GamePhases), [INFO] [stdout] 12 + IncludeTaxTokenInGoodCombination(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:13:42 [INFO] [stdout] | [INFO] [stdout] 13 | IncludeGoodTokenInTaxCombination(GamePhases), [INFO] [stdout] | -------------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 - IncludeGoodTokenInTaxCombination(GamePhases), [INFO] [stdout] 13 + IncludeGoodTokenInTaxCombination(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | FreeInfluenceMarker(GamePhases), [INFO] [stdout] | ------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 14 - FreeInfluenceMarker(GamePhases), [INFO] [stdout] 14 + FreeInfluenceMarker(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:15:40 [INFO] [stdout] | [INFO] [stdout] 15 | SameGoodTokenInGoodCombination(GamePhases), [INFO] [stdout] | ------------------------------ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 - SameGoodTokenInGoodCombination(GamePhases), [INFO] [stdout] 15 + SameGoodTokenInGoodCombination(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/heroes_and_wonders.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | DefenceDice(GamePhases, Terrain, u8), [INFO] [stdout] | ----------- ^^^^^^^^^^ ^^^^^^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 16 - DefenceDice(GamePhases, Terrain, u8), [INFO] [stdout] 16 + DefenceDice((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:17:46 [INFO] [stdout] | [INFO] [stdout] 17 | ExengeWithTheNumberOfGoodPlayerWants(GamePhases), [INFO] [stdout] | ------------------------------------ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 - ExengeWithTheNumberOfGoodPlayerWants(GamePhases), [INFO] [stdout] 17 + ExengeWithTheNumberOfGoodPlayerWants(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/heroes_and_wonders.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | BonusMonopole(GamePhases, Monopole), [INFO] [stdout] | ------------- ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 18 - BonusMonopole(GamePhases, Monopole), [INFO] [stdout] 18 + BonusMonopole((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | UseLegionAsCaravane(GamePhases), [INFO] [stdout] | ------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 20 - UseLegionAsCaravane(GamePhases), [INFO] [stdout] 20 + UseLegionAsCaravane(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:21:44 [INFO] [stdout] | [INFO] [stdout] 21 | ContructForteresseForPierreOrImpot(GamePhases), [INFO] [stdout] | ---------------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 21 - ContructForteresseForPierreOrImpot(GamePhases), [INFO] [stdout] 21 + ContructForteresseForPierreOrImpot(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:22:31 [INFO] [stdout] | [INFO] [stdout] 22 | DoubleBeneficePillage(GamePhases), [INFO] [stdout] | --------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 22 - DoubleBeneficePillage(GamePhases), [INFO] [stdout] 22 + DoubleBeneficePillage(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:23:37 [INFO] [stdout] | [INFO] [stdout] 23 | Plus5InBattleIfOwnTerritory(GamePhases), // if there is a legion [INFO] [stdout] | --------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 - Plus5InBattleIfOwnTerritory(GamePhases), // if there is a legion [INFO] [stdout] 23 + Plus5InBattleIfOwnTerritory(()), // if there is a legion [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:24:39 [INFO] [stdout] | [INFO] [stdout] 24 | FreeLegionInOccupiedTerritory(GamePhases), [INFO] [stdout] | ----------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 - FreeLegionInOccupiedTerritory(GamePhases), [INFO] [stdout] 24 + FreeLegionInOccupiedTerritory(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | PlayFirstForTheWin(GamePhases), [INFO] [stdout] | ------------------ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 25 - PlayFirstForTheWin(GamePhases), [INFO] [stdout] 25 + PlayFirstForTheWin(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:26:21 [INFO] [stdout] | [INFO] [stdout] 26 | OneMoreDice(GamePhases), [INFO] [stdout] | ----------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 26 - OneMoreDice(GamePhases), [INFO] [stdout] 26 + OneMoreDice(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:27:65 [INFO] [stdout] | [INFO] [stdout] 27 | AutomaticallyConvertTerritoryIfLeggionOnInfluenceMarker(GamePhases), [INFO] [stdout] | ------------------------------------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 27 - AutomaticallyConvertTerritoryIfLeggionOnInfluenceMarker(GamePhases), [INFO] [stdout] 27 + AutomaticallyConvertTerritoryIfLeggionOnInfluenceMarker(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:28:36 [INFO] [stdout] | [INFO] [stdout] 28 | LegionForGladiatorOrOneTax(GamePhases), [INFO] [stdout] | -------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 28 - LegionForGladiatorOrOneTax(GamePhases), [INFO] [stdout] 28 + LegionForGladiatorOrOneTax(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:29:60 [INFO] [stdout] | [INFO] [stdout] 29 | TakeOneGoodThatPlayerWantsAfterRessourceCollection(GamePhases), [INFO] [stdout] | -------------------------------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 29 - TakeOneGoodThatPlayerWantsAfterRessourceCollection(GamePhases), [INFO] [stdout] 29 + TakeOneGoodThatPlayerWantsAfterRessourceCollection(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:30:40 [INFO] [stdout] | [INFO] [stdout] 30 | BuildOneBoatForOneWoodOrOneTax(GamePhases), [INFO] [stdout] | ------------------------------ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 30 - BuildOneBoatForOneWoodOrOneTax(GamePhases), [INFO] [stdout] 30 + BuildOneBoatForOneWoodOrOneTax(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | OneTaxFree(GamePhases), [INFO] [stdout] | ---------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 31 - OneTaxFree(GamePhases), [INFO] [stdout] 31 + OneTaxFree(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | KeepTwoDifferentGood(GamePhases), [INFO] [stdout] | -------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 32 - KeepTwoDifferentGood(GamePhases), [INFO] [stdout] 32 + KeepTwoDifferentGood(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:33:38 [INFO] [stdout] | [INFO] [stdout] 33 | ChoosePeaceWithAnotherPlayer(GamePhases), [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 33 - ChoosePeaceWithAnotherPlayer(GamePhases), [INFO] [stdout] 33 + ChoosePeaceWithAnotherPlayer(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/heroes_and_wonders.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub enum HeroesAndWondersEnum { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 40 | Hammourabi, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | Antigone, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 44 | CastorEtPolux, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 45 | Circe, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 46 | Gilgamesh, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 47 | Hamilcar, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 48 | Hercule, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 49 | Nabuchodonosor, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 50 | Pentesilee, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 51 | Persee, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | RamsesII, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 53 | ReineDeSaba, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 54 | Spartacus, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 55 | Colosse, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 56 | TempleArtemis, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 57 | Phare, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 58 | StatueDeZeus, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 59 | JardinSuspendus [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeroesAndWondersEnum` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `phase_transition` is never used [INFO] [stdout] --> src/game_phases.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn phase_transition(phase: GamePhases) -> GamePhases { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/monopole_counter.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | Militaire(u8), [INFO] [stdout] | --------- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Monopole` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 - Militaire(u8), [INFO] [stdout] 5 + Militaire(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/monopole_counter.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | Politique(u8), [INFO] [stdout] | --------- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Monopole` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 6 - Politique(u8), [INFO] [stdout] 6 + Politique(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/monopole_counter.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | Commercial(u8) [INFO] [stdout] | ---------- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Monopole` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 - Commercial(u8) [INFO] [stdout] 7 + Commercial(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_monopole` is never used [INFO] [stdout] --> src/game_state.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 21 | impl GameState { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 22 | pub fn get_monopole(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let mut roman_player = Arc::new(Mutex::new(Player { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let mut carthaginois_player = Arc::new(Mutex::new(Player { [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let mut greek_player = Arc::new(Mutex::new(Player { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut egypsian_player = Arc::new(Mutex::new(Player { [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_ref` [INFO] [stdout] --> src/game_state.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | for player_ref in &self.players {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_ref` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_get_territoire` is never used [INFO] [stdout] --> src/plateau.rs:406:12 [INFO] [stdout] | [INFO] [stdout] 406 | pub fn test_get_territoire() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_player_name` is never used [INFO] [stdout] --> src/player.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl PlayerEnum { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn from_player_name(name: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Converti`, `Pille`, `Occupe`, and `Deffend` are never constructed [INFO] [stdout] --> src/materiel_militaire.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ActionsLegions { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 4 | Converti, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | Pille, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | Occupe, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | Deffend [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActionsLegions` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Legion` and `Trireme` are never constructed [INFO] [stdout] --> src/materiel_militaire.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum MaterielMilitaire { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 12 | Legion(ActionsLegions), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | Trireme, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MaterielMilitaire` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/heroes_and_wonders.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | AttackDice(GamePhases, Terrain, u8), [INFO] [stdout] | ---------- ^^^^^^^^^^ ^^^^^^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 11 - AttackDice(GamePhases, Terrain, u8), [INFO] [stdout] 11 + AttackDice((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:12:42 [INFO] [stdout] | [INFO] [stdout] 12 | IncludeTaxTokenInGoodCombination(GamePhases), [INFO] [stdout] | -------------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 12 - IncludeTaxTokenInGoodCombination(GamePhases), [INFO] [stdout] 12 + IncludeTaxTokenInGoodCombination(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:13:42 [INFO] [stdout] | [INFO] [stdout] 13 | IncludeGoodTokenInTaxCombination(GamePhases), [INFO] [stdout] | -------------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 - IncludeGoodTokenInTaxCombination(GamePhases), [INFO] [stdout] 13 + IncludeGoodTokenInTaxCombination(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | FreeInfluenceMarker(GamePhases), [INFO] [stdout] | ------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 14 - FreeInfluenceMarker(GamePhases), [INFO] [stdout] 14 + FreeInfluenceMarker(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:15:40 [INFO] [stdout] | [INFO] [stdout] 15 | SameGoodTokenInGoodCombination(GamePhases), [INFO] [stdout] | ------------------------------ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 - SameGoodTokenInGoodCombination(GamePhases), [INFO] [stdout] 15 + SameGoodTokenInGoodCombination(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/heroes_and_wonders.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | DefenceDice(GamePhases, Terrain, u8), [INFO] [stdout] | ----------- ^^^^^^^^^^ ^^^^^^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 16 - DefenceDice(GamePhases, Terrain, u8), [INFO] [stdout] 16 + DefenceDice((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:17:46 [INFO] [stdout] | [INFO] [stdout] 17 | ExengeWithTheNumberOfGoodPlayerWants(GamePhases), [INFO] [stdout] | ------------------------------------ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 - ExengeWithTheNumberOfGoodPlayerWants(GamePhases), [INFO] [stdout] 17 + ExengeWithTheNumberOfGoodPlayerWants(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/heroes_and_wonders.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | BonusMonopole(GamePhases, Monopole), [INFO] [stdout] | ------------- ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 18 - BonusMonopole(GamePhases, Monopole), [INFO] [stdout] 18 + BonusMonopole((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | UseLegionAsCaravane(GamePhases), [INFO] [stdout] | ------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 20 - UseLegionAsCaravane(GamePhases), [INFO] [stdout] 20 + UseLegionAsCaravane(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:21:44 [INFO] [stdout] | [INFO] [stdout] 21 | ContructForteresseForPierreOrImpot(GamePhases), [INFO] [stdout] | ---------------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 21 - ContructForteresseForPierreOrImpot(GamePhases), [INFO] [stdout] 21 + ContructForteresseForPierreOrImpot(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:22:31 [INFO] [stdout] | [INFO] [stdout] 22 | DoubleBeneficePillage(GamePhases), [INFO] [stdout] | --------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 22 - DoubleBeneficePillage(GamePhases), [INFO] [stdout] 22 + DoubleBeneficePillage(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:23:37 [INFO] [stdout] | [INFO] [stdout] 23 | Plus5InBattleIfOwnTerritory(GamePhases), // if there is a legion [INFO] [stdout] | --------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 - Plus5InBattleIfOwnTerritory(GamePhases), // if there is a legion [INFO] [stdout] 23 + Plus5InBattleIfOwnTerritory(()), // if there is a legion [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:24:39 [INFO] [stdout] | [INFO] [stdout] 24 | FreeLegionInOccupiedTerritory(GamePhases), [INFO] [stdout] | ----------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 - FreeLegionInOccupiedTerritory(GamePhases), [INFO] [stdout] 24 + FreeLegionInOccupiedTerritory(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | PlayFirstForTheWin(GamePhases), [INFO] [stdout] | ------------------ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 25 - PlayFirstForTheWin(GamePhases), [INFO] [stdout] 25 + PlayFirstForTheWin(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:26:21 [INFO] [stdout] | [INFO] [stdout] 26 | OneMoreDice(GamePhases), [INFO] [stdout] | ----------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 26 - OneMoreDice(GamePhases), [INFO] [stdout] 26 + OneMoreDice(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:27:65 [INFO] [stdout] | [INFO] [stdout] 27 | AutomaticallyConvertTerritoryIfLeggionOnInfluenceMarker(GamePhases), [INFO] [stdout] | ------------------------------------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 27 - AutomaticallyConvertTerritoryIfLeggionOnInfluenceMarker(GamePhases), [INFO] [stdout] 27 + AutomaticallyConvertTerritoryIfLeggionOnInfluenceMarker(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:28:36 [INFO] [stdout] | [INFO] [stdout] 28 | LegionForGladiatorOrOneTax(GamePhases), [INFO] [stdout] | -------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 28 - LegionForGladiatorOrOneTax(GamePhases), [INFO] [stdout] 28 + LegionForGladiatorOrOneTax(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:29:60 [INFO] [stdout] | [INFO] [stdout] 29 | TakeOneGoodThatPlayerWantsAfterRessourceCollection(GamePhases), [INFO] [stdout] | -------------------------------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 29 - TakeOneGoodThatPlayerWantsAfterRessourceCollection(GamePhases), [INFO] [stdout] 29 + TakeOneGoodThatPlayerWantsAfterRessourceCollection(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:30:40 [INFO] [stdout] | [INFO] [stdout] 30 | BuildOneBoatForOneWoodOrOneTax(GamePhases), [INFO] [stdout] | ------------------------------ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 30 - BuildOneBoatForOneWoodOrOneTax(GamePhases), [INFO] [stdout] 30 + BuildOneBoatForOneWoodOrOneTax(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | OneTaxFree(GamePhases), [INFO] [stdout] | ---------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 31 - OneTaxFree(GamePhases), [INFO] [stdout] 31 + OneTaxFree(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | KeepTwoDifferentGood(GamePhases), [INFO] [stdout] | -------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 32 - KeepTwoDifferentGood(GamePhases), [INFO] [stdout] 32 + KeepTwoDifferentGood(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/heroes_and_wonders.rs:33:38 [INFO] [stdout] | [INFO] [stdout] 33 | ChoosePeaceWithAnotherPlayer(GamePhases), [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 33 - ChoosePeaceWithAnotherPlayer(GamePhases), [INFO] [stdout] 33 + ChoosePeaceWithAnotherPlayer(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/heroes_and_wonders.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub enum HeroesAndWondersEnum { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 40 | Hammourabi, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | Antigone, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 44 | CastorEtPolux, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 45 | Circe, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 46 | Gilgamesh, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 47 | Hamilcar, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 48 | Hercule, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 49 | Nabuchodonosor, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 50 | Pentesilee, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 51 | Persee, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | RamsesII, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 53 | ReineDeSaba, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 54 | Spartacus, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 55 | Colosse, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 56 | TempleArtemis, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 57 | Phare, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 58 | StatueDeZeus, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 59 | JardinSuspendus [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeroesAndWondersEnum` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `phase_transition` is never used [INFO] [stdout] --> src/game_phases.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn phase_transition(phase: GamePhases) -> GamePhases { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/monopole_counter.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | Militaire(u8), [INFO] [stdout] | --------- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Monopole` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 - Militaire(u8), [INFO] [stdout] 5 + Militaire(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/monopole_counter.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | Politique(u8), [INFO] [stdout] | --------- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Monopole` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 6 - Politique(u8), [INFO] [stdout] 6 + Politique(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/monopole_counter.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | Commercial(u8) [INFO] [stdout] | ---------- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Monopole` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 - Commercial(u8) [INFO] [stdout] 7 + Commercial(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_monopole` is never used [INFO] [stdout] --> src/game_state.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 21 | impl GameState { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 22 | pub fn get_monopole(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.03s [INFO] running `Command { std: "docker" "inspect" "24fd50cb58d16d6000617fb03c5a1426b138d3c0e628f0e91a67598cc2f54e5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24fd50cb58d16d6000617fb03c5a1426b138d3c0e628f0e91a67598cc2f54e5d", kill_on_drop: false }` [INFO] [stdout] 24fd50cb58d16d6000617fb03c5a1426b138d3c0e628f0e91a67598cc2f54e5d