[INFO] cloning repository https://github.com/hamidr/rmafia [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hamidr/rmafia" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhamidr%2Frmafia", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhamidr%2Frmafia'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 256fb73ec817fa7bf82481ea9d10c4c308e043c4 [INFO] checking hamidr/rmafia against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhamidr%2Frmafia" "/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/hamidr/rmafia on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hamidr/rmafia [INFO] finished tweaking git repo https://github.com/hamidr/rmafia [INFO] tweaked toml for git repo https://github.com/hamidr/rmafia written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/hamidr/rmafia 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ringbuf v0.2.6 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0d8a3ace799de406d2dc98dd20025f259f0ca0f284df0f2486a7965c692b38fe [INFO] running `Command { std: "docker" "start" "-a" "0d8a3ace799de406d2dc98dd20025f259f0ca0f284df0f2486a7965c692b38fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0d8a3ace799de406d2dc98dd20025f259f0ca0f284df0f2486a7965c692b38fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d8a3ace799de406d2dc98dd20025f259f0ca0f284df0f2486a7965c692b38fe", kill_on_drop: false }` [INFO] [stdout] 0d8a3ace799de406d2dc98dd20025f259f0ca0f284df0f2486a7965c692b38fe [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c114b5224fa198b22950cdd944a7b21b213a29bf33d6132fb6d7453f98ad21a [INFO] running `Command { std: "docker" "start" "-a" "7c114b5224fa198b22950cdd944a7b21b213a29bf33d6132fb6d7453f98ad21a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling serde_json v1.0.66 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking cache-padded v1.1.1 [INFO] [stderr] Checking bimap v0.6.1 [INFO] [stderr] Checking ringbuf v0.2.6 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking nanoid v0.4.0 [INFO] [stderr] Checking btreemultimap v0.1.0 [INFO] [stderr] Checking rmafia v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BTreeMap` and `vec` [INFO] [stdout] --> src/scenario.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{BTreeMap, BTreeSet}, vec}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::BTreeSet` and `vec` [INFO] [stdout] --> src/room.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::BTreeSet, vec}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/classic/play.rs:7:34 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{BTreeSet, BTreeMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Power` [INFO] [stdout] --> src/waiting.rs:26:67 [INFO] [stdout] | [INFO] [stdout] 26 | use crate::{oracle::{Oracle, TwoWayRing}, scenario::{HolyMessage, Power, Pray}}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/oracle.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BTreeMap` and `vec` [INFO] [stdout] --> src/scenario.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{BTreeMap, BTreeSet}, vec}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::BTreeSet` and `vec` [INFO] [stdout] --> src/room.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::BTreeSet, vec}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/classic/play.rs:7:34 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{BTreeSet, BTreeMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Power` [INFO] [stdout] --> src/waiting.rs:26:67 [INFO] [stdout] | [INFO] [stdout] 26 | use crate::{oracle::{Oracle, TwoWayRing}, scenario::{HolyMessage, Power, Pray}}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/oracle.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/main.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 30 | ps.get_mut(&1).unwrap().tell(todo!()); [INFO] [stdout] | ^^^^ ------- any code following this expression is unreachable [INFO] [stdout] | | [INFO] [stdout] | unreachable call [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/main.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 30 | ps.get_mut(&1).unwrap().tell(todo!()); [INFO] [stdout] | ^^^^ ------- any code following this expression is unreachable [INFO] [stdout] | | [INFO] [stdout] | unreachable call [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spells` [INFO] [stdout] --> src/games/classic/game.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | fn darkness(&mut self, spells: &impl Spells) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spells` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spells` [INFO] [stdout] --> src/games/classic/game.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | fn darkness(&mut self, spells: &impl Spells) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spells` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gf` [INFO] [stdout] --> src/games/classic/play.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | (gf, Power::NightKill, NightAct::One(player)) if room.has(player, &Power::ShotOnKill) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_gf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gf` [INFO] [stdout] --> src/games/classic/play.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | (gf, Power::NightKill, NightAct::One(player)) if room.has(player, &Power::ShotOnKill) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_gf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p1` [INFO] [stdout] --> src/games/classic/play.rs:154:52 [INFO] [stdout] | [INFO] [stdout] 154 | (Power::HandFakeGun, NightAct::Two(p1, p2)) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/games/classic/play.rs:180:29 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn shoot(&mut self, room: &mut impl Room, shooter: &PlayerId, on: PlayerId) -> ShootingResult { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gunman` [INFO] [stdout] --> src/games/classic/play.rs:184:31 [INFO] [stdout] | [INFO] [stdout] 184 | DayEvent::RealGun(gunman) => Some(ShootingResult::Killed(on)), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_gunman` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p1` [INFO] [stdout] --> src/games/classic/play.rs:154:52 [INFO] [stdout] | [INFO] [stdout] 154 | (Power::HandFakeGun, NightAct::Two(p1, p2)) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/games/classic/play.rs:180:29 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn shoot(&mut self, room: &mut impl Room, shooter: &PlayerId, on: PlayerId) -> ShootingResult { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gunman` [INFO] [stdout] --> src/games/classic/play.rs:184:31 [INFO] [stdout] | [INFO] [stdout] 184 | DayEvent::RealGun(gunman) => Some(ShootingResult::Killed(on)), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_gunman` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let state = game.state(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let state = game.state(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ShootingResult` is never used [INFO] [stdout] --> src/scenario.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ShootingResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `night`, `active`, and `passive` are never used [INFO] [stdout] --> src/scenario.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Power { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 35 | pub fn night(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn active(&self) -> [Power; 9] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn passive(&self) -> [Power; 4] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/scenario.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 52 | Assigned(Vec), [INFO] [stdout] | -------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `HolyMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 52 | Assigned(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `YouHaveGun`, `YouAreBoss`, and `IsMafia` are never constructed [INFO] [stdout] --> src/scenario.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum HolyMessage { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 52 | Assigned(Vec), [INFO] [stdout] 53 | YouHaveGun, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 54 | YouAreBoss, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 55 | IsMafia(PlayerId, bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HolyMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Has` is never constructed [INFO] [stdout] --> src/scenario.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub enum Meta { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 59 | Has(Power) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query` and `meta` are never read [INFO] [stdout] --> src/scenario.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct Pray { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 63 | pub action: Power, [INFO] [stdout] 64 | pub query: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 65 | pub meta: Option [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `messages` and `kicked_out` are never used [INFO] [stdout] --> src/scenario.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub trait News { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] 89 | fn messages(&self) -> &Messages; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 90 | fn kicked_out(&self) -> &BTreeSet; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `list`, `hang`, and `dead` are never used [INFO] [stdout] --> src/scenario.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub trait DeathBallot { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] 94 | fn list(&self) -> &BTreeSet; [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | fn hang(&mut self, from: PlayerId, on: PlayerId) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] 96 | fn dead(&self) -> Option; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `nominate` and `result` are never used [INFO] [stdout] --> src/scenario.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub trait Defendence { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 102 | fn nominate(&mut self, from: PlayerId, on: PlayerId) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 103 | fn result(&self) -> Option; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/scenario.rs:125:18 [INFO] [stdout] | [INFO] [stdout] 125 | StateChanged(CityState), [INFO] [stdout] | ------------ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Declaration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 125 | StateChanged(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Out` and `FakeGun` are never constructed [INFO] [stdout] --> src/scenario.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 123 | pub enum Declaration { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 124 | Out(PlayerId), [INFO] [stdout] | ^^^ [INFO] [stdout] 125 | StateChanged(CityState), [INFO] [stdout] 126 | FakeGun(PlayerId) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Declaration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `day`, `next`, `events`, and `process` are never used [INFO] [stdout] --> src/scenario.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub trait Scenario { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 132 | fn state(&self) -> CityState; [INFO] [stdout] 133 | fn day(&self) -> Day; [INFO] [stdout] | ^^^ [INFO] [stdout] 134 | fn next(&mut self) -> CityState; [INFO] [stdout] | ^^^^ [INFO] [stdout] 135 | fn events(&self) -> &Vec<(Day, CityState, Declaration)>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 136 | [INFO] [stdout] 137 | fn process(&mut self); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has`, `drop_kinks`, `kinks`, `remove`, `messages`, and `by_power` are never used [INFO] [stdout] --> src/room.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Room { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] 6 | fn numbers(&self) -> Vec; [INFO] [stdout] 7 | fn has(&self, id: &PlayerId, power: &Power) -> bool; [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | fn drop_kinks(&mut self, id: &PlayerId, kinks: [Power; N]); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 9 | fn kinks(&self, id: &PlayerId) -> Vec; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn remove(&mut self, id: &PlayerId) -> Vec; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | fn messages(&mut self, id: &PlayerId) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | fn by_power(&self, power: &Power) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NightAct` is never used [INFO] [stdout] --> src/room.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum NightAct { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NightAct` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RawSpell` is never used [INFO] [stdout] --> src/room.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub type RawSpell = (PlayerId, Power, NightAct); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Spells` is never used [INFO] [stdout] --> src/room.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait Spells { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `enquery` is never read [INFO] [stdout] --> src/games/classic/game.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Classic { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | enquery: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/games/classic/game.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Classic { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | fn enquery(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn make_ballot(&self) -> Ballots { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn first_id_by_power(&mut self, power: &Power) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn pass_night_kill(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn kick_out(&mut self, id: &PlayerId) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn is_it(&self, state: CityState) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn on_shooting(&mut self, res: ShootingResult) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn darkness(&mut self, spells: &impl Spells) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn sunrise(&mut self, n: &impl News) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | fn sunset(&mut self, d: &impl DeathBallot) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn defend(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DayEvent` is never used [INFO] [stdout] --> src/games/classic/play.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum DayEvent { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `KillingStatus` is never used [INFO] [stdout] --> src/games/classic/play.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum KillingStatus { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Play` is never constructed [INFO] [stdout] --> src/games/classic/play.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Play { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/games/classic/play.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Play { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 26 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn remove_paralyzed_unguarded_spell(room: &impl Room, spells: &mut impl Spells) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn did_hit_mafia(room: &impl Room, commando: PlayerId, target: PlayerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn is_wicked_or_boss_killing(room: &mut impl Room, spells: &impl Spells) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn who_wicked_kills(room:& impl Room, wicked: PlayerId, killee: PlayerId, power: &Power) -> KillingStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn get_player_ids(spells: &impl Spells, power: &Power) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn heals(spells: &impl Spells, total: usize, ) -> BTreeSet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn remove_killed_one(room: &mut impl Room, spells: &impl Spells) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | fn detective(room: &impl Room, msgs: &mut Messages, spells: &impl Spells) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn gunman(&mut self, spells: &impl Spells) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn apply_night(&mut self, room: &mut impl Room, mut spells: impl Spells) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn shoot(&mut self, room: &mut impl Room, shooter: &PlayerId, on: PlayerId) -> ShootingResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/games/classic/play.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 195 | impl NightResult { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 196 | fn new(msgs: Messages, removed: BTreeSet) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/elections/ballot.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl Ballots { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 71 | pub fn new(total: usize) -> Ballots { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `OracleRef` is never used [INFO] [stdout] --> src/waiting.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub type OracleRef = TwoWayRing; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opt_out` is never used [INFO] [stdout] --> src/waiting.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait WaitingRoom { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 35 | fn opt_out(&mut self, id: &PlayerId) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `text_to` and `read_all` are never used [INFO] [stdout] --> src/in_memory_room.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl InMemoryRoom { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | fn text_to(&mut self, id: &PlayerId, msg: HolyMessage) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn read_all(&mut self) -> BTreeMap> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ShootingResult` is never used [INFO] [stdout] --> src/scenario.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ShootingResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `night`, `active`, and `passive` are never used [INFO] [stdout] --> src/scenario.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Power { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 35 | pub fn night(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn active(&self) -> [Power; 9] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn passive(&self) -> [Power; 4] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/scenario.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 52 | Assigned(Vec), [INFO] [stdout] | -------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `HolyMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 52 | Assigned(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `YouHaveGun`, `YouAreBoss`, and `IsMafia` are never constructed [INFO] [stdout] --> src/scenario.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum HolyMessage { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 52 | Assigned(Vec), [INFO] [stdout] 53 | YouHaveGun, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 54 | YouAreBoss, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 55 | IsMafia(PlayerId, bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HolyMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Has` is never constructed [INFO] [stdout] --> src/scenario.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub enum Meta { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 59 | Has(Power) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query` and `meta` are never read [INFO] [stdout] --> src/scenario.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct Pray { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 63 | pub action: Power, [INFO] [stdout] 64 | pub query: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 65 | pub meta: Option [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `messages` and `kicked_out` are never used [INFO] [stdout] --> src/scenario.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub trait News { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] 89 | fn messages(&self) -> &Messages; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 90 | fn kicked_out(&self) -> &BTreeSet; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `list`, `hang`, and `dead` are never used [INFO] [stdout] --> src/scenario.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub trait DeathBallot { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] 94 | fn list(&self) -> &BTreeSet; [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | fn hang(&mut self, from: PlayerId, on: PlayerId) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] 96 | fn dead(&self) -> Option; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `nominate` and `result` are never used [INFO] [stdout] --> src/scenario.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub trait Defendence { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 102 | fn nominate(&mut self, from: PlayerId, on: PlayerId) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 103 | fn result(&self) -> Option; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/scenario.rs:125:18 [INFO] [stdout] | [INFO] [stdout] 125 | StateChanged(CityState), [INFO] [stdout] | ------------ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Declaration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 125 | StateChanged(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Out` and `FakeGun` are never constructed [INFO] [stdout] --> src/scenario.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 123 | pub enum Declaration { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 124 | Out(PlayerId), [INFO] [stdout] | ^^^ [INFO] [stdout] 125 | StateChanged(CityState), [INFO] [stdout] 126 | FakeGun(PlayerId) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Declaration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `day`, `next`, `events`, and `process` are never used [INFO] [stdout] --> src/scenario.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub trait Scenario { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 132 | fn state(&self) -> CityState; [INFO] [stdout] 133 | fn day(&self) -> Day; [INFO] [stdout] | ^^^ [INFO] [stdout] 134 | fn next(&mut self) -> CityState; [INFO] [stdout] | ^^^^ [INFO] [stdout] 135 | fn events(&self) -> &Vec<(Day, CityState, Declaration)>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 136 | [INFO] [stdout] 137 | fn process(&mut self); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has`, `drop_kinks`, `kinks`, `remove`, `messages`, and `by_power` are never used [INFO] [stdout] --> src/room.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Room { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] 6 | fn numbers(&self) -> Vec; [INFO] [stdout] 7 | fn has(&self, id: &PlayerId, power: &Power) -> bool; [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | fn drop_kinks(&mut self, id: &PlayerId, kinks: [Power; N]); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 9 | fn kinks(&self, id: &PlayerId) -> Vec; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn remove(&mut self, id: &PlayerId) -> Vec; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | fn messages(&mut self, id: &PlayerId) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | fn by_power(&self, power: &Power) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NightAct` is never used [INFO] [stdout] --> src/room.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum NightAct { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NightAct` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RawSpell` is never used [INFO] [stdout] --> src/room.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub type RawSpell = (PlayerId, Power, NightAct); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Spells` is never used [INFO] [stdout] --> src/room.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait Spells { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `enquery` is never read [INFO] [stdout] --> src/games/classic/game.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Classic { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | enquery: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/games/classic/game.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Classic { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | fn enquery(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn make_ballot(&self) -> Ballots { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn first_id_by_power(&mut self, power: &Power) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn pass_night_kill(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn kick_out(&mut self, id: &PlayerId) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn is_it(&self, state: CityState) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn on_shooting(&mut self, res: ShootingResult) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn darkness(&mut self, spells: &impl Spells) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn sunrise(&mut self, n: &impl News) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | fn sunset(&mut self, d: &impl DeathBallot) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn defend(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DayEvent` is never used [INFO] [stdout] --> src/games/classic/play.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum DayEvent { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `KillingStatus` is never used [INFO] [stdout] --> src/games/classic/play.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum KillingStatus { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Play` is never constructed [INFO] [stdout] --> src/games/classic/play.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Play { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/games/classic/play.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Play { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 26 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn remove_paralyzed_unguarded_spell(room: &impl Room, spells: &mut impl Spells) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn did_hit_mafia(room: &impl Room, commando: PlayerId, target: PlayerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn is_wicked_or_boss_killing(room: &mut impl Room, spells: &impl Spells) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn who_wicked_kills(room:& impl Room, wicked: PlayerId, killee: PlayerId, power: &Power) -> KillingStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn get_player_ids(spells: &impl Spells, power: &Power) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn heals(spells: &impl Spells, total: usize, ) -> BTreeSet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn remove_killed_one(room: &mut impl Room, spells: &impl Spells) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | fn detective(room: &impl Room, msgs: &mut Messages, spells: &impl Spells) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn gunman(&mut self, spells: &impl Spells) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn apply_night(&mut self, room: &mut impl Room, mut spells: impl Spells) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn shoot(&mut self, room: &mut impl Room, shooter: &PlayerId, on: PlayerId) -> ShootingResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/games/classic/play.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 195 | impl NightResult { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 196 | fn new(msgs: Messages, removed: BTreeSet) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/elections/ballot.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl Ballots { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 71 | pub fn new(total: usize) -> Ballots { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `OracleRef` is never used [INFO] [stdout] --> src/waiting.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub type OracleRef = TwoWayRing; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opt_out` is never used [INFO] [stdout] --> src/waiting.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait WaitingRoom { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 35 | fn opt_out(&mut self, id: &PlayerId) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `text_to` and `read_all` are never used [INFO] [stdout] --> src/in_memory_room.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl InMemoryRoom { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | fn text_to(&mut self, id: &PlayerId, msg: HolyMessage) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn read_all(&mut self) -> BTreeMap> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.17s [INFO] running `Command { std: "docker" "inspect" "7c114b5224fa198b22950cdd944a7b21b213a29bf33d6132fb6d7453f98ad21a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c114b5224fa198b22950cdd944a7b21b213a29bf33d6132fb6d7453f98ad21a", kill_on_drop: false }` [INFO] [stdout] 7c114b5224fa198b22950cdd944a7b21b213a29bf33d6132fb6d7453f98ad21a [INFO] checking hamidr/rmafia against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhamidr%2Frmafia" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hamidr/rmafia on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hamidr/rmafia [INFO] finished tweaking git repo https://github.com/hamidr/rmafia [INFO] tweaked toml for git repo https://github.com/hamidr/rmafia written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/hamidr/rmafia 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6f157e5d6ea7075319224fbc281681f71303d4e0758acf46d1404493a3f83036 [INFO] running `Command { std: "docker" "start" "-a" "6f157e5d6ea7075319224fbc281681f71303d4e0758acf46d1404493a3f83036", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6f157e5d6ea7075319224fbc281681f71303d4e0758acf46d1404493a3f83036", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f157e5d6ea7075319224fbc281681f71303d4e0758acf46d1404493a3f83036", kill_on_drop: false }` [INFO] [stdout] 6f157e5d6ea7075319224fbc281681f71303d4e0758acf46d1404493a3f83036 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 68b164f499ba054f10ecc4a08c2a69319642828fe9bcc511586c353e9d623333 [INFO] running `Command { std: "docker" "start" "-a" "68b164f499ba054f10ecc4a08c2a69319642828fe9bcc511586c353e9d623333", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling serde_json v1.0.66 [INFO] [stderr] Checking cache-padded v1.1.1 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking bimap v0.6.1 [INFO] [stderr] Checking ringbuf v0.2.6 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking nanoid v0.4.0 [INFO] [stderr] Checking btreemultimap v0.1.0 [INFO] [stderr] Checking rmafia v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BTreeMap` and `vec` [INFO] [stdout] --> src/scenario.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{BTreeMap, BTreeSet}, vec}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::BTreeSet` and `vec` [INFO] [stdout] --> src/room.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::BTreeSet, vec}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/classic/play.rs:7:34 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{BTreeSet, BTreeMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Power` [INFO] [stdout] --> src/waiting.rs:26:67 [INFO] [stdout] | [INFO] [stdout] 26 | use crate::{oracle::{Oracle, TwoWayRing}, scenario::{HolyMessage, Power, Pray}}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/oracle.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BTreeMap` and `vec` [INFO] [stdout] --> src/scenario.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{BTreeMap, BTreeSet}, vec}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::BTreeSet` and `vec` [INFO] [stdout] --> src/room.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::BTreeSet, vec}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/games/classic/play.rs:7:34 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{BTreeSet, BTreeMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Power` [INFO] [stdout] --> src/waiting.rs:26:67 [INFO] [stdout] | [INFO] [stdout] 26 | use crate::{oracle::{Oracle, TwoWayRing}, scenario::{HolyMessage, Power, Pray}}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/oracle.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/main.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 30 | ps.get_mut(&1).unwrap().tell(todo!()); [INFO] [stdout] | ^^^^ ------- any code following this expression is unreachable [INFO] [stdout] | | [INFO] [stdout] | unreachable call [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/main.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 30 | ps.get_mut(&1).unwrap().tell(todo!()); [INFO] [stdout] | ^^^^ ------- any code following this expression is unreachable [INFO] [stdout] | | [INFO] [stdout] | unreachable call [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spells` [INFO] [stdout] --> src/games/classic/game.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | fn darkness(&mut self, spells: &impl Spells) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spells` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spells` [INFO] [stdout] --> src/games/classic/game.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | fn darkness(&mut self, spells: &impl Spells) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spells` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gf` [INFO] [stdout] --> src/games/classic/play.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | (gf, Power::NightKill, NightAct::One(player)) if room.has(player, &Power::ShotOnKill) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_gf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gf` [INFO] [stdout] --> src/games/classic/play.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | (gf, Power::NightKill, NightAct::One(player)) if room.has(player, &Power::ShotOnKill) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_gf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p1` [INFO] [stdout] --> src/games/classic/play.rs:154:52 [INFO] [stdout] | [INFO] [stdout] 154 | (Power::HandFakeGun, NightAct::Two(p1, p2)) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/games/classic/play.rs:180:29 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn shoot(&mut self, room: &mut impl Room, shooter: &PlayerId, on: PlayerId) -> ShootingResult { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gunman` [INFO] [stdout] --> src/games/classic/play.rs:184:31 [INFO] [stdout] | [INFO] [stdout] 184 | DayEvent::RealGun(gunman) => Some(ShootingResult::Killed(on)), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_gunman` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p1` [INFO] [stdout] --> src/games/classic/play.rs:154:52 [INFO] [stdout] | [INFO] [stdout] 154 | (Power::HandFakeGun, NightAct::Two(p1, p2)) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/games/classic/play.rs:180:29 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn shoot(&mut self, room: &mut impl Room, shooter: &PlayerId, on: PlayerId) -> ShootingResult { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gunman` [INFO] [stdout] --> src/games/classic/play.rs:184:31 [INFO] [stdout] | [INFO] [stdout] 184 | DayEvent::RealGun(gunman) => Some(ShootingResult::Killed(on)), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_gunman` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let state = game.state(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let state = game.state(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ShootingResult` is never used [INFO] [stdout] --> src/scenario.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ShootingResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `night`, `active`, and `passive` are never used [INFO] [stdout] --> src/scenario.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Power { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 35 | pub fn night(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn active(&self) -> [Power; 9] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn passive(&self) -> [Power; 4] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/scenario.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 52 | Assigned(Vec), [INFO] [stdout] | -------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `HolyMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 52 | Assigned(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `YouHaveGun`, `YouAreBoss`, and `IsMafia` are never constructed [INFO] [stdout] --> src/scenario.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum HolyMessage { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 52 | Assigned(Vec), [INFO] [stdout] 53 | YouHaveGun, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 54 | YouAreBoss, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 55 | IsMafia(PlayerId, bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HolyMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Has` is never constructed [INFO] [stdout] --> src/scenario.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub enum Meta { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 59 | Has(Power) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query` and `meta` are never read [INFO] [stdout] --> src/scenario.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct Pray { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 63 | pub action: Power, [INFO] [stdout] 64 | pub query: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 65 | pub meta: Option [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `messages` and `kicked_out` are never used [INFO] [stdout] --> src/scenario.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub trait News { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] 89 | fn messages(&self) -> &Messages; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 90 | fn kicked_out(&self) -> &BTreeSet; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `list`, `hang`, and `dead` are never used [INFO] [stdout] --> src/scenario.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub trait DeathBallot { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] 94 | fn list(&self) -> &BTreeSet; [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | fn hang(&mut self, from: PlayerId, on: PlayerId) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] 96 | fn dead(&self) -> Option; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `nominate` and `result` are never used [INFO] [stdout] --> src/scenario.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub trait Defendence { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 102 | fn nominate(&mut self, from: PlayerId, on: PlayerId) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 103 | fn result(&self) -> Option; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/scenario.rs:125:18 [INFO] [stdout] | [INFO] [stdout] 125 | StateChanged(CityState), [INFO] [stdout] | ------------ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Declaration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 125 | StateChanged(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Out` and `FakeGun` are never constructed [INFO] [stdout] --> src/scenario.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 123 | pub enum Declaration { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 124 | Out(PlayerId), [INFO] [stdout] | ^^^ [INFO] [stdout] 125 | StateChanged(CityState), [INFO] [stdout] 126 | FakeGun(PlayerId) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Declaration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `day`, `next`, `events`, and `process` are never used [INFO] [stdout] --> src/scenario.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub trait Scenario { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 132 | fn state(&self) -> CityState; [INFO] [stdout] 133 | fn day(&self) -> Day; [INFO] [stdout] | ^^^ [INFO] [stdout] 134 | fn next(&mut self) -> CityState; [INFO] [stdout] | ^^^^ [INFO] [stdout] 135 | fn events(&self) -> &Vec<(Day, CityState, Declaration)>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 136 | [INFO] [stdout] 137 | fn process(&mut self); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has`, `drop_kinks`, `kinks`, `remove`, `messages`, and `by_power` are never used [INFO] [stdout] --> src/room.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Room { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] 6 | fn numbers(&self) -> Vec; [INFO] [stdout] 7 | fn has(&self, id: &PlayerId, power: &Power) -> bool; [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | fn drop_kinks(&mut self, id: &PlayerId, kinks: [Power; N]); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 9 | fn kinks(&self, id: &PlayerId) -> Vec; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn remove(&mut self, id: &PlayerId) -> Vec; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | fn messages(&mut self, id: &PlayerId) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | fn by_power(&self, power: &Power) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NightAct` is never used [INFO] [stdout] --> src/room.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum NightAct { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NightAct` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RawSpell` is never used [INFO] [stdout] --> src/room.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub type RawSpell = (PlayerId, Power, NightAct); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Spells` is never used [INFO] [stdout] --> src/room.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait Spells { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `enquery` is never read [INFO] [stdout] --> src/games/classic/game.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Classic { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | enquery: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/games/classic/game.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Classic { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | fn enquery(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn make_ballot(&self) -> Ballots { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn first_id_by_power(&mut self, power: &Power) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn pass_night_kill(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn kick_out(&mut self, id: &PlayerId) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn is_it(&self, state: CityState) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn on_shooting(&mut self, res: ShootingResult) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn darkness(&mut self, spells: &impl Spells) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn sunrise(&mut self, n: &impl News) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | fn sunset(&mut self, d: &impl DeathBallot) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn defend(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DayEvent` is never used [INFO] [stdout] --> src/games/classic/play.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum DayEvent { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `KillingStatus` is never used [INFO] [stdout] --> src/games/classic/play.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum KillingStatus { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Play` is never constructed [INFO] [stdout] --> src/games/classic/play.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Play { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/games/classic/play.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Play { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 26 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn remove_paralyzed_unguarded_spell(room: &impl Room, spells: &mut impl Spells) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn did_hit_mafia(room: &impl Room, commando: PlayerId, target: PlayerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn is_wicked_or_boss_killing(room: &mut impl Room, spells: &impl Spells) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn who_wicked_kills(room:& impl Room, wicked: PlayerId, killee: PlayerId, power: &Power) -> KillingStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn get_player_ids(spells: &impl Spells, power: &Power) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn heals(spells: &impl Spells, total: usize, ) -> BTreeSet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn remove_killed_one(room: &mut impl Room, spells: &impl Spells) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | fn detective(room: &impl Room, msgs: &mut Messages, spells: &impl Spells) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn gunman(&mut self, spells: &impl Spells) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn apply_night(&mut self, room: &mut impl Room, mut spells: impl Spells) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn shoot(&mut self, room: &mut impl Room, shooter: &PlayerId, on: PlayerId) -> ShootingResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/games/classic/play.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 195 | impl NightResult { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 196 | fn new(msgs: Messages, removed: BTreeSet) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/elections/ballot.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl Ballots { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 71 | pub fn new(total: usize) -> Ballots { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `OracleRef` is never used [INFO] [stdout] --> src/waiting.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub type OracleRef = TwoWayRing; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opt_out` is never used [INFO] [stdout] --> src/waiting.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait WaitingRoom { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 35 | fn opt_out(&mut self, id: &PlayerId) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `text_to` and `read_all` are never used [INFO] [stdout] --> src/in_memory_room.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl InMemoryRoom { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | fn text_to(&mut self, id: &PlayerId, msg: HolyMessage) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn read_all(&mut self) -> BTreeMap> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ShootingResult` is never used [INFO] [stdout] --> src/scenario.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ShootingResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `night`, `active`, and `passive` are never used [INFO] [stdout] --> src/scenario.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Power { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 35 | pub fn night(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn active(&self) -> [Power; 9] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn passive(&self) -> [Power; 4] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/waiting.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 79 | let (channel, oracle) = Oracle::create(10, 1); [INFO] [stdout] | ------- ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 80 | self.waiting.insert(id, channel); [INFO] [stdout] 81 | Some((id, oracle)) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/scenario.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 52 | Assigned(Vec), [INFO] [stdout] | -------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `HolyMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 52 | Assigned(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/oracle.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn tell(&mut self, s: S) -> bool { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | self.ask.push(s).is_ok() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `YouHaveGun`, `YouAreBoss`, and `IsMafia` are never constructed [INFO] [stdout] --> src/scenario.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum HolyMessage { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 52 | Assigned(Vec), [INFO] [stdout] 53 | YouHaveGun, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 54 | YouAreBoss, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 55 | IsMafia(PlayerId, bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HolyMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Has` is never constructed [INFO] [stdout] --> src/scenario.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub enum Meta { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 59 | Has(Power) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query` and `meta` are never read [INFO] [stdout] --> src/scenario.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct Pray { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 63 | pub action: Power, [INFO] [stdout] 64 | pub query: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 65 | pub meta: Option [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `messages` and `kicked_out` are never used [INFO] [stdout] --> src/scenario.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub trait News { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] 89 | fn messages(&self) -> &Messages; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 90 | fn kicked_out(&self) -> &BTreeSet; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `list`, `hang`, and `dead` are never used [INFO] [stdout] --> src/scenario.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub trait DeathBallot { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] 94 | fn list(&self) -> &BTreeSet; [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | fn hang(&mut self, from: PlayerId, on: PlayerId) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] 96 | fn dead(&self) -> Option; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `nominate` and `result` are never used [INFO] [stdout] --> src/scenario.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub trait Defendence { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 102 | fn nominate(&mut self, from: PlayerId, on: PlayerId) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 103 | fn result(&self) -> Option; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/scenario.rs:125:18 [INFO] [stdout] | [INFO] [stdout] 125 | StateChanged(CityState), [INFO] [stdout] | ------------ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Declaration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 125 | StateChanged(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Out` and `FakeGun` are never constructed [INFO] [stdout] --> src/scenario.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 123 | pub enum Declaration { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 124 | Out(PlayerId), [INFO] [stdout] | ^^^ [INFO] [stdout] 125 | StateChanged(CityState), [INFO] [stdout] 126 | FakeGun(PlayerId) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Declaration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `day`, `next`, `events`, and `process` are never used [INFO] [stdout] --> src/scenario.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub trait Scenario { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 132 | fn state(&self) -> CityState; [INFO] [stdout] 133 | fn day(&self) -> Day; [INFO] [stdout] | ^^^ [INFO] [stdout] 134 | fn next(&mut self) -> CityState; [INFO] [stdout] | ^^^^ [INFO] [stdout] 135 | fn events(&self) -> &Vec<(Day, CityState, Declaration)>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 136 | [INFO] [stdout] 137 | fn process(&mut self); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has`, `drop_kinks`, `kinks`, `remove`, `messages`, and `by_power` are never used [INFO] [stdout] --> src/room.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Room { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] 6 | fn numbers(&self) -> Vec; [INFO] [stdout] 7 | fn has(&self, id: &PlayerId, power: &Power) -> bool; [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | fn drop_kinks(&mut self, id: &PlayerId, kinks: [Power; N]); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 9 | fn kinks(&self, id: &PlayerId) -> Vec; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn remove(&mut self, id: &PlayerId) -> Vec; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | fn messages(&mut self, id: &PlayerId) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | fn by_power(&self, power: &Power) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NightAct` is never used [INFO] [stdout] --> src/room.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum NightAct { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NightAct` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RawSpell` is never used [INFO] [stdout] --> src/room.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub type RawSpell = (PlayerId, Power, NightAct); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Spells` is never used [INFO] [stdout] --> src/room.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait Spells { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `enquery` is never read [INFO] [stdout] --> src/games/classic/game.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Classic { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | enquery: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/games/classic/game.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Classic { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | fn enquery(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn make_ballot(&self) -> Ballots { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn first_id_by_power(&mut self, power: &Power) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn pass_night_kill(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn kick_out(&mut self, id: &PlayerId) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn is_it(&self, state: CityState) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn on_shooting(&mut self, res: ShootingResult) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn darkness(&mut self, spells: &impl Spells) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn sunrise(&mut self, n: &impl News) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | fn sunset(&mut self, d: &impl DeathBallot) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn defend(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DayEvent` is never used [INFO] [stdout] --> src/games/classic/play.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum DayEvent { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `KillingStatus` is never used [INFO] [stdout] --> src/games/classic/play.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum KillingStatus { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Play` is never constructed [INFO] [stdout] --> src/games/classic/play.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Play { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/games/classic/play.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Play { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 26 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn remove_paralyzed_unguarded_spell(room: &impl Room, spells: &mut impl Spells) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn did_hit_mafia(room: &impl Room, commando: PlayerId, target: PlayerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn is_wicked_or_boss_killing(room: &mut impl Room, spells: &impl Spells) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn who_wicked_kills(room:& impl Room, wicked: PlayerId, killee: PlayerId, power: &Power) -> KillingStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn get_player_ids(spells: &impl Spells, power: &Power) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn heals(spells: &impl Spells, total: usize, ) -> BTreeSet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn remove_killed_one(room: &mut impl Room, spells: &impl Spells) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | fn detective(room: &impl Room, msgs: &mut Messages, spells: &impl Spells) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn gunman(&mut self, spells: &impl Spells) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn apply_night(&mut self, room: &mut impl Room, mut spells: impl Spells) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn shoot(&mut self, room: &mut impl Room, shooter: &PlayerId, on: PlayerId) -> ShootingResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/games/classic/play.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 195 | impl NightResult { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 196 | fn new(msgs: Messages, removed: BTreeSet) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/elections/ballot.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl Ballots { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 71 | pub fn new(total: usize) -> Ballots { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `OracleRef` is never used [INFO] [stdout] --> src/waiting.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub type OracleRef = TwoWayRing; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opt_out` is never used [INFO] [stdout] --> src/waiting.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait WaitingRoom { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 35 | fn opt_out(&mut self, id: &PlayerId) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `text_to` and `read_all` are never used [INFO] [stdout] --> src/in_memory_room.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl InMemoryRoom { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | fn text_to(&mut self, id: &PlayerId, msg: HolyMessage) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn read_all(&mut self) -> BTreeMap> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/waiting.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 79 | let (channel, oracle) = Oracle::create(10, 1); [INFO] [stdout] | ------- ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 80 | self.waiting.insert(id, channel); [INFO] [stdout] 81 | Some((id, oracle)) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/oracle.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn tell(&mut self, s: S) -> bool { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | self.ask.push(s).is_ok() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rmafia` (bin "rmafia") due to 3 previous errors; 39 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rmafia` (bin "rmafia" test) due to 3 previous errors; 39 warnings emitted [INFO] running `Command { std: "docker" "inspect" "68b164f499ba054f10ecc4a08c2a69319642828fe9bcc511586c353e9d623333", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68b164f499ba054f10ecc4a08c2a69319642828fe9bcc511586c353e9d623333", kill_on_drop: false }` [INFO] [stdout] 68b164f499ba054f10ecc4a08c2a69319642828fe9bcc511586c353e9d623333