[INFO] cloning repository https://github.com/ElchananHaas/rustmtg-webserver [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ElchananHaas/rustmtg-webserver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FElchananHaas%2Frustmtg-webserver", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FElchananHaas%2Frustmtg-webserver'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b5bf01d69284d97438f30130ce26e377396b356e [INFO] building ElchananHaas/rustmtg-webserver against try#615edd3ad1cf6871c977dc900317cb6c2070fd6b for pr-97334 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FElchananHaas%2Frustmtg-webserver" "/workspace/builds/worker-36/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-36/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ElchananHaas/rustmtg-webserver on toolchain 615edd3ad1cf6871c977dc900317cb6c2070fd6b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ElchananHaas/rustmtg-webserver [INFO] finished tweaking git repo https://github.com/ElchananHaas/rustmtg-webserver [INFO] tweaked toml for git repo https://github.com/ElchananHaas/rustmtg-webserver written to /workspace/builds/worker-36/source/Cargo.toml [INFO] crate git repo https://github.com/ElchananHaas/rustmtg-webserver already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "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-36/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-36/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 901ea52afd66f890baa698a60a37a4c1036f53c29789782d4c68a5b7aaa5692a [INFO] running `Command { std: "docker" "start" "-a" "901ea52afd66f890baa698a60a37a4c1036f53c29789782d4c68a5b7aaa5692a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "901ea52afd66f890baa698a60a37a4c1036f53c29789782d4c68a5b7aaa5692a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "901ea52afd66f890baa698a60a37a4c1036f53c29789782d4c68a5b7aaa5692a", kill_on_drop: false }` [INFO] [stdout] 901ea52afd66f890baa698a60a37a4c1036f53c29789782d4c68a5b7aaa5692a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-36/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-36/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" "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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c8769a0f2df2a3527772f541140edfe86dd1db4e8bf53ce08f0af575c562f91 [INFO] running `Command { std: "docker" "start" "-a" "1c8769a0f2df2a3527772f541140edfe86dd1db4e8bf53ce08f0af575c562f91", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.90 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling parking_lot_core v0.9.2 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling anyhow v1.0.56 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling count_tts v0.2.0 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling tracing-core v0.1.23 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling tracing v0.1.32 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling mio v0.8.2 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling sha-1 v0.10.0 [INFO] [stderr] Compiling headers v0.3.7 [INFO] [stderr] Compiling multipart v0.18.0 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling strum_macros v0.23.1 [INFO] [stderr] Compiling async-recursion v1.0.0 [INFO] [stderr] Compiling variant_count v1.1.0 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling tungstenite v0.14.0 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-stream v0.1.8 [INFO] [stderr] Compiling h2 v0.3.12 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling tokio-tungstenite v0.15.0 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling hyper v0.14.18 [INFO] [stderr] Compiling warp v0.3.2 [INFO] [stderr] Compiling mtg_webserver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `game::Game`, `mana_cost_string`, `player::Player` [INFO] [stdout] --> src/ability_db.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | game::Game, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | mana::{mana_cost_string, ManaCostSymbol}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | player::Player, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::Game` [INFO] [stdout] --> src/card_entities.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | game::Game, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/card_entities.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `card_types::Subtype` [INFO] [stdout] --> src/card_entities.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | card_types::Subtype, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mana::Mana` [INFO] [stdout] --> src/carddb.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::mana::Mana; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::ParseIntError` [INFO] [stdout] --> src/carddb.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::num::ParseIntError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/game.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ability::{self, Ability}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/game.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::player::{self, AskReason, Player, PlayerCon}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Serialize` [INFO] [stdout] --> src/game/actions.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ability::Ability`, `player::Player` [INFO] [stdout] --> src/game/actions.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | ability::Ability, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | player::Player, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/mana.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::ser::SerializeMap` [INFO] [stdout] --> src/mana.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::ser::SerializeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CardId`, `ManaId`, `ent_maps::EntMap`, `game::Game` [INFO] [stdout] --> src/mana.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ent_maps::EntMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | entities::{CardId, ManaId}, [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] 9 | game::Game, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ent_maps::EntMap` [INFO] [stdout] --> src/player.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ent_maps::EntMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mana::Mana` [INFO] [stdout] --> src/player.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::mana::Mana; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashSet` [INFO] [stdout] --> src/spellabil.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashSet, num::NonZeroU32, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/game.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 214 | panic!("restoring is a bug for now!"); [INFO] [stdout] | ------------------------------------- any code following this expression is unreachable [INFO] [stdout] 215 | let mut b = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/spellabil.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 41 | / match keyword { [INFO] [stdout] 42 | | _ => todo!(), [INFO] [stdout] 43 | | }; [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 44 | res [INFO] [stdout] | ^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SerializeMap` [INFO] [stdout] --> src/card_types.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::ser::{Serialize, SerializeMap, SerializeSeq, Serializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/game/actions.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | _ => todo!(), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/game.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | } else if let Some(player) = self.extra_turns.pop_front() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_spot` [INFO] [stdout] --> src/game.rs:164:21 [INFO] [stdout] | [INFO] [stdout] 164 | let new_spot = (order_spot + 1) % self.turn_order.len(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_spot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/game.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let res = self.handle_event(Event::Draw { player }).await; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/game.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | let res = self [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `oldent` [INFO] [stdout] --> src/game.rs:381:45 [INFO] [stdout] | [INFO] [stdout] 381 | if let EventResult::MoveZones { oldent, newent, dest }=event [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `oldent: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack_obj` [INFO] [stdout] --> src/game.rs:501:9 [INFO] [stdout] | [INFO] [stdout] 501 | stack_obj: CardId, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stack_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/game.rs:553:62 [INFO] [stdout] | [INFO] [stdout] 553 | async fn resolve_clause(&mut self, effect: ClauseEffect, id: CardId, controller: PlayerId) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cost` [INFO] [stdout] --> src/game.rs:572:17 [INFO] [stdout] | [INFO] [stdout] 572 | for cost in &card.costs { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_ent` [INFO] [stdout] --> src/game.rs:618:22 [INFO] [stdout] | [INFO] [stdout] 618 | let (new_id, new_ent) = self.cards.insert(abil); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_ent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/game.rs:663:9 [INFO] [stdout] | [INFO] [stdout] 663 | player: &Player, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/game.rs:677:9 [INFO] [stdout] | [INFO] [stdout] 677 | player: &Player, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mana` [INFO] [stdout] --> src/game.rs:715:32 [INFO] [stdout] | [INFO] [stdout] 715 | Cost::Mana(mana) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mana` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attackers` [INFO] [stdout] --> src/game.rs:773:35 [INFO] [stdout] | [INFO] [stdout] 773 | pub fn attackers_legal(&self, attackers: &Vec, targets: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attackers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/game.rs:773:60 [INFO] [stdout] | [INFO] [stdout] 773 | pub fn attackers_legal(&self, attackers: &Vec, targets: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_targets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockers` [INFO] [stdout] --> src/game.rs:776:32 [INFO] [stdout] | [INFO] [stdout] 776 | pub fn blocks_legal(&self, blockers: &Vec, blocked: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blocked` [INFO] [stdout] --> src/game.rs:776:56 [INFO] [stdout] | [INFO] [stdout] 776 | pub fn blocks_legal(&self, blockers: &Vec, blocked: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blocked` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/game/handle_event.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | reason, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `reason: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/game/handle_event.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | Event::PlayLand { player, land } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `player: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/game/handle_event.rs:160:31 [INFO] [stdout] | [INFO] [stdout] 160 | Event::Lose { player } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `player: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/game/handle_event.rs:592:70 [INFO] [stdout] | [INFO] [stdout] 592 | async fn handle_damage(&mut self, amount: i64, target: TargetId, source: CardId) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spellabil.rs:46:30 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn activated_ability(mut self, costs: Vec) -> Ability { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spellabil.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn build(mut self) -> Vec { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Triggered` [INFO] [stdout] --> src/ability.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | Triggered(TriggeredAbility), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Ability` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ability.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Clone, Serialize)] [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: `Static` [INFO] [stdout] --> src/ability.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Static(StaticAbility), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Ability` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ability.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Clone, Serialize)] [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: `TokenCard` [INFO] [stdout] --> src/card_entities.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | TokenCard, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `EntType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/card_entities.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Clone, Serialize, PartialEq, Eq)] [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: associated function is never used: `get` [INFO] [stdout] --> src/card_types.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn get(&self,x:$name)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | / enumset!( [INFO] [stdout] 100 | | Type, [INFO] [stdout] 101 | | Artifact, [INFO] [stdout] 102 | | Enchantment, [INFO] [stdout] ... | [INFO] [stdout] 107 | | Sorcery [INFO] [stdout] 108 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/card_types.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn remove(&mut self,x:$name){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | / enumset!( [INFO] [stdout] 100 | | Type, [INFO] [stdout] 101 | | Artifact, [INFO] [stdout] 102 | | Enchantment, [INFO] [stdout] ... | [INFO] [stdout] 107 | | Sorcery [INFO] [stdout] 108 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_all` [INFO] [stdout] --> src/card_types.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn remove_all(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | / enumset!( [INFO] [stdout] 100 | | Type, [INFO] [stdout] 101 | | Artifact, [INFO] [stdout] 102 | | Enchantment, [INFO] [stdout] ... | [INFO] [stdout] 107 | | Sorcery [INFO] [stdout] 108 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/card_types.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn get(&self,x:$name)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | enumset!(Supertype, Basic, World, Legendary, Snow); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/card_types.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn remove(&mut self,x:$name){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | enumset!(Supertype, Basic, World, Legendary, Snow); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_all` [INFO] [stdout] --> src/card_types.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn remove_all(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | enumset!(Supertype, Basic, World, Legendary, Snow); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/card_types.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn get(&self,x:$name)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | / enumset!( [INFO] [stdout] 111 | | Subtype, [INFO] [stdout] 112 | | Advisor, [INFO] [stdout] 113 | | Aetherborn, [INFO] [stdout] ... | [INFO] [stdout] 378 | | Forest [INFO] [stdout] 379 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/card_types.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn remove(&mut self,x:$name){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | / enumset!( [INFO] [stdout] 111 | | Subtype, [INFO] [stdout] 112 | | Advisor, [INFO] [stdout] 113 | | Aetherborn, [INFO] [stdout] ... | [INFO] [stdout] 378 | | Forest [INFO] [stdout] 379 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_all` [INFO] [stdout] --> src/card_types.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn remove_all(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | / enumset!( [INFO] [stdout] 111 | | Subtype, [INFO] [stdout] 112 | | Advisor, [INFO] [stdout] 113 | | Aetherborn, [INFO] [stdout] ... | [INFO] [stdout] 378 | | Forest [INFO] [stdout] 379 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/ent_maps.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn remove(&mut self, id: K) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SpellAbility` [INFO] [stdout] --> src/event.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | SpellAbility(CardId), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DiscardCause` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/event.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Clone, Copy, Debug, PartialEq)] [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: `SpellAbility` [INFO] [stdout] --> src/event.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | SpellAbility(CardId), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DamageReason` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/event.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone, Copy, Debug, PartialEq)] [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: `Cast` [INFO] [stdout] --> src/event.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / Cast { [INFO] [stdout] 54 | | player: PlayerId, [INFO] [stdout] 55 | | spell: CardId, [INFO] [stdout] 56 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `Event` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/event.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Clone, Debug)] [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: `Activate` [INFO] [stdout] --> src/event.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | / Activate { [INFO] [stdout] 61 | | controller: PlayerId, [INFO] [stdout] 62 | | ability: CardId, [INFO] [stdout] 63 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `Event` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/event.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Clone, Debug)] [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: `Cast` [INFO] [stdout] --> src/event.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | Cast(CardId), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `EventResult` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/event.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | #[derive(Clone, Debug, PartialEq)] [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: `Activate` [INFO] [stdout] --> src/event.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | Activate(CardId), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `EventResult` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/event.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | #[derive(Clone, Debug, PartialEq)] [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: `Tie` [INFO] [stdout] --> src/game.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | Tie, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: `GameOutcome` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/game.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | #[derive(Clone, Copy, Debug, PartialEq, Serialize)] [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: `Winner` [INFO] [stdout] --> src/game.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | Winner(PlayerId), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `GameOutcome` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/game.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | #[derive(Clone, Copy, Debug, PartialEq, Serialize)] [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: associated function is never used: `check` [INFO] [stdout] --> src/game/actions.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn check(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Layer` [INFO] [stdout] --> src/game/layers.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Layer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Colorless` [INFO] [stdout] --> src/mana.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | Colorless, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ManaCostSymbol` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/mana.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(Clone, Copy, Debug, PartialEq, Serialize)] [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: function is never used: `mana_cost_string` [INFO] [stdout] --> src/mana.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn mana_cost_string(coststr: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `target_clause` [INFO] [stdout] --> src/spellabil.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn target_clause(&mut self, targets: Targets, effect: TargetClauseEffect) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_keyword` [INFO] [stdout] --> src/spellabil.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn from_keyword(keyword: KeywordAbility) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build` [INFO] [stdout] --> src/spellabil.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn build(mut self) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Target` [INFO] [stdout] --> src/spellabil.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | / Target { [INFO] [stdout] 64 | | targets: Targets, [INFO] [stdout] 65 | | effect: TargetClauseEffect, [INFO] [stdout] 66 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `Clause` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/spellabil.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Clone, Serialize)] [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: `DrawCard` [INFO] [stdout] --> src/spellabil.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | DrawCard, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ClauseEffect` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/spellabil.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | #[derive(Clone, Serialize)] [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: field is never read: `valid` [INFO] [stdout] --> src/spellabil.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | valid: Arc bool + Send + Sync>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Targets` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/spellabil.rs:78:10 [INFO] [stdout] | [INFO] [stdout] 78 | #[derive(Clone, Serialize)] [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] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 29s [INFO] [stdout] warning: 73 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1c8769a0f2df2a3527772f541140edfe86dd1db4e8bf53ce08f0af575c562f91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c8769a0f2df2a3527772f541140edfe86dd1db4e8bf53ce08f0af575c562f91", kill_on_drop: false }` [INFO] [stdout] 1c8769a0f2df2a3527772f541140edfe86dd1db4e8bf53ce08f0af575c562f91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-36/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-36/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" "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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a12dde69ccef5ddf16bbd583879f4dc68b4b1635bd7ded3a2b4347628d1960b7 [INFO] running `Command { std: "docker" "start" "-a" "a12dde69ccef5ddf16bbd583879f4dc68b4b1635bd7ded3a2b4347628d1960b7", kill_on_drop: false }` [INFO] [stderr] Compiling mtg_webserver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `game::Game`, `mana_cost_string`, `player::Player` [INFO] [stdout] --> src/ability_db.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | game::Game, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | mana::{mana_cost_string, ManaCostSymbol}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | player::Player, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::Game` [INFO] [stdout] --> src/card_entities.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | game::Game, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/card_entities.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `card_types::Subtype` [INFO] [stdout] --> src/card_entities.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | card_types::Subtype, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mana::Mana` [INFO] [stdout] --> src/carddb.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::mana::Mana; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::ParseIntError` [INFO] [stdout] --> src/carddb.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::num::ParseIntError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/game.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ability::{self, Ability}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/game.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::player::{self, AskReason, Player, PlayerCon}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Serialize` [INFO] [stdout] --> src/game/actions.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ability::Ability`, `player::Player` [INFO] [stdout] --> src/game/actions.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | ability::Ability, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | player::Player, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/mana.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::ser::SerializeMap` [INFO] [stdout] --> src/mana.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::ser::SerializeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CardId`, `ManaId`, `ent_maps::EntMap`, `game::Game` [INFO] [stdout] --> src/mana.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ent_maps::EntMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | entities::{CardId, ManaId}, [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] 9 | game::Game, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ent_maps::EntMap` [INFO] [stdout] --> src/player.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ent_maps::EntMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mana::Mana` [INFO] [stdout] --> src/player.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::mana::Mana; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashSet` [INFO] [stdout] --> src/spellabil.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashSet, num::NonZeroU32, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/game.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 214 | panic!("restoring is a bug for now!"); [INFO] [stdout] | ------------------------------------- any code following this expression is unreachable [INFO] [stdout] 215 | let mut b = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/spellabil.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 41 | / match keyword { [INFO] [stdout] 42 | | _ => todo!(), [INFO] [stdout] 43 | | }; [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 44 | res [INFO] [stdout] | ^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SerializeMap` [INFO] [stdout] --> src/card_types.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::ser::{Serialize, SerializeMap, SerializeSeq, Serializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/game/actions.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | _ => todo!(), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/game.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | } else if let Some(player) = self.extra_turns.pop_front() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_spot` [INFO] [stdout] --> src/game.rs:164:21 [INFO] [stdout] | [INFO] [stdout] 164 | let new_spot = (order_spot + 1) % self.turn_order.len(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_spot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/game.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let res = self.handle_event(Event::Draw { player }).await; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/game.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | let res = self [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `oldent` [INFO] [stdout] --> src/game.rs:381:45 [INFO] [stdout] | [INFO] [stdout] 381 | if let EventResult::MoveZones { oldent, newent, dest }=event [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `oldent: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack_obj` [INFO] [stdout] --> src/game.rs:501:9 [INFO] [stdout] | [INFO] [stdout] 501 | stack_obj: CardId, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stack_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/game.rs:553:62 [INFO] [stdout] | [INFO] [stdout] 553 | async fn resolve_clause(&mut self, effect: ClauseEffect, id: CardId, controller: PlayerId) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cost` [INFO] [stdout] --> src/game.rs:572:17 [INFO] [stdout] | [INFO] [stdout] 572 | for cost in &card.costs { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_ent` [INFO] [stdout] --> src/game.rs:618:22 [INFO] [stdout] | [INFO] [stdout] 618 | let (new_id, new_ent) = self.cards.insert(abil); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_ent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/game.rs:663:9 [INFO] [stdout] | [INFO] [stdout] 663 | player: &Player, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/game.rs:677:9 [INFO] [stdout] | [INFO] [stdout] 677 | player: &Player, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mana` [INFO] [stdout] --> src/game.rs:715:32 [INFO] [stdout] | [INFO] [stdout] 715 | Cost::Mana(mana) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mana` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attackers` [INFO] [stdout] --> src/game.rs:773:35 [INFO] [stdout] | [INFO] [stdout] 773 | pub fn attackers_legal(&self, attackers: &Vec, targets: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attackers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/game.rs:773:60 [INFO] [stdout] | [INFO] [stdout] 773 | pub fn attackers_legal(&self, attackers: &Vec, targets: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_targets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockers` [INFO] [stdout] --> src/game.rs:776:32 [INFO] [stdout] | [INFO] [stdout] 776 | pub fn blocks_legal(&self, blockers: &Vec, blocked: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blocked` [INFO] [stdout] --> src/game.rs:776:56 [INFO] [stdout] | [INFO] [stdout] 776 | pub fn blocks_legal(&self, blockers: &Vec, blocked: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blocked` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/game/handle_event.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | reason, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `reason: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/game/handle_event.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | Event::PlayLand { player, land } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `player: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/game/handle_event.rs:160:31 [INFO] [stdout] | [INFO] [stdout] 160 | Event::Lose { player } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `player: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/game/handle_event.rs:592:70 [INFO] [stdout] | [INFO] [stdout] 592 | async fn handle_damage(&mut self, amount: i64, target: TargetId, source: CardId) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spellabil.rs:46:30 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn activated_ability(mut self, costs: Vec) -> Ability { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/spellabil.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn build(mut self) -> Vec { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Triggered` [INFO] [stdout] --> src/ability.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | Triggered(TriggeredAbility), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Ability` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ability.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Clone, Serialize)] [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: `Static` [INFO] [stdout] --> src/ability.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Static(StaticAbility), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Ability` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ability.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Clone, Serialize)] [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: `TokenCard` [INFO] [stdout] --> src/card_entities.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | TokenCard, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `EntType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/card_entities.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Clone, Serialize, PartialEq, Eq)] [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: associated function is never used: `get` [INFO] [stdout] --> src/card_types.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn get(&self,x:$name)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | / enumset!( [INFO] [stdout] 100 | | Type, [INFO] [stdout] 101 | | Artifact, [INFO] [stdout] 102 | | Enchantment, [INFO] [stdout] ... | [INFO] [stdout] 107 | | Sorcery [INFO] [stdout] 108 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/card_types.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn remove(&mut self,x:$name){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | / enumset!( [INFO] [stdout] 100 | | Type, [INFO] [stdout] 101 | | Artifact, [INFO] [stdout] 102 | | Enchantment, [INFO] [stdout] ... | [INFO] [stdout] 107 | | Sorcery [INFO] [stdout] 108 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_all` [INFO] [stdout] --> src/card_types.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn remove_all(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | / enumset!( [INFO] [stdout] 100 | | Type, [INFO] [stdout] 101 | | Artifact, [INFO] [stdout] 102 | | Enchantment, [INFO] [stdout] ... | [INFO] [stdout] 107 | | Sorcery [INFO] [stdout] 108 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/card_types.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn get(&self,x:$name)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | enumset!(Supertype, Basic, World, Legendary, Snow); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/card_types.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn remove(&mut self,x:$name){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | enumset!(Supertype, Basic, World, Legendary, Snow); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_all` [INFO] [stdout] --> src/card_types.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn remove_all(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | enumset!(Supertype, Basic, World, Legendary, Snow); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/card_types.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn get(&self,x:$name)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | / enumset!( [INFO] [stdout] 111 | | Subtype, [INFO] [stdout] 112 | | Advisor, [INFO] [stdout] 113 | | Aetherborn, [INFO] [stdout] ... | [INFO] [stdout] 378 | | Forest [INFO] [stdout] 379 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/card_types.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn remove(&mut self,x:$name){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | / enumset!( [INFO] [stdout] 111 | | Subtype, [INFO] [stdout] 112 | | Advisor, [INFO] [stdout] 113 | | Aetherborn, [INFO] [stdout] ... | [INFO] [stdout] 378 | | Forest [INFO] [stdout] 379 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_all` [INFO] [stdout] --> src/card_types.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn remove_all(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | / enumset!( [INFO] [stdout] 111 | | Subtype, [INFO] [stdout] 112 | | Advisor, [INFO] [stdout] 113 | | Aetherborn, [INFO] [stdout] ... | [INFO] [stdout] 378 | | Forest [INFO] [stdout] 379 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `enumset` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/ent_maps.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn remove(&mut self, id: K) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SpellAbility` [INFO] [stdout] --> src/event.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | SpellAbility(CardId), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DiscardCause` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/event.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Clone, Copy, Debug, PartialEq)] [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: `SpellAbility` [INFO] [stdout] --> src/event.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | SpellAbility(CardId), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DamageReason` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/event.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone, Copy, Debug, PartialEq)] [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: `Cast` [INFO] [stdout] --> src/event.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / Cast { [INFO] [stdout] 54 | | player: PlayerId, [INFO] [stdout] 55 | | spell: CardId, [INFO] [stdout] 56 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `Event` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/event.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Clone, Debug)] [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: `Activate` [INFO] [stdout] --> src/event.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | / Activate { [INFO] [stdout] 61 | | controller: PlayerId, [INFO] [stdout] 62 | | ability: CardId, [INFO] [stdout] 63 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `Event` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/event.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Clone, Debug)] [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: `Cast` [INFO] [stdout] --> src/event.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | Cast(CardId), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `EventResult` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/event.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | #[derive(Clone, Debug, PartialEq)] [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: `Activate` [INFO] [stdout] --> src/event.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | Activate(CardId), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `EventResult` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/event.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | #[derive(Clone, Debug, PartialEq)] [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: `Tie` [INFO] [stdout] --> src/game.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | Tie, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: `GameOutcome` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/game.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | #[derive(Clone, Copy, Debug, PartialEq, Serialize)] [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: `Winner` [INFO] [stdout] --> src/game.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | Winner(PlayerId), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `GameOutcome` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/game.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | #[derive(Clone, Copy, Debug, PartialEq, Serialize)] [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: associated function is never used: `check` [INFO] [stdout] --> src/game/actions.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn check(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Layer` [INFO] [stdout] --> src/game/layers.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Layer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Colorless` [INFO] [stdout] --> src/mana.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | Colorless, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ManaCostSymbol` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/mana.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(Clone, Copy, Debug, PartialEq, Serialize)] [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: function is never used: `mana_cost_string` [INFO] [stdout] --> src/mana.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn mana_cost_string(coststr: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `target_clause` [INFO] [stdout] --> src/spellabil.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn target_clause(&mut self, targets: Targets, effect: TargetClauseEffect) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_keyword` [INFO] [stdout] --> src/spellabil.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn from_keyword(keyword: KeywordAbility) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build` [INFO] [stdout] --> src/spellabil.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn build(mut self) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Target` [INFO] [stdout] --> src/spellabil.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | / Target { [INFO] [stdout] 64 | | targets: Targets, [INFO] [stdout] 65 | | effect: TargetClauseEffect, [INFO] [stdout] 66 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `Clause` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/spellabil.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Clone, Serialize)] [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: `DrawCard` [INFO] [stdout] --> src/spellabil.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | DrawCard, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ClauseEffect` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/spellabil.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | #[derive(Clone, Serialize)] [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: field is never read: `valid` [INFO] [stdout] --> src/spellabil.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | valid: Arc bool + Send + Sync>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Targets` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/spellabil.rs:78:10 [INFO] [stdout] | [INFO] [stdout] 78 | #[derive(Clone, Serialize)] [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: 73 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 5.64s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/mtg_webserver-73f5aba355cb07a1) [INFO] running `Command { std: "docker" "inspect" "a12dde69ccef5ddf16bbd583879f4dc68b4b1635bd7ded3a2b4347628d1960b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a12dde69ccef5ddf16bbd583879f4dc68b4b1635bd7ded3a2b4347628d1960b7", kill_on_drop: false }` [INFO] [stdout] a12dde69ccef5ddf16bbd583879f4dc68b4b1635bd7ded3a2b4347628d1960b7