[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 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flkingsford%2Fmon2y_rs" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-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-5-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] Blocking waiting for file lock on package cache [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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 63a5a921210f9ec724cbce968a3c0861c27ef2af4f42706fb1af6f3c18ff3ec5 [INFO] running `Command { std: "docker" "start" "-a" "63a5a921210f9ec724cbce968a3c0861c27ef2af4f42706fb1af6f3c18ff3ec5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "63a5a921210f9ec724cbce968a3c0861c27ef2af4f42706fb1af6f3c18ff3ec5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63a5a921210f9ec724cbce968a3c0861c27ef2af4f42706fb1af6f3c18ff3ec5", kill_on_drop: false }` [INFO] [stdout] 63a5a921210f9ec724cbce968a3c0861c27ef2af4f42706fb1af6f3c18ff3ec5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] b04a71367301b75c563b8761d357e227d83ca2b666781df759948cecb224e0a2 [INFO] running `Command { std: "docker" "start" "-a" "b04a71367301b75c563b8761d357e227d83ca2b666781df759948cecb224e0a2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling zerocopy v0.8.23 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling jiff v0.2.4 [INFO] [stderr] Compiling linked_hash_set v0.1.5 [INFO] [stderr] Compiling clap_builder v4.5.32 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [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 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: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: 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: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1474 | / Stage::Auction { [INFO] [stdout] 1475 | | initial_auction, [INFO] [stdout] 1476 | | current_bid, [INFO] [stdout] 1477 | | .. [INFO] [stdout] 1478 | | } => { [INFO] [stdout] | |_____________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1503 | Stage::ChooseAction => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:1641:17 [INFO] [stdout] | [INFO] [stdout] 1641 | delivery_company, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stdout] --> src/games/ebr.rs:535:26 [INFO] [stdout] | [INFO] [stdout] 535 | ChooseAuctionCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stdout] --> src/games/ebr.rs:536:20 [INFO] [stdout] | [INFO] [stdout] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stdout] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stdout] --> src/games/ebr.rs:537:24 [INFO] [stdout] | [INFO] [stdout] 537 | ChooseBuildCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stdout] --> src/games/ebr.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | ChooseBondCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stdout] --> src/games/ebr.rs:541:15 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stdout] --> src/games/ebr.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | struct Bond { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::Merge::0` [INFO] [stdout] --> src/games/ebr.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::Merge::1` [INFO] [stdout] --> src/games/ebr.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stdout] --> src/games/ebr.rs:543:32 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stdout] --> src/games/ebr.rs:543:41 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EndGameReason` is never used [INFO] [stdout] --> src/games/ebr.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum EndGameReason { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INITIAL_CASH` is never used [INFO] [stdout] --> src/games/ebr.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `feature_type` and `location_name` are never read [INFO] [stdout] --> src/games/ebr.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | struct Feature { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 109 | feature_type: FeatureType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | location_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPO_ORDER` is never used [INFO] [stdout] --> src/games/ebr.rs:144:7 [INFO] [stdout] | [INFO] [stdout] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stdout] --> src/games/ebr.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `revenue` is never read [INFO] [stdout] --> src/games/ebr.rs:998:5 [INFO] [stdout] | [INFO] [stdout] 988 | pub struct EBRState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 998 | revenue: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `connected_majors` is never used [INFO] [stdout] --> src/games/ebr.rs:1130:8 [INFO] [stdout] | [INFO] [stdout] 1006 | impl EBRState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_game` is never used [INFO] [stdout] --> src/games/ebr.rs:1803:8 [INFO] [stdout] | [INFO] [stdout] 1803 | fn init_game() -> EBRState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_node_by_path` is never used [INFO] [stdout] --> src/mon2y/node.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl> Node { [INFO] [stdout] | --------------------------------------------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn get_node_by_path( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mon2y/tree.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 21 | / impl, ActionType: Action> [INFO] [stdout] 22 | | Tree [INFO] [stdout] 23 | | where [INFO] [stdout] 24 | | StateType: State, [INFO] [stdout] 25 | | ActionType: Action, [INFO] [stdout] | |______________________________________________- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn new(root: Node) -> Tree { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 32.88s [INFO] running `Command { std: "docker" "inspect" "b04a71367301b75c563b8761d357e227d83ca2b666781df759948cecb224e0a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b04a71367301b75c563b8761d357e227d83ca2b666781df759948cecb224e0a2", kill_on_drop: false }` [INFO] [stdout] b04a71367301b75c563b8761d357e227d83ca2b666781df759948cecb224e0a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 88178b296fccd1174ef09c37ec4f3384fcf3694a4a33f70934d3fae2b35f077a [INFO] running `Command { std: "docker" "start" "-a" "88178b296fccd1174ef09c37ec4f3384fcf3694a4a33f70934d3fae2b35f077a", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [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 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] [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] [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: 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: 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: 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 `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: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1474 | / Stage::Auction { [INFO] [stdout] 1475 | | initial_auction, [INFO] [stdout] 1476 | | current_bid, [INFO] [stdout] 1477 | | .. [INFO] [stdout] 1478 | | } => { [INFO] [stdout] | |_____________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1503 | Stage::ChooseAction => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:1641:17 [INFO] [stdout] | [INFO] [stdout] 1641 | delivery_company, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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: 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(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 9.26s [INFO] running `Command { std: "docker" "inspect" "88178b296fccd1174ef09c37ec4f3384fcf3694a4a33f70934d3fae2b35f077a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88178b296fccd1174ef09c37ec4f3384fcf3694a4a33f70934d3fae2b35f077a", kill_on_drop: false }` [INFO] [stdout] 88178b296fccd1174ef09c37ec4f3384fcf3694a4a33f70934d3fae2b35f077a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] a88ac84b90f4dd9dc583af278f97ecf1daa28c1296b4b2a88976f40e8723118b [INFO] running `Command { std: "docker" "start" "-a" "a88ac84b90f4dd9dc583af278f97ecf1daa28c1296b4b2a88976f40e8723118b", 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: 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` [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` (lib) generated 33 warnings (run `cargo fix --lib -p mon2y_rs` to apply 10 suggestions) [INFO] [stderr] warning: `mon2y_rs` (lib test) generated 33 warnings (22 duplicates) (run `cargo fix --lib -p mon2y_rs --tests` to apply 2 suggestions) [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 `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 `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: 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: 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 `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 `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: 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" test) generated 35 warnings (22 duplicates) [INFO] [stderr] warning: `mon2y_rs` (bin "arena" test) generated 35 warnings (35 duplicates) [INFO] [stderr] warning: `mon2y_rs` (bin "mon2y_rs" test) generated 34 warnings (34 duplicates) [INFO] [stderr] warning: `mon2y_rs` (bin "mon2y_rs") generated 35 warnings (24 duplicates) [INFO] [stderr] warning: `mon2y_rs` (bin "arena") generated 36 warnings (36 duplicates) [INFO] [stderr] warning: `mon2y_rs` (bin "bench") generated 36 warnings (36 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [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 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_play_out ... 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 games::ebr::test::test_reachable_narrow_track ... 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_div_ceil ... 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::node::tests::test_best_pick_weighted_visits ... 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/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_get_neighbors ... ok [INFO] [stdout] test mon2y::node::tests::test_create_expanded_node ... ok [INFO] [stdout] test games::ebr::test::test_reachable_narrow_track ... ok [INFO] [stdout] test mon2y::tree::tests::test_propagate_two_players ... ok [INFO] [stdout] test mon2y::tree::tests::test_propagate_one_player ... 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_play_out ... ok [INFO] [stdout] test games::ebr::test::test_div_ceil ... ok [INFO] [stdout] test mon2y::node::tests::test_best_pick_weighted_visits ... ok [INFO] [stdout] test mon2y::tree::tests::test_weighted_game_action_play_out ... ok [INFO] [stdout] test games::cs::tests::test_dice_actions_weights ... ok [INFO] [stdout] test mon2y::tree::tests::test_expansion_basic ... 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/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::ebr::test::test_div_ceil ... 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 games::ebr::test::test_reachable_narrow_track ... 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_basic ... ok [INFO] [stdout] test mon2y::tree::tests::test_expansion_basic ... ok [INFO] [stdout] test mon2y::tree::tests::test_selection_multiple_expanded ... ok [INFO] [stdout] test mon2y::node::tests::test_best_pick_weighted_visits ... ok [INFO] [stdout] test games::cs::tests::test_dice_actions_weights ... 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::cs::tests::test_dice_actions_weights ... 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 mon2y::tree::tests::test_expansion_basic ... ok [INFO] [stdout] test mon2y::node::tests::test_best_pick_weighted_visits ... 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_weighted_game_action_play_out ... ok [INFO] [stdout] test mon2y::tree::tests::test_selection_basic ... ok [INFO] [stdout] test games::ebr::test::test_connected_to ... ok [INFO] [stdout] test mon2y::node::tests::test_create_expanded_node ... ok [INFO] [stdout] test mon2y::tree::tests::test_selection_multiple_expanded ... 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 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 ... FAILED [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] failures: [INFO] [stdout] [INFO] [stdout] ---- test_c4_one_action_blocks_win stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test_c4_one_action_blocks_win' panicked at tests/c4_sensible_turns.rs:30:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: Drop(1) [INFO] [stdout] right: Drop(0) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5bdeb56544e2 - std::backtrace_rs::backtrace::libunwind::trace::h8d95625898284e7d [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5bdeb56544e2 - std::backtrace_rs::backtrace::trace_unsynchronized::h9eafd5c61303e492 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5bdeb56544e2 - std::sys::backtrace::_print_fmt::hec2578e807cc4a3f [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x5bdeb56544e2 - ::fmt::hd8ebefbbcb1fe23a [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5bdeb567cbc3 - core::fmt::rt::Argument::fmt::h09f3c4b7b5ff5386 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/fmt/rt.rs:185:76 [INFO] [stdout] 5: 0x5bdeb567cbc3 - core::fmt::write::hef9d041e1d5d9592 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/fmt/mod.rs:1449:21 [INFO] [stdout] 6: 0x5bdeb5651273 - std::io::Write::write_fmt::h7cfb9383e0a29362 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/io/mod.rs:1890:15 [INFO] [stdout] 7: 0x5bdeb5654332 - std::sys::backtrace::BacktraceLock::print::h263d323f217ce3a7 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 8: 0x5bdeb565598a - std::panicking::default_hook::{{closure}}::h25050253f7dc0d3e [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:298:22 [INFO] [stdout] 9: 0x5bdeb5655779 - std::panicking::default_hook::hf3291a4c87ea2887 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:322:9 [INFO] [stdout] 10: 0x5bdeb55e4c97 - as core::ops::function::Fn>::call::h51204ed24e282361 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/alloc/src/boxed.rs:1984:9 [INFO] [stdout] 11: 0x5bdeb55e4c97 - test::test_main::{{closure}}::h3588678a150ab7c4 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/test/src/lib.rs:136:21 [INFO] [stdout] 12: 0x5bdeb5656473 - as core::ops::function::Fn>::call::h95d63edfac47e230 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/alloc/src/boxed.rs:1984:9 [INFO] [stdout] 13: 0x5bdeb5656473 - std::panicking::rust_panic_with_hook::h3550dbeaa1041124 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:839:13 [INFO] [stdout] 14: 0x5bdeb565612a - std::panicking::begin_panic_handler::{{closure}}::hde0dd646a9e2b5b7 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:704:13 [INFO] [stdout] 15: 0x5bdeb56549d9 - std::sys::backtrace::__rust_end_short_backtrace::haeb22ba48b4d728e [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 16: 0x5bdeb5655dbd - rust_begin_unwind [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:695:5 [INFO] [stdout] 17: 0x5bdeb567a9a0 - core::panicking::panic_fmt::hca923aa694825dc3 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/panicking.rs:75:14 [INFO] [stdout] 18: 0x5bdeb567ad37 - core::panicking::assert_failed_inner::h74605e175418b0d2 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/panicking.rs:425:17 [INFO] [stdout] 19: 0x5bdeb52f8932 - core::panicking::assert_failed::hd3f0a833902903ee [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/panicking.rs:380:5 [INFO] [stdout] 20: 0x5bdeb52f9bdf - c4_sensible_turns::test_c4_one_action_blocks_win::h598672ec3d7f8f99 [INFO] [stdout] at /opt/rustwide/workdir/tests/c4_sensible_turns.rs:30:5 [INFO] [stdout] 21: 0x5bdeb52f9837 - c4_sensible_turns::test_c4_one_action_blocks_win::{{closure}}::h49b2a334bf1f1f9d [INFO] [stdout] at /opt/rustwide/workdir/tests/c4_sensible_turns.rs:10:35 [INFO] [stdout] 22: 0x5bdeb52fbde6 - core::ops::function::FnOnce::call_once::h63b898b5f37d999b [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 23: 0x5bdeb55ea57b - core::ops::function::FnOnce::call_once::hbd335dbb4bb5fce4 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x5bdeb55ea57b - test::__rust_begin_short_backtrace::h04cc5e3b375a80f9 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/test/src/lib.rs:638:18 [INFO] [stdout] 25: 0x5bdeb55e9635 - test::run_test_in_process::{{closure}}::h820e05c00a84ca94 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/test/src/lib.rs:661:60 [INFO] [stdout] 26: 0x5bdeb55e9635 - as core::ops::function::FnOnce<()>>::call_once::h5d54c80bc199f62c [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 27: 0x5bdeb55e9635 - std::panicking::try::do_call::h832d61a9fc2b6e3e [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:587:40 [INFO] [stdout] 28: 0x5bdeb55e9635 - std::panicking::try::h9a404c5f3a090501 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:550:19 [INFO] [stdout] 29: 0x5bdeb55e9635 - std::panic::catch_unwind::hf5157d4c366d9053 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panic.rs:359:14 [INFO] [stdout] 30: 0x5bdeb55e9635 - test::run_test_in_process::h671deca6957ee157 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/test/src/lib.rs:661:27 [INFO] [stdout] 31: 0x5bdeb55e9635 - test::run_test::{{closure}}::h8a18e214254d2663 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/test/src/lib.rs:582:43 [INFO] [stdout] 32: 0x5bdeb55ac624 - test::run_test::{{closure}}::ha2abac7cc0a13c10 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/test/src/lib.rs:612:41 [INFO] [stdout] 33: 0x5bdeb55ac624 - std::sys::backtrace::__rust_begin_short_backtrace::h013f8b8ca29e5f67 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 34: 0x5bdeb55b015a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc0336636a8c55b05 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 35: 0x5bdeb55b015a - as core::ops::function::FnOnce<()>>::call_once::h256d9472a72a8c66 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 36: 0x5bdeb55b015a - std::panicking::try::do_call::hf49ea3ffcc3bd1db [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:587:40 [INFO] [stdout] 37: 0x5bdeb55b015a - std::panicking::try::h2a067a3336161e1c [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:550:19 [INFO] [stdout] 38: 0x5bdeb55b015a - std::panic::catch_unwind::h931ea2a9df59b7fa [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panic.rs:359:14 [INFO] [stdout] 39: 0x5bdeb55b015a - std::thread::Builder::spawn_unchecked_::{{closure}}::haf08f1439431615c [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 40: 0x5bdeb55b015a - core::ops::function::FnOnce::call_once{{vtable.shim}}::hd1dc5dd1edff0233 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 41: 0x5bdeb5659a9b - as core::ops::function::FnOnce>::call_once::hf6ad22f40418d409 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/alloc/src/boxed.rs:1970:9 [INFO] [stdout] 42: 0x5bdeb5659a9b - as core::ops::function::FnOnce>::call_once::h734c3e370b18da4b [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/alloc/src/boxed.rs:1970:9 [INFO] [stdout] 43: 0x5bdeb5659a9b - std::sys::pal::unix::thread::Thread::new::thread_start::hfbde3a90511cd82d [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/sys/pal/unix/thread.rs:109:17 [INFO] [stdout] 44: 0x7b200b47cac3 - [INFO] [stdout] 45: 0x7b200b50da04 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test_c4_one_action_blocks_win [INFO] [stdout] [INFO] [stdout] test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 8.17s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test c4_sensible_turns` [INFO] running `Command { std: "docker" "inspect" "a88ac84b90f4dd9dc583af278f97ecf1daa28c1296b4b2a88976f40e8723118b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a88ac84b90f4dd9dc583af278f97ecf1daa28c1296b4b2a88976f40e8723118b", kill_on_drop: false }` [INFO] [stdout] a88ac84b90f4dd9dc583af278f97ecf1daa28c1296b4b2a88976f40e8723118b