[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#0d56e340472882fa673d4b98d0802b9a799879d0 for pr-101692 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKiruyaMomochi%2FPowerMagic" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KiruyaMomochi/PowerMagic on toolchain 0d56e340472882fa673d4b98d0802b9a799879d0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d56e340472882fa673d4b98d0802b9a799879d0" "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-6/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: "/workspace/cargo-home/bin/cargo" "+0d56e340472882fa673d4b98d0802b9a799879d0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sqlx-macros v0.5.11 [INFO] [stderr] Downloaded simba v0.7.1 [INFO] [stderr] Downloaded mio v0.8.1 [INFO] [stderr] Downloaded sqlx-rt v0.5.11 [INFO] [stderr] Downloaded sqlx v0.5.11 [INFO] [stderr] Downloaded nalgebra v0.30.1 [INFO] [stderr] Downloaded sqlx-core v0.5.11 [INFO] [stderr] Downloaded libsqlite3-sys v0.23.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+0d56e340472882fa673d4b98d0802b9a799879d0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3d9de30ae59a731cc7064ba02b48eb3542bdd1b0e43b4ebee93ebe82dfb4cf1f [INFO] running `Command { std: "docker" "start" "-a" "3d9de30ae59a731cc7064ba02b48eb3542bdd1b0e43b4ebee93ebe82dfb4cf1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3d9de30ae59a731cc7064ba02b48eb3542bdd1b0e43b4ebee93ebe82dfb4cf1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d9de30ae59a731cc7064ba02b48eb3542bdd1b0e43b4ebee93ebe82dfb4cf1f", kill_on_drop: false }` [INFO] [stdout] 3d9de30ae59a731cc7064ba02b48eb3542bdd1b0e43b4ebee93ebe82dfb4cf1f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+0d56e340472882fa673d4b98d0802b9a799879d0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 128121bd0fd6d714107afc72f84b4db01a13b0302ce69f15a6b5c6ad5f654cfe [INFO] running `Command { std: "docker" "start" "-a" "128121bd0fd6d714107afc72f84b4db01a13b0302ce69f15a6b5c6ad5f654cfe", kill_on_drop: false }` [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 log v0.4.14 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling openssl v0.10.38 [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 parking_lot_core v0.8.5 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling crossbeam-utils v0.8.7 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling crossbeam-queue v0.3.4 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling paste v1.0.6 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Checking bytemuck v1.8.0 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling crc-catalog v1.1.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [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 itoa v1.0.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Checking safe_arch v0.6.0 [INFO] [stderr] Compiling crc v2.1.0 [INFO] [stderr] Checking matrixmultiply v0.3.2 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling spin v0.9.2 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling libsqlite3-sys v0.23.2 [INFO] [stderr] Checking wide v0.7.4 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Checking quote v1.0.15 [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.8.1 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Checking atoi v0.4.0 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Checking sqlformat v0.1.8 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Checking simba v0.7.1 [INFO] [stderr] Checking futures-intrusive v0.4.0 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking derive-macro v0.1.0 (/opt/rustwide/workdir/derive-macro) [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] Checking nalgebra v0.30.1 [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 flume v0.10.12 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling tokio-stream v0.1.8 [INFO] [stderr] Compiling sqlx-rt v0.5.11 [INFO] [stderr] Checking sqlx-core v0.5.11 [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: 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: 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/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] = note: `#[warn(unused_mut)]` on by default [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] = note: `#[warn(unused_mut)]` on by default [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: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: `DataManagerError` 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 function `new` is never used [INFO] [stdout] --> powermagic/src/manager.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | pub async fn new(connection: &str) -> Result> { [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: associated function `equip_full` is never used [INFO] [stdout] --> powermagic/src/unit.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn equip_full(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `base_param` is never used [INFO] [stdout] --> powermagic/src/unit/cache.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn base_param(&self, rank: i32, level: i32, rarity: i32) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `equip_param` is never used [INFO] [stdout] --> powermagic/src/unit/cache.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn equip_param(&self, rank: i32, equip: &[(bool, i32)]) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `story_param` is never used [INFO] [stdout] --> powermagic/src/unit/cache.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn story_param(&self, watched_bonus: HashMap) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `skill_level` is never used [INFO] [stdout] --> powermagic/src/unit/cache.rs:102:12 [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: associated function `rarity_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:245:12 [INFO] [stdout] | [INFO] [stdout] 245 | pub fn rarity_param(&self, cache, state): rarity -> UnitStatus { [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: associated function `skill_power` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 253 | pub fn skill_power(&self, cache, state): skill -> 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: associated function `promotion_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 288 | pub fn promotion_param(&self, cache, state): promotion -> UnitStatus { [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: associated function `base_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:298:12 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn base_param(&self, cache, state): base -> UnitStatus { [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: associated function `rank_equip_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:302:12 [INFO] [stdout] | [INFO] [stdout] 302 | pub fn rank_equip_param(&self, cache, state): rank_equip -> UnitStatus { [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: associated function `unique_equip_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:333:12 [INFO] [stdout] | [INFO] [stdout] 333 | pub fn unique_equip_param(&self, cache, state): unique -> UnitStatus { [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: associated function `rarity_6_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:345:12 [INFO] [stdout] | [INFO] [stdout] 345 | pub fn rarity_6_param(&self, cache, state): rarity_6 -> UnitStatus { [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: associated function `story_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:352:12 [INFO] [stdout] | [INFO] [stdout] 352 | pub fn story_param(&self, cache, state): story -> UnitStatus { [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: associated function `equip_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:365:12 [INFO] [stdout] | [INFO] [stdout] 365 | pub fn equip_param(&self, cache, state): equip -> UnitStatus { [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: associated function `param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:380:12 [INFO] [stdout] | [INFO] [stdout] 380 | pub fn param(&self, cache, state): status -> UnitStatus { [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: 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: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: `DataManagerError` 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 function `power` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:384:12 [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: associated function `reset` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:528:12 [INFO] [stdout] | [INFO] [stdout] 528 | pub fn reset(&mut self) -> &Self { [INFO] [stdout] | ^^^^^ [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] 50 | pub async fn new(connection: &str) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `base_param` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn base_param(&self, level: i32, rarity: i32, rank: i32) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `param` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn param(&self, bonus_stories: usize) -> UnitStatus { [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: associated function `param_all` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn param_all(&self) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `param` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn param(&self, enhancement_level: i32) -> UnitStatus { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `equip_full` is never used [INFO] [stdout] --> powermagic/src/unit.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn equip_full(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `param` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn param(&self, enhancement_level: i32) -> UnitStatus { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `base_param` is never used [INFO] [stdout] --> powermagic/src/unit/cache.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn base_param(&self, rank: i32, level: i32, rarity: i32) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `equip_param` is never used [INFO] [stdout] --> powermagic/src/unit/cache.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn equip_param(&self, rank: i32, equip: &[(bool, i32)]) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `story_param` is never used [INFO] [stdout] --> powermagic/src/unit/cache.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn story_param(&self, watched_bonus: HashMap) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `skill_level` is never used [INFO] [stdout] --> powermagic/src/unit/cache.rs:102:12 [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 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 function `with_config` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn with_config(unit_config: &'a UnitData) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `level` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn level(mut self, level: i32) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `rank` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn rank(mut self, rank: i32) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `rarity_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:245:12 [INFO] [stdout] | [INFO] [stdout] 245 | pub fn rarity_param(&self, cache, state): rarity -> UnitStatus { [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: associated function `rarity` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn rarity(mut self, rarity: i32) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `build` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn build(self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `free_skill_power` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn free_skill_power(&self, level: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `union_burst_id_power` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 286 | pub fn union_burst_id_power(&self, level: i32, skill_id: i64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `main_skill_id_power` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 290 | pub fn main_skill_id_power(&self, level: i32, skill_id: i64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ex_skill_id_power` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn ex_skill_id_power(&self, level: i32, rarity: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `free_skill_id_power` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:298:12 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn free_skill_id_power(&self, level: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `skill_power` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:302:12 [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: associated function `skill_power` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 253 | pub fn skill_power(&self, cache, state): skill -> 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: associated function `promotion_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 288 | pub fn promotion_param(&self, cache, state): promotion -> UnitStatus { [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: associated function `base_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:298:12 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn base_param(&self, cache, state): base -> UnitStatus { [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: associated function `rank_equip_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:302:12 [INFO] [stdout] | [INFO] [stdout] 302 | pub fn rank_equip_param(&self, cache, state): rank_equip -> UnitStatus { [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: associated function `unique_equip_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:333:12 [INFO] [stdout] | [INFO] [stdout] 333 | pub fn unique_equip_param(&self, cache, state): unique -> UnitStatus { [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: associated function `rarity_6_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:345:12 [INFO] [stdout] | [INFO] [stdout] 345 | pub fn rarity_6_param(&self, cache, state): rarity_6 -> UnitStatus { [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: associated function `story_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:352:12 [INFO] [stdout] | [INFO] [stdout] 352 | pub fn story_param(&self, cache, state): story -> UnitStatus { [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: associated function `equip_param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:365:12 [INFO] [stdout] | [INFO] [stdout] 365 | pub fn equip_param(&self, cache, state): equip -> UnitStatus { [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: associated function `param` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:380:12 [INFO] [stdout] | [INFO] [stdout] 380 | pub fn param(&self, cache, state): status -> UnitStatus { [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: associated function `power` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:384:12 [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: associated function `reset` is never used [INFO] [stdout] --> powermagic/src/unit/calc.rs:528:12 [INFO] [stdout] | [INFO] [stdout] 528 | pub fn reset(&mut self) -> &Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `base_param` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn base_param(&self, level: i32, rarity: i32, rank: i32) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `param` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn param(&self, bonus_stories: usize) -> UnitStatus { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `param_all` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn param_all(&self) -> UnitStatus { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `param` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn param(&self, enhancement_level: i32) -> UnitStatus { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `param` is never used [INFO] [stdout] --> powermagic/src/unit/data.rs:123:12 [INFO] [stdout] | [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 function `with_config` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn with_config(unit_config: &'a UnitData) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `level` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn level(mut self, level: i32) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `rank` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn rank(mut self, rank: i32) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `rarity` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn rarity(mut self, rarity: i32) -> UnitStateBuilder<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `build` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn build(self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `free_skill_power` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn free_skill_power(&self, level: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `union_burst_id_power` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 286 | pub fn union_burst_id_power(&self, level: i32, skill_id: i64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `main_skill_id_power` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 290 | pub fn main_skill_id_power(&self, level: i32, skill_id: i64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ex_skill_id_power` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn ex_skill_id_power(&self, level: i32, rarity: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `free_skill_id_power` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:298:12 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn free_skill_id_power(&self, level: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `skill_power` is never used [INFO] [stdout] --> powermagic/src/unit/state.rs:302:12 [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: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 42.79s [INFO] running `Command { std: "docker" "inspect" "128121bd0fd6d714107afc72f84b4db01a13b0302ce69f15a6b5c6ad5f654cfe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "128121bd0fd6d714107afc72f84b4db01a13b0302ce69f15a6b5c6ad5f654cfe", kill_on_drop: false }` [INFO] [stdout] 128121bd0fd6d714107afc72f84b4db01a13b0302ce69f15a6b5c6ad5f654cfe