[INFO] cloning repository https://github.com/danielkeller/other-peoples-money [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/danielkeller/other-peoples-money" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanielkeller%2Fother-peoples-money", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanielkeller%2Fother-peoples-money'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 63c9b3efcc0477c2c592eaba7eb93711aadaa9dc [INFO] building danielkeller/other-peoples-money against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanielkeller%2Fother-peoples-money" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/danielkeller/other-peoples-money on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/danielkeller/other-peoples-money [INFO] finished tweaking git repo https://github.com/danielkeller/other-peoples-money [INFO] tweaked toml for git repo https://github.com/danielkeller/other-peoples-money written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/danielkeller/other-peoples-money already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5855f9c7268ca9e9965a1193903ffa25d29031c653ece79db03093040dc637b8 [INFO] running `Command { std: "docker" "start" "-a" "5855f9c7268ca9e9965a1193903ffa25d29031c653ece79db03093040dc637b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5855f9c7268ca9e9965a1193903ffa25d29031c653ece79db03093040dc637b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5855f9c7268ca9e9965a1193903ffa25d29031c653ece79db03093040dc637b8", kill_on_drop: false }` [INFO] [stdout] 5855f9c7268ca9e9965a1193903ffa25d29031c653ece79db03093040dc637b8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0596b38a5423f511ade0b8c38428e8ee79ea3a7e95d22702b0dcc4248e1f22be [INFO] running `Command { std: "docker" "start" "-a" "0596b38a5423f511ade0b8c38428e8ee79ea3a7e95d22702b0dcc4248e1f22be", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling opm-sim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variants `Loan` and `Bond` are never constructed [INFO] [stdout] --> src/asset.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Collateral { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 11 | Loan { customer: Customer }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | Bond { player: Player, count: u32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Collateral` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `payment` is never used [INFO] [stdout] --> src/asset.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Repo { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 22 | pub fn payment(&self) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Loan`, `Bond`, and `Repo` are never constructed [INFO] [stdout] --> src/asset.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum CbCollateral { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 29 | Loan { customer: Customer }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | Bond { player: Player, count: u32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | Repo { player: Player, collateral: Collateral }, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CbCollateral` 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: multiple fields are never read [INFO] [stdout] --> src/balance_sheet.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct BalanceSheet { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 9 | pub reserves: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | pub deposits: HashMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | pub loans: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | pub short_bonds: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 13 | pub bonds: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | pub short_repos: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 15 | pub repos: HashSet<(Player, Collateral)>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | pub cb_repos: HashMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BalanceSheet` 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: multiple associated items are never used [INFO] [stdout] --> src/balance_sheet.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl BalanceSheet { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn has_customer(&self, c: Customer) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn customer_payment_amount(&self, to: Customer) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn customer_payment(&mut self, to: Customer) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn customer_interest(&mut self, c: Customer, amount: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn interest_amount(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn pay_interest(assets: &mut [Self], from: Player) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BOARD_SIZE` is never used [INFO] [stdout] --> src/board.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const BOARD_SIZE: usize = 22; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRICES` is never used [INFO] [stdout] --> src/board.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const PRICES: [u32; BOARD_SIZE as usize + 1] = [ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_FUNDS` is never used [INFO] [stdout] --> src/board.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const MIN_FUNDS: [u32; BOARD_SIZE as usize + 1] = [ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOAN_PAYMENT` is never used [INFO] [stdout] --> src/board.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const LOAN_PAYMENT: [u32; BOARD_SIZE as usize + 1] = [ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOAN_TERM` is never used [INFO] [stdout] --> src/board.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub const LOAN_TERM: [u32; BOARD_SIZE as usize + 1] = [ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BOND_COUPON` is never used [INFO] [stdout] --> src/board.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | pub const BOND_COUPON: u32 = 5; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CB_REPO_RATE` is never used [INFO] [stdout] --> src/board.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | pub const CB_REPO_RATE: u32 = 2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TurnState` is never used [INFO] [stdout] --> src/game.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum TurnState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlayerState` is never constructed [INFO] [stdout] --> src/game.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct PlayerState { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameState` is never constructed [INFO] [stdout] --> src/game.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct GameState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dice_roll` is never used [INFO] [stdout] --> src/game.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn dice_roll() -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/game.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl GameState { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 43 | pub fn new(n_players: usize) -> GameState { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn required_reserves(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn exit_state(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn roll(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | fn customer_payment(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn interest_payment(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn current_player(&self) -> &PlayerState { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn current_player_mut(&mut self) -> &mut PlayerState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | fn current_player_assets(&self) -> &BalanceSheet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | fn current_player_assets_mut(&mut self) -> &mut BalanceSheet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn find_lender(&self, c: Customer) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.39s [INFO] running `Command { std: "docker" "inspect" "0596b38a5423f511ade0b8c38428e8ee79ea3a7e95d22702b0dcc4248e1f22be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0596b38a5423f511ade0b8c38428e8ee79ea3a7e95d22702b0dcc4248e1f22be", kill_on_drop: false }` [INFO] [stdout] 0596b38a5423f511ade0b8c38428e8ee79ea3a7e95d22702b0dcc4248e1f22be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc975621ceaf0a963c93c74efea205e57d532b30388efb8d4a39013cea17dc30 [INFO] running `Command { std: "docker" "start" "-a" "fc975621ceaf0a963c93c74efea205e57d532b30388efb8d4a39013cea17dc30", kill_on_drop: false }` [INFO] [stderr] Compiling opm-sim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variants `Loan` and `Bond` are never constructed [INFO] [stdout] --> src/asset.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Collateral { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 11 | Loan { customer: Customer }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | Bond { player: Player, count: u32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Collateral` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `payment` is never used [INFO] [stdout] --> src/asset.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Repo { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 22 | pub fn payment(&self) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Loan`, `Bond`, and `Repo` are never constructed [INFO] [stdout] --> src/asset.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum CbCollateral { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 29 | Loan { customer: Customer }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | Bond { player: Player, count: u32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | Repo { player: Player, collateral: Collateral }, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CbCollateral` 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: multiple fields are never read [INFO] [stdout] --> src/balance_sheet.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct BalanceSheet { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 9 | pub reserves: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | pub deposits: HashMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | pub loans: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | pub short_bonds: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 13 | pub bonds: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | pub short_repos: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 15 | pub repos: HashSet<(Player, Collateral)>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | pub cb_repos: HashMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BalanceSheet` 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: associated items `has_customer`, `customer_payment_amount`, `customer_payment`, `customer_interest`, `interest_amount`, and `pay_interest` are never used [INFO] [stdout] --> src/balance_sheet.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl BalanceSheet { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn has_customer(&self, c: Customer) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn customer_payment_amount(&self, to: Customer) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn customer_payment(&mut self, to: Customer) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn customer_interest(&mut self, c: Customer, amount: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn interest_amount(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn pay_interest(assets: &mut [Self], from: Player) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BOARD_SIZE` is never used [INFO] [stdout] --> src/board.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const BOARD_SIZE: usize = 22; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRICES` is never used [INFO] [stdout] --> src/board.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const PRICES: [u32; BOARD_SIZE as usize + 1] = [ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_FUNDS` is never used [INFO] [stdout] --> src/board.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const MIN_FUNDS: [u32; BOARD_SIZE as usize + 1] = [ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOAN_PAYMENT` is never used [INFO] [stdout] --> src/board.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const LOAN_PAYMENT: [u32; BOARD_SIZE as usize + 1] = [ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOAN_TERM` is never used [INFO] [stdout] --> src/board.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub const LOAN_TERM: [u32; BOARD_SIZE as usize + 1] = [ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BOND_COUPON` is never used [INFO] [stdout] --> src/board.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | pub const BOND_COUPON: u32 = 5; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CB_REPO_RATE` is never used [INFO] [stdout] --> src/board.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | pub const CB_REPO_RATE: u32 = 2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PassingGo` and `ToPay` are never constructed [INFO] [stdout] --> src/game.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | enum TurnState { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 12 | /// Need to pay interest [INFO] [stdout] 13 | PassingGo, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 14 | /// Need to make customer payment [INFO] [stdout] 15 | ToPay, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TurnState` 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: field `points` is never read [INFO] [stdout] --> src/game.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct PlayerState { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 25 | position: usize, [INFO] [stdout] 26 | points: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlayerState` 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: fields `assets`, `turn`, and `state` are never read [INFO] [stdout] --> src/game.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct GameState { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 31 | players: Box<[PlayerState]>, [INFO] [stdout] 32 | assets: Box<[BalanceSheet]>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 33 | turn: Player, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | state: TurnState, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameState` 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: multiple methods are never used [INFO] [stdout] --> src/game.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl GameState { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn required_reserves(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn exit_state(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn roll(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | fn customer_payment(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn interest_payment(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn current_player(&self) -> &PlayerState { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn current_player_mut(&mut self) -> &mut PlayerState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | fn current_player_assets(&self) -> &BalanceSheet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | fn current_player_assets_mut(&mut self) -> &mut BalanceSheet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn find_lender(&self, c: Customer) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] running `Command { std: "docker" "inspect" "fc975621ceaf0a963c93c74efea205e57d532b30388efb8d4a39013cea17dc30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc975621ceaf0a963c93c74efea205e57d532b30388efb8d4a39013cea17dc30", kill_on_drop: false }` [INFO] [stdout] fc975621ceaf0a963c93c74efea205e57d532b30388efb8d4a39013cea17dc30