[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 master#ebf0cf75d368c035f4c7e7246d203bd469ee4a51 for pr-137940-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flkingsford%2Fmon2y_rs" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lkingsford/mon2y_rs on toolchain ebf0cf75d368c035f4c7e7246d203bd469ee4a51 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lkingsford/mon2y_rs [INFO] finished tweaking git repo https://github.com/lkingsford/mon2y_rs [INFO] tweaked toml for git repo https://github.com/lkingsford/mon2y_rs written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.94 [INFO] [stderr] Downloaded quote v1.0.40 [INFO] [stderr] Downloaded iana-time-zone-haiku v0.1.2 [INFO] [stderr] Downloaded windows-link v0.1.0 [INFO] [stderr] Downloaded test-env-log v0.2.8 [INFO] [stderr] Downloaded android_system_properties v0.1.5 [INFO] [stderr] Downloaded rustversion v1.0.20 [INFO] [stderr] Downloaded android-tzdata v0.1.1 [INFO] [stderr] Downloaded iana-time-zone v0.1.61 [INFO] [stderr] Downloaded windows-core v0.52.0 [INFO] [stderr] Downloaded clap v4.5.32 [INFO] [stderr] Downloaded jiff-static v0.2.4 [INFO] [stderr] Downloaded cc v1.2.16 [INFO] [stderr] Downloaded bumpalo v3.17.0 [INFO] [stderr] Downloaded serde_json v1.0.140 [INFO] [stderr] Downloaded zerocopy-derive v0.8.23 [INFO] [stderr] Downloaded clap_builder v4.5.32 [INFO] [stderr] Downloaded portable-atomic v1.11.0 [INFO] [stderr] Downloaded serde v1.0.219 [INFO] [stderr] Downloaded zerocopy v0.8.23 [INFO] [stderr] Downloaded chrono v0.4.40 [INFO] [stderr] Downloaded portable-atomic-util v0.2.4 [INFO] [stderr] Downloaded serde_derive v1.0.219 [INFO] [stderr] Downloaded log v0.4.26 [INFO] [stderr] Downloaded syn v2.0.100 [INFO] [stderr] Downloaded clap_derive v4.5.32 [INFO] [stderr] Downloaded once_cell v1.21.1 [INFO] [stderr] Downloaded env_logger v0.11.7 [INFO] [stderr] Downloaded ryu v1.0.20 [INFO] [stderr] Downloaded unicode-ident v1.0.18 [INFO] [stderr] Downloaded linked-hash-map v0.5.6 [INFO] [stderr] Downloaded env_filter v0.1.3 [INFO] [stderr] Downloaded ppv-lite86 v0.2.21 [INFO] [stderr] Downloaded itoa v1.0.15 [INFO] [stderr] Downloaded clap-verbosity-flag v3.0.2 [INFO] [stderr] Downloaded linked_hash_set v0.1.5 [INFO] [stderr] Downloaded jiff v0.2.4 [INFO] [stderr] Downloaded libc v0.2.171 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0b257fae1e46fe1d61be30c9811e4621a79d9d88ee686158fd6f70d41262968f [INFO] running `Command { std: "docker" "start" "-a" "0b257fae1e46fe1d61be30c9811e4621a79d9d88ee686158fd6f70d41262968f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0b257fae1e46fe1d61be30c9811e4621a79d9d88ee686158fd6f70d41262968f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b257fae1e46fe1d61be30c9811e4621a79d9d88ee686158fd6f70d41262968f", kill_on_drop: false }` [INFO] [stdout] 0b257fae1e46fe1d61be30c9811e4621a79d9d88ee686158fd6f70d41262968f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a1aac6ba3f9253497bd1551ac15017c98bb525ec5df8fbe75d876496af8c750c [INFO] running `Command { std: "docker" "start" "-a" "a1aac6ba3f9253497bd1551ac15017c98bb525ec5df8fbe75d876496af8c750c", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling clap_builder v4.5.32 [INFO] [stderr] Compiling jiff v0.2.4 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling linked_hash_set v0.1.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling env_logger v0.11.7 [INFO] [stderr] Compiling clap v4.5.32 [INFO] [stderr] Compiling clap-verbosity-flag v3.0.2 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling mon2y_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/games/ebr.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/ebr.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:571:31 [INFO] [stdout] | [INFO] [stdout] 571 | while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 571 - while (passed.contains(&next_actor)) { [INFO] [stdout] 571 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:605:35 [INFO] [stdout] | [INFO] [stdout] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 605 - while (passed.contains(&next_actor)) { [INFO] [stdout] 605 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/games/ebr.rs:1010:37 [INFO] [stdout] | [INFO] [stdout] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/games/ebr.rs:1104:17 [INFO] [stdout] | [INFO] [stdout] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] | ^ [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 | *public_co == Company::EBRC) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 ~ *public_co == Company::EBRC [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/games/ebr.rs:1203:20 [INFO] [stdout] | [INFO] [stdout] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stdout] 1203 + if company_details.cash >= cost as isize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_set` [INFO] [stdout] --> src/games/ebr.rs:1799:9 [INFO] [stdout] | [INFO] [stdout] 1799 | use std::collections::hash_set; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `best_pick` [INFO] [stdout] --> src/mon2y/mcts.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | use super::node::{best_pick, create_expanded_node, Node}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1474 | / Stage::Auction { [INFO] [stdout] 1475 | | initial_auction, [INFO] [stdout] 1476 | | current_bid, [INFO] [stdout] 1477 | | .. [INFO] [stdout] 1478 | | } => { [INFO] [stdout] | |_____________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1503 | Stage::ChooseAction => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:1641:17 [INFO] [stdout] | [INFO] [stdout] 1641 | delivery_company, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stdout] --> src/games/ebr.rs:535:26 [INFO] [stdout] | [INFO] [stdout] 535 | ChooseAuctionCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stdout] --> src/games/ebr.rs:536:20 [INFO] [stdout] | [INFO] [stdout] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stdout] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stdout] --> src/games/ebr.rs:537:24 [INFO] [stdout] | [INFO] [stdout] 537 | ChooseBuildCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stdout] --> src/games/ebr.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | ChooseBondCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stdout] --> src/games/ebr.rs:541:15 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stdout] --> src/games/ebr.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | struct Bond { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::Merge::0` [INFO] [stdout] --> src/games/ebr.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::Merge::1` [INFO] [stdout] --> src/games/ebr.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stdout] --> src/games/ebr.rs:543:32 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stdout] --> src/games/ebr.rs:543:41 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EndGameReason` is never used [INFO] [stdout] --> src/games/ebr.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum EndGameReason { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INITIAL_CASH` is never used [INFO] [stdout] --> src/games/ebr.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `feature_type` and `location_name` are never read [INFO] [stdout] --> src/games/ebr.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | struct Feature { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 109 | feature_type: FeatureType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | location_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPO_ORDER` is never used [INFO] [stdout] --> src/games/ebr.rs:144:7 [INFO] [stdout] | [INFO] [stdout] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stdout] --> src/games/ebr.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `revenue` is never read [INFO] [stdout] --> src/games/ebr.rs:998:5 [INFO] [stdout] | [INFO] [stdout] 988 | pub struct EBRState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 998 | revenue: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `connected_majors` is never used [INFO] [stdout] --> src/games/ebr.rs:1130:8 [INFO] [stdout] | [INFO] [stdout] 1006 | impl EBRState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_game` is never used [INFO] [stdout] --> src/games/ebr.rs:1803:8 [INFO] [stdout] | [INFO] [stdout] 1803 | fn init_game() -> EBRState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/games/ebr.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/ebr.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:571:31 [INFO] [stdout] | [INFO] [stdout] 571 | while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 571 - while (passed.contains(&next_actor)) { [INFO] [stdout] 571 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:605:35 [INFO] [stdout] | [INFO] [stdout] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 605 - while (passed.contains(&next_actor)) { [INFO] [stdout] 605 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/games/ebr.rs:1010:37 [INFO] [stdout] | [INFO] [stdout] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/games/ebr.rs:1104:17 [INFO] [stdout] | [INFO] [stdout] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] | ^ [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 | *public_co == Company::EBRC) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 ~ *public_co == Company::EBRC [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/games/ebr.rs:1203:20 [INFO] [stdout] | [INFO] [stdout] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stdout] 1203 + if company_details.cash >= cost as isize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_set` [INFO] [stdout] --> src/games/ebr.rs:1799:9 [INFO] [stdout] | [INFO] [stdout] 1799 | use std::collections::hash_set; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `best_pick` [INFO] [stdout] --> src/mon2y/mcts.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | use super::node::{best_pick, create_expanded_node, Node}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/games/ebr.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/ebr.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:571:31 [INFO] [stdout] | [INFO] [stdout] 571 | while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 571 - while (passed.contains(&next_actor)) { [INFO] [stdout] 571 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:605:35 [INFO] [stdout] | [INFO] [stdout] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 605 - while (passed.contains(&next_actor)) { [INFO] [stdout] 605 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/games/ebr.rs:1010:37 [INFO] [stdout] | [INFO] [stdout] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/games/ebr.rs:1104:17 [INFO] [stdout] | [INFO] [stdout] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] | ^ [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 | *public_co == Company::EBRC) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 ~ *public_co == Company::EBRC [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/games/ebr.rs:1203:20 [INFO] [stdout] | [INFO] [stdout] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stdout] 1203 + if company_details.cash >= cost as isize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_set` [INFO] [stdout] --> src/games/ebr.rs:1799:9 [INFO] [stdout] | [INFO] [stdout] 1799 | use std::collections::hash_set; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `best_pick` [INFO] [stdout] --> src/mon2y/mcts.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | use super::node::{best_pick, create_expanded_node, Node}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/games/ebr.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/ebr.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:571:31 [INFO] [stdout] | [INFO] [stdout] 571 | while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 571 - while (passed.contains(&next_actor)) { [INFO] [stdout] 571 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:605:35 [INFO] [stdout] | [INFO] [stdout] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 605 - while (passed.contains(&next_actor)) { [INFO] [stdout] 605 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/games/ebr.rs:1010:37 [INFO] [stdout] | [INFO] [stdout] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/games/ebr.rs:1104:17 [INFO] [stdout] | [INFO] [stdout] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] | ^ [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 | *public_co == Company::EBRC) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 ~ *public_co == Company::EBRC [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/games/ebr.rs:1203:20 [INFO] [stdout] | [INFO] [stdout] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stdout] 1203 + if company_details.cash >= cost as isize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_set` [INFO] [stdout] --> src/games/ebr.rs:1799:9 [INFO] [stdout] | [INFO] [stdout] 1799 | use std::collections::hash_set; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `best_pick` [INFO] [stdout] --> src/mon2y/mcts.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | use super::node::{best_pick, create_expanded_node, Node}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1474 | / Stage::Auction { [INFO] [stdout] 1475 | | initial_auction, [INFO] [stdout] 1476 | | current_bid, [INFO] [stdout] 1477 | | .. [INFO] [stdout] 1478 | | } => { [INFO] [stdout] | |_____________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1503 | Stage::ChooseAction => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:1641:17 [INFO] [stdout] | [INFO] [stdout] 1641 | delivery_company, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs: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: 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: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stdout] --> src/games/ebr.rs:535:26 [INFO] [stdout] | [INFO] [stdout] 535 | ChooseAuctionCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stdout] --> src/games/ebr.rs:536:20 [INFO] [stdout] | [INFO] [stdout] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stdout] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stdout] --> src/games/ebr.rs:537:24 [INFO] [stdout] | [INFO] [stdout] 537 | ChooseBuildCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stdout] --> src/games/ebr.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | ChooseBondCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stdout] --> src/games/ebr.rs:541:15 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stdout] --> src/games/ebr.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | struct Bond { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::Merge::0` [INFO] [stdout] --> src/games/ebr.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::Merge::1` [INFO] [stdout] --> src/games/ebr.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stdout] --> src/games/ebr.rs:543:32 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stdout] --> src/games/ebr.rs:543:41 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EndGameReason` is never used [INFO] [stdout] --> src/games/ebr.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum EndGameReason { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INITIAL_CASH` is never used [INFO] [stdout] --> src/games/ebr.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `feature_type` and `location_name` are never read [INFO] [stdout] --> src/games/ebr.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | struct Feature { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 109 | feature_type: FeatureType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | location_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPO_ORDER` is never used [INFO] [stdout] --> src/games/ebr.rs:144:7 [INFO] [stdout] | [INFO] [stdout] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stdout] --> src/games/ebr.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `revenue` is never read [INFO] [stdout] --> src/games/ebr.rs:998:5 [INFO] [stdout] | [INFO] [stdout] 988 | pub struct EBRState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 998 | revenue: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `connected_majors` is never used [INFO] [stdout] --> src/games/ebr.rs:1130:8 [INFO] [stdout] | [INFO] [stdout] 1006 | impl EBRState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_game` is never used [INFO] [stdout] --> src/games/ebr.rs:1803:8 [INFO] [stdout] | [INFO] [stdout] 1803 | fn init_game() -> EBRState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_node_by_path` is never used [INFO] [stdout] --> src/mon2y/node.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl> Node { [INFO] [stdout] | --------------------------------------------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn get_node_by_path( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mon2y/tree.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 21 | / impl, ActionType: Action> [INFO] [stdout] 22 | | Tree [INFO] [stdout] 23 | | where [INFO] [stdout] 24 | | StateType: State, [INFO] [stdout] 25 | | ActionType: Action, [INFO] [stdout] | |______________________________________________- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn new(root: Node) -> Tree { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `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 38.19s [INFO] running `Command { std: "docker" "inspect" "a1aac6ba3f9253497bd1551ac15017c98bb525ec5df8fbe75d876496af8c750c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1aac6ba3f9253497bd1551ac15017c98bb525ec5df8fbe75d876496af8c750c", kill_on_drop: false }` [INFO] [stdout] a1aac6ba3f9253497bd1551ac15017c98bb525ec5df8fbe75d876496af8c750c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 07875166f58ed83aa9685113101143a5e308e0ab3ba0b0d9389caa5299f6ed72 [INFO] running `Command { std: "docker" "start" "-a" "07875166f58ed83aa9685113101143a5e308e0ab3ba0b0d9389caa5299f6ed72", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/games/ebr.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/ebr.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:571:31 [INFO] [stdout] | [INFO] [stdout] 571 | while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 571 - while (passed.contains(&next_actor)) { [INFO] [stdout] 571 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:605:35 [INFO] [stdout] | [INFO] [stdout] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 605 - while (passed.contains(&next_actor)) { [INFO] [stdout] 605 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/games/ebr.rs:1010:37 [INFO] [stdout] | [INFO] [stdout] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling syn v1.0.109 [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: 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] [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 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: 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: 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 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 `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 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 `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 `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: 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: 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: 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: `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: `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: 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: `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] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 571 - while (passed.contains(&next_actor)) { [INFO] [stdout] 571 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/games/ebr.rs:605:35 [INFO] [stdout] | [INFO] [stdout] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 605 - while (passed.contains(&next_actor)) { [INFO] [stdout] 605 + while passed.contains(&next_actor) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/games/ebr.rs:1010:37 [INFO] [stdout] | [INFO] [stdout] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stdout] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/games/ebr.rs:1104:17 [INFO] [stdout] | [INFO] [stdout] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] | ^ [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 | *public_co == Company::EBRC) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stdout] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stdout] 1106 ~ *public_co == Company::EBRC [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/games/ebr.rs:1203:20 [INFO] [stdout] | [INFO] [stdout] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stdout] 1203 + if company_details.cash >= cost as isize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_set` [INFO] [stdout] --> src/games/ebr.rs:1799:9 [INFO] [stdout] | [INFO] [stdout] 1799 | use std::collections::hash_set; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `best_pick` [INFO] [stdout] --> src/mon2y/mcts.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | use super::node::{best_pick, create_expanded_node, Node}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/games/ebr.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1474 | / Stage::Auction { [INFO] [stdout] 1475 | | initial_auction, [INFO] [stdout] 1476 | | current_bid, [INFO] [stdout] 1477 | | .. [INFO] [stdout] 1478 | | } => { [INFO] [stdout] | |_____________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1503 | Stage::ChooseAction => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:1641:17 [INFO] [stdout] | [INFO] [stdout] 1641 | delivery_company, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1474 | / Stage::Auction { [INFO] [stdout] 1475 | | initial_auction, [INFO] [stdout] 1476 | | current_bid, [INFO] [stdout] 1477 | | .. [INFO] [stdout] 1478 | | } => { [INFO] [stdout] | |_____________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1503 | Stage::ChooseAction => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:1641:17 [INFO] [stdout] | [INFO] [stdout] 1641 | delivery_company, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stdout] --> src/games/ebr.rs:535:26 [INFO] [stdout] | [INFO] [stdout] 535 | ChooseAuctionCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub` [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: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 `ebr::Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stdout] --> src/games/ebr.rs:535:26 [INFO] [stdout] | [INFO] [stdout] 535 | ChooseAuctionCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stdout] --> src/games/ebr.rs:536:20 [INFO] [stdout] | [INFO] [stdout] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stdout] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stdout] --> src/games/ebr.rs:537:24 [INFO] [stdout] | [INFO] [stdout] 537 | ChooseBuildCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stdout] --> src/games/ebr.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | ChooseBondCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stdout] --> src/games/ebr.rs:541:15 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stdout] --> src/games/ebr.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | struct Bond { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::0` [INFO] [stdout] --> src/games/ebr.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::1` [INFO] [stdout] --> src/games/ebr.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stdout] --> src/games/ebr.rs:543:32 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stdout] --> src/games/ebr.rs:543:41 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_human_turn` and `visualise_state` are never used [INFO] [stdout] --> src/game.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Game { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn get_human_turn(&self, state: &Self::StateType) -> Self::ActionType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn visualise_state(&self, state: &Self::StateType); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EndGameReason` is never used [INFO] [stdout] --> src/games/ebr.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum EndGameReason { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INITIAL_CASH` is never used [INFO] [stdout] --> src/games/ebr.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `feature_type` and `location_name` are never read [INFO] [stdout] --> src/games/ebr.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | struct Feature { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 109 | feature_type: FeatureType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | location_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPO_ORDER` is never used [INFO] [stdout] --> src/games/ebr.rs:144:7 [INFO] [stdout] | [INFO] [stdout] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stdout] --> src/games/ebr.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `revenue` is never read [INFO] [stdout] --> src/games/ebr.rs:998:5 [INFO] [stdout] | [INFO] [stdout] 988 | pub struct EBRState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 998 | revenue: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `connected_majors` is never used [INFO] [stdout] --> src/games/ebr.rs:1130:8 [INFO] [stdout] | [INFO] [stdout] 1006 | impl EBRState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nothing` and `NextTurnGameAction` are never constructed [INFO] [stdout] --> src/test/injectable_game.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum InjectableGameAction { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 39 | Nothing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 40 | NextTurnGameAction(Vec), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InjectableGameAction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:706:21 [INFO] [stdout] | [INFO] [stdout] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:882:60 [INFO] [stdout] | [INFO] [stdout] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/games/ebr.rs:1654:13 [INFO] [stdout] | [INFO] [stdout] 1474 | / Stage::Auction { [INFO] [stdout] 1475 | | initial_auction, [INFO] [stdout] 1476 | | current_bid, [INFO] [stdout] 1477 | | .. [INFO] [stdout] 1478 | | } => { [INFO] [stdout] | |_____________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1503 | Stage::ChooseAction => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1654 | _ => { [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delivery_company` [INFO] [stdout] --> src/games/ebr.rs:1641:17 [INFO] [stdout] | [INFO] [stdout] 1641 | delivery_company, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/games/ebr.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | let mut game = EBR { player_count: 3 }; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stdout] --> src/games/ebr.rs:535:26 [INFO] [stdout] | [INFO] [stdout] 535 | ChooseAuctionCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stdout] --> src/games/ebr.rs:536:20 [INFO] [stdout] | [INFO] [stdout] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stdout] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stdout] --> src/games/ebr.rs:537:24 [INFO] [stdout] | [INFO] [stdout] 537 | ChooseBuildCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stdout] --> src/games/ebr.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | ChooseBondCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stdout] --> src/games/ebr.rs:541:15 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stdout] --> src/games/ebr.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | struct Bond { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::0` [INFO] [stdout] --> src/games/ebr.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::1` [INFO] [stdout] --> src/games/ebr.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stdout] --> src/games/ebr.rs:543:32 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stdout] --> src/games/ebr.rs:543:41 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EndGameReason` is never used [INFO] [stdout] --> src/games/ebr.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum EndGameReason { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INITIAL_CASH` is never used [INFO] [stdout] --> src/games/ebr.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `feature_type` and `location_name` are never read [INFO] [stdout] --> src/games/ebr.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | struct Feature { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 109 | feature_type: FeatureType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | location_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPO_ORDER` is never used [INFO] [stdout] --> src/games/ebr.rs:144:7 [INFO] [stdout] | [INFO] [stdout] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stdout] --> src/games/ebr.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `revenue` is never read [INFO] [stdout] --> src/games/ebr.rs:998:5 [INFO] [stdout] | [INFO] [stdout] 988 | pub struct EBRState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 998 | revenue: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `connected_majors` is never used [INFO] [stdout] --> src/games/ebr.rs:1130:8 [INFO] [stdout] | [INFO] [stdout] 1006 | impl EBRState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nothing` and `NextTurnGameAction` are never constructed [INFO] [stdout] --> src/test/injectable_game.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum InjectableGameAction { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 39 | Nothing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 40 | NextTurnGameAction(Vec), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InjectableGameAction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stdout] --> src/games/ebr.rs:535:26 [INFO] [stdout] | [INFO] [stdout] 535 | ChooseAuctionCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stdout] --> src/games/ebr.rs:536:20 [INFO] [stdout] | [INFO] [stdout] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stdout] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stdout] --> src/games/ebr.rs:537:24 [INFO] [stdout] | [INFO] [stdout] 537 | ChooseBuildCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stdout] --> src/games/ebr.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | ChooseBondCompany(Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stdout] --> src/games/ebr.rs:541:15 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stdout] --> src/games/ebr.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | IssueBond(Company, Bond), [INFO] [stdout] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | struct Bond { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::0` [INFO] [stdout] --> src/games/ebr.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::1` [INFO] [stdout] --> src/games/ebr.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 542 | Merge(Company, Company), [INFO] [stdout] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stdout] --> src/games/ebr.rs:543:32 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stdout] --> src/games/ebr.rs:543:41 [INFO] [stdout] | [INFO] [stdout] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/games/ebr.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | enum Company { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_human_turn` and `visualise_state` are never used [INFO] [stdout] --> src/game.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Game { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn get_human_turn(&self, state: &Self::StateType) -> Self::ActionType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn visualise_state(&self, state: &Self::StateType); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EndGameReason` is never used [INFO] [stdout] --> src/games/ebr.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum EndGameReason { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INITIAL_CASH` is never used [INFO] [stdout] --> src/games/ebr.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `feature_type` and `location_name` are never read [INFO] [stdout] --> src/games/ebr.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | struct Feature { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 109 | feature_type: FeatureType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | location_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPO_ORDER` is never used [INFO] [stdout] --> src/games/ebr.rs:144:7 [INFO] [stdout] | [INFO] [stdout] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stdout] --> src/games/ebr.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `revenue` is never read [INFO] [stdout] --> src/games/ebr.rs:998:5 [INFO] [stdout] | [INFO] [stdout] 988 | pub struct EBRState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 998 | revenue: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `connected_majors` is never used [INFO] [stdout] --> src/games/ebr.rs:1130:8 [INFO] [stdout] | [INFO] [stdout] 1006 | impl EBRState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nothing` and `NextTurnGameAction` are never constructed [INFO] [stdout] --> src/test/injectable_game.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum InjectableGameAction { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 39 | Nothing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 40 | NextTurnGameAction(Vec), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InjectableGameAction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.93s [INFO] running `Command { std: "docker" "inspect" "07875166f58ed83aa9685113101143a5e308e0ab3ba0b0d9389caa5299f6ed72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07875166f58ed83aa9685113101143a5e308e0ab3ba0b0d9389caa5299f6ed72", kill_on_drop: false }` [INFO] [stdout] 07875166f58ed83aa9685113101143a5e308e0ab3ba0b0d9389caa5299f6ed72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 41f25bc368d9566b9c54e790dcb979fa60df182844e61849f50aac93d803e319 [INFO] running `Command { std: "docker" "start" "-a" "41f25bc368d9566b9c54e790dcb979fa60df182844e61849f50aac93d803e319", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `min` [INFO] [stderr] --> src/games/ebr.rs:2:21 [INFO] [stderr] | [INFO] [stderr] 2 | use std::cmp::{max, min}; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `BTreeMap` [INFO] [stderr] --> src/games/ebr.rs:3:24 [INFO] [stderr] | [INFO] [stderr] 3 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `while` condition [INFO] [stderr] --> src/games/ebr.rs:571:31 [INFO] [stderr] | [INFO] [stderr] 571 | while (passed.contains(&next_actor)) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 571 - while (passed.contains(&next_actor)) { [INFO] [stderr] 571 + while passed.contains(&next_actor) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `while` condition [INFO] [stderr] --> src/games/ebr.rs:605:35 [INFO] [stderr] | [INFO] [stderr] 605 | ... while (passed.contains(&next_actor)) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 605 - while (passed.contains(&next_actor)) { [INFO] [stderr] 605 + while passed.contains(&next_actor) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/games/ebr.rs:1010:37 [INFO] [stderr] | [INFO] [stderr] 1010 | return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1010 - return max(1, div_ceil(rev, (owned_shares as isize + 1))); [INFO] [stderr] 1010 + return max(1, div_ceil(rev, owned_shares as isize + 1)); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> src/games/ebr.rs:1104:17 [INFO] [stderr] | [INFO] [stderr] 1104 | (self.company_details[public_co].shares_remaining > 0 || [INFO] [stderr] | ^ [INFO] [stderr] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stderr] 1106 | *public_co == Company::EBRC) [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1104 ~ self.company_details[public_co].shares_remaining > 0 || [INFO] [stderr] 1105 | //TODO: Make the EBRC here data somewhere [INFO] [stderr] 1106 ~ *public_co == Company::EBRC [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/games/ebr.rs:1203:20 [INFO] [stderr] | [INFO] [stderr] 1203 | if (company_details.cash >= cost as isize) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1203 - if (company_details.cash >= cost as isize) { [INFO] [stderr] 1203 + if company_details.cash >= cost as isize { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::hash_set` [INFO] [stderr] --> src/games/ebr.rs:1799:9 [INFO] [stderr] | [INFO] [stderr] 1799 | use std::collections::hash_set; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `best_pick` [INFO] [stderr] --> src/mon2y/mcts.rs:10:19 [INFO] [stderr] | [INFO] [stderr] 10 | use super::node::{best_pick, create_expanded_node, Node}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/games/ebr.rs:385:27 [INFO] [stderr] | [INFO] [stderr] 385 | .filter(|(x, cell)| **cell == Terrain::Mountain || **cell == Terrain::Forest) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/games/ebr.rs:706:21 [INFO] [stderr] | [INFO] [stderr] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/games/ebr.rs:706:21 [INFO] [stderr] | [INFO] [stderr] 698 | ChoosableAction::AuctionShare => state.stage = Stage::ChooseAuctionCompany, [INFO] [stderr] | ----------------------------- matches some of the same values [INFO] [stderr] 699 | ChoosableAction::PayDividend => state.pay_dividend(), [INFO] [stderr] | ---------------------------- matches some of the same values [INFO] [stderr] 700 | ChoosableAction::BuildTrack => state.stage = Stage::ChooseBuildCompany, [INFO] [stderr] | --------------------------- matches some of the same values [INFO] [stderr] 701 | ChoosableAction::IssueBond => state.stage = Stage::ChooseBondCompany, [INFO] [stderr] | -------------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 706 | _ => {} //warn!("Not implemented yet"), [INFO] [stderr] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `delivery_company` [INFO] [stderr] --> src/games/ebr.rs:882:60 [INFO] [stderr] | [INFO] [stderr] 882 | EBRAction::ChooseTakeResourcesCompany(company, delivery_company) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delivery_company` [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/games/ebr.rs:1654:13 [INFO] [stderr] | [INFO] [stderr] 1654 | _ => { [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/games/ebr.rs:1654:13 [INFO] [stderr] | [INFO] [stderr] 1474 | / Stage::Auction { [INFO] [stderr] 1475 | | initial_auction, [INFO] [stderr] 1476 | | current_bid, [INFO] [stderr] 1477 | | .. [INFO] [stderr] 1478 | | } => { [INFO] [stderr] | |_____________- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 1503 | Stage::ChooseAction => { [INFO] [stderr] | ------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 1549 | Stage::ChooseAuctionCompany => { [INFO] [stderr] | --------------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 1557 | Stage::ChoosePrivateStart(company) => PRIVATE_STARTING_LOCATIONS [INFO] [stderr] | ---------------------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 1654 | _ => { [INFO] [stderr] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stderr] [INFO] [stderr] warning: unused variable: `delivery_company` [INFO] [stderr] --> src/games/ebr.rs:1641:17 [INFO] [stderr] | [INFO] [stderr] 1641 | delivery_company, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `delivery_company: _` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/games/ebr.rs:1804:13 [INFO] [stderr] | [INFO] [stderr] 1804 | let mut game = EBR { player_count: 3 }; [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stderr] --> src/games/ebr.rs:535:26 [INFO] [stderr] | [INFO] [stderr] 535 | ChooseAuctionCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stderr] --> src/games/ebr.rs:536:20 [INFO] [stderr] | [INFO] [stderr] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stderr] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stderr] --> src/games/ebr.rs:537:24 [INFO] [stderr] | [INFO] [stderr] 537 | ChooseBuildCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stderr] --> src/games/ebr.rs:540:23 [INFO] [stderr] | [INFO] [stderr] 540 | ChooseBondCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stderr] --> src/games/ebr.rs:541:15 [INFO] [stderr] | [INFO] [stderr] 541 | IssueBond(Company, Bond), [INFO] [stderr] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stderr] --> src/games/ebr.rs:541:24 [INFO] [stderr] | [INFO] [stderr] 541 | IssueBond(Company, Bond), [INFO] [stderr] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:57:1 [INFO] [stderr] | [INFO] [stderr] 57 | struct Bond { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::Merge::0` [INFO] [stderr] --> src/games/ebr.rs:542:11 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::Merge::1` [INFO] [stderr] --> src/games/ebr.rs:542:20 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stderr] --> src/games/ebr.rs:543:32 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stderr] --> src/games/ebr.rs:543:41 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `EndGameReason` is never used [INFO] [stderr] --> src/games/ebr.rs:18:6 [INFO] [stderr] | [INFO] [stderr] 18 | enum EndGameReason { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: static `INITIAL_CASH` is never used [INFO] [stderr] --> src/games/ebr.rs:98:8 [INFO] [stderr] | [INFO] [stderr] 98 | static INITIAL_CASH: LazyLock> = LazyLock::new(|| { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `feature_type` and `location_name` are never read [INFO] [stderr] --> src/games/ebr.rs:109:5 [INFO] [stderr] | [INFO] [stderr] 108 | struct Feature { [INFO] [stderr] | ------- fields in this struct [INFO] [stderr] 109 | feature_type: FeatureType, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 110 | location_name: Option, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Feature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: constant `IPO_ORDER` is never used [INFO] [stderr] --> src/games/ebr.rs:144:7 [INFO] [stderr] | [INFO] [stderr] 144 | const IPO_ORDER: [Company; 4] = [Company::LW, Company::TMLC, Company::EBRC, Company::GT]; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `FINAL_DIVIDEND_COUNT` is never used [INFO] [stderr] --> src/games/ebr.rs:265:7 [INFO] [stderr] | [INFO] [stderr] 265 | const FINAL_DIVIDEND_COUNT: usize = 6; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `revenue` is never read [INFO] [stderr] --> src/games/ebr.rs:998:5 [INFO] [stderr] | [INFO] [stderr] 988 | pub struct EBRState { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 998 | revenue: HashMap, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `EBRState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `connected_majors` is never used [INFO] [stderr] --> src/games/ebr.rs:1130:8 [INFO] [stderr] | [INFO] [stderr] 1006 | impl EBRState { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 1130 | fn connected_majors(&self, private_co: Company) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `init_game` is never used [INFO] [stderr] --> src/games/ebr.rs:1803:8 [INFO] [stderr] | [INFO] [stderr] 1803 | fn init_game() -> EBRState { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mon2y_rs` (lib) generated 33 warnings (run `cargo fix --lib -p mon2y_rs` to apply 10 suggestions) [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stderr] --> src/games/ebr.rs:535:26 [INFO] [stderr] | [INFO] [stderr] 535 | ChooseAuctionCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stderr] --> src/games/ebr.rs:536:20 [INFO] [stderr] | [INFO] [stderr] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stderr] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stderr] --> src/games/ebr.rs:537:24 [INFO] [stderr] | [INFO] [stderr] 537 | ChooseBuildCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stderr] --> src/games/ebr.rs:540:23 [INFO] [stderr] | [INFO] [stderr] 540 | ChooseBondCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stderr] --> src/games/ebr.rs:541:15 [INFO] [stderr] | [INFO] [stderr] 541 | IssueBond(Company, Bond), [INFO] [stderr] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Bond` is more private than the item `EBRAction::IssueBond::1` [INFO] [stderr] --> src/games/ebr.rs:541:24 [INFO] [stderr] | [INFO] [stderr] 541 | IssueBond(Company, Bond), [INFO] [stderr] | ^^^^ field `EBRAction::IssueBond::1` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Bond` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:57:1 [INFO] [stderr] | [INFO] [stderr] 57 | struct Bond { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::Merge::0` [INFO] [stderr] --> src/games/ebr.rs:542:11 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::Merge::1` [INFO] [stderr] --> src/games/ebr.rs:542:20 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stderr] --> src/games/ebr.rs:543:32 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stderr] --> src/games/ebr.rs:543:41 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_human_turn` and `visualise_state` are never used [INFO] [stderr] --> src/game.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub trait Game { [INFO] [stderr] | ---- methods in this trait [INFO] [stderr] ... [INFO] [stderr] 6 | fn get_human_turn(&self, state: &Self::StateType) -> Self::ActionType { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | fn visualise_state(&self, state: &Self::StateType); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: enum `EndGameReason` is never used [INFO] [stderr] --> src/games/ebr.rs:18:6 [INFO] [stderr] | [INFO] [stderr] 18 | enum EndGameReason { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `get_node_by_path` is never used [INFO] [stderr] --> src/mon2y/node.rs:221:12 [INFO] [stderr] | [INFO] [stderr] 41 | impl> Node { [INFO] [stderr] | --------------------------------------------------------------------------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 221 | pub fn get_node_by_path( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/mon2y/tree.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 21 | / impl, ActionType: Action> [INFO] [stderr] 22 | | Tree [INFO] [stderr] 23 | | where [INFO] [stderr] 24 | | StateType: State, [INFO] [stderr] 25 | | ActionType: Action, [INFO] [stderr] | |______________________________________________- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn new(root: Node) -> Tree { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `mon2y_rs` (bin "bench") generated 36 warnings (22 duplicates) [INFO] [stderr] warning: `mon2y_rs` (bin "mon2y_rs") generated 35 warnings (35 duplicates) [INFO] [stderr] warning: `mon2y_rs` (bin "arena") generated 36 warnings (36 duplicates) [INFO] [stderr] warning: unnecessary parentheses around method argument [INFO] [stderr] --> src/games/cs.rs:357:45 [INFO] [stderr] | [INFO] [stderr] 357 | let actual_weight = actions.get((&action)).unwrap_or(&0); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 357 - let actual_weight = actions.get((&action)).unwrap_or(&0); [INFO] [stderr] 357 + let actual_weight = actions.get(&action).unwrap_or(&0); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `while` condition [INFO] [stderr] --> src/games/ebr.rs:571:31 [INFO] [stderr] | [INFO] [stderr] 571 | while (passed.contains(&next_actor)) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 571 - while (passed.contains(&next_actor)) { [INFO] [stderr] 571 + while passed.contains(&next_actor) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stderr] --> src/games/ebr.rs:535:26 [INFO] [stderr] | [INFO] [stderr] 535 | ChooseAuctionCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stderr] --> src/games/ebr.rs:536:20 [INFO] [stderr] | [INFO] [stderr] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stderr] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stderr] --> src/games/ebr.rs:537:24 [INFO] [stderr] | [INFO] [stderr] 537 | ChooseBuildCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stderr] --> src/games/ebr.rs:540:23 [INFO] [stderr] | [INFO] [stderr] 540 | ChooseBondCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stderr] --> src/games/ebr.rs:541:15 [INFO] [stderr] | [INFO] [stderr] 541 | IssueBond(Company, Bond), [INFO] [stderr] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::0` [INFO] [stderr] --> src/games/ebr.rs:542:11 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::1` [INFO] [stderr] --> src/games/ebr.rs:542:20 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stderr] --> src/games/ebr.rs:543:32 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stderr] --> src/games/ebr.rs:543:41 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Nothing` and `NextTurnGameAction` are never constructed [INFO] [stderr] --> src/test/injectable_game.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 34 | pub enum InjectableGameAction { [INFO] [stderr] | -------------------- variants in this enum [INFO] [stderr] ... [INFO] [stderr] 39 | Nothing, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 40 | NextTurnGameAction(Vec), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `InjectableGameAction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseAuctionCompany::0` [INFO] [stderr] --> src/games/ebr.rs:535:26 [INFO] [stderr] | [INFO] [stderr] 535 | ChooseAuctionCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseAuctionCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::StartPrivateAt::0` [INFO] [stderr] --> src/games/ebr.rs:536:20 [INFO] [stderr] | [INFO] [stderr] 536 | StartPrivateAt(Company, Coordinate), [INFO] [stderr] | ^^^^^^^ field `EBRAction::StartPrivateAt::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBuildCompany::0` [INFO] [stderr] --> src/games/ebr.rs:537:24 [INFO] [stderr] | [INFO] [stderr] 537 | ChooseBuildCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBuildCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseBondCompany::0` [INFO] [stderr] --> src/games/ebr.rs:540:23 [INFO] [stderr] | [INFO] [stderr] 540 | ChooseBondCompany(Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseBondCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::IssueBond::0` [INFO] [stderr] --> src/games/ebr.rs:541:15 [INFO] [stderr] | [INFO] [stderr] 541 | IssueBond(Company, Bond), [INFO] [stderr] | ^^^^^^^ field `EBRAction::IssueBond::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::0` [INFO] [stderr] --> src/games/ebr.rs:542:11 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::Merge::1` [INFO] [stderr] --> src/games/ebr.rs:542:20 [INFO] [stderr] | [INFO] [stderr] 542 | Merge(Company, Company), [INFO] [stderr] | ^^^^^^^ field `EBRAction::Merge::1` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::0` [INFO] [stderr] --> src/games/ebr.rs:543:32 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::0` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ebr::Company` is more private than the item `EBRAction::ChooseTakeResourcesCompany::1` [INFO] [stderr] --> src/games/ebr.rs:543:41 [INFO] [stderr] | [INFO] [stderr] 543 | ChooseTakeResourcesCompany(Company, Option), [INFO] [stderr] | ^^^^^^^^^^^^^^^ field `EBRAction::ChooseTakeResourcesCompany::1` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ebr::Company` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/games/ebr.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | enum Company { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mon2y_rs` (bin "arena" test) generated 35 warnings (23 duplicates) (run `cargo fix --bin "arena" --tests` to apply 2 suggestions) [INFO] [stderr] warning: `mon2y_rs` (lib test) generated 33 warnings (24 duplicates) [INFO] [stderr] warning: `mon2y_rs` (bin "bench" test) generated 35 warnings (35 duplicates) [INFO] [stderr] warning: `mon2y_rs` (bin "mon2y_rs" test) generated 34 warnings (34 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mon2y_rs-f0107e35f2e855ea) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test games::ebr::test::test_connected_to ... ok [INFO] [stdout] test games::ebr::test::test_div_ceil ... ok [INFO] [stdout] test games::ebr::test::test_get_neighbors ... ok [INFO] [stdout] test games::ebr::test::test_reachable_narrow_track ... ok [INFO] [stdout] test mon2y::node::tests::test_best_pick_weighted_visits ... ok [INFO] [stdout] test mon2y::tree::tests::test_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::node::tests::test_create_expanded_node ... ok [INFO] [stdout] test games::cs::tests::test_dice_actions_weights ... ok [INFO] [stdout] test mon2y::tree::tests::test_selection_multiple_expanded ... ok [INFO] [stderr] Running unittests src/arena.rs (/opt/rustwide/target/debug/deps/arena-2b47e59a19e8f0fc) [INFO] [stdout] test mon2y::tree::tests::test_propagate_one_player ... 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] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test games::ebr::test::test_connected_to ... ok [INFO] [stdout] test games::ebr::test::test_div_ceil ... ok [INFO] [stdout] test games::ebr::test::test_get_neighbors ... ok [INFO] [stdout] test games::ebr::test::test_reachable_narrow_track ... ok [INFO] [stdout] test mon2y::node::tests::test_create_expanded_node ... ok [INFO] [stdout] test mon2y::tree::tests::test_play_out ... ok [INFO] [stdout] test mon2y::tree::tests::test_expansion_basic ... ok [INFO] [stdout] test mon2y::tree::tests::test_propagate_one_player ... ok [INFO] [stdout] test mon2y::tree::tests::test_propagate_two_players ... ok [INFO] [stdout] test mon2y::tree::tests::test_selection_basic ... ok [INFO] [stdout] test mon2y::node::tests::test_best_pick_weighted_visits ... ok [INFO] [stdout] test mon2y::tree::tests::test_selection_multiple_expanded ... 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/bench.rs (/opt/rustwide/target/debug/deps/bench-d41fd323d7317f97) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test games::ebr::test::test_div_ceil ... ok [INFO] [stdout] test games::ebr::test::test_connected_to ... ok [INFO] [stdout] test games::ebr::test::test_get_neighbors ... ok [INFO] [stdout] test mon2y::node::tests::test_create_expanded_node ... ok [INFO] [stdout] test mon2y::tree::tests::test_expansion_basic ... 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_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_propagate_one_player ... ok [INFO] [stdout] test games::cs::tests::test_dice_actions_weights ... ok [INFO] [stdout] test mon2y::tree::tests::test_play_out ... 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_connected_to ... 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 games::ebr::test::test_reachable_narrow_track ... ok [INFO] [stdout] test mon2y::node::tests::test_create_expanded_node ... ok [INFO] [stdout] test mon2y::node::tests::test_best_pick_weighted_visits ... ok [INFO] [stdout] test mon2y::tree::tests::test_expansion_basic ... ok [INFO] [stdout] test mon2y::tree::tests::test_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_selection_multiple_expanded ... ok [INFO] [stdout] test mon2y::tree::tests::test_propagate_one_player ... ok [INFO] [stdout] test mon2y::tree::tests::test_weighted_game_action_play_out ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running tests/c4_sensible_turns.rs (/opt/rustwide/target/debug/deps/c4_sensible_turns-c001c529b681a237) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test test_c4_one_action_gets_win ... ok [INFO] [stdout] test test_c4_one_action_blocks_win ... FAILED [INFO] [stdout] test test_c4_play_out_repeated ... ok [INFO] [stdout] test test_c4_plays_through_without_crash ... ok [INFO] [stdout] test test_c4_plays_through_multiple_threads_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(4) [INFO] [stdout] right: Drop(0) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x61d27d7c13f2 - std::backtrace_rs::backtrace::libunwind::trace::hf010e1dbae51cb72 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x61d27d7c13f2 - std::backtrace_rs::backtrace::trace_unsynchronized::hfea1b1ce70c8ef04 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x61d27d7c13f2 - std::sys::backtrace::_print_fmt::h2997a50d2484a6a6 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x61d27d7c13f2 - ::fmt::h7fb80f6afbe41a33 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x61d27d7e9ad3 - core::fmt::rt::Argument::fmt::hd3a68c3e7e846625 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/core/src/fmt/rt.rs:185:76 [INFO] [stdout] 5: 0x61d27d7e9ad3 - core::fmt::write::h000527be0eea6fe8 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/core/src/fmt/mod.rs:1449:21 [INFO] [stdout] 6: 0x61d27d7be183 - std::io::Write::write_fmt::h5402e677befea770 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/io/mod.rs:1890:15 [INFO] [stdout] 7: 0x61d27d7c1242 - std::sys::backtrace::BacktraceLock::print::hffad87dde00cbe3e [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 8: 0x61d27d7c289a - std::panicking::default_hook::{{closure}}::ha46397973bec1239 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/panicking.rs:298:22 [INFO] [stdout] 9: 0x61d27d7c2689 - std::panicking::default_hook::h706de72a1550eed4 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/panicking.rs:322:9 [INFO] [stdout] 10: 0x61d27d751a37 - as core::ops::function::Fn>::call::hde091e5c6e92bb68 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/alloc/src/boxed.rs:1984:9 [INFO] [stdout] 11: 0x61d27d751a37 - test::test_main::{{closure}}::h769424ff54c41197 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/test/src/lib.rs:136:21 [INFO] [stdout] 12: 0x61d27d7c3383 - as core::ops::function::Fn>::call::hbd7480c9dddf3315 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/alloc/src/boxed.rs:1984:9 [INFO] [stdout] 13: 0x61d27d7c3383 - std::panicking::rust_panic_with_hook::h6666776865bd21f5 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/panicking.rs:839:13 [INFO] [stdout] 14: 0x61d27d7c303a - std::panicking::begin_panic_handler::{{closure}}::hb8595612365d24db [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/panicking.rs:704:13 [INFO] [stdout] 15: 0x61d27d7c18e9 - std::sys::backtrace::__rust_end_short_backtrace::h7037f177c7ae4ed3 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 16: 0x61d27d7c2ccd - rust_begin_unwind [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/panicking.rs:695:5 [INFO] [stdout] 17: 0x61d27d7e78b0 - core::panicking::panic_fmt::hd26142fa9828e2a3 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/core/src/panicking.rs:75:14 [INFO] [stdout] 18: 0x61d27d7e7c47 - core::panicking::assert_failed_inner::h3773d684712d3877 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/core/src/panicking.rs:425:17 [INFO] [stdout] 19: 0x61d27d455383 - core::panicking::assert_failed::h36b7d0b17accd025 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/core/src/panicking.rs:380:5 [INFO] [stdout] 20: 0x61d27d46430f - c4_sensible_turns::test_c4_one_action_blocks_win::h8929bda64c1ae891 [INFO] [stdout] at /opt/rustwide/workdir/tests/c4_sensible_turns.rs:30:5 [INFO] [stdout] 21: 0x61d27d463f67 - c4_sensible_turns::test_c4_one_action_blocks_win::{{closure}}::ha5322b6f7af0bba5 [INFO] [stdout] at /opt/rustwide/workdir/tests/c4_sensible_turns.rs:10:35 [INFO] [stdout] 22: 0x61d27d46a8f6 - core::ops::function::FnOnce::call_once::h066ecd42086d8091 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 23: 0x61d27d75733b - core::ops::function::FnOnce::call_once::h537cb3ba0681a85d [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x61d27d75733b - test::__rust_begin_short_backtrace::ha34590b284b8a909 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/test/src/lib.rs:638:18 [INFO] [stdout] 25: 0x61d27d7563d5 - test::run_test_in_process::{{closure}}::h7e5cb0195a5ea6a6 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/test/src/lib.rs:661:60 [INFO] [stdout] 26: 0x61d27d7563d5 - as core::ops::function::FnOnce<()>>::call_once::h4fd7826f39023efe [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 27: 0x61d27d7563d5 - std::panicking::try::do_call::h840562177f324507 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/panicking.rs:587:40 [INFO] [stdout] 28: 0x61d27d7563d5 - std::panicking::try::h2360ed2f8f8e7bd8 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/panicking.rs:550:19 [INFO] [stdout] 29: 0x61d27d7563d5 - std::panic::catch_unwind::h98cd8da2f8eb8f7b [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/panic.rs:359:14 [INFO] [stdout] 30: 0x61d27d7563d5 - test::run_test_in_process::hcd6b1143eaf140ef [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/test/src/lib.rs:661:27 [INFO] [stdout] 31: 0x61d27d7563d5 - test::run_test::{{closure}}::h12da0337272887dc [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/test/src/lib.rs:582:43 [INFO] [stdout] 32: 0x61d27d7193c4 - test::run_test::{{closure}}::h11d537cad5364bdc [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/test/src/lib.rs:612:41 [INFO] [stdout] 33: 0x61d27d7193c4 - std::sys::backtrace::__rust_begin_short_backtrace::h5f533949825eb644 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 34: 0x61d27d71ce2a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hf8cffede9b676267 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 35: 0x61d27d71ce2a - as core::ops::function::FnOnce<()>>::call_once::h3160424131f9b05b [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 36: 0x61d27d71ce2a - std::panicking::try::do_call::h4821f856f783960c [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/panicking.rs:587:40 [INFO] [stdout] 37: 0x61d27d71ce2a - std::panicking::try::hd6726363e8162e27 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/panicking.rs:550:19 [INFO] [stdout] 38: 0x61d27d71ce2a - std::panic::catch_unwind::hb75a27d7bd2912cb [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/panic.rs:359:14 [INFO] [stdout] 39: 0x61d27d71ce2a - std::thread::Builder::spawn_unchecked_::{{closure}}::h36d5666a81748b85 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 40: 0x61d27d71ce2a - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha3d6556f1deabcaf [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 41: 0x61d27d7c69ab - as core::ops::function::FnOnce>::call_once::h454485597884df01 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/alloc/src/boxed.rs:1970:9 [INFO] [stdout] 42: 0x61d27d7c69ab - as core::ops::function::FnOnce>::call_once::h421b8b5dc09cf3b4 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/alloc/src/boxed.rs:1970:9 [INFO] [stdout] 43: 0x61d27d7c69ab - std::sys::pal::unix::thread::Thread::new::thread_start::ha1530b93ff336c49 [INFO] [stdout] at /rustc/ebf0cf75d368c035f4c7e7246d203bd469ee4a51/library/std/src/sys/pal/unix/thread.rs:109:17 [INFO] [stdout] 44: 0x7d4741072ac3 - [INFO] [stdout] 45: 0x7d4741103a04 - 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 11.68s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test c4_sensible_turns` [INFO] running `Command { std: "docker" "inspect" "41f25bc368d9566b9c54e790dcb979fa60df182844e61849f50aac93d803e319", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41f25bc368d9566b9c54e790dcb979fa60df182844e61849f50aac93d803e319", kill_on_drop: false }` [INFO] [stdout] 41f25bc368d9566b9c54e790dcb979fa60df182844e61849f50aac93d803e319