[INFO] cloning repository https://github.com/KiruyaMomochi/PowerMagic [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KiruyaMomochi/PowerMagic" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKiruyaMomochi%2FPowerMagic", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKiruyaMomochi%2FPowerMagic'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c40527143d757495c869be4175d9bc596b0f88e5 [INFO] checking KiruyaMomochi/PowerMagic against master#f42f19b6d3d785a74dbe57aa395b6c288437dd51 for pr-107123-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKiruyaMomochi%2FPowerMagic" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KiruyaMomochi/PowerMagic on toolchain f42f19b6d3d785a74dbe57aa395b6c288437dd51 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f42f19b6d3d785a74dbe57aa395b6c288437dd51" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/KiruyaMomochi/PowerMagic [INFO] finished tweaking git repo https://github.com/KiruyaMomochi/PowerMagic [INFO] tweaked toml for git repo https://github.com/KiruyaMomochi/PowerMagic written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/KiruyaMomochi/PowerMagic already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f42f19b6d3d785a74dbe57aa395b6c288437dd51" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sha2 v0.9.9 [INFO] [stderr] Downloaded lock_api v0.4.6 [INFO] [stderr] Downloaded flume v0.10.12 [INFO] [stderr] Downloaded rawpointer v0.2.1 [INFO] [stderr] Downloaded log v0.4.14 [INFO] [stderr] Downloaded digest v0.9.0 [INFO] [stderr] Downloaded crc-catalog v1.1.1 [INFO] [stderr] Downloaded nalgebra-macros v0.1.0 [INFO] [stderr] Downloaded bytemuck v1.8.0 [INFO] [stderr] Downloaded sqlx-rt v0.5.11 [INFO] [stderr] Downloaded pin-project-internal v1.0.10 [INFO] [stderr] Downloaded quote v1.0.15 [INFO] [stderr] Downloaded futures-executor v0.3.21 [INFO] [stderr] Downloaded crc v2.1.0 [INFO] [stderr] Downloaded slab v0.4.5 [INFO] [stderr] Downloaded crossbeam-utils v0.8.7 [INFO] [stderr] Downloaded matrixmultiply v0.3.2 [INFO] [stderr] Downloaded wide v0.7.4 [INFO] [stderr] Downloaded sqlx v0.5.11 [INFO] [stderr] Downloaded nalgebra v0.30.1 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.32.0 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.32.0 [INFO] [stderr] Downloaded windows-sys v0.32.0 [INFO] [stderr] Downloaded libsqlite3-sys v0.23.2 [INFO] [stderr] Downloaded windows_i686_gnu v0.32.0 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.32.0 [INFO] [stderr] Downloaded windows_i686_msvc v0.32.0 [INFO] [stderr] Downloaded libc v0.2.119 [INFO] [stderr] Downloaded sqlx-core v0.5.11 [INFO] [stderr] Downloaded syn v1.0.86 [INFO] [stderr] Downloaded nom v7.1.0 [INFO] [stderr] Downloaded mio v0.8.1 [INFO] [stderr] Downloaded safe_arch v0.6.0 [INFO] [stderr] Downloaded indexmap v1.8.0 [INFO] [stderr] Downloaded simba v0.7.1 [INFO] [stderr] Downloaded getrandom v0.2.5 [INFO] [stderr] Downloaded pin-project v1.0.10 [INFO] [stderr] Downloaded spin v0.9.2 [INFO] [stderr] Downloaded wasi v0.10.2+wasi-snapshot-preview1 [INFO] [stderr] Downloaded native-tls v0.2.8 [INFO] [stderr] Downloaded crossbeam-queue v0.3.4 [INFO] [stderr] Downloaded parking_lot_core v0.9.1 [INFO] [stderr] Downloaded approx v0.5.1 [INFO] [stderr] Downloaded num-complex v0.4.0 [INFO] [stderr] Downloaded block-buffer v0.9.0 [INFO] [stderr] Downloaded cpufeatures v0.2.1 [INFO] [stderr] Downloaded redox_syscall v0.2.11 [INFO] [stderr] Downloaded proc-macro2 v1.0.36 [INFO] [stderr] Downloaded num-rational v0.4.0 [INFO] [stderr] Downloaded pkg-config v0.3.24 [INFO] [stderr] Downloaded opaque-debug v0.3.0 [INFO] [stderr] Downloaded paste v1.0.6 [INFO] [stderr] Downloaded sqlx-macros v0.5.11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+f42f19b6d3d785a74dbe57aa395b6c288437dd51" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9b6c88e92fe44372357ef9150abfeb302be56cd1eb875c55899ccca97309b413 [INFO] running `Command { std: "docker" "start" "-a" "9b6c88e92fe44372357ef9150abfeb302be56cd1eb875c55899ccca97309b413", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b6c88e92fe44372357ef9150abfeb302be56cd1eb875c55899ccca97309b413", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b6c88e92fe44372357ef9150abfeb302be56cd1eb875c55899ccca97309b413", kill_on_drop: false }` [INFO] [stdout] 9b6c88e92fe44372357ef9150abfeb302be56cd1eb875c55899ccca97309b413 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+f42f19b6d3d785a74dbe57aa395b6c288437dd51" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cbc1db4e08488f860a1862e42862119f95115562f70a7ff4e7c94968ac458edc [INFO] running `Command { std: "docker" "start" "-a" "cbc1db4e08488f860a1862e42862119f95115562f70a7ff4e7c94968ac458edc", kill_on_drop: false }` [INFO] [stderr] warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling crossbeam-utils v0.8.7 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling crossbeam-queue v0.3.4 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking getrandom v0.2.5 [INFO] [stderr] Checking mio v0.8.1 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling libsqlite3-sys v0.23.2 [INFO] [stderr] Compiling paste v1.0.6 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling spin v0.9.2 [INFO] [stderr] Checking bytemuck v1.8.0 [INFO] [stderr] Compiling crc-catalog v1.1.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Checking safe_arch v0.6.0 [INFO] [stderr] Compiling crc v2.1.0 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling futures-intrusive v0.4.0 [INFO] [stderr] Compiling atoi v0.4.0 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking wide v0.7.4 [INFO] [stderr] Compiling sqlformat v0.1.8 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Checking matrixmultiply v0.3.2 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Compiling derive-macro v0.1.0 (/opt/rustwide/workdir/derive-macro) [INFO] [stderr] Checking simba v0.7.1 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling flume v0.10.12 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking tokio-stream v0.1.8 [INFO] [stderr] Checking sqlx-rt v0.5.11 [INFO] [stderr] Checking sqlx-core v0.5.11 [INFO] [stderr] Checking nalgebra v0.30.1 [INFO] [stderr] Compiling sqlx-macros v0.5.11 [INFO] [stderr] Checking sqlx v0.5.11 [INFO] [stderr] Checking powermagic v0.1.0 (/opt/rustwide/workdir/powermagic) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> powermagic/src/unit/calc.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let mut slots = self.state.unlock_rarity_6_slot.as_mut().unwrap(); [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: unused variable: `cache` [INFO] [stdout] --> powermagic/src/unit/calc.rs:298:30 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn base_param(&self, cache, state): base -> UnitStatus { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cache` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> powermagic/src/unit/calc.rs:298:37 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn base_param(&self, cache, state): base -> UnitStatus { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> powermagic/src/unit/calc.rs:365:38 [INFO] [stdout] | [INFO] [stdout] 365 | pub fn equip_param(&self, cache, state): equip -> UnitStatus { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cache` [INFO] [stdout] --> powermagic/src/unit/calc.rs:380:25 [INFO] [stdout] | [INFO] [stdout] 380 | pub fn param(&self, cache, state): status -> UnitStatus { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cache` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> powermagic/src/unit/calc.rs:380:32 [INFO] [stdout] | [INFO] [stdout] 380 | pub fn param(&self, cache, state): status -> UnitStatus { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> powermagic/src/unit/calc.rs:384:32 [INFO] [stdout] | [INFO] [stdout] 384 | pub fn power(&self, cache, state): power -> f64 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_evolution` [INFO] [stdout] --> powermagic/src/unit/state.rs:278:46 [INFO] [stdout] | [INFO] [stdout] 278 | pub fn ex_skill_power(&self, level: i32, is_evolution: bool) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_evolution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> powermagic/src/unit/calc.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let mut slots = self.state.unlock_rarity_6_slot.as_mut().unwrap(); [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: unused variable: `cache` [INFO] [stdout] --> powermagic/src/unit/calc.rs:298:30 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn base_param(&self, cache, state): base -> UnitStatus { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cache` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> powermagic/src/unit/calc.rs:298:37 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn base_param(&self, cache, state): base -> UnitStatus { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> powermagic/src/unit/calc.rs:365:38 [INFO] [stdout] | [INFO] [stdout] 365 | pub fn equip_param(&self, cache, state): equip -> UnitStatus { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cache` [INFO] [stdout] --> powermagic/src/unit/calc.rs:380:25 [INFO] [stdout] | [INFO] [stdout] 380 | pub fn param(&self, cache, state): status -> UnitStatus { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cache` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> powermagic/src/unit/calc.rs:380:32 [INFO] [stdout] | [INFO] [stdout] 380 | pub fn param(&self, cache, state): status -> UnitStatus { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> powermagic/src/unit/calc.rs:384:32 [INFO] [stdout] | [INFO] [stdout] 384 | pub fn power(&self, cache, state): power -> f64 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> powermagic/src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut calculator = UnitCalculator::new(&unit_cache) [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `EquipmentEnhanceData` is never constructed [INFO] [stdout] --> powermagic/src/manager.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum DataManagerError { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 41 | EquipmentEnhanceData(i64), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataManagerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> powermagic/src/manager.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 49 | impl DataManager { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 50 | pub async fn new(connection: &str) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `equip_full` is never used [INFO] [stdout] --> powermagic/src/unit.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl EquipSlot { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn equip_full(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `story_group_id` is never read [INFO] [stdout] --> powermagic/src/unit.rs:199:5 [INFO] [stdout] | [INFO] [stdout] 198 | pub struct StoryGroup { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 199 | story_group_id: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StoryGroup` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `base_param`, `equip_param`, `story_param`, and `skill_level` are never used [INFO] [stdout] --> powermagic/src/unit/cache.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl UnitCache { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 33 | pub fn base_param(&self, rank: i32, level: i32, rarity: i32) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn equip_param(&self, rank: i32, equip: &[(bool, i32)]) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn story_param(&self, watched_bonus: HashMap) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn skill_level(&self, level: i32, rarity: i32, is_unique_equipped: bool) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:245:12 [INFO] [stdout] | [INFO] [stdout] 212 | impl UnitCalculator<'_> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 245 | pub fn rarity_param(&self, cache, state): rarity -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn skill_power(&self, cache, state): skill -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | pub fn promotion_param(&self, cache, state): promotion -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn base_param(&self, cache, state): base -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | pub fn rank_equip_param(&self, cache, state): rank_equip -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 333 | pub fn unique_equip_param(&self, cache, state): unique -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 345 | pub fn rarity_6_param(&self, cache, state): rarity_6 -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 352 | pub fn story_param(&self, cache, state): story -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 365 | pub fn equip_param(&self, cache, state): equip -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 380 | pub fn param(&self, cache, state): status -> UnitStatus { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 384 | pub fn power(&self, cache, state): power -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `memorized_getter_ng` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_evolution` [INFO] [stdout] --> powermagic/src/unit/state.rs:278:46 [INFO] [stdout] | [INFO] [stdout] 278 | pub fn ex_skill_power(&self, level: i32, is_evolution: bool) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_evolution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:528:12 [INFO] [stdout] | [INFO] [stdout] 515 | impl UnitCalculatorNeedUpdate { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 528 | pub fn reset(&mut self) -> &Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `base_param` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl UnitData { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 22 | pub fn base_param(&self, level: i32, rarity: i32, rank: i32) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `param` and `param_all` are never used [INFO] [stdout] --> powermagic/src/unit/data.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl StoryData { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn param(&self, bonus_stories: usize) -> UnitStatus { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn param_all(&self) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `param` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 107 | impl EquipmentData { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 108 | pub fn param(&self, enhancement_level: i32) -> UnitStatus { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `param` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 122 | impl UniqueEquipmentData { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] 123 | pub fn param(&self, enhancement_level: i32) -> UnitStatus { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> powermagic/src/unit/define.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum PromotionLevel { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 4 | Bronze = 1, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | Copper1 = 2, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | Copper2 = 3, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | Silver1 = 4, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | Silver2 = 5, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | Silver3 = 6, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 10 | Gold1 = 7, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | Gold2 = 8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | Gold3 = 9, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | Gold4 = 10, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | Purple1 = 11, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | Purple2 = 12, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | Purple3 = 13, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | Purple4 = 14, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 18 | Purple5 = 15, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | Purple6 = 16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 20 | Purple7 = 17, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | Red1 = 18, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | Red2 = 19, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | Red3 = 20, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | Green1 = 21, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | Green2 = 22, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | Green3 = 23, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | Orange1 = 24, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 28 | Orange2 = 25, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 29 | Orange3 = 26, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 30 | Orange4 = 27, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 31 | InvalidValue = -1, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PromotionLevel` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `unit_config` is never read [INFO] [stdout] --> powermagic/src/unit/state.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct UnitStateBuilder<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 91 | unit_config: &'a UnitData, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnitStateBuilder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> powermagic/src/unit/state.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum UnitStateBuilderError { [INFO] [stdout] | --------------------- variants in this enum [INFO] [stdout] 104 | #[error("Rarity not set")] [INFO] [stdout] 105 | Rarity, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 106 | #[error("Level not set")] [INFO] [stdout] 107 | Level, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 108 | #[error("Promotion not set")] [INFO] [stdout] 109 | Promotion, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 110 | #[error("Skill not set")] [INFO] [stdout] 111 | Skill, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 112 | #[error("Equip slot not set")] [INFO] [stdout] 113 | EquipSlot, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 114 | #[error("Unique equip slot not set")] [INFO] [stdout] 115 | UniqueEquipSlot, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 116 | #[error("Unlock rarity 6 slot not set")] [INFO] [stdout] 117 | UnlockRarity6Slot, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 118 | #[error("Story not set")] [INFO] [stdout] 119 | Story, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 120 | #[error("Unit doesn't unlocked rarity 6")] [INFO] [stdout] 121 | Rarity6, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnitStateBuilderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_config`, `level`, `rank`, `rarity`, and `build` are never used [INFO] [stdout] --> powermagic/src/unit/state.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 124 | impl<'a> UnitStateBuilder<'a> { [INFO] [stdout] | ----------------------------- associated items in this implementation [INFO] [stdout] 125 | pub fn with_config(unit_config: &'a UnitData) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn level(mut self, level: i32) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn rank(mut self, rank: i32) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn rarity(mut self, rarity: i32) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | pub fn build(self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `free_skill_power`, `union_burst_id_power`, `main_skill_id_power`, `ex_skill_id_power`, `free_skill_id_power`, and `skill_power` are never used [INFO] [stdout] --> powermagic/src/unit/state.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 246 | impl model::UnitStatusCoefficient { [INFO] [stdout] | --------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 282 | pub fn free_skill_power(&self, level: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 286 | pub fn union_burst_id_power(&self, level: i32, skill_id: i64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn main_skill_id_power(&self, level: i32, skill_id: i64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | pub fn ex_skill_id_power(&self, level: i32, rarity: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn free_skill_id_power(&self, level: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | pub fn skill_power(&self, skill: &UnitSkill, level: i32, rarity: i32, unique_equipped: bool) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_evolution_skill` is never used [INFO] [stdout] --> powermagic/src/unit/utils.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn is_evolution_skill(skill_id: T) -> bool [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skill_level` is never used [INFO] [stdout] --> powermagic/src/unit/utils.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn skill_level<'a>( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> powermagic/src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut calculator = UnitCalculator::new(&unit_cache) [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `EquipmentEnhanceData` is never constructed [INFO] [stdout] --> powermagic/src/manager.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum DataManagerError { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 41 | EquipmentEnhanceData(i64), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataManagerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> powermagic/src/manager.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 49 | impl DataManager { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 50 | pub async fn new(connection: &str) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `equip_full` is never used [INFO] [stdout] --> powermagic/src/unit.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl EquipSlot { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn equip_full(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `story_group_id` is never read [INFO] [stdout] --> powermagic/src/unit.rs:199:5 [INFO] [stdout] | [INFO] [stdout] 198 | pub struct StoryGroup { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 199 | story_group_id: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StoryGroup` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `base_param`, `equip_param`, `story_param`, and `skill_level` are never used [INFO] [stdout] --> powermagic/src/unit/cache.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl UnitCache { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 33 | pub fn base_param(&self, rank: i32, level: i32, rarity: i32) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn equip_param(&self, rank: i32, equip: &[(bool, i32)]) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn story_param(&self, watched_bonus: HashMap) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn skill_level(&self, level: i32, rarity: i32, is_unique_equipped: bool) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:245:12 [INFO] [stdout] | [INFO] [stdout] 212 | impl UnitCalculator<'_> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 245 | pub fn rarity_param(&self, cache, state): rarity -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn skill_power(&self, cache, state): skill -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | pub fn promotion_param(&self, cache, state): promotion -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn base_param(&self, cache, state): base -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | pub fn rank_equip_param(&self, cache, state): rank_equip -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 333 | pub fn unique_equip_param(&self, cache, state): unique -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 345 | pub fn rarity_6_param(&self, cache, state): rarity_6 -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 352 | pub fn story_param(&self, cache, state): story -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 365 | pub fn equip_param(&self, cache, state): equip -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 380 | pub fn param(&self, cache, state): status -> UnitStatus { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 384 | pub fn power(&self, cache, state): power -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `memorized_getter_ng` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:528:12 [INFO] [stdout] | [INFO] [stdout] 515 | impl UnitCalculatorNeedUpdate { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 528 | pub fn reset(&mut self) -> &Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `base_param` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl UnitData { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 22 | pub fn base_param(&self, level: i32, rarity: i32, rank: i32) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `param` and `param_all` are never used [INFO] [stdout] --> powermagic/src/unit/data.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl StoryData { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn param(&self, bonus_stories: usize) -> UnitStatus { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn param_all(&self) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `param` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 107 | impl EquipmentData { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 108 | pub fn param(&self, enhancement_level: i32) -> UnitStatus { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `param` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 122 | impl UniqueEquipmentData { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] 123 | pub fn param(&self, enhancement_level: i32) -> UnitStatus { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> powermagic/src/unit/define.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum PromotionLevel { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 4 | Bronze = 1, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | Copper1 = 2, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | Copper2 = 3, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | Silver1 = 4, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | Silver2 = 5, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | Silver3 = 6, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 10 | Gold1 = 7, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | Gold2 = 8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | Gold3 = 9, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | Gold4 = 10, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | Purple1 = 11, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | Purple2 = 12, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | Purple3 = 13, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | Purple4 = 14, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 18 | Purple5 = 15, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | Purple6 = 16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 20 | Purple7 = 17, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | Red1 = 18, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | Red2 = 19, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | Red3 = 20, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | Green1 = 21, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | Green2 = 22, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | Green3 = 23, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | Orange1 = 24, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 28 | Orange2 = 25, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 29 | Orange3 = 26, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 30 | Orange4 = 27, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 31 | InvalidValue = -1, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PromotionLevel` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `unit_config` is never read [INFO] [stdout] --> powermagic/src/unit/state.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct UnitStateBuilder<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 91 | unit_config: &'a UnitData, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnitStateBuilder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> powermagic/src/unit/state.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum UnitStateBuilderError { [INFO] [stdout] | --------------------- variants in this enum [INFO] [stdout] 104 | #[error("Rarity not set")] [INFO] [stdout] 105 | Rarity, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 106 | #[error("Level not set")] [INFO] [stdout] 107 | Level, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 108 | #[error("Promotion not set")] [INFO] [stdout] 109 | Promotion, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 110 | #[error("Skill not set")] [INFO] [stdout] 111 | Skill, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 112 | #[error("Equip slot not set")] [INFO] [stdout] 113 | EquipSlot, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 114 | #[error("Unique equip slot not set")] [INFO] [stdout] 115 | UniqueEquipSlot, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 116 | #[error("Unlock rarity 6 slot not set")] [INFO] [stdout] 117 | UnlockRarity6Slot, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 118 | #[error("Story not set")] [INFO] [stdout] 119 | Story, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 120 | #[error("Unit doesn't unlocked rarity 6")] [INFO] [stdout] 121 | Rarity6, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnitStateBuilderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_config`, `level`, `rank`, `rarity`, and `build` are never used [INFO] [stdout] --> powermagic/src/unit/state.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 124 | impl<'a> UnitStateBuilder<'a> { [INFO] [stdout] | ----------------------------- associated items in this implementation [INFO] [stdout] 125 | pub fn with_config(unit_config: &'a UnitData) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn level(mut self, level: i32) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn rank(mut self, rank: i32) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn rarity(mut self, rarity: i32) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | pub fn build(self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `free_skill_power`, `union_burst_id_power`, `main_skill_id_power`, `ex_skill_id_power`, `free_skill_id_power`, and `skill_power` are never used [INFO] [stdout] --> powermagic/src/unit/state.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 246 | impl model::UnitStatusCoefficient { [INFO] [stdout] | --------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 282 | pub fn free_skill_power(&self, level: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 286 | pub fn union_burst_id_power(&self, level: i32, skill_id: i64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn main_skill_id_power(&self, level: i32, skill_id: i64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | pub fn ex_skill_id_power(&self, level: i32, rarity: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn free_skill_id_power(&self, level: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | pub fn skill_power(&self, skill: &UnitSkill, level: i32, rarity: i32, unique_equipped: bool) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_evolution_skill` is never used [INFO] [stdout] --> powermagic/src/unit/utils.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn is_evolution_skill(skill_id: T) -> bool [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skill_level` is never used [INFO] [stdout] --> powermagic/src/unit/utils.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn skill_level<'a>( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 20s [INFO] running `Command { std: "docker" "inspect" "cbc1db4e08488f860a1862e42862119f95115562f70a7ff4e7c94968ac458edc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbc1db4e08488f860a1862e42862119f95115562f70a7ff4e7c94968ac458edc", kill_on_drop: false }` [INFO] [stdout] cbc1db4e08488f860a1862e42862119f95115562f70a7ff4e7c94968ac458edc