[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] testing hamidr/rmafia against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhamidr%2Frmafia" "/workspace/builds/worker-23/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-23/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hamidr/rmafia on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-23/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: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-23/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-23/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9c2cab18734d0b2dea8acf04d4b8fa479531c1de03b35c62dd51adcfa315871b [INFO] running `Command { std: "docker" "start" "-a" "9c2cab18734d0b2dea8acf04d4b8fa479531c1de03b35c62dd51adcfa315871b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9c2cab18734d0b2dea8acf04d4b8fa479531c1de03b35c62dd51adcfa315871b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c2cab18734d0b2dea8acf04d4b8fa479531c1de03b35c62dd51adcfa315871b", kill_on_drop: false }` [INFO] [stdout] 9c2cab18734d0b2dea8acf04d4b8fa479531c1de03b35c62dd51adcfa315871b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-23/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-23/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6eab95c823323ff5e76b23ef3579c52550e1c1b80be749e9141079ba6323fa19 [INFO] running `Command { std: "docker" "start" "-a" "6eab95c823323ff5e76b23ef3579c52550e1c1b80be749e9141079ba6323fa19", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling serde_json v1.0.66 [INFO] [stderr] Compiling cache-padded v1.1.1 [INFO] [stderr] Compiling bimap v0.6.1 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling ringbuf 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.4 [INFO] [stderr] Compiling nanoid v0.4.0 [INFO] [stderr] Compiling btreemultimap v0.1.0 [INFO] [stderr] Compiling rmafia v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BTreeMap`, `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`, `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: 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] = 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] [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: `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: `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: enum is never used: `ShootingResult` [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: associated function is never used: `night` [INFO] [stdout] --> src/scenario.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn night(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `active` [INFO] [stdout] --> src/scenario.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn active(&self) -> [Power; 9] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `passive` [INFO] [stdout] --> src/scenario.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn passive(&self) -> [Power; 4] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `YouHaveGun` [INFO] [stdout] --> src/scenario.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | YouHaveGun, [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] --> src/scenario.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `YouAreBoss` [INFO] [stdout] --> src/scenario.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | YouAreBoss, [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] --> src/scenario.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `IsMafia` [INFO] [stdout] --> src/scenario.rs:55:5 [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] --> src/scenario.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Has` [INFO] [stdout] --> src/scenario.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | Has(Power) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Out` [INFO] [stdout] --> src/scenario.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | Out(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] --> src/scenario.rs:122:10 [INFO] [stdout] | [INFO] [stdout] 122 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FakeGun` [INFO] [stdout] --> src/scenario.rs:126:5 [INFO] [stdout] | [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] --> src/scenario.rs:122:10 [INFO] [stdout] | [INFO] [stdout] 122 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `One` [INFO] [stdout] --> src/room.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | One(PlayerId), [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] --> src/room.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Two` [INFO] [stdout] --> src/room.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | Two(PlayerId, PlayerId), [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] --> src/room.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Wicked` [INFO] [stdout] --> src/room.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | Wicked(PlayerId, Power) [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] --> src/room.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `RawSpell` [INFO] [stdout] --> src/room.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | pub type RawSpell = (PlayerId, Power, NightAct); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `OracleRef` [INFO] [stdout] --> src/waiting.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub type OracleRef = TwoWayRing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `text_to` [INFO] [stdout] --> src/in_memory_room.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | fn text_to(&mut self, id: &PlayerId, msg: HolyMessage) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_all` [INFO] [stdout] --> src/in_memory_room.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn read_all(&mut self) -> BTreeMap> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/elections/ballot.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn new(total: usize) -> Ballots { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `enquery` [INFO] [stdout] --> src/games/classic/game.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | enquery: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `enquery` [INFO] [stdout] --> src/games/classic/game.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn enquery(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `make_ballot` [INFO] [stdout] --> src/games/classic/game.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn make_ballot(&self) -> Ballots { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `first_id_by_power` [INFO] [stdout] --> src/games/classic/game.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | fn first_id_by_power(&mut self, power: &Power) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pass_night_kill` [INFO] [stdout] --> src/games/classic/game.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn pass_night_kill(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kick_out` [INFO] [stdout] --> src/games/classic/game.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn kick_out(&mut self, id: &PlayerId) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_it` [INFO] [stdout] --> src/games/classic/game.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | fn is_it(&self, state: CityState) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `on_shooting` [INFO] [stdout] --> src/games/classic/game.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn on_shooting(&mut self, res: ShootingResult) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `darkness` [INFO] [stdout] --> src/games/classic/game.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | fn darkness(&mut self, spells: &impl Spells) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sunrise` [INFO] [stdout] --> src/games/classic/game.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | fn sunrise(&mut self, n: &impl News) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sunset` [INFO] [stdout] --> src/games/classic/game.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | fn sunset(&mut self, d: &impl DeathBallot) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `defend` [INFO] [stdout] --> src/games/classic/game.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn defend(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `DayEvent` [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 is never used: `KillingStatus` [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 is never constructed: `Play` [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: associated function is never used: `new` [INFO] [stdout] --> src/games/classic/play.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_paralyzed_unguarded_spell` [INFO] [stdout] --> src/games/classic/play.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn remove_paralyzed_unguarded_spell(room: &impl Room, spells: &mut impl Spells) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `did_hit_mafia` [INFO] [stdout] --> src/games/classic/play.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn did_hit_mafia(room: &impl Room, commando: PlayerId, target: PlayerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_wicked_or_boss_killing` [INFO] [stdout] --> src/games/classic/play.rs:57:8 [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] [INFO] [stdout] warning: associated function is never used: `who_wicked_kills` [INFO] [stdout] --> src/games/classic/play.rs:77:8 [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] [INFO] [stdout] warning: associated function is never used: `get_player_ids` [INFO] [stdout] --> src/games/classic/play.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | fn get_player_ids(spells: &impl Spells, power: &Power) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `heals` [INFO] [stdout] --> src/games/classic/play.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | fn heals(spells: &impl Spells, total: usize, ) -> BTreeSet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_killed_one` [INFO] [stdout] --> src/games/classic/play.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | fn remove_killed_one(room: &mut impl Room, spells: &impl Spells) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `detective` [INFO] [stdout] --> src/games/classic/play.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | fn detective(room: &impl Room, msgs: &mut Messages, spells: &impl Spells) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gunman` [INFO] [stdout] --> src/games/classic/play.rs:138:8 [INFO] [stdout] | [INFO] [stdout] 138 | fn gunman(&mut self, spells: &impl Spells) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `apply_night` [INFO] [stdout] --> src/games/classic/play.rs:163:12 [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] [INFO] [stdout] warning: associated function is never used: `shoot` [INFO] [stdout] --> src/games/classic/play.rs:180:12 [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 is never used: `new` [INFO] [stdout] --> src/games/classic/play.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | fn new(msgs: Messages, removed: BTreeSet) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 58 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.06s [INFO] running `Command { std: "docker" "inspect" "6eab95c823323ff5e76b23ef3579c52550e1c1b80be749e9141079ba6323fa19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6eab95c823323ff5e76b23ef3579c52550e1c1b80be749e9141079ba6323fa19", kill_on_drop: false }` [INFO] [stdout] 6eab95c823323ff5e76b23ef3579c52550e1c1b80be749e9141079ba6323fa19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-23/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-23/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8b49c755912c9e44e6fdfc3fc180e02621df15afc7be10b487427b86b1d0a62a [INFO] running `Command { std: "docker" "start" "-a" "8b49c755912c9e44e6fdfc3fc180e02621df15afc7be10b487427b86b1d0a62a", kill_on_drop: false }` [INFO] [stderr] Compiling rmafia v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BTreeMap`, `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`, `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: 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] = 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] [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: `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: `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: enum is never used: `ShootingResult` [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: associated function is never used: `night` [INFO] [stdout] --> src/scenario.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn night(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `active` [INFO] [stdout] --> src/scenario.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn active(&self) -> [Power; 9] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `passive` [INFO] [stdout] --> src/scenario.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn passive(&self) -> [Power; 4] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `YouHaveGun` [INFO] [stdout] --> src/scenario.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | YouHaveGun, [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] --> src/scenario.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `YouAreBoss` [INFO] [stdout] --> src/scenario.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | YouAreBoss, [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] --> src/scenario.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `IsMafia` [INFO] [stdout] --> src/scenario.rs:55:5 [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] --> src/scenario.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Has` [INFO] [stdout] --> src/scenario.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | Has(Power) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Out` [INFO] [stdout] --> src/scenario.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | Out(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] --> src/scenario.rs:122:10 [INFO] [stdout] | [INFO] [stdout] 122 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FakeGun` [INFO] [stdout] --> src/scenario.rs:126:5 [INFO] [stdout] | [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] --> src/scenario.rs:122:10 [INFO] [stdout] | [INFO] [stdout] 122 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `One` [INFO] [stdout] --> src/room.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | One(PlayerId), [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] --> src/room.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Two` [INFO] [stdout] --> src/room.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | Two(PlayerId, PlayerId), [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] --> src/room.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Wicked` [INFO] [stdout] --> src/room.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | Wicked(PlayerId, Power) [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] --> src/room.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `RawSpell` [INFO] [stdout] --> src/room.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | pub type RawSpell = (PlayerId, Power, NightAct); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `OracleRef` [INFO] [stdout] --> src/waiting.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub type OracleRef = TwoWayRing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `text_to` [INFO] [stdout] --> src/in_memory_room.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | fn text_to(&mut self, id: &PlayerId, msg: HolyMessage) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_all` [INFO] [stdout] --> src/in_memory_room.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn read_all(&mut self) -> BTreeMap> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/elections/ballot.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn new(total: usize) -> Ballots { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `enquery` [INFO] [stdout] --> src/games/classic/game.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | enquery: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `enquery` [INFO] [stdout] --> src/games/classic/game.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn enquery(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `make_ballot` [INFO] [stdout] --> src/games/classic/game.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn make_ballot(&self) -> Ballots { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `first_id_by_power` [INFO] [stdout] --> src/games/classic/game.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | fn first_id_by_power(&mut self, power: &Power) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pass_night_kill` [INFO] [stdout] --> src/games/classic/game.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn pass_night_kill(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kick_out` [INFO] [stdout] --> src/games/classic/game.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn kick_out(&mut self, id: &PlayerId) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_it` [INFO] [stdout] --> src/games/classic/game.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | fn is_it(&self, state: CityState) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `on_shooting` [INFO] [stdout] --> src/games/classic/game.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn on_shooting(&mut self, res: ShootingResult) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `darkness` [INFO] [stdout] --> src/games/classic/game.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | fn darkness(&mut self, spells: &impl Spells) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sunrise` [INFO] [stdout] --> src/games/classic/game.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | fn sunrise(&mut self, n: &impl News) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sunset` [INFO] [stdout] --> src/games/classic/game.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | fn sunset(&mut self, d: &impl DeathBallot) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `defend` [INFO] [stdout] --> src/games/classic/game.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn defend(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `DayEvent` [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 is never used: `KillingStatus` [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 is never constructed: `Play` [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: associated function is never used: `new` [INFO] [stdout] --> src/games/classic/play.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_paralyzed_unguarded_spell` [INFO] [stdout] --> src/games/classic/play.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn remove_paralyzed_unguarded_spell(room: &impl Room, spells: &mut impl Spells) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `did_hit_mafia` [INFO] [stdout] --> src/games/classic/play.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn did_hit_mafia(room: &impl Room, commando: PlayerId, target: PlayerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_wicked_or_boss_killing` [INFO] [stdout] --> src/games/classic/play.rs:57:8 [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] [INFO] [stdout] warning: associated function is never used: `who_wicked_kills` [INFO] [stdout] --> src/games/classic/play.rs:77:8 [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] [INFO] [stdout] warning: associated function is never used: `get_player_ids` [INFO] [stdout] --> src/games/classic/play.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | fn get_player_ids(spells: &impl Spells, power: &Power) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `heals` [INFO] [stdout] --> src/games/classic/play.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | fn heals(spells: &impl Spells, total: usize, ) -> BTreeSet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_killed_one` [INFO] [stdout] --> src/games/classic/play.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | fn remove_killed_one(room: &mut impl Room, spells: &impl Spells) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `detective` [INFO] [stdout] --> src/games/classic/play.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | fn detective(room: &impl Room, msgs: &mut Messages, spells: &impl Spells) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gunman` [INFO] [stdout] --> src/games/classic/play.rs:138:8 [INFO] [stdout] | [INFO] [stdout] 138 | fn gunman(&mut self, spells: &impl Spells) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `apply_night` [INFO] [stdout] --> src/games/classic/play.rs:163:12 [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] [INFO] [stdout] warning: associated function is never used: `shoot` [INFO] [stdout] --> src/games/classic/play.rs:180:12 [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 is never used: `new` [INFO] [stdout] --> src/games/classic/play.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | fn new(msgs: Messages, removed: BTreeSet) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 58 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.57s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/rmafia-9f4f9d6096a168ab) [INFO] running `Command { std: "docker" "inspect" "8b49c755912c9e44e6fdfc3fc180e02621df15afc7be10b487427b86b1d0a62a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b49c755912c9e44e6fdfc3fc180e02621df15afc7be10b487427b86b1d0a62a", kill_on_drop: false }` [INFO] [stdout] 8b49c755912c9e44e6fdfc3fc180e02621df15afc7be10b487427b86b1d0a62a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-23/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-23/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e8e417d03bde516eb4df29ba9b199b6367ff6461a9e70c1f4fb94f9adf5c0554 [INFO] running `Command { std: "docker" "start" "-a" "e8e417d03bde516eb4df29ba9b199b6367ff6461a9e70c1f4fb94f9adf5c0554", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `BTreeMap`, `vec` [INFO] [stderr] --> src/scenario.rs:1:25 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{collections::{BTreeMap, BTreeSet}, vec}; [INFO] [stderr] | ^^^^^^^^ ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `collections::BTreeSet`, `vec` [INFO] [stderr] --> src/room.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{collections::BTreeSet, vec}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `BTreeMap` [INFO] [stderr] --> src/games/classic/play.rs:7:34 [INFO] [stderr] | [INFO] [stderr] 7 | use std::collections::{BTreeSet, BTreeMap}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Power` [INFO] [stderr] --> src/waiting.rs:26:67 [INFO] [stderr] | [INFO] [stderr] 26 | use crate::{oracle::{Oracle, TwoWayRing}, scenario::{HolyMessage, Power, Pray}}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::rc::Rc` [INFO] [stderr] --> src/oracle.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::rc::Rc; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable call [INFO] [stderr] --> src/main.rs:30:29 [INFO] [stderr] | [INFO] [stderr] 30 | ps.get_mut(&1).unwrap().tell(todo!()); [INFO] [stderr] | ^^^^ ------- any code following this expression is unreachable [INFO] [stderr] | | [INFO] [stderr] | unreachable call [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `state` [INFO] [stderr] --> src/main.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 33 | let state = game.state(); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `spells` [INFO] [stderr] --> src/games/classic/game.rs:119:28 [INFO] [stderr] | [INFO] [stderr] 119 | fn darkness(&mut self, spells: &impl Spells) -> Result { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spells` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `gf` [INFO] [stderr] --> src/games/classic/play.rs:64:14 [INFO] [stderr] | [INFO] [stderr] 64 | (gf, Power::NightKill, NightAct::One(player)) if room.has(player, &Power::ShotOnKill) => { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_gf` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p1` [INFO] [stderr] --> src/games/classic/play.rs:154:52 [INFO] [stderr] | [INFO] [stderr] 154 | (Power::HandFakeGun, NightAct::Two(p1, p2)) => { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `gunman` [INFO] [stderr] --> src/games/classic/play.rs:184:31 [INFO] [stderr] | [INFO] [stderr] 184 | DayEvent::RealGun(gunman) => Some(ShootingResult::Killed(on)), [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_gunman` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `room` [INFO] [stderr] --> src/games/classic/play.rs:180:29 [INFO] [stderr] | [INFO] [stderr] 180 | pub fn shoot(&mut self, room: &mut impl Room, shooter: &PlayerId, on: PlayerId) -> ShootingResult { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stderr] [INFO] [stderr] warning: enum is never used: `ShootingResult` [INFO] [stderr] --> src/scenario.rs:9:10 [INFO] [stderr] | [INFO] [stderr] 9 | pub enum ShootingResult { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `night` [INFO] [stderr] --> src/scenario.rs:35:12 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn night(&self) -> bool { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `active` [INFO] [stderr] --> src/scenario.rs:39:12 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn active(&self) -> [Power; 9] { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `passive` [INFO] [stderr] --> src/scenario.rs:44:12 [INFO] [stderr] | [INFO] [stderr] 44 | pub fn passive(&self) -> [Power; 4] { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `YouHaveGun` [INFO] [stderr] --> src/scenario.rs:53:5 [INFO] [stderr] | [INFO] [stderr] 53 | YouHaveGun, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `HolyMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/scenario.rs:50:10 [INFO] [stderr] | [INFO] [stderr] 50 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `YouAreBoss` [INFO] [stderr] --> src/scenario.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | YouAreBoss, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `HolyMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/scenario.rs:50:10 [INFO] [stderr] | [INFO] [stderr] 50 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `IsMafia` [INFO] [stderr] --> src/scenario.rs:55:5 [INFO] [stderr] | [INFO] [stderr] 55 | IsMafia(PlayerId, bool), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `HolyMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/scenario.rs:50:10 [INFO] [stderr] | [INFO] [stderr] 50 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Has` [INFO] [stderr] --> src/scenario.rs:59:5 [INFO] [stderr] | [INFO] [stderr] 59 | Has(Power) [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Out` [INFO] [stderr] --> src/scenario.rs:124:5 [INFO] [stderr] | [INFO] [stderr] 124 | Out(PlayerId), [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Declaration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/scenario.rs:122:10 [INFO] [stderr] | [INFO] [stderr] 122 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `FakeGun` [INFO] [stderr] --> src/scenario.rs:126:5 [INFO] [stderr] | [INFO] [stderr] 126 | FakeGun(PlayerId) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Declaration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/scenario.rs:122:10 [INFO] [stderr] | [INFO] [stderr] 122 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `One` [INFO] [stderr] --> src/room.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | One(PlayerId), [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `NightAct` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/room.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Two` [INFO] [stderr] --> src/room.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | Two(PlayerId, PlayerId), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `NightAct` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/room.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Wicked` [INFO] [stderr] --> src/room.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | Wicked(PlayerId, Power) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `NightAct` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/room.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: type alias is never used: `RawSpell` [INFO] [stderr] --> src/room.rs:25:1 [INFO] [stderr] | [INFO] [stderr] 25 | pub type RawSpell = (PlayerId, Power, NightAct); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias is never used: `OracleRef` [INFO] [stderr] --> src/waiting.rs:28:1 [INFO] [stderr] | [INFO] [stderr] 28 | pub type OracleRef = TwoWayRing; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `text_to` [INFO] [stderr] --> src/in_memory_room.rs:48:8 [INFO] [stderr] | [INFO] [stderr] 48 | fn text_to(&mut self, id: &PlayerId, msg: HolyMessage) -> bool { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `read_all` [INFO] [stderr] --> src/in_memory_room.rs:54:12 [INFO] [stderr] | [INFO] [stderr] 54 | pub fn read_all(&mut self) -> BTreeMap> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/elections/ballot.rs:71:12 [INFO] [stderr] | [INFO] [stderr] 71 | pub fn new(total: usize) -> Ballots { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `enquery` [INFO] [stderr] --> src/games/classic/game.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | enquery: u8, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `enquery` [INFO] [stderr] --> src/games/classic/game.rs:58:8 [INFO] [stderr] | [INFO] [stderr] 58 | fn enquery(&mut self) -> Option { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `make_ballot` [INFO] [stderr] --> src/games/classic/game.rs:67:8 [INFO] [stderr] | [INFO] [stderr] 67 | fn make_ballot(&self) -> Ballots { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `first_id_by_power` [INFO] [stderr] --> src/games/classic/game.rs:71:8 [INFO] [stderr] | [INFO] [stderr] 71 | fn first_id_by_power(&mut self, power: &Power) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pass_night_kill` [INFO] [stderr] --> src/games/classic/game.rs:75:8 [INFO] [stderr] | [INFO] [stderr] 75 | fn pass_night_kill(&mut self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `kick_out` [INFO] [stderr] --> src/games/classic/game.rs:86:8 [INFO] [stderr] | [INFO] [stderr] 86 | fn kick_out(&mut self, id: &PlayerId) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_it` [INFO] [stderr] --> src/games/classic/game.rs:99:8 [INFO] [stderr] | [INFO] [stderr] 99 | fn is_it(&self, state: CityState) -> bool { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `on_shooting` [INFO] [stderr] --> src/games/classic/game.rs:107:8 [INFO] [stderr] | [INFO] [stderr] 107 | fn on_shooting(&mut self, res: ShootingResult) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `darkness` [INFO] [stderr] --> src/games/classic/game.rs:119:8 [INFO] [stderr] | [INFO] [stderr] 119 | fn darkness(&mut self, spells: &impl Spells) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `sunrise` [INFO] [stderr] --> src/games/classic/game.rs:126:8 [INFO] [stderr] | [INFO] [stderr] 126 | fn sunrise(&mut self, n: &impl News) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `sunset` [INFO] [stderr] --> src/games/classic/game.rs:132:8 [INFO] [stderr] | [INFO] [stderr] 132 | fn sunset(&mut self, d: &impl DeathBallot) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `defend` [INFO] [stderr] --> src/games/classic/game.rs:140:8 [INFO] [stderr] | [INFO] [stderr] 140 | fn defend(&self) -> Option { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum is never used: `DayEvent` [INFO] [stderr] --> src/games/classic/play.rs:9:10 [INFO] [stderr] | [INFO] [stderr] 9 | pub enum DayEvent { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum is never used: `KillingStatus` [INFO] [stderr] --> src/games/classic/play.rs:14:10 [INFO] [stderr] | [INFO] [stderr] 14 | pub enum KillingStatus { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Play` [INFO] [stderr] --> src/games/classic/play.rs:21:12 [INFO] [stderr] | [INFO] [stderr] 21 | pub struct Play { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/games/classic/play.rs:26:12 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `remove_paralyzed_unguarded_spell` [INFO] [stderr] --> src/games/classic/play.rs:30:8 [INFO] [stderr] | [INFO] [stderr] 30 | fn remove_paralyzed_unguarded_spell(room: &impl Room, spells: &mut impl Spells) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `did_hit_mafia` [INFO] [stderr] --> src/games/classic/play.rs:45:8 [INFO] [stderr] | [INFO] [stderr] 45 | fn did_hit_mafia(room: &impl Room, commando: PlayerId, target: PlayerId) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_wicked_or_boss_killing` [INFO] [stderr] --> src/games/classic/play.rs:57:8 [INFO] [stderr] | [INFO] [stderr] 57 | fn is_wicked_or_boss_killing(room: &mut impl Room, spells: &impl Spells) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `who_wicked_kills` [INFO] [stderr] --> src/games/classic/play.rs:77:8 [INFO] [stderr] | [INFO] [stderr] 77 | fn who_wicked_kills(room:& impl Room, wicked: PlayerId, killee: PlayerId, power: &Power) -> KillingStatus { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_player_ids` [INFO] [stderr] --> src/games/classic/play.rs:85:8 [INFO] [stderr] | [INFO] [stderr] 85 | fn get_player_ids(spells: &impl Spells, power: &Power) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `heals` [INFO] [stderr] --> src/games/classic/play.rs:98:8 [INFO] [stderr] | [INFO] [stderr] 98 | fn heals(spells: &impl Spells, total: usize, ) -> BTreeSet { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `remove_killed_one` [INFO] [stderr] --> src/games/classic/play.rs:104:8 [INFO] [stderr] | [INFO] [stderr] 104 | fn remove_killed_one(room: &mut impl Room, spells: &impl Spells) -> Result, Error> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `detective` [INFO] [stderr] --> src/games/classic/play.rs:127:8 [INFO] [stderr] | [INFO] [stderr] 127 | fn detective(room: &impl Room, msgs: &mut Messages, spells: &impl Spells) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `gunman` [INFO] [stderr] --> src/games/classic/play.rs:138:8 [INFO] [stderr] | [INFO] [stderr] 138 | fn gunman(&mut self, spells: &impl Spells) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `apply_night` [INFO] [stderr] --> src/games/classic/play.rs:163:12 [INFO] [stderr] | [INFO] [stderr] 163 | pub fn apply_night(&mut self, room: &mut impl Room, mut spells: impl Spells) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `shoot` [INFO] [stderr] --> src/games/classic/play.rs:180:12 [INFO] [stderr] | [INFO] [stderr] 180 | pub fn shoot(&mut self, room: &mut impl Room, shooter: &PlayerId, on: PlayerId) -> ShootingResult { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/games/classic/play.rs:196:8 [INFO] [stderr] | [INFO] [stderr] 196 | fn new(msgs: Messages, removed: BTreeSet) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `rmafia` (bin "rmafia" test) generated 58 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rmafia-9f4f9d6096a168ab) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e8e417d03bde516eb4df29ba9b199b6367ff6461a9e70c1f4fb94f9adf5c0554", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8e417d03bde516eb4df29ba9b199b6367ff6461a9e70c1f4fb94f9adf5c0554", kill_on_drop: false }` [INFO] [stdout] e8e417d03bde516eb4df29ba9b199b6367ff6461a9e70c1f4fb94f9adf5c0554