[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] testing lkingsford/mon2y_rs against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flkingsford%2Fmon2y_rs" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lkingsford/mon2y_rs on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 81 packages to latest compatible versions [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 422b74d4436d5bba7242d7c9dfe2428d4281ea9a9693b681eb5ab0912ee18776 [INFO] running `Command { std: "docker" "start" "-a" "422b74d4436d5bba7242d7c9dfe2428d4281ea9a9693b681eb5ab0912ee18776", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "422b74d4436d5bba7242d7c9dfe2428d4281ea9a9693b681eb5ab0912ee18776", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "422b74d4436d5bba7242d7c9dfe2428d4281ea9a9693b681eb5ab0912ee18776", kill_on_drop: false }` [INFO] [stdout] 422b74d4436d5bba7242d7c9dfe2428d4281ea9a9693b681eb5ab0912ee18776 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ad236d4392924ab0fdea6d6b711b31b4d6ebca9e776db6688d82e7ea156c4a14 [INFO] running `Command { std: "docker" "start" "-a" "ad236d4392924ab0fdea6d6b711b31b4d6ebca9e776db6688d82e7ea156c4a14", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling clap_builder v4.5.32 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling jiff v0.2.4 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling linked_hash_set v0.1.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling env_logger v0.11.7 [INFO] [stderr] Compiling clap v4.5.32 [INFO] [stderr] Compiling clap-verbosity-flag v3.0.2 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling 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: 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: 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: 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 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: 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: 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: 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: 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: 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: 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: 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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.71s [INFO] running `Command { std: "docker" "inspect" "ad236d4392924ab0fdea6d6b711b31b4d6ebca9e776db6688d82e7ea156c4a14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad236d4392924ab0fdea6d6b711b31b4d6ebca9e776db6688d82e7ea156c4a14", kill_on_drop: false }` [INFO] [stdout] ad236d4392924ab0fdea6d6b711b31b4d6ebca9e776db6688d82e7ea156c4a14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e057c6cb16f6cd44a61d87fd08a3dfe8171fd751b120096e9b89b83f28731ca2 [INFO] running `Command { std: "docker" "start" "-a" "e057c6cb16f6cd44a61d87fd08a3dfe8171fd751b120096e9b89b83f28731ca2", kill_on_drop: false }` [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 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] [stderr] Compiling syn v1.0.109 [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: 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 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(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: 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 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(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: 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 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(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] [stderr] Compiling test-env-log v0.2.8 [INFO] [stderr] Compiling mon2y_rs v0.1.0 (/opt/rustwide/workdir) [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: 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: 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: 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: 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: 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: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: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: 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: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 `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: 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: 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: 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: 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.90s [INFO] running `Command { std: "docker" "inspect" "e057c6cb16f6cd44a61d87fd08a3dfe8171fd751b120096e9b89b83f28731ca2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e057c6cb16f6cd44a61d87fd08a3dfe8171fd751b120096e9b89b83f28731ca2", kill_on_drop: false }` [INFO] [stdout] e057c6cb16f6cd44a61d87fd08a3dfe8171fd751b120096e9b89b83f28731ca2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] aa0423a11e728b2054a7863563b19eaa2927d20c333dc80e350a8828e19baaa3 [INFO] running `Command { std: "docker" "start" "-a" "aa0423a11e728b2054a7863563b19eaa2927d20c333dc80e350a8828e19baaa3", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `min` [INFO] [stderr] --> src/games/ebr.rs:2:21 [INFO] [stderr] | [INFO] [stderr] 2 | use std::cmp::{max, min}; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `BTreeMap` [INFO] [stderr] --> src/games/ebr.rs:3:24 [INFO] [stderr] | [INFO] [stderr] 3 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `while` condition [INFO] [stderr] --> src/games/ebr.rs:571:31 [INFO] [stderr] | [INFO] [stderr] 571 | while (passed.contains(&next_actor)) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 571 - while (passed.contains(&next_actor)) { [INFO] [stderr] 571 + while passed.contains(&next_actor) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `while` condition [INFO] [stderr] --> src/games/ebr.rs:605:35 [INFO] [stderr] | [INFO] [stderr] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 605 - while (passed.contains(&next_actor)) { [INFO] [stderr] 605 + while passed.contains(&next_actor) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/games/ebr.rs:1010:37 [INFO] [stderr] | [INFO] [stderr] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stderr] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> src/games/ebr.rs:1104:17 [INFO] [stderr] | [INFO] [stderr] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stderr] | ^ [INFO] [stderr] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stderr] 1106 | *public_co == Company::EBRC) [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stderr] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stderr] 1106 ~ *public_co == Company::EBRC [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/games/ebr.rs:1203:20 [INFO] [stderr] | [INFO] [stderr] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stderr] 1203 + if company_details.cash >= cost as isize { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::hash_set` [INFO] [stderr] --> src/games/ebr.rs:1799:9 [INFO] [stderr] | [INFO] [stderr] 1799 | use std::collections::hash_set; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `best_pick` [INFO] [stderr] --> src/mon2y/mcts.rs:10:19 [INFO] [stderr] | [INFO] [stderr] 10 | use super::node::{best_pick, create_expanded_node, Node}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/games/ebr.rs:385:27 [INFO] [stderr] | [INFO] [stderr] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/games/ebr.rs:706:21 [INFO] [stderr] | [INFO] [stderr] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/games/ebr.rs:706:21 [INFO] [stderr] | [INFO] [stderr] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stderr] | ----------------------------- matches some of the same values [INFO] [stderr] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stderr] | ---------------------------- matches some of the same values [INFO] [stderr] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stderr] | --------------------------- matches some of the same values [INFO] [stderr] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stderr] | -------------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stderr] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `delivery_company` [INFO] [stderr] --> src/games/ebr.rs:882:60 [INFO] [stderr] | [INFO] [stderr] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/games/ebr.rs:1654:13 [INFO] [stderr] | [INFO] [stderr] 1654 | _ => { [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/games/ebr.rs:1654:13 [INFO] [stderr] | [INFO] [stderr] 1474 | / Stage::Auction { [INFO] [stderr] 1475 | | initial_auction, [INFO] [stderr] 1476 | | current_bid, [INFO] [stderr] 1477 | | .. [INFO] [stderr] 1478 | | } => { [INFO] [stderr] | |_____________- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 1503 | Stage::ChooseAction => { [INFO] [stderr] | ------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stderr] | --------------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stderr] | ---------------------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 1654 | _ => { [INFO] [stderr] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stderr] [INFO] [stderr] warning: unused variable: `delivery_company` [INFO] [stderr] --> src/games/ebr.rs:1641:17 [INFO] [stderr] | [INFO] [stderr] 1641 | delivery_company, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/games/ebr.rs:1804:13 [INFO] [stderr] | [INFO] [stderr] 1804 | let mut game = EBR { player_count: 3 }; [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stderr] --> src/games/ebr.rs:535:26 [INFO] [stderr] | [INFO] [stderr] 535 | ChooseAuctionCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stderr] --> src/games/ebr.rs:536:20 [INFO] [stderr] | [INFO] [stderr] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stderr] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stderr] --> src/games/ebr.rs:537:24 [INFO] [stderr] | [INFO] [stderr] 537 | ChooseBuildCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stderr] --> src/games/ebr.rs:540:23 [INFO] [stderr] | [INFO] [stderr] 540 | ChooseBondCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stderr] --> src/games/ebr.rs:541:15 [INFO] [stderr] | [INFO] [stderr] 541 | IssueBond(Company, Bond), [INFO] [stderr] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stderr] --> src/games/ebr.rs:541:24 [INFO] [stderr] | [INFO] [stderr] 541 | IssueBond(Company, Bond), [INFO] [stderr] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:57:1 [INFO] [stderr] | [INFO] [stderr] 57 | struct Bond { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::Merge::0` [INFO] [stderr] --> src/games/ebr.rs:542:11 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::Merge::1` [INFO] [stderr] --> src/games/ebr.rs:542:20 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stderr] --> src/games/ebr.rs:543:32 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stderr] --> src/games/ebr.rs:543:41 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `EndGameReason` is never used [INFO] [stderr] --> src/games/ebr.rs:18:6 [INFO] [stderr] | [INFO] [stderr] 18 | enum EndGameReason { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: static `INITIAL_CASH` is never used [INFO] [stderr] --> src/games/ebr.rs:98:8 [INFO] [stderr] | [INFO] [stderr] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `feature_type` and `location_name` are never read [INFO] [stderr] --> src/games/ebr.rs:109:5 [INFO] [stderr] | [INFO] [stderr] 108 | struct Feature { [INFO] [stderr] | ------- fields in this struct [INFO] [stderr] 109 | feature_type: FeatureType, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 110 | location_name: Option, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: constant `IPO_ORDER` is never used [INFO] [stderr] --> src/games/ebr.rs:144:7 [INFO] [stderr] | [INFO] [stderr] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stderr] --> src/games/ebr.rs:265:7 [INFO] [stderr] | [INFO] [stderr] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `revenue` is never read [INFO] [stderr] --> src/games/ebr.rs:998:5 [INFO] [stderr] | [INFO] [stderr] 988 | pub struct EBRState { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 998 | revenue: HashMap, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `connected_majors` is never used [INFO] [stderr] --> src/games/ebr.rs:1130:8 [INFO] [stderr] | [INFO] [stderr] 1006 | impl EBRState { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `init_game` is never used [INFO] [stderr] --> src/games/ebr.rs:1803:8 [INFO] [stderr] | [INFO] [stderr] 1803 | fn init_game() -> EBRState { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mon2y_rs` (lib) generated 33 warnings (run `cargo fix --lib -p mon2y_rs` to apply 10 suggestions) [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stderr] --> src/games/ebr.rs:535:26 [INFO] [stderr] | [INFO] [stderr] 535 | ChooseAuctionCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stderr] --> src/games/ebr.rs:536:20 [INFO] [stderr] | [INFO] [stderr] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stderr] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stderr] --> src/games/ebr.rs:537:24 [INFO] [stderr] | [INFO] [stderr] 537 | ChooseBuildCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stderr] --> src/games/ebr.rs:540:23 [INFO] [stderr] | [INFO] [stderr] 540 | ChooseBondCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stderr] --> src/games/ebr.rs:541:15 [INFO] [stderr] | [INFO] [stderr] 541 | IssueBond(Company, Bond), [INFO] [stderr] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stderr] --> src/games/ebr.rs:541:24 [INFO] [stderr] | [INFO] [stderr] 541 | IssueBond(Company, Bond), [INFO] [stderr] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:57:1 [INFO] [stderr] | [INFO] [stderr] 57 | struct Bond { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::Merge::0` [INFO] [stderr] --> src/games/ebr.rs:542:11 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::Merge::1` [INFO] [stderr] --> src/games/ebr.rs:542:20 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stderr] --> src/games/ebr.rs:543:32 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stderr] --> src/games/ebr.rs:543:41 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_human_turn` and `visualise_state` are never used [INFO] [stderr] --> src/game.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub trait Game { [INFO] [stderr] | ---- methods in this trait [INFO] [stderr] ... [INFO] [stderr] 6 | fn get_human_turn(&self, state: &Self::StateType) -> Self::ActionType { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | fn visualise_state(&self, state: &Self::StateType); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: enum `EndGameReason` is never used [INFO] [stderr] --> src/games/ebr.rs:18:6 [INFO] [stderr] | [INFO] [stderr] 18 | enum EndGameReason { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `get_node_by_path` is never used [INFO] [stderr] --> src/mon2y/node.rs:221:12 [INFO] [stderr] | [INFO] [stderr] 41 | impl> Node { [INFO] [stderr] | --------------------------------------------------------------------------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 221 | pub fn get_node_by_path( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/mon2y/tree.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 21 | / impl, ActionType: Action> [INFO] [stderr] 22 | | Tree [INFO] [stderr] 23 | | where [INFO] [stderr] 24 | | StateType: State, [INFO] [stderr] 25 | | ActionType: Action, [INFO] [stderr] | |______________________________________________- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn new(root: Node) -> Tree { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `mon2y_rs` (bin "bench") generated 36 warnings (22 duplicates) [INFO] [stderr] warning: `mon2y_rs` (bin "mon2y_rs") generated 35 warnings (35 duplicates) [INFO] [stderr] warning: `mon2y_rs` (bin "arena") generated 36 warnings (36 duplicates) [INFO] [stderr] warning: unnecessary parentheses around method argument [INFO] [stderr] --> src/games/cs.rs:357:45 [INFO] [stderr] | [INFO] [stderr] 357 | let actual_weight = actions.get((&action)).unwrap_or(&0); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 357 - let actual_weight = actions.get((&action)).unwrap_or(&0); [INFO] [stderr] 357 + let actual_weight = actions.get(&action).unwrap_or(&0); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `while` condition [INFO] [stderr] --> src/games/ebr.rs:571:31 [INFO] [stderr] | [INFO] [stderr] 571 | while (passed.contains(&next_actor)) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 571 - while (passed.contains(&next_actor)) { [INFO] [stderr] 571 + while passed.contains(&next_actor) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stderr] --> src/games/ebr.rs:535:26 [INFO] [stderr] | [INFO] [stderr] 535 | ChooseAuctionCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stderr] --> src/games/ebr.rs:536:20 [INFO] [stderr] | [INFO] [stderr] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stderr] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stderr] --> src/games/ebr.rs:537:24 [INFO] [stderr] | [INFO] [stderr] 537 | ChooseBuildCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stderr] --> src/games/ebr.rs:540:23 [INFO] [stderr] | [INFO] [stderr] 540 | ChooseBondCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stderr] --> src/games/ebr.rs:541:15 [INFO] [stderr] | [INFO] [stderr] 541 | IssueBond(Company, Bond), [INFO] [stderr] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::0` [INFO] [stderr] --> src/games/ebr.rs:542:11 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::1` [INFO] [stderr] --> src/games/ebr.rs:542:20 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stderr] --> src/games/ebr.rs:543:32 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stderr] --> src/games/ebr.rs:543:41 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Nothing` and `NextTurnGameAction` are never constructed [INFO] [stderr] --> src/test/injectable_game.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 34 | pub enum InjectableGameAction { [INFO] [stderr] | -------------------- variants in this enum [INFO] [stderr] ... [INFO] [stderr] 39 | Nothing, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 40 | NextTurnGameAction(Vec), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `InjectableGameAction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stderr] --> src/games/ebr.rs:535:26 [INFO] [stderr] | [INFO] [stderr] 535 | ChooseAuctionCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stderr] --> src/games/ebr.rs:536:20 [INFO] [stderr] | [INFO] [stderr] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stderr] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stderr] --> src/games/ebr.rs:537:24 [INFO] [stderr] | [INFO] [stderr] 537 | ChooseBuildCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stderr] --> src/games/ebr.rs:540:23 [INFO] [stderr] | [INFO] [stderr] 540 | ChooseBondCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stderr] --> src/games/ebr.rs:541:15 [INFO] [stderr] | [INFO] [stderr] 541 | IssueBond(Company, Bond), [INFO] [stderr] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::0` [INFO] [stderr] --> src/games/ebr.rs:542:11 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::1` [INFO] [stderr] --> src/games/ebr.rs:542:20 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stderr] --> src/games/ebr.rs:543:32 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stderr] --> src/games/ebr.rs:543:41 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mon2y_rs` (bin "mon2y_rs" test) generated 34 warnings (22 duplicates) (run `cargo fix --bin "mon2y_rs" --tests` to apply 2 suggestions) [INFO] [stderr] warning: `mon2y_rs` (bin "bench" test) generated 35 warnings (35 duplicates) [INFO] [stderr] warning: `mon2y_rs` (bin "arena" test) generated 35 warnings (35 duplicates) [INFO] [stderr] warning: `mon2y_rs` (lib test) generated 33 warnings (24 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mon2y_rs-f0107e35f2e855ea) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test games::ebr::test::test_connected_to ... ok [INFO] [stdout] test games::ebr::test::test_div_ceil ... ok [INFO] [stdout] test games::cs::tests::test_dice_actions_weights ... ok [INFO] [stdout] test games::ebr::test::test_reachable_narrow_track ... ok [INFO] [stdout] test games::ebr::test::test_get_neighbors ... ok [INFO] [stdout] test mon2y::node::tests::test_best_pick_weighted_visits ... ok [INFO] [stdout] test mon2y::node::tests::test_create_expanded_node ... ok [INFO] [stdout] test mon2y::tree::tests::test_propagate_one_player ... ok [INFO] [stdout] test mon2y::tree::tests::test_play_out ... ok [INFO] [stdout] test mon2y::tree::tests::test_selection_basic ... ok [INFO] [stdout] test mon2y::tree::tests::test_selection_multiple_expanded ... ok [INFO] [stdout] test mon2y::tree::tests::test_expansion_basic ... ok [INFO] [stdout] test mon2y::tree::tests::test_propagate_two_players ... ok [INFO] [stdout] test mon2y::tree::tests::test_weighted_game_action_play_out ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Running unittests src/arena.rs (/opt/rustwide/target/debug/deps/arena-2b47e59a19e8f0fc) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test games::ebr::test::test_connected_to ... ok [INFO] [stdout] test games::ebr::test::test_div_ceil ... ok [INFO] [stdout] test games::ebr::test::test_get_neighbors ... ok [INFO] [stdout] test games::cs::tests::test_dice_actions_weights ... ok [INFO] [stdout] test games::ebr::test::test_reachable_narrow_track ... ok [INFO] [stdout] test mon2y::node::tests::test_create_expanded_node ... ok [INFO] [stdout] test mon2y::tree::tests::test_expansion_basic ... ok [INFO] [stdout] test mon2y::tree::tests::test_propagate_one_player ... ok [INFO] [stdout] test mon2y::tree::tests::test_propagate_two_players ... ok [INFO] [stdout] test mon2y::node::tests::test_best_pick_weighted_visits ... ok [INFO] [stdout] test mon2y::tree::tests::test_play_out ... ok [INFO] [stdout] test mon2y::tree::tests::test_selection_basic ... ok [INFO] [stdout] test mon2y::tree::tests::test_selection_multiple_expanded ... ok [INFO] [stdout] test mon2y::tree::tests::test_weighted_game_action_play_out ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running unittests src/bench.rs (/opt/rustwide/target/debug/deps/bench-d41fd323d7317f97) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test games::ebr::test::test_connected_to ... ok [INFO] [stdout] test games::cs::tests::test_dice_actions_weights ... ok [INFO] [stdout] test games::ebr::test::test_div_ceil ... ok [INFO] [stdout] test games::ebr::test::test_reachable_narrow_track ... ok [INFO] [stdout] test mon2y::node::tests::test_best_pick_weighted_visits ... ok [INFO] [stdout] test mon2y::tree::tests::test_expansion_basic ... ok [INFO] [stdout] test mon2y::tree::tests::test_play_out ... ok [INFO] [stdout] test games::ebr::test::test_get_neighbors ... ok [INFO] [stdout] test mon2y::node::tests::test_create_expanded_node ... ok [INFO] [stdout] test mon2y::tree::tests::test_propagate_one_player ... ok [INFO] [stdout] test mon2y::tree::tests::test_propagate_two_players ... ok [INFO] [stdout] test mon2y::tree::tests::test_selection_basic ... ok [INFO] [stdout] test mon2y::tree::tests::test_selection_multiple_expanded ... ok [INFO] [stdout] test mon2y::tree::tests::test_weighted_game_action_play_out ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/mon2y_rs-8c4aa5a85ba455af) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test games::ebr::test::test_div_ceil ... ok [INFO] [stdout] test games::ebr::test::test_connected_to ... ok [INFO] [stdout] test games::ebr::test::test_get_neighbors ... ok [INFO] [stdout] test games::ebr::test::test_reachable_narrow_track ... ok [INFO] [stdout] test games::cs::tests::test_dice_actions_weights ... ok [INFO] [stdout] test mon2y::node::tests::test_create_expanded_node ... ok [INFO] [stdout] test mon2y::node::tests::test_best_pick_weighted_visits ... ok [INFO] [stdout] test mon2y::tree::tests::test_expansion_basic ... ok [INFO] [stdout] test mon2y::tree::tests::test_propagate_one_player ... ok [INFO] [stdout] test mon2y::tree::tests::test_play_out ... ok [INFO] [stdout] test mon2y::tree::tests::test_propagate_two_players ... ok [INFO] [stdout] test mon2y::tree::tests::test_selection_multiple_expanded ... ok [INFO] [stdout] test mon2y::tree::tests::test_selection_basic ... ok [INFO] [stdout] test mon2y::tree::tests::test_weighted_game_action_play_out ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running tests/c4_sensible_turns.rs (/opt/rustwide/target/debug/deps/c4_sensible_turns-c001c529b681a237) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test test_c4_one_action_gets_win ... ok [INFO] [stdout] test test_c4_one_action_blocks_win ... ok [INFO] [stdout] test test_c4_play_out_repeated ... ok [INFO] [stdout] test test_c4_plays_through_multiple_threads_without_crash ... ok [INFO] [stdout] test test_c4_plays_through_without_crash ... ok [INFO] [stdout] test test_c4_full_exploration ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 9.40s [INFO] [stdout] [INFO] [stderr] Doc-tests mon2y_rs [INFO] [stderr] warning: unnecessary parentheses around `while` condition [INFO] [stderr] --> src/games/ebr.rs:571:31 [INFO] [stderr] | [INFO] [stderr] 571 | while (passed.contains(&next_actor)) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 571 - while (passed.contains(&next_actor)) { [INFO] [stderr] 571 + while passed.contains(&next_actor) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `while` condition [INFO] [stderr] --> src/games/ebr.rs:605:35 [INFO] [stderr] | [INFO] [stderr] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 605 - while (passed.contains(&next_actor)) { [INFO] [stderr] 605 + while passed.contains(&next_actor) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/games/ebr.rs:1010:37 [INFO] [stderr] | [INFO] [stderr] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stderr] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> src/games/ebr.rs:1104:17 [INFO] [stderr] | [INFO] [stderr] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stderr] | ^ [INFO] [stderr] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stderr] 1106 | *public_co == Company::EBRC) [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stderr] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stderr] 1106 ~ *public_co == Company::EBRC [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/games/ebr.rs:1203:20 [INFO] [stderr] | [INFO] [stderr] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stderr] 1203 + if company_details.cash >= cost as isize { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 5 warnings emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "aa0423a11e728b2054a7863563b19eaa2927d20c333dc80e350a8828e19baaa3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa0423a11e728b2054a7863563b19eaa2927d20c333dc80e350a8828e19baaa3", kill_on_drop: false }` [INFO] [stdout] aa0423a11e728b2054a7863563b19eaa2927d20c333dc80e350a8828e19baaa3