[INFO] cloning repository https://github.com/QPotato/RustTeg [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/QPotato/RustTeg" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQPotato%2FRustTeg", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQPotato%2FRustTeg'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9dc779e943dd0ffeb6f15f91c0a0357de2367136 [INFO] checking QPotato/RustTeg against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQPotato%2FRustTeg" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/QPotato/RustTeg on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/QPotato/RustTeg [INFO] finished tweaking git repo https://github.com/QPotato/RustTeg [INFO] tweaked toml for git repo https://github.com/QPotato/RustTeg written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/QPotato/RustTeg already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded memory_units v0.4.0 [INFO] [stderr] Downloaded scoped-tls v0.1.2 [INFO] [stderr] Downloaded wee_alloc v0.4.5 [INFO] [stderr] Downloaded console_error_panic_hook v0.1.5 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.34 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.3.11 [INFO] [stderr] Downloaded wasm-bindgen-test-macro v0.2.34 [INFO] [stderr] Downloaded wasm-bindgen-test v0.2.34 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.34 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.34 [INFO] [stderr] Downloaded js-sys v0.3.11 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.34 [INFO] [stderr] Downloaded wasm-bindgen v0.2.34 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d5c74cd93d8ccbbf28345eee1eb8d9210dfc51f4a2c79401bedc7883468c9b3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5d5c74cd93d8ccbbf28345eee1eb8d9210dfc51f4a2c79401bedc7883468c9b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d5c74cd93d8ccbbf28345eee1eb8d9210dfc51f4a2c79401bedc7883468c9b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d5c74cd93d8ccbbf28345eee1eb8d9210dfc51f4a2c79401bedc7883468c9b3", kill_on_drop: false }` [INFO] [stdout] 5d5c74cd93d8ccbbf28345eee1eb8d9210dfc51f4a2c79401bedc7883468c9b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 623aa4ed371e0bafbfab07626b107e266d90344fce3af9eabb006794f5b09969 [INFO] running `Command { std: "docker" "start" "-a" "623aa4ed371e0bafbfab07626b107e266d90344fce3af9eabb006794f5b09969", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.21 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.34 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Compiling serde v1.0.110 [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling wasm-bindgen v0.2.34 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling proc-macro2 v1.0.12 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling quote v1.0.5 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.2.34 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling serde_derive v1.0.110 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.34 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.34 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.34 [INFO] [stderr] Checking serde_json v1.0.53 [INFO] [stderr] Checking js-sys v0.3.11 [INFO] [stderr] Checking console_error_panic_hook v0.1.5 [INFO] [stderr] Checking rusteg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `player::*` [INFO] [stdout] --> src/war.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use player::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `country` [INFO] [stdout] --> src/map.rs:72:34 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn add_troops(&mut self, country: Country, n: TroopCount) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_country` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/map.rs:72:52 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn add_troops(&mut self, country: Country, n: TroopCount) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `country` [INFO] [stdout] --> src/map.rs:76:35 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn kill_troops(&mut self, country: Country, n: TroopCount) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_country` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/map.rs:76:53 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn kill_troops(&mut self, country: Country, n: TroopCount) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/map.rs:80:35 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn move_troops(&mut self, from: Country, to: Continent) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/map.rs:80:50 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn move_troops(&mut self, from: Country, to: Continent) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d1` [INFO] [stdout] --> src/war.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let d1 = vec![1, 1, 1]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d2` [INFO] [stdout] --> src/war.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let d2 = vec![1, 1, 1]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `TroopScheme` in public interface (error E0446) [INFO] [stdout] --> src/round.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | troops: TroopScheme, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iter_countries` [INFO] [stdout] --> src/map.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn iter_countries<'a>(&self) -> CountryIterator<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_troops` [INFO] [stdout] --> src/map.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn add_troops(&mut self, country: Country, n: TroopCount) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kill_troops` [INFO] [stdout] --> src/map.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn kill_troops(&mut self, country: Country, n: TroopCount) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_troops` [INFO] [stdout] --> src/map.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn move_troops(&mut self, from: Country, to: Continent) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `restart_round` [INFO] [stdout] --> src/map.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn restart_round(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iter_continents` [INFO] [stdout] --> src/map.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn iter_continents<'a>(&self) -> ContinentIterator<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `count_countries_on_continent` [INFO] [stdout] --> src/map.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn count_countries_on_continent(&self, player: Player, continent_name: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_continent_size` [INFO] [stdout] --> src/map.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn get_continent_size(&self, continent_name: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contient_is_ocupied_by` [INFO] [stdout] --> src/map.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn contient_is_ocupied_by(&self, continent_name: &str, player: Player) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_in_continent` [INFO] [stdout] --> src/map.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn is_in_continent(&self, country: Country, continent_name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_borders` [INFO] [stdout] --> src/map.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn get_borders(&self, a: Country) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `adjacent` [INFO] [stdout] --> src/map.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn adjacent(&self, a: Country, b: Country) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_posible_attacks` [INFO] [stdout] --> src/map.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn get_posible_attacks(&self, player: Player) -> HashMap> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `test` [INFO] [stdout] --> src/objective.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | test: ObjectiveTest, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ObjectivePool` [INFO] [stdout] --> src/objective.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct ObjectivePool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_completed` [INFO] [stdout] --> src/objective.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn is_completed(&self, player: Player, map: &Map) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/objective.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/objective.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn get(&mut self) -> Objective { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `AttackResult` [INFO] [stdout] --> src/war.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub type AttackResult = (usize, usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `attack` [INFO] [stdout] --> src/war.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn attack(map: &Map, attacker: Country, defender: Country) -> AttackResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Cannon` [INFO] [stdout] --> src/card.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Cannon, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Ship` [INFO] [stdout] --> src/card.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Ship, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Balloon` [INFO] [stdout] --> src/card.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Balloon, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Wildcard` [INFO] [stdout] --> src/card.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Wildcard [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/card.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `use_card` [INFO] [stdout] --> src/card.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn use_card(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_used` [INFO] [stdout] --> src/card.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn is_used(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TroopScheme` [INFO] [stdout] --> src/round.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct TroopScheme { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `AddTurn` [INFO] [stdout] --> src/round.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct AddTurn { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Turn` [INFO] [stdout] --> src/round.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum Turn { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SecondAdd` [INFO] [stdout] --> src/round.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | SecondAdd, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `War` [INFO] [stdout] --> src/round.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | War, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NormalAdd` [INFO] [stdout] --> src/round.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | NormalAdd [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_next_turn` [INFO] [stdout] --> src/round.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn get_next_turn(&mut self, map: &Map) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_next_round` [INFO] [stdout] --> src/round.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn get_next_round(self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking wasm-bindgen-futures v0.3.11 [INFO] [stderr] Checking wasm-bindgen-test v0.2.34 [INFO] [stdout] warning: unused import: `player::*` [INFO] [stdout] --> src/war.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use player::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `country` [INFO] [stdout] --> src/map.rs:72:34 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn add_troops(&mut self, country: Country, n: TroopCount) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_country` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/map.rs:72:52 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn add_troops(&mut self, country: Country, n: TroopCount) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `country` [INFO] [stdout] --> src/map.rs:76:35 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn kill_troops(&mut self, country: Country, n: TroopCount) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_country` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/map.rs:76:53 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn kill_troops(&mut self, country: Country, n: TroopCount) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/map.rs:80:35 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn move_troops(&mut self, from: Country, to: Continent) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/map.rs:80:50 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn move_troops(&mut self, from: Country, to: Continent) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d1` [INFO] [stdout] --> src/war.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let d1 = vec![1, 1, 1]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d2` [INFO] [stdout] --> src/war.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let d2 = vec![1, 1, 1]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `TroopScheme` in public interface (error E0446) [INFO] [stdout] --> src/round.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | troops: TroopScheme, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iter_countries` [INFO] [stdout] --> src/map.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn iter_countries<'a>(&self) -> CountryIterator<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_troops` [INFO] [stdout] --> src/map.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn add_troops(&mut self, country: Country, n: TroopCount) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kill_troops` [INFO] [stdout] --> src/map.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn kill_troops(&mut self, country: Country, n: TroopCount) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_troops` [INFO] [stdout] --> src/map.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn move_troops(&mut self, from: Country, to: Continent) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `restart_round` [INFO] [stdout] --> src/map.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn restart_round(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iter_continents` [INFO] [stdout] --> src/map.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn iter_continents<'a>(&self) -> ContinentIterator<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `count_countries_on_continent` [INFO] [stdout] --> src/map.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn count_countries_on_continent(&self, player: Player, continent_name: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_continent_size` [INFO] [stdout] --> src/map.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn get_continent_size(&self, continent_name: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contient_is_ocupied_by` [INFO] [stdout] --> src/map.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn contient_is_ocupied_by(&self, continent_name: &str, player: Player) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_in_continent` [INFO] [stdout] --> src/map.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn is_in_continent(&self, country: Country, continent_name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_borders` [INFO] [stdout] --> src/map.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn get_borders(&self, a: Country) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `adjacent` [INFO] [stdout] --> src/map.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn adjacent(&self, a: Country, b: Country) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_posible_attacks` [INFO] [stdout] --> src/map.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn get_posible_attacks(&self, player: Player) -> HashMap> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `test` [INFO] [stdout] --> src/objective.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | test: ObjectiveTest, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ObjectivePool` [INFO] [stdout] --> src/objective.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct ObjectivePool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_completed` [INFO] [stdout] --> src/objective.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn is_completed(&self, player: Player, map: &Map) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/objective.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/objective.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn get(&mut self) -> Objective { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `AttackResult` [INFO] [stdout] --> src/war.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub type AttackResult = (usize, usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `attack` [INFO] [stdout] --> src/war.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn attack(map: &Map, attacker: Country, defender: Country) -> AttackResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Cannon` [INFO] [stdout] --> src/card.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Cannon, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Ship` [INFO] [stdout] --> src/card.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Ship, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Balloon` [INFO] [stdout] --> src/card.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Balloon, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Wildcard` [INFO] [stdout] --> src/card.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Wildcard [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/card.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `use_card` [INFO] [stdout] --> src/card.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn use_card(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_used` [INFO] [stdout] --> src/card.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn is_used(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TroopScheme` [INFO] [stdout] --> src/round.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct TroopScheme { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `AddTurn` [INFO] [stdout] --> src/round.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct AddTurn { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Turn` [INFO] [stdout] --> src/round.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum Turn { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SecondAdd` [INFO] [stdout] --> src/round.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | SecondAdd, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `War` [INFO] [stdout] --> src/round.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | War, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NormalAdd` [INFO] [stdout] --> src/round.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | NormalAdd [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_next_turn` [INFO] [stdout] --> src/round.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn get_next_turn(&mut self, map: &Map) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_next_round` [INFO] [stdout] --> src/round.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn get_next_round(self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 16s [INFO] running `Command { std: "docker" "inspect" "623aa4ed371e0bafbfab07626b107e266d90344fce3af9eabb006794f5b09969", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "623aa4ed371e0bafbfab07626b107e266d90344fce3af9eabb006794f5b09969", kill_on_drop: false }` [INFO] [stdout] 623aa4ed371e0bafbfab07626b107e266d90344fce3af9eabb006794f5b09969