[INFO] cloning repository https://github.com/Markaronin/triple-a-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Markaronin/triple-a-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarkaronin%2Ftriple-a-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarkaronin%2Ftriple-a-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4f378ce75dace99ac94771aacc05de8128484a00 [INFO] checking Markaronin/triple-a-rust/4f378ce75dace99ac94771aacc05de8128484a00 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarkaronin%2Ftriple-a-rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Markaronin/triple-a-rust on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Markaronin/triple-a-rust [INFO] finished tweaking git repo https://github.com/Markaronin/triple-a-rust [INFO] tweaked toml for git repo https://github.com/Markaronin/triple-a-rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Markaronin/triple-a-rust 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/linebender/druid` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tinystr v0.3.4 [INFO] [stderr] Downloaded intl_pluralrules v7.0.1 [INFO] [stderr] Downloaded piet-web v0.5.0 [INFO] [stderr] Downloaded piet-common v0.5.0 [INFO] [stderr] Downloaded text_io v0.1.9 [INFO] [stderr] Downloaded unic-langid v0.9.0 [INFO] [stderr] Downloaded pangocairo v0.14.0 [INFO] [stderr] Downloaded pangocairo-sys v0.14.0 [INFO] [stderr] Downloaded gtk3-macros v0.14.0 [INFO] [stderr] Downloaded piet-cairo v0.5.0 [INFO] [stderr] Downloaded unic-langid-impl v0.9.0 [INFO] [stderr] Downloaded atk v0.14.0 [INFO] [stderr] Downloaded pango v0.14.8 [INFO] [stderr] Downloaded piet-coregraphics v0.5.0 [INFO] [stderr] Downloaded gdk v0.14.3 [INFO] [stderr] Downloaded cairo-rs v0.14.9 [INFO] [stderr] Downloaded piet-direct2d v0.5.0 [INFO] [stderr] Downloaded gdk-pixbuf v0.14.0 [INFO] [stderr] Downloaded gio v0.14.8 [INFO] [stderr] Downloaded piet v0.5.0 [INFO] [stderr] Downloaded gtk v0.14.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cfde44f2a91bc23c4e9500566409cb74df97d48be5cfaf923b3106f78c7633f4 [INFO] running `Command { std: "docker" "start" "-a" "cfde44f2a91bc23c4e9500566409cb74df97d48be5cfaf923b3106f78c7633f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cfde44f2a91bc23c4e9500566409cb74df97d48be5cfaf923b3106f78c7633f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfde44f2a91bc23c4e9500566409cb74df97d48be5cfaf923b3106f78c7633f4", kill_on_drop: false }` [INFO] [stdout] cfde44f2a91bc23c4e9500566409cb74df97d48be5cfaf923b3106f78c7633f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fa3c60ee95e877a2fa1b21da91b30ce9754c9013120a5f0117524ba35bdcb83c [INFO] running `Command { std: "docker" "start" "-a" "fa3c60ee95e877a2fa1b21da91b30ce9754c9013120a5f0117524ba35bdcb83c", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling anyhow v1.0.53 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling cfg-expr v0.8.1 [INFO] [stderr] Compiling version-compare v0.0.11 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling strum v0.21.0 [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Checking once_cell v1.9.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking tinystr v0.3.4 [INFO] [stderr] Compiling gio v0.14.8 [INFO] [stderr] Checking unic-langid-impl v0.9.0 [INFO] [stderr] Checking unic-ucd-bidi v0.9.0 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking bytemuck v1.7.3 [INFO] [stderr] Checking unic-bidi v0.9.0 [INFO] [stderr] Checking kurbo v0.8.3 [INFO] [stderr] Checking unic-langid v0.9.0 [INFO] [stderr] Checking tracing-core v0.1.22 [INFO] [stderr] Compiling gtk v0.14.3 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling rustc_version v0.3.3 [INFO] [stderr] Checking xi-unicode v0.3.0 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Checking type-map v0.4.0 [INFO] [stderr] Compiling field-offset v0.3.4 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Compiling druid-shell v0.7.0 (https://github.com/linebender/druid#0079ae31) [INFO] [stderr] Checking num_threads v0.1.3 [INFO] [stderr] Checking time v0.3.7 [INFO] [stderr] Checking intl-memoizer v0.5.1 [INFO] [stderr] Checking fluent-langneg v0.13.0 [INFO] [stderr] Checking intl_pluralrules v7.0.1 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking keyboard-types v0.6.2 [INFO] [stderr] Checking self_cell v0.10.2 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Checking text_io v0.1.9 [INFO] [stderr] Checking piet v0.5.0 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Checking tracing-subscriber v0.3.8 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling strum_macros v0.21.1 [INFO] [stderr] Compiling tracing-attributes v0.1.19 [INFO] [stderr] Compiling druid-derive v0.4.0 (https://github.com/linebender/druid#0079ae31) [INFO] [stderr] Compiling strum_macros v0.23.1 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Checking fluent-syntax v0.11.0 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Checking tracing v0.1.30 [INFO] [stderr] Compiling system-deps v3.2.0 [INFO] [stderr] Compiling glib-macros v0.14.1 [INFO] [stderr] Compiling gtk3-macros v0.14.0 [INFO] [stderr] Checking strum v0.23.0 [INFO] [stderr] Checking fluent-bundle v0.15.2 [INFO] [stderr] Compiling glib-sys v0.14.0 [INFO] [stderr] Compiling gobject-sys v0.14.0 [INFO] [stderr] Compiling pango-sys v0.14.0 [INFO] [stderr] Compiling cairo-sys-rs v0.14.9 [INFO] [stderr] Compiling gio-sys v0.14.0 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.14.0 [INFO] [stderr] Compiling gdk-sys v0.14.0 [INFO] [stderr] Compiling atk-sys v0.14.0 [INFO] [stderr] Compiling pangocairo-sys v0.14.0 [INFO] [stderr] Compiling gtk-sys v0.14.0 [INFO] [stderr] Checking glib v0.14.8 [INFO] [stderr] Checking pango v0.14.8 [INFO] [stderr] Checking cairo-rs v0.14.9 [INFO] [stderr] Checking atk v0.14.0 [INFO] [stderr] Checking pangocairo v0.14.0 [INFO] [stderr] Checking piet-cairo v0.5.0 [INFO] [stderr] Checking piet-common v0.5.0 [INFO] [stderr] Checking gdk-pixbuf v0.14.0 [INFO] [stderr] Checking gdk v0.14.3 [INFO] [stderr] Checking druid v0.7.0 (https://github.com/linebender/druid#0079ae31) [INFO] [stderr] Checking triple-a-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `buyable_units` is never read [INFO] [stdout] --> src/players/player.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct Player { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 54 | pub buyable_units: HashSet, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `connections`, `money_production`, `unit_production`, `terrain`, and `position` are never read [INFO] [stdout] --> src/spaces/spaces.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Space { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 28 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | pub connections: HashSet, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 30 | pub money_production: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | pub unit_production: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | pub terrain: HashSet, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 33 | pub position: Coord2D, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Hill`, `Cave`, and `Marsh` are never constructed [INFO] [stdout] --> src/terrain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Terrain { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 3 | Mountain, [INFO] [stdout] 4 | Hill, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Cave, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | Marsh, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Terrain` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `BuyUnits`, `Combat`, `NonCombatMove`, and `PlaceUnits` are never constructed [INFO] [stdout] --> src/turn_components/turn_phase.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum TurnPhase { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 5 | CombatMove, [INFO] [stdout] 6 | BuyUnits, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | Combat, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | NonCombatMove, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | PlaceUnits, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TurnPhase` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Web`, `Leadership`, and `Terror` are never constructed [INFO] [stdout] --> src/units/support_types.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum SupportType { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 25 | Web { amount: usize, units: usize }, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | Leadership { amount: usize, units: usize }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | Terror { amount: usize, units: usize }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Charge`, `Trample`, and `Duel` are never constructed [INFO] [stdout] --> src/units/targeted_attacks.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TargetedAttack { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Charge { amount: usize }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | Trample { attacks: usize, amount: usize }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | Duel { amount: usize }, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Wilderness`, `Levy`, `Ambusher`, and `Relentless` are never constructed [INFO] [stdout] --> src/units/terrain_preference.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum TerrainPreference { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 5 | Open, [INFO] [stdout] 6 | Wilderness, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | Levy, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | Ambusher, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | Relentless, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_bonus` is never used [INFO] [stdout] --> src/units/terrain_preference.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl TerrainPreference { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 17 | pub fn get_bonus( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transporting_cost` is never read [INFO] [stdout] --> src/units/unit.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | Land { [INFO] [stdout] | ---- field in this variant [INFO] [stdout] 12 | transporting_cost: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `air_attack` and `air_defense` are never read [INFO] [stdout] --> src/units/unit.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | Air { [INFO] [stdout] | --- fields in this variant [INFO] [stdout] 15 | air_attack: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 16 | air_defense: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transporting_capacity` is never read [INFO] [stdout] --> src/units/unit.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | Sea { [INFO] [stdout] | --- field in this variant [INFO] [stdout] 19 | transporting_capacity: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/units/unit.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Unit { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 24 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | pub attack: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | pub attack_rolls: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 27 | pub defense: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 28 | pub defense_rolls: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub movement_type: MovementType, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 32 | pub cost: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | pub can_be_captured: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pub targeted_attacks: HashSet, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | pub unit_type: HashSet, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 36 | pub support: HashSet, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 37 | pub terrain_preference: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `input` is never used [INFO] [stdout] --> src/util.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn input(message: &str) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `input_int` is never used [INFO] [stdout] --> src/util.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn input_int(message: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `input_space` is never used [INFO] [stdout] --> src/util.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn input_space(message: &str, available: &HashSet) -> SpaceName { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AttackingOrDefending` is never used [INFO] [stdout] --> src/util.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | pub enum AttackingOrDefending { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buyable_units` is never read [INFO] [stdout] --> src/players/player.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct Player { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 54 | pub buyable_units: HashSet, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `connections`, `money_production`, `unit_production`, `terrain`, and `position` are never read [INFO] [stdout] --> src/spaces/spaces.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Space { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 28 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | pub connections: HashSet, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 30 | pub money_production: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | pub unit_production: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | pub terrain: HashSet, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 33 | pub position: Coord2D, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Hill`, `Cave`, and `Marsh` are never constructed [INFO] [stdout] --> src/terrain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Terrain { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 3 | Mountain, [INFO] [stdout] 4 | Hill, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Cave, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | Marsh, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Terrain` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `BuyUnits`, `Combat`, `NonCombatMove`, and `PlaceUnits` are never constructed [INFO] [stdout] --> src/turn_components/turn_phase.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum TurnPhase { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 5 | CombatMove, [INFO] [stdout] 6 | BuyUnits, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | Combat, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | NonCombatMove, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | PlaceUnits, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TurnPhase` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Web`, `Leadership`, and `Terror` are never constructed [INFO] [stdout] --> src/units/support_types.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum SupportType { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 25 | Web { amount: usize, units: usize }, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | Leadership { amount: usize, units: usize }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | Terror { amount: usize, units: usize }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Charge`, `Trample`, and `Duel` are never constructed [INFO] [stdout] --> src/units/targeted_attacks.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TargetedAttack { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Charge { amount: usize }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | Trample { attacks: usize, amount: usize }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | Duel { amount: usize }, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Wilderness`, `Levy`, `Ambusher`, and `Relentless` are never constructed [INFO] [stdout] --> src/units/terrain_preference.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum TerrainPreference { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 5 | Open, [INFO] [stdout] 6 | Wilderness, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | Levy, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | Ambusher, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | Relentless, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_bonus` is never used [INFO] [stdout] --> src/units/terrain_preference.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl TerrainPreference { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 17 | pub fn get_bonus( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transporting_cost` is never read [INFO] [stdout] --> src/units/unit.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | Land { [INFO] [stdout] | ---- field in this variant [INFO] [stdout] 12 | transporting_cost: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `air_attack` and `air_defense` are never read [INFO] [stdout] --> src/units/unit.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | Air { [INFO] [stdout] | --- fields in this variant [INFO] [stdout] 15 | air_attack: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 16 | air_defense: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transporting_capacity` is never read [INFO] [stdout] --> src/units/unit.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | Sea { [INFO] [stdout] | --- field in this variant [INFO] [stdout] 19 | transporting_capacity: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/units/unit.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Unit { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 24 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | pub attack: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | pub attack_rolls: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 27 | pub defense: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 28 | pub defense_rolls: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub movement_type: MovementType, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 32 | pub cost: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | pub can_be_captured: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pub targeted_attacks: HashSet, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | pub unit_type: HashSet, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 36 | pub support: HashSet, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 37 | pub terrain_preference: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `input` is never used [INFO] [stdout] --> src/util.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn input(message: &str) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `input_int` is never used [INFO] [stdout] --> src/util.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn input_int(message: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `input_space` is never used [INFO] [stdout] --> src/util.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn input_space(message: &str, available: &HashSet) -> SpaceName { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AttackingOrDefending` is never used [INFO] [stdout] --> src/util.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | pub enum AttackingOrDefending { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 39s [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "fa3c60ee95e877a2fa1b21da91b30ce9754c9013120a5f0117524ba35bdcb83c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa3c60ee95e877a2fa1b21da91b30ce9754c9013120a5f0117524ba35bdcb83c", kill_on_drop: false }` [INFO] [stdout] fa3c60ee95e877a2fa1b21da91b30ce9754c9013120a5f0117524ba35bdcb83c