[INFO] fetching crate radip 0.1.0... [INFO] building radip-0.1.0 against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] extracting crate radip 0.1.0 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate radip 0.1.0 on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate radip 0.1.0 [INFO] finished tweaking crates.io crate radip 0.1.0 [INFO] tweaked toml for crates.io crate radip 0.1.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 18 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] db594fb682ae31f81dc9f2f0be74b8a13562b035685a1037ac7b2dd6b47e6323 [INFO] running `Command { std: "docker" "start" "-a" "db594fb682ae31f81dc9f2f0be74b8a13562b035685a1037ac7b2dd6b47e6323", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "db594fb682ae31f81dc9f2f0be74b8a13562b035685a1037ac7b2dd6b47e6323", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db594fb682ae31f81dc9f2f0be74b8a13562b035685a1037ac7b2dd6b47e6323", kill_on_drop: false }` [INFO] [stdout] db594fb682ae31f81dc9f2f0be74b8a13562b035685a1037ac7b2dd6b47e6323 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 804856f88aa52b24287dc9505ed63905286029f77b8a1e8c45e5a4a2594d39b5 [INFO] running `Command { std: "docker" "start" "-a" "804856f88aa52b24287dc9505ed63905286029f77b8a1e8c45e5a4a2594d39b5", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling typeid v1.0.3 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling inventory v0.3.20 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling frozenset v0.2.2 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling typetag-impl v0.2.20 [INFO] [stderr] Compiling erased-serde v0.4.6 [INFO] [stderr] Compiling typetag v0.2.20 [INFO] [stderr] Compiling radip v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `VecDeque` [INFO] [stdout] --> src/lib.rs:9:37 [INFO] [stdout] | [INFO] [stdout] 9 | collections::{HashMap, HashSet, VecDeque}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp::min` [INFO] [stdout] --> src/utils.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{cmp::min, collections::{HashMap, HashSet}}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet`, `error::Error`, and `hash::Hash` [INFO] [stdout] --> src/test.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 3 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 4 | hash::Hash, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | mod test; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MapState`, `Map`, `adjudicate`, and `base` [INFO] [stdout] --> src/test.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{adjudicate, base, Map, MapState, Orders, Unit}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^ ^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | mod test; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `hash::Hash` and `thread::current` [INFO] [stdout] --> src/paradox.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{hash::Hash, thread::current}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `compute_attack_strength` [INFO] [stdout] --> src/paradox.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use base::{compute_attack_strength, compute_defend_strength, compute_prevent_strength, is_path, Convoy, Move}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/base.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | map: &crate::Map, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/base.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | state: &crate::MapState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/base.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | map: &crate::Map, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/base.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | state: &crate::MapState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/base.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | map: &crate::Map, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/base.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | state: &crate::MapState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/base.rs:298:5 [INFO] [stdout] | [INFO] [stdout] 298 | map: &Map, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/base.rs:299:5 [INFO] [stdout] | [INFO] [stdout] 299 | state: &MapState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_coast` [INFO] [stdout] --> src/base.rs:542:21 [INFO] [stdout] | [INFO] [stdout] 542 | let (dest_prov, dest_coast) = &orders[src] [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_coast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_coast` [INFO] [stdout] --> src/base.rs:585:21 [INFO] [stdout] | [INFO] [stdout] 585 | let (dest_prov, dest_coast) = &orders[src] [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_coast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_coast` [INFO] [stdout] --> src/base.rs:624:21 [INFO] [stdout] | [INFO] [stdout] 624 | let (dest_prov, dest_coast) = &orders[src] [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_coast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/base.rs:700:5 [INFO] [stdout] | [INFO] [stdout] 700 | map: &Map, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `natl` [INFO] [stdout] --> src/utils.rs:91:24 [INFO] [stdout] | [INFO] [stdout] 91 | Unit::Army(natl) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_natl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `natl` [INFO] [stdout] --> src/utils.rs:99:25 [INFO] [stdout] | [INFO] [stdout] 99 | Unit::Fleet(natl, src_coast) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_natl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let mut unvisited = map.provinces.keys().map(|c| c.as_str()).collect::>(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_status` [INFO] [stdout] --> src/paradox.rs:93:64 [INFO] [stdout] | [INFO] [stdout] 93 | fn get_component(map: &Map, state: &MapState, orders: &Orders, order_status: &mut HashMap, start: &str) -> FrozenSet { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Test` is never constructed [INFO] [stdout] --> src/test.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Test { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Test` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `empty` is never used [INFO] [stdout] --> src/test.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Test { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 18 | pub fn empty(name: String) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_province` is never used [INFO] [stdout] --> src/test.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn parse_province(src: &str) -> (String, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.47s [INFO] running `Command { std: "docker" "inspect" "804856f88aa52b24287dc9505ed63905286029f77b8a1e8c45e5a4a2594d39b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "804856f88aa52b24287dc9505ed63905286029f77b8a1e8c45e5a4a2594d39b5", kill_on_drop: false }` [INFO] [stdout] 804856f88aa52b24287dc9505ed63905286029f77b8a1e8c45e5a4a2594d39b5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 316fa3a558f452ff888b5cc97bc55e830337e85559a053130f97bdc1426b15d3 [INFO] running `Command { std: "docker" "start" "-a" "316fa3a558f452ff888b5cc97bc55e830337e85559a053130f97bdc1426b15d3", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `VecDeque` [INFO] [stdout] --> src/lib.rs:9:37 [INFO] [stdout] | [INFO] [stdout] 9 | collections::{HashMap, HashSet, VecDeque}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling radip v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `cmp::min` [INFO] [stdout] --> src/utils.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{cmp::min, collections::{HashMap, HashSet}}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet`, `error::Error`, and `hash::Hash` [INFO] [stdout] --> src/test.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 3 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 4 | hash::Hash, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | mod test; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MapState`, `Map`, `adjudicate`, and `base` [INFO] [stdout] --> src/test.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{adjudicate, base, Map, MapState, Orders, Unit}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^ ^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | mod test; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `hash::Hash` and `thread::current` [INFO] [stdout] --> src/paradox.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{hash::Hash, thread::current}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `compute_attack_strength` [INFO] [stdout] --> src/paradox.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use base::{compute_attack_strength, compute_defend_strength, compute_prevent_strength, is_path, Convoy, Move}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/base.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | map: &crate::Map, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/base.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | state: &crate::MapState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/base.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | map: &crate::Map, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/base.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | state: &crate::MapState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/base.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | map: &crate::Map, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/base.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | state: &crate::MapState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/base.rs:298:5 [INFO] [stdout] | [INFO] [stdout] 298 | map: &Map, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/base.rs:299:5 [INFO] [stdout] | [INFO] [stdout] 299 | state: &MapState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_coast` [INFO] [stdout] --> src/base.rs:542:21 [INFO] [stdout] | [INFO] [stdout] 542 | let (dest_prov, dest_coast) = &orders[src] [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_coast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_coast` [INFO] [stdout] --> src/base.rs:585:21 [INFO] [stdout] | [INFO] [stdout] 585 | let (dest_prov, dest_coast) = &orders[src] [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_coast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_coast` [INFO] [stdout] --> src/base.rs:624:21 [INFO] [stdout] | [INFO] [stdout] 624 | let (dest_prov, dest_coast) = &orders[src] [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_coast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/base.rs:700:5 [INFO] [stdout] | [INFO] [stdout] 700 | map: &Map, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `natl` [INFO] [stdout] --> src/utils.rs:91:24 [INFO] [stdout] | [INFO] [stdout] 91 | Unit::Army(natl) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_natl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `natl` [INFO] [stdout] --> src/utils.rs:99:25 [INFO] [stdout] | [INFO] [stdout] 99 | Unit::Fleet(natl, src_coast) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_natl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let mut unvisited = map.provinces.keys().map(|c| c.as_str()).collect::>(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_status` [INFO] [stdout] --> src/paradox.rs:93:64 [INFO] [stdout] | [INFO] [stdout] 93 | fn get_component(map: &Map, state: &MapState, orders: &Orders, order_status: &mut HashMap, start: &str) -> FrozenSet { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Test` is never constructed [INFO] [stdout] --> src/test.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Test { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Test` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `empty` is never used [INFO] [stdout] --> src/test.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Test { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 18 | pub fn empty(name: String) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_province` is never used [INFO] [stdout] --> src/test.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn parse_province(src: &str) -> (String, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VecDeque` [INFO] [stdout] --> src/lib.rs:9:37 [INFO] [stdout] | [INFO] [stdout] 9 | collections::{HashMap, HashSet, VecDeque}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp::min` [INFO] [stdout] --> src/utils.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{cmp::min, collections::{HashMap, HashSet}}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet` and `hash::Hash` [INFO] [stdout] --> src/test.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 3 | error::Error, [INFO] [stdout] 4 | hash::Hash, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `hash::Hash` and `thread::current` [INFO] [stdout] --> src/paradox.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{hash::Hash, thread::current}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `compute_attack_strength` [INFO] [stdout] --> src/paradox.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use base::{compute_attack_strength, compute_defend_strength, compute_prevent_strength, is_path, Convoy, Move}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/base.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | map: &crate::Map, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/base.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | state: &crate::MapState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/base.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | map: &crate::Map, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/base.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | state: &crate::MapState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/base.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | map: &crate::Map, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/base.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | state: &crate::MapState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/base.rs:298:5 [INFO] [stdout] | [INFO] [stdout] 298 | map: &Map, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/base.rs:299:5 [INFO] [stdout] | [INFO] [stdout] 299 | state: &MapState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_coast` [INFO] [stdout] --> src/base.rs:542:21 [INFO] [stdout] | [INFO] [stdout] 542 | let (dest_prov, dest_coast) = &orders[src] [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_coast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_coast` [INFO] [stdout] --> src/base.rs:585:21 [INFO] [stdout] | [INFO] [stdout] 585 | let (dest_prov, dest_coast) = &orders[src] [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_coast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_coast` [INFO] [stdout] --> src/base.rs:624:21 [INFO] [stdout] | [INFO] [stdout] 624 | let (dest_prov, dest_coast) = &orders[src] [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_coast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/base.rs:700:5 [INFO] [stdout] | [INFO] [stdout] 700 | map: &Map, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `natl` [INFO] [stdout] --> src/utils.rs:91:24 [INFO] [stdout] | [INFO] [stdout] 91 | Unit::Army(natl) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_natl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `natl` [INFO] [stdout] --> src/utils.rs:99:25 [INFO] [stdout] | [INFO] [stdout] 99 | Unit::Fleet(natl, src_coast) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_natl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let mut unvisited = map.provinces.keys().map(|c| c.as_str()).collect::>(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_coast` [INFO] [stdout] --> src/test.rs:98:40 [INFO] [stdout] | [INFO] [stdout] 98 | let (src_prov, src_coast) = parse_province(parts[3]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_coast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_coast` [INFO] [stdout] --> src/test.rs:99:41 [INFO] [stdout] | [INFO] [stdout] 99 | let (dest_prov, dest_coast) = parse_province(parts[5]); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_coast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_coast` [INFO] [stdout] --> src/test.rs:108:41 [INFO] [stdout] | [INFO] [stdout] 108 | let (dest_prov, dest_coast) = parse_province(parts[3]); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_coast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_coast` [INFO] [stdout] --> src/test.rs:126:36 [INFO] [stdout] | [INFO] [stdout] 126 | let (src_prov, src_coast) = parse_province(parts[3]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_coast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_coast` [INFO] [stdout] --> src/test.rs:127:37 [INFO] [stdout] | [INFO] [stdout] 127 | let (dest_prov, dest_coast) = parse_province(parts[5]); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_coast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_status` [INFO] [stdout] --> src/paradox.rs:93:64 [INFO] [stdout] | [INFO] [stdout] 93 | fn get_component(map: &Map, state: &MapState, orders: &Orders, order_status: &mut HashMap, start: &str) -> FrozenSet { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.86s [INFO] running `Command { std: "docker" "inspect" "316fa3a558f452ff888b5cc97bc55e830337e85559a053130f97bdc1426b15d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "316fa3a558f452ff888b5cc97bc55e830337e85559a053130f97bdc1426b15d3", kill_on_drop: false }` [INFO] [stdout] 316fa3a558f452ff888b5cc97bc55e830337e85559a053130f97bdc1426b15d3