[INFO] cloning repository https://github.com/lkingsford/mon2y_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lkingsford/mon2y_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flkingsford%2Fmon2y_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flkingsford%2Fmon2y_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ced55a226108560934556663b6b20304b1cc34a3 [INFO] checking lkingsford/mon2y_rs against master#2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a for pr-145113 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flkingsford%2Fmon2y_rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lkingsford/mon2y_rs [INFO] finished tweaking git repo https://github.com/lkingsford/mon2y_rs [INFO] tweaked toml for git repo https://github.com/lkingsford/mon2y_rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lkingsford/mon2y_rs on toolchain 2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 86 packages to latest compatible versions [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded test-env-log v0.2.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f979cc631dcce658ccd976f9003699e293840dea15f82442d3271a90a152e800 [INFO] running `Command { std: "docker" "start" "-a" "f979cc631dcce658ccd976f9003699e293840dea15f82442d3271a90a152e800", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f979cc631dcce658ccd976f9003699e293840dea15f82442d3271a90a152e800", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f979cc631dcce658ccd976f9003699e293840dea15f82442d3271a90a152e800", kill_on_drop: false }` [INFO] [stdout] f979cc631dcce658ccd976f9003699e293840dea15f82442d3271a90a152e800 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8607526928be6d6beb8a96af516500fb489e8fc3eab24103806a107d45761da [INFO] running `Command { std: "docker" "start" "-a" "e8607526928be6d6beb8a96af516500fb489e8fc3eab24103806a107d45761da", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking colorchoice v1.0.4 [INFO] [stderr] Checking anstyle-query v1.1.4 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking anstyle-parse v0.2.7 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Checking anstream v0.6.20 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking clap_builder v4.5.43 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking jiff v0.2.15 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking linked_hash_set v0.1.5 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling test-env-log v0.2.8 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Checking clap v4.5.43 [INFO] [stderr] Checking clap-verbosity-flag v3.0.3 [INFO] [stderr] Checking mon2y_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/games/ebr.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/ebr.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:571:31 [INFO] [stdout] | [INFO] [stdout] 571 | while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 571 - while (passed.contains(&next_actor)) { [INFO] [stdout] 571 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:605:35 [INFO] [stdout] | [INFO] [stdout] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 605 - while (passed.contains(&next_actor)) { [INFO] [stdout] 605 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/games/ebr.rs:1010:37 [INFO] [stdout] | [INFO] [stdout] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/games/ebr.rs:1104:17 [INFO] [stdout] | [INFO] [stdout] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] | ^ [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 | *public_co == Company::EBRC) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 ~ *public_co == Company::EBRC [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/games/ebr.rs:1203:20 [INFO] [stdout] | [INFO] [stdout] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stdout] 1203 + if company_details.cash >= cost as isize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_set` [INFO] [stdout] --> src/games/ebr.rs:1799:9 [INFO] [stdout] | [INFO] [stdout] 1799 | use std::collections::hash_set; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `best_pick` [INFO] [stdout] --> src/mon2y/mcts.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | use super::node::{best_pick, create_expanded_node, Node}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/games/cs.rs:357:45 [INFO] [stdout] | [INFO] [stdout] 357 | let actual_weight = actions.get((&action)).unwrap_or(&0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 357 - let actual_weight = actions.get((&action)).unwrap_or(&0); [INFO] [stdout] 357 + let actual_weight = actions.get(&action).unwrap_or(&0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/games/ebr.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/ebr.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:571:31 [INFO] [stdout] | [INFO] [stdout] 571 | while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 571 - while (passed.contains(&next_actor)) { [INFO] [stdout] 571 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:605:35 [INFO] [stdout] | [INFO] [stdout] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 605 - while (passed.contains(&next_actor)) { [INFO] [stdout] 605 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/games/ebr.rs:1010:37 [INFO] [stdout] | [INFO] [stdout] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/games/ebr.rs:1104:17 [INFO] [stdout] | [INFO] [stdout] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] | ^ [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 | *public_co == Company::EBRC) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 ~ *public_co == Company::EBRC [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/games/ebr.rs:1203:20 [INFO] [stdout] | [INFO] [stdout] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stdout] 1203 + if company_details.cash >= cost as isize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_set` [INFO] [stdout] --> src/games/ebr.rs:1799:9 [INFO] [stdout] | [INFO] [stdout] 1799 | use std::collections::hash_set; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `best_pick` [INFO] [stdout] --> src/mon2y/mcts.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | use super::node::{best_pick, create_expanded_node, Node}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1474 | / Stage::Auction { [INFO] [stdout] 1475 | | initial_auction, [INFO] [stdout] 1476 | | current_bid, [INFO] [stdout] 1477 | | .. [INFO] [stdout] 1478 | | } => { [INFO] [stdout] | |_____________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1503 | Stage::ChooseAction => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:1641:17 [INFO] [stdout] | [INFO] [stdout] 1641 | delivery_company, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [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: type `Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stdout] --> src/games/ebr.rs:535:26 [INFO] [stdout] | [INFO] [stdout] 535 | ChooseAuctionCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stdout] --> src/games/ebr.rs:536:20 [INFO] [stdout] | [INFO] [stdout] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stdout] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stdout] --> src/games/ebr.rs:537:24 [INFO] [stdout] | [INFO] [stdout] 537 | ChooseBuildCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stdout] --> src/games/ebr.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | ChooseBondCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stdout] --> src/games/ebr.rs:541:15 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stdout] --> src/games/ebr.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | struct Bond { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::Merge::0` [INFO] [stdout] --> src/games/ebr.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::Merge::1` [INFO] [stdout] --> src/games/ebr.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stdout] --> src/games/ebr.rs:543:32 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stdout] --> src/games/ebr.rs:543:41 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EndGameReason` is never used [INFO] [stdout] --> src/games/ebr.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum EndGameReason { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INITIAL_CASH` is never used [INFO] [stdout] --> src/games/ebr.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `feature_type` and `location_name` are never read [INFO] [stdout] --> src/games/ebr.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | struct Feature { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 109 | feature_type: FeatureType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | location_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPO_ORDER` is never used [INFO] [stdout] --> src/games/ebr.rs:144:7 [INFO] [stdout] | [INFO] [stdout] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stdout] --> src/games/ebr.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `revenue` is never read [INFO] [stdout] --> src/games/ebr.rs:998:5 [INFO] [stdout] | [INFO] [stdout] 988 | pub struct EBRState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 998 | revenue: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `connected_majors` is never used [INFO] [stdout] --> src/games/ebr.rs:1130:8 [INFO] [stdout] | [INFO] [stdout] 1006 | impl EBRState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_game` is never used [INFO] [stdout] --> src/games/ebr.rs:1803:8 [INFO] [stdout] | [INFO] [stdout] 1803 | fn init_game() -> EBRState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1474 | / Stage::Auction { [INFO] [stdout] 1475 | | initial_auction, [INFO] [stdout] 1476 | | current_bid, [INFO] [stdout] 1477 | | .. [INFO] [stdout] 1478 | | } => { [INFO] [stdout] | |_____________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1503 | Stage::ChooseAction => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:1641:17 [INFO] [stdout] | [INFO] [stdout] 1641 | delivery_company, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [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 import: `min` [INFO] [stdout] --> src/games/ebr.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/ebr.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:571:31 [INFO] [stdout] | [INFO] [stdout] 571 | while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 571 - while (passed.contains(&next_actor)) { [INFO] [stdout] 571 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:605:35 [INFO] [stdout] | [INFO] [stdout] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 605 - while (passed.contains(&next_actor)) { [INFO] [stdout] 605 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/games/ebr.rs:1010:37 [INFO] [stdout] | [INFO] [stdout] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/games/ebr.rs:1104:17 [INFO] [stdout] | [INFO] [stdout] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] | ^ [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 | *public_co == Company::EBRC) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 ~ *public_co == Company::EBRC [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/games/ebr.rs:1203:20 [INFO] [stdout] | [INFO] [stdout] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stdout] 1203 + if company_details.cash >= cost as isize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_set` [INFO] [stdout] --> src/games/ebr.rs:1799:9 [INFO] [stdout] | [INFO] [stdout] 1799 | use std::collections::hash_set; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `best_pick` [INFO] [stdout] --> src/mon2y/mcts.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | use super::node::{best_pick, create_expanded_node, Node}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/games/ebr.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/ebr.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:571:31 [INFO] [stdout] | [INFO] [stdout] 571 | while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 571 - while (passed.contains(&next_actor)) { [INFO] [stdout] 571 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:605:35 [INFO] [stdout] | [INFO] [stdout] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 605 - while (passed.contains(&next_actor)) { [INFO] [stdout] 605 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/games/ebr.rs:1010:37 [INFO] [stdout] | [INFO] [stdout] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/games/ebr.rs:1104:17 [INFO] [stdout] | [INFO] [stdout] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] | ^ [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 | *public_co == Company::EBRC) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 ~ *public_co == Company::EBRC [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/games/ebr.rs:1203:20 [INFO] [stdout] | [INFO] [stdout] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stdout] 1203 + if company_details.cash >= cost as isize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_set` [INFO] [stdout] --> src/games/ebr.rs:1799:9 [INFO] [stdout] | [INFO] [stdout] 1799 | use std::collections::hash_set; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `best_pick` [INFO] [stdout] --> src/mon2y/mcts.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | use super::node::{best_pick, create_expanded_node, Node}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/games/cs.rs:357:45 [INFO] [stdout] | [INFO] [stdout] 357 | let actual_weight = actions.get((&action)).unwrap_or(&0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 357 - let actual_weight = actions.get((&action)).unwrap_or(&0); [INFO] [stdout] 357 + let actual_weight = actions.get(&action).unwrap_or(&0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/games/ebr.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/ebr.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:571:31 [INFO] [stdout] | [INFO] [stdout] 571 | while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 571 - while (passed.contains(&next_actor)) { [INFO] [stdout] 571 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:605:35 [INFO] [stdout] | [INFO] [stdout] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 605 - while (passed.contains(&next_actor)) { [INFO] [stdout] 605 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/games/ebr.rs:1010:37 [INFO] [stdout] | [INFO] [stdout] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/games/ebr.rs:1104:17 [INFO] [stdout] | [INFO] [stdout] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] | ^ [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 | *public_co == Company::EBRC) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 ~ *public_co == Company::EBRC [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/games/ebr.rs:1203:20 [INFO] [stdout] | [INFO] [stdout] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stdout] 1203 + if company_details.cash >= cost as isize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_set` [INFO] [stdout] --> src/games/ebr.rs:1799:9 [INFO] [stdout] | [INFO] [stdout] 1799 | use std::collections::hash_set; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `best_pick` [INFO] [stdout] --> src/mon2y/mcts.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | use super::node::{best_pick, create_expanded_node, Node}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/games/cs.rs:357:45 [INFO] [stdout] | [INFO] [stdout] 357 | let actual_weight = actions.get((&action)).unwrap_or(&0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 357 - let actual_weight = actions.get((&action)).unwrap_or(&0); [INFO] [stdout] 357 + let actual_weight = actions.get(&action).unwrap_or(&0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/games/ebr.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/ebr.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:571:31 [INFO] [stdout] | [INFO] [stdout] 571 | while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 571 - while (passed.contains(&next_actor)) { [INFO] [stdout] 571 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:605:35 [INFO] [stdout] | [INFO] [stdout] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 605 - while (passed.contains(&next_actor)) { [INFO] [stdout] 605 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/games/ebr.rs:1010:37 [INFO] [stdout] | [INFO] [stdout] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/games/ebr.rs:1104:17 [INFO] [stdout] | [INFO] [stdout] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] | ^ [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 | *public_co == Company::EBRC) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 ~ *public_co == Company::EBRC [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/games/ebr.rs:1203:20 [INFO] [stdout] | [INFO] [stdout] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stdout] 1203 + if company_details.cash >= cost as isize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_set` [INFO] [stdout] --> src/games/ebr.rs:1799:9 [INFO] [stdout] | [INFO] [stdout] 1799 | use std::collections::hash_set; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `best_pick` [INFO] [stdout] --> src/mon2y/mcts.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | use super::node::{best_pick, create_expanded_node, Node}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stdout] --> src/games/ebr.rs:535:26 [INFO] [stdout] | [INFO] [stdout] 535 | ChooseAuctionCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stdout] --> src/games/ebr.rs:536:20 [INFO] [stdout] | [INFO] [stdout] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stdout] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stdout] --> src/games/ebr.rs:537:24 [INFO] [stdout] | [INFO] [stdout] 537 | ChooseBuildCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stdout] --> src/games/ebr.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | ChooseBondCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stdout] --> src/games/ebr.rs:541:15 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stdout] --> src/games/ebr.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | struct Bond { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::0` [INFO] [stdout] --> src/games/ebr.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::1` [INFO] [stdout] --> src/games/ebr.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stdout] --> src/games/ebr.rs:543:32 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stdout] --> src/games/ebr.rs:543:41 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/games/ebr.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EndGameReason` is never used [INFO] [stdout] --> src/games/ebr.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum EndGameReason { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INITIAL_CASH` is never used [INFO] [stdout] --> src/games/ebr.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `feature_type` and `location_name` are never read [INFO] [stdout] --> src/games/ebr.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | struct Feature { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 109 | feature_type: FeatureType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | location_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPO_ORDER` is never used [INFO] [stdout] --> src/games/ebr.rs:144:7 [INFO] [stdout] | [INFO] [stdout] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stdout] --> src/games/ebr.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `revenue` is never read [INFO] [stdout] --> src/games/ebr.rs:998:5 [INFO] [stdout] | [INFO] [stdout] 988 | pub struct EBRState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 998 | revenue: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `connected_majors` is never used [INFO] [stdout] --> src/games/ebr.rs:1130:8 [INFO] [stdout] | [INFO] [stdout] 1006 | impl EBRState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/ebr.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:571:31 [INFO] [stdout] | [INFO] [stdout] 571 | while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 571 - while (passed.contains(&next_actor)) { [INFO] [stdout] 571 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:605:35 [INFO] [stdout] | [INFO] [stdout] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 605 - while (passed.contains(&next_actor)) { [INFO] [stdout] 605 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/games/ebr.rs:1010:37 [INFO] [stdout] | [INFO] [stdout] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/games/ebr.rs:1104:17 [INFO] [stdout] | [INFO] [stdout] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] | ^ [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 | *public_co == Company::EBRC) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 ~ *public_co == Company::EBRC [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/games/ebr.rs:1203:20 [INFO] [stdout] | [INFO] [stdout] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stdout] 1203 + if company_details.cash >= cost as isize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_set` [INFO] [stdout] --> src/games/ebr.rs:1799:9 [INFO] [stdout] | [INFO] [stdout] 1799 | use std::collections::hash_set; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `best_pick` [INFO] [stdout] --> src/mon2y/mcts.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | use super::node::{best_pick, create_expanded_node, Node}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/games/cs.rs:357:45 [INFO] [stdout] | [INFO] [stdout] 357 | let actual_weight = actions.get((&action)).unwrap_or(&0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 357 - let actual_weight = actions.get((&action)).unwrap_or(&0); [INFO] [stdout] 357 + let actual_weight = actions.get(&action).unwrap_or(&0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/games/ebr.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/ebr.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:571:31 [INFO] [stdout] | [INFO] [stdout] 571 | while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 571 - while (passed.contains(&next_actor)) { [INFO] [stdout] 571 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:605:35 [INFO] [stdout] | [INFO] [stdout] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 605 - while (passed.contains(&next_actor)) { [INFO] [stdout] 605 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/games/ebr.rs:1010:37 [INFO] [stdout] | [INFO] [stdout] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/games/ebr.rs:1104:17 [INFO] [stdout] | [INFO] [stdout] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] | ^ [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 | *public_co == Company::EBRC) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 ~ *public_co == Company::EBRC [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/games/ebr.rs:1203:20 [INFO] [stdout] | [INFO] [stdout] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stdout] 1203 + if company_details.cash >= cost as isize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_set` [INFO] [stdout] --> src/games/ebr.rs:1799:9 [INFO] [stdout] | [INFO] [stdout] 1799 | use std::collections::hash_set; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `best_pick` [INFO] [stdout] --> src/mon2y/mcts.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | use super::node::{best_pick, create_expanded_node, Node}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1474 | / Stage::Auction { [INFO] [stdout] 1475 | | initial_auction, [INFO] [stdout] 1476 | | current_bid, [INFO] [stdout] 1477 | | .. [INFO] [stdout] 1478 | | } => { [INFO] [stdout] | |_____________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1503 | Stage::ChooseAction => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:1641:17 [INFO] [stdout] | [INFO] [stdout] 1641 | delivery_company, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [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: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stdout] --> src/games/ebr.rs:535:26 [INFO] [stdout] | [INFO] [stdout] 535 | ChooseAuctionCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stdout] --> src/games/ebr.rs:536:20 [INFO] [stdout] | [INFO] [stdout] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stdout] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stdout] --> src/games/ebr.rs:537:24 [INFO] [stdout] | [INFO] [stdout] 537 | ChooseBuildCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stdout] --> src/games/ebr.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | ChooseBondCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stdout] --> src/games/ebr.rs:541:15 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stdout] --> src/games/ebr.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | struct Bond { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::Merge::0` [INFO] [stdout] --> src/games/ebr.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::Merge::1` [INFO] [stdout] --> src/games/ebr.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stdout] --> src/games/ebr.rs:543:32 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stdout] --> src/games/ebr.rs:543:41 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_human_turn` and `visualise_state` are never used [INFO] [stdout] --> src/game.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Game { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn get_human_turn(&self, state: &Self::StateType) -> Self::ActionType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn visualise_state(&self, state: &Self::StateType); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EndGameReason` is never used [INFO] [stdout] --> src/games/ebr.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum EndGameReason { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INITIAL_CASH` is never used [INFO] [stdout] --> src/games/ebr.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `feature_type` and `location_name` are never read [INFO] [stdout] --> src/games/ebr.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | struct Feature { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 109 | feature_type: FeatureType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | location_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPO_ORDER` is never used [INFO] [stdout] --> src/games/ebr.rs:144:7 [INFO] [stdout] | [INFO] [stdout] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stdout] --> src/games/ebr.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `revenue` is never read [INFO] [stdout] --> src/games/ebr.rs:998:5 [INFO] [stdout] | [INFO] [stdout] 988 | pub struct EBRState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 998 | revenue: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `connected_majors` is never used [INFO] [stdout] --> src/games/ebr.rs:1130:8 [INFO] [stdout] | [INFO] [stdout] 1006 | impl EBRState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_game` is never used [INFO] [stdout] --> src/games/ebr.rs:1803:8 [INFO] [stdout] | [INFO] [stdout] 1803 | fn init_game() -> EBRState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_node_by_path` is never used [INFO] [stdout] --> src/mon2y/node.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl> Node { [INFO] [stdout] | --------------------------------------------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn get_node_by_path( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mon2y/tree.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 21 | / impl, ActionType: Action> [INFO] [stdout] 22 | | Tree [INFO] [stdout] 23 | | where [INFO] [stdout] 24 | | StateType: State, [INFO] [stdout] 25 | | ActionType: Action, [INFO] [stdout] | |______________________________________________- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn new(root: Node) -> Tree { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1474 | / Stage::Auction { [INFO] [stdout] 1475 | | initial_auction, [INFO] [stdout] 1476 | | current_bid, [INFO] [stdout] 1477 | | .. [INFO] [stdout] 1478 | | } => { [INFO] [stdout] | |_____________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1503 | Stage::ChooseAction => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:1641:17 [INFO] [stdout] | [INFO] [stdout] 1641 | delivery_company, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [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: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stdout] --> src/games/ebr.rs:535:26 [INFO] [stdout] | [INFO] [stdout] 535 | ChooseAuctionCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stdout] --> src/games/ebr.rs:536:20 [INFO] [stdout] | [INFO] [stdout] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stdout] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stdout] --> src/games/ebr.rs:537:24 [INFO] [stdout] | [INFO] [stdout] 537 | ChooseBuildCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stdout] --> src/games/ebr.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | ChooseBondCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stdout] --> src/games/ebr.rs:541:15 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stdout] --> src/games/ebr.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | struct Bond { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::0` [INFO] [stdout] --> src/games/ebr.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::1` [INFO] [stdout] --> src/games/ebr.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stdout] --> src/games/ebr.rs:543:32 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stdout] --> src/games/ebr.rs:543:41 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EndGameReason` is never used [INFO] [stdout] --> src/games/ebr.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum EndGameReason { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INITIAL_CASH` is never used [INFO] [stdout] --> src/games/ebr.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `feature_type` and `location_name` are never read [INFO] [stdout] --> src/games/ebr.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | struct Feature { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 109 | feature_type: FeatureType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | location_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPO_ORDER` is never used [INFO] [stdout] --> src/games/ebr.rs:144:7 [INFO] [stdout] | [INFO] [stdout] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stdout] --> src/games/ebr.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `revenue` is never read [INFO] [stdout] --> src/games/ebr.rs:998:5 [INFO] [stdout] | [INFO] [stdout] 988 | pub struct EBRState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 998 | revenue: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `connected_majors` is never used [INFO] [stdout] --> src/games/ebr.rs:1130:8 [INFO] [stdout] | [INFO] [stdout] 1006 | impl EBRState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nothing` and `NextTurnGameAction` are never constructed [INFO] [stdout] --> src/test/injectable_game.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum InjectableGameAction { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 39 | Nothing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 40 | NextTurnGameAction(Vec), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InjectableGameAction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1474 | / Stage::Auction { [INFO] [stdout] 1475 | | initial_auction, [INFO] [stdout] 1476 | | current_bid, [INFO] [stdout] 1477 | | .. [INFO] [stdout] 1478 | | } => { [INFO] [stdout] | |_____________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1503 | Stage::ChooseAction => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:1641:17 [INFO] [stdout] | [INFO] [stdout] 1641 | delivery_company, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [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: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1474 | / Stage::Auction { [INFO] [stdout] 1475 | | initial_auction, [INFO] [stdout] 1476 | | current_bid, [INFO] [stdout] 1477 | | .. [INFO] [stdout] 1478 | | } => { [INFO] [stdout] | |_____________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1503 | Stage::ChooseAction => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:1641:17 [INFO] [stdout] | [INFO] [stdout] 1641 | delivery_company, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stdout] --> src/games/ebr.rs:535:26 [INFO] [stdout] | [INFO] [stdout] 535 | ChooseAuctionCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stdout] --> src/games/ebr.rs:536:20 [INFO] [stdout] | [INFO] [stdout] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stdout] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stdout] --> src/games/ebr.rs:537:24 [INFO] [stdout] | [INFO] [stdout] 537 | ChooseBuildCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stdout] --> src/games/ebr.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | ChooseBondCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stdout] --> src/games/ebr.rs:541:15 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stdout] --> src/games/ebr.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | struct Bond { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1474 | / Stage::Auction { [INFO] [stdout] 1475 | | initial_auction, [INFO] [stdout] 1476 | | current_bid, [INFO] [stdout] 1477 | | .. [INFO] [stdout] 1478 | | } => { [INFO] [stdout] | |_____________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1503 | Stage::ChooseAction => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:1641:17 [INFO] [stdout] | [INFO] [stdout] 1641 | delivery_company, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::Merge::0` [INFO] [stdout] --> src/games/ebr.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::Merge::1` [INFO] [stdout] --> src/games/ebr.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stdout] --> src/games/ebr.rs:543:32 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stdout] --> src/games/ebr.rs:543:41 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_human_turn` and `visualise_state` are never used [INFO] [stdout] --> src/game.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Game { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn get_human_turn(&self, state: &Self::StateType) -> Self::ActionType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn visualise_state(&self, state: &Self::StateType); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EndGameReason` is never used [INFO] [stdout] --> src/games/ebr.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum EndGameReason { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INITIAL_CASH` is never used [INFO] [stdout] --> src/games/ebr.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `feature_type` and `location_name` are never read [INFO] [stdout] --> src/games/ebr.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | struct Feature { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 109 | feature_type: FeatureType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | location_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPO_ORDER` is never used [INFO] [stdout] --> src/games/ebr.rs:144:7 [INFO] [stdout] | [INFO] [stdout] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stdout] --> src/games/ebr.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `revenue` is never read [INFO] [stdout] --> src/games/ebr.rs:998:5 [INFO] [stdout] | [INFO] [stdout] 988 | pub struct EBRState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 998 | revenue: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `connected_majors` is never used [INFO] [stdout] --> src/games/ebr.rs:1130:8 [INFO] [stdout] | [INFO] [stdout] 1006 | impl EBRState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_game` is never used [INFO] [stdout] --> src/games/ebr.rs:1803:8 [INFO] [stdout] | [INFO] [stdout] 1803 | fn init_game() -> EBRState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_node_by_path` is never used [INFO] [stdout] --> src/mon2y/node.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl> Node { [INFO] [stdout] | --------------------------------------------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn get_node_by_path( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mon2y/tree.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 21 | / impl, ActionType: Action> [INFO] [stdout] 22 | | Tree [INFO] [stdout] 23 | | where [INFO] [stdout] 24 | | StateType: State, [INFO] [stdout] 25 | | ActionType: Action, [INFO] [stdout] | |______________________________________________- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn new(root: Node) -> Tree { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [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: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [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: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stdout] --> src/games/ebr.rs:535:26 [INFO] [stdout] | [INFO] [stdout] 535 | ChooseAuctionCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stdout] --> src/games/ebr.rs:536:20 [INFO] [stdout] | [INFO] [stdout] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stdout] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stdout] --> src/games/ebr.rs:537:24 [INFO] [stdout] | [INFO] [stdout] 537 | ChooseBuildCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stdout] --> src/games/ebr.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | ChooseBondCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stdout] --> src/games/ebr.rs:541:15 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stdout] --> src/games/ebr.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | struct Bond { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::0` [INFO] [stdout] --> src/games/ebr.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::1` [INFO] [stdout] --> src/games/ebr.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stdout] --> src/games/ebr.rs:543:32 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stdout] --> src/games/ebr.rs:543:41 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_human_turn` and `visualise_state` are never used [INFO] [stdout] --> src/game.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Game { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn get_human_turn(&self, state: &Self::StateType) -> Self::ActionType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn visualise_state(&self, state: &Self::StateType); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EndGameReason` is never used [INFO] [stdout] --> src/games/ebr.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum EndGameReason { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INITIAL_CASH` is never used [INFO] [stdout] --> src/games/ebr.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `feature_type` and `location_name` are never read [INFO] [stdout] --> src/games/ebr.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | struct Feature { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 109 | feature_type: FeatureType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | location_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPO_ORDER` is never used [INFO] [stdout] --> src/games/ebr.rs:144:7 [INFO] [stdout] | [INFO] [stdout] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stdout] --> src/games/ebr.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `revenue` is never read [INFO] [stdout] --> src/games/ebr.rs:998:5 [INFO] [stdout] | [INFO] [stdout] 988 | pub struct EBRState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 998 | revenue: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `connected_majors` is never used [INFO] [stdout] --> src/games/ebr.rs:1130:8 [INFO] [stdout] | [INFO] [stdout] 1006 | impl EBRState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nothing` and `NextTurnGameAction` are never constructed [INFO] [stdout] --> src/test/injectable_game.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum InjectableGameAction { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 39 | Nothing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 40 | NextTurnGameAction(Vec), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InjectableGameAction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1474 | / Stage::Auction { [INFO] [stdout] 1475 | | initial_auction, [INFO] [stdout] 1476 | | current_bid, [INFO] [stdout] 1477 | | .. [INFO] [stdout] 1478 | | } => { [INFO] [stdout] | |_____________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1503 | Stage::ChooseAction => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:1641:17 [INFO] [stdout] | [INFO] [stdout] 1641 | delivery_company, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [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: type `Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stdout] --> src/games/ebr.rs:535:26 [INFO] [stdout] | [INFO] [stdout] 535 | ChooseAuctionCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stdout] --> src/games/ebr.rs:536:20 [INFO] [stdout] | [INFO] [stdout] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stdout] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stdout] --> src/games/ebr.rs:537:24 [INFO] [stdout] | [INFO] [stdout] 537 | ChooseBuildCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stdout] --> src/games/ebr.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | ChooseBondCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stdout] --> src/games/ebr.rs:541:15 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stdout] --> src/games/ebr.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | struct Bond { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::Merge::0` [INFO] [stdout] --> src/games/ebr.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::Merge::1` [INFO] [stdout] --> src/games/ebr.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stdout] --> src/games/ebr.rs:543:32 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stdout] --> src/games/ebr.rs:543:41 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EndGameReason` is never used [INFO] [stdout] --> src/games/ebr.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum EndGameReason { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INITIAL_CASH` is never used [INFO] [stdout] --> src/games/ebr.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `feature_type` and `location_name` are never read [INFO] [stdout] --> src/games/ebr.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | struct Feature { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 109 | feature_type: FeatureType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | location_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPO_ORDER` is never used [INFO] [stdout] --> src/games/ebr.rs:144:7 [INFO] [stdout] | [INFO] [stdout] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stdout] --> src/games/ebr.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `revenue` is never read [INFO] [stdout] --> src/games/ebr.rs:998:5 [INFO] [stdout] | [INFO] [stdout] 988 | pub struct EBRState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 998 | revenue: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `connected_majors` is never used [INFO] [stdout] --> src/games/ebr.rs:1130:8 [INFO] [stdout] | [INFO] [stdout] 1006 | impl EBRState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_game` is never used [INFO] [stdout] --> src/games/ebr.rs:1803:8 [INFO] [stdout] | [INFO] [stdout] 1803 | fn init_game() -> EBRState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_node_by_path` is never used [INFO] [stdout] --> src/mon2y/node.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl> Node { [INFO] [stdout] | --------------------------------------------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn get_node_by_path( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mon2y/tree.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 21 | / impl, ActionType: Action> [INFO] [stdout] 22 | | Tree [INFO] [stdout] 23 | | where [INFO] [stdout] 24 | | StateType: State, [INFO] [stdout] 25 | | ActionType: Action, [INFO] [stdout] | |______________________________________________- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn new(root: Node) -> Tree { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stdout] --> src/games/ebr.rs:535:26 [INFO] [stdout] | [INFO] [stdout] 535 | ChooseAuctionCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stdout] --> src/games/ebr.rs:536:20 [INFO] [stdout] | [INFO] [stdout] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stdout] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stdout] --> src/games/ebr.rs:537:24 [INFO] [stdout] | [INFO] [stdout] 537 | ChooseBuildCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stdout] --> src/games/ebr.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | ChooseBondCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stdout] --> src/games/ebr.rs:541:15 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stdout] --> src/games/ebr.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | struct Bond { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::0` [INFO] [stdout] --> src/games/ebr.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::1` [INFO] [stdout] --> src/games/ebr.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stdout] --> src/games/ebr.rs:543:32 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stdout] --> src/games/ebr.rs:543:41 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_human_turn` and `visualise_state` are never used [INFO] [stdout] --> src/game.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Game { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn get_human_turn(&self, state: &Self::StateType) -> Self::ActionType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn visualise_state(&self, state: &Self::StateType); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EndGameReason` is never used [INFO] [stdout] --> src/games/ebr.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum EndGameReason { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INITIAL_CASH` is never used [INFO] [stdout] --> src/games/ebr.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `feature_type` and `location_name` are never read [INFO] [stdout] --> src/games/ebr.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | struct Feature { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 109 | feature_type: FeatureType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | location_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPO_ORDER` is never used [INFO] [stdout] --> src/games/ebr.rs:144:7 [INFO] [stdout] | [INFO] [stdout] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stdout] --> src/games/ebr.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `revenue` is never read [INFO] [stdout] --> src/games/ebr.rs:998:5 [INFO] [stdout] | [INFO] [stdout] 988 | pub struct EBRState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 998 | revenue: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `connected_majors` is never used [INFO] [stdout] --> src/games/ebr.rs:1130:8 [INFO] [stdout] | [INFO] [stdout] 1006 | impl EBRState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nothing` and `NextTurnGameAction` are never constructed [INFO] [stdout] --> src/test/injectable_game.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum InjectableGameAction { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 39 | Nothing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 40 | NextTurnGameAction(Vec), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InjectableGameAction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 38.37s [INFO] running `Command { std: "docker" "inspect" "e8607526928be6d6beb8a96af516500fb489e8fc3eab24103806a107d45761da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8607526928be6d6beb8a96af516500fb489e8fc3eab24103806a107d45761da", kill_on_drop: false }` [INFO] [stdout] e8607526928be6d6beb8a96af516500fb489e8fc3eab24103806a107d45761da