[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] 0f63adf5692d2b9db1e41326b8caf7850f9b90b0 [INFO] checking QPotato/RustTeg against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQPotato%2FRustTeg" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/QPotato/RustTeg on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "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-4/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" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1da3998362a1923f7af8cdc16ec73d5dfe0c3f5d4600e8f0f46624dc866ff0a2 [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" "1da3998362a1923f7af8cdc16ec73d5dfe0c3f5d4600e8f0f46624dc866ff0a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1da3998362a1923f7af8cdc16ec73d5dfe0c3f5d4600e8f0f46624dc866ff0a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1da3998362a1923f7af8cdc16ec73d5dfe0c3f5d4600e8f0f46624dc866ff0a2", kill_on_drop: false }` [INFO] [stdout] 1da3998362a1923f7af8cdc16ec73d5dfe0c3f5d4600e8f0f46624dc866ff0a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "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] 2920de6d6d084250f2e68e3d4ab3c9a4ae2df44cd89225d985df3658b9a96d1b [INFO] running `Command { std: "docker" "start" "-a" "2920de6d6d084250f2e68e3d4ab3c9a4ae2df44cd89225d985df3658b9a96d1b", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.21 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling serde v1.0.110 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.34 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.34 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Checking uuid v0.7.4 [INFO] [stderr] Checking futures v0.1.29 [INFO] [stderr] Checking scoped-tls v0.1.2 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Compiling proc-macro2 v1.0.12 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Compiling quote v1.0.5 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.2.34 [INFO] [stderr] Checking chrono v0.4.11 [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] Compiling serde_derive v1.0.110 [INFO] [stderr] Compiling juniper_codegen v0.14.2 [INFO] [stderr] Checking serde_json v1.0.53 [INFO] [stderr] Checking juniper v0.14.2 [INFO] [stderr] Checking console_error_panic_hook v0.1.5 [INFO] [stderr] Checking js-sys v0.3.11 [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] [stderr] Checking wasm-bindgen-futures v0.3.11 [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: 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] = note: `#[warn(dead_code)]` on by default [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: 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: 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: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [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: 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] = note: `#[warn(dead_code)]` on by default [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: 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: 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: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 22s [INFO] running `Command { std: "docker" "inspect" "2920de6d6d084250f2e68e3d4ab3c9a4ae2df44cd89225d985df3658b9a96d1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2920de6d6d084250f2e68e3d4ab3c9a4ae2df44cd89225d985df3658b9a96d1b", kill_on_drop: false }` [INFO] [stdout] 2920de6d6d084250f2e68e3d4ab3c9a4ae2df44cd89225d985df3658b9a96d1b