[INFO] cloning repository https://github.com/changyc9928/star-rail-optimizer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/changyc9928/star-rail-optimizer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchangyc9928%2Fstar-rail-optimizer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchangyc9928%2Fstar-rail-optimizer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 62c835a37d5dc0722df813e9a375b5ac005875c8 [INFO] building changyc9928/star-rail-optimizer against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchangyc9928%2Fstar-rail-optimizer" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-5-tc2/source/rust-toolchain [INFO] started tweaking git repo https://github.com/changyc9928/star-rail-optimizer [INFO] finished tweaking git repo https://github.com/changyc9928/star-rail-optimizer [INFO] tweaked toml for git repo https://github.com/changyc9928/star-rail-optimizer written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/changyc9928/star-rail-optimizer on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/changyc9928/star-rail-optimizer 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8b125fcb13d57e007d5984ef2b144dfe154937245f5b1f6de0bd5964d8850f02 [INFO] running `Command { std: "docker" "start" "-a" "8b125fcb13d57e007d5984ef2b144dfe154937245f5b1f6de0bd5964d8850f02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8b125fcb13d57e007d5984ef2b144dfe154937245f5b1f6de0bd5964d8850f02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b125fcb13d57e007d5984ef2b144dfe154937245f5b1f6de0bd5964d8850f02", kill_on_drop: false }` [INFO] [stdout] 8b125fcb13d57e007d5984ef2b144dfe154937245f5b1f6de0bd5964d8850f02 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a645a45abe43c07aaaf9d3234c203dd6fed0484563d1f32910b775e07e18c5ba [INFO] running `Command { std: "docker" "start" "-a" "a645a45abe43c07aaaf9d3234c203dd6fed0484563d1f32910b775e07e18c5ba", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling openssl-sys v0.9.96 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling openssl v0.10.60 [INFO] [stderr] Compiling rustix v0.38.25 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling thiserror v1.0.65 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling terminal_size v0.3.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling crossbeam-channel v0.5.14 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling scoped-tls-hkt v0.1.5 [INFO] [stderr] Compiling atomic_refcell v0.1.13 [INFO] [stderr] Compiling indenter v0.3.3 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling kdam v0.5.2 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling fasteval v0.2.4 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling thiserror-impl v1.0.65 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling legion_codegen v0.4.0 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling erased-serde v0.3.31 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling legion v0.4.0 [INFO] [stderr] Compiling eval v0.4.3 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling hyper-util v0.1.7 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.8 [INFO] [stderr] Compiling star_rail_calculator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:280:20 [INFO] [stdout] | [INFO] [stdout] 279 | attack_type: todo!(), [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 280 | level: character.level, [INFO] [stdout] | ^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stat_bonus` [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | stat_bonus: &StatBonusMap, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stat_bonus` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Skill` and `UltimateSingle` are never constructed [INFO] [stdout] --> src/character/acheron.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum AcheronEvaluationTarget { [INFO] [stdout] | ----------------------- variants in this enum [INFO] [stdout] 26 | Skill, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | UltimateSingle, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HoyowikiClient` is never constructed [INFO] [stdout] --> src/client/hoyowiki_client.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct HoyowikiClient { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `fetch_data` and `id_lookup` are never used [INFO] [stdout] --> src/client/hoyowiki_client.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl HoyowikiClient { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 13 | pub async fn fetch_data Deserialize<'de>>( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn id_lookup(&self, id: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `StatBonusMap` is never used [INFO] [stdout] --> src/engine/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub type StatBonusMap = HashMap; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RelicSetName` is never used [INFO] [stdout] --> src/domain/relic.rs:99:10 [INFO] [stdout] | [INFO] [stdout] 99 | pub enum RelicSetName { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_mainstat` is never used [INFO] [stdout] --> src/domain/relic.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 205 | impl RawRelic { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 206 | pub fn get_mainstat(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/domain/relic.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 298 | pub struct MainAffixes { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 299 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/domain/relic.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct SubAffixes { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 305 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `affix_id` is never read [INFO] [stdout] --> src/domain/relic.rs:311:9 [INFO] [stdout] | [INFO] [stdout] 310 | pub struct MainAffix { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 311 | pub affix_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MainAffix` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `affix_id` and `property` are never read [INFO] [stdout] --> src/domain/relic.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 318 | pub struct SubAffix { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 319 | pub affix_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 320 | pub property: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SubAffix` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CritDmg` and `EnergyRegen` are never constructed [INFO] [stdout] --> src/domain/light_cone.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum CarveTheMoonWeaveTheCloudEffect { [INFO] [stdout] | ------------------------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | CritDmg, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | EnergyRegen, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CarveTheMoonWeaveTheCloudEffect` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LightConeStats` is never constructed [INFO] [stdout] --> src/domain/light_cone.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct LightConeStats { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HoyowikiResponse` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct HoyowikiResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Data` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Data { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Page` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Page { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Module` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Module { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Component` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Component { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Traces` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct Traces { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Trace` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct Trace { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ascensions` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Ascensions { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ascension` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Ascension { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CombatList` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct CombatList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HoyowikiDataFetcherService` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct HoyowikiDataFetcherService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `extract_ascension_value`, `extract_trace_bonus`, `calculate_character_base_stats`, `calculate_light_cone_base_stats`, `trace_mapping`, and `calculate_trace_bonus` are never used [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 163 | impl HoyowikiDataFetcherService { [INFO] [stdout] | ------------------------------- methods in this implementation [INFO] [stdout] 164 | fn extract_ascension_value(&self, stat: &str, ascension: &Ascension) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn extract_trace_bonus(&self, key: &str, traces: &Traces) -> Result<(Stats, f64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn calculate_character_base_stats( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | fn calculate_light_cone_base_stats( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | fn trace_mapping(&self, path: &Path, key: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 448 | async fn calculate_trace_bonus(&self, character: &RawCharacter) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/domain/base_stats.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct BaseStats { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | pub lightning_resistance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | pub ice_resistance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 29 | pub fire_resistance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | pub wind_resistance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | pub physical_resistance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | pub quantum_resistance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pub imaginary_resistance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BaseStats` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `ascension`, and `base_aggro` are never read [INFO] [stdout] --> src/domain/character.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Character { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | pub id: String, [INFO] [stdout] 7 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub ascension: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub base_aggro: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Character` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RealDamage` and `ExtraDamage` are never constructed [INFO] [stdout] --> src/domain/character.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 118 | pub enum DamageType { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 119 | Normal, [INFO] [stdout] 120 | RealDamage, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 121 | ExtraDamage, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Crit` is never constructed [INFO] [stdout] --> src/domain/character.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 128 | pub enum CritEnum { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 129 | Crit, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CritEnum` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `title_mapper` is never used [INFO] [stdout] --> src/utils/trace_title_mapper.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn title_mapper(title: &str) -> Stats { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&relics::Relics` instead of cloning the inner type [INFO] [stdout] --> src/engine/optimizer.rs:123:45 [INFO] [stdout] | [INFO] [stdout] 123 | Ok::<_, eyre::Report>(winner.clone().clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 56s [INFO] running `Command { std: "docker" "inspect" "a645a45abe43c07aaaf9d3234c203dd6fed0484563d1f32910b775e07e18c5ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a645a45abe43c07aaaf9d3234c203dd6fed0484563d1f32910b775e07e18c5ba", kill_on_drop: false }` [INFO] [stdout] a645a45abe43c07aaaf9d3234c203dd6fed0484563d1f32910b775e07e18c5ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 90eee10b2a685404d8c654a3bb7b22a26caea5d7e71578267771377fd7cad860 [INFO] running `Command { std: "docker" "start" "-a" "90eee10b2a685404d8c654a3bb7b22a26caea5d7e71578267771377fd7cad860", kill_on_drop: false }` [INFO] [stderr] Compiling star_rail_calculator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:280:20 [INFO] [stdout] | [INFO] [stdout] 279 | attack_type: todo!(), [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 280 | level: character.level, [INFO] [stdout] | ^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stat_bonus` [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | stat_bonus: &StatBonusMap, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stat_bonus` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HoyowikiClient` is never constructed [INFO] [stdout] --> src/client/hoyowiki_client.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct HoyowikiClient { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `fetch_data` and `id_lookup` are never used [INFO] [stdout] --> src/client/hoyowiki_client.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl HoyowikiClient { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 13 | pub async fn fetch_data Deserialize<'de>>( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn id_lookup(&self, id: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HoyowikiResponse` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct HoyowikiResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Data` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Data { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Page` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Page { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Module` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Module { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Component` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Component { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Traces` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct Traces { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Trace` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct Trace { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ascensions` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Ascensions { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ascension` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Ascension { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CombatList` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct CombatList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HoyowikiDataFetcherService` is never constructed [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct HoyowikiDataFetcherService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `extract_ascension_value`, `extract_trace_bonus`, `calculate_character_base_stats`, `calculate_light_cone_base_stats`, `trace_mapping`, and `calculate_trace_bonus` are never used [INFO] [stdout] --> src/data_fetcher/hoyowiki_data_fetcher.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 163 | impl HoyowikiDataFetcherService { [INFO] [stdout] | ------------------------------- methods in this implementation [INFO] [stdout] 164 | fn extract_ascension_value(&self, stat: &str, ascension: &Ascension) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn extract_trace_bonus(&self, key: &str, traces: &Traces) -> Result<(Stats, f64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn calculate_character_base_stats( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | fn calculate_light_cone_base_stats( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | fn trace_mapping(&self, path: &Path, key: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 448 | async fn calculate_trace_bonus(&self, character: &RawCharacter) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/domain/base_stats.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct BaseStats { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | pub lightning_resistance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | pub ice_resistance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 29 | pub fire_resistance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | pub wind_resistance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | pub physical_resistance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | pub quantum_resistance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pub imaginary_resistance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BaseStats` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `ascension`, and `base_aggro` are never read [INFO] [stdout] --> src/domain/character.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Character { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | pub id: String, [INFO] [stdout] 7 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub ascension: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub base_aggro: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Character` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RealDamage` and `ExtraDamage` are never constructed [INFO] [stdout] --> src/domain/character.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 118 | pub enum DamageType { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 119 | Normal, [INFO] [stdout] 120 | RealDamage, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 121 | ExtraDamage, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Crit` is never constructed [INFO] [stdout] --> src/domain/character.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 128 | pub enum CritEnum { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 129 | Crit, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CritEnum` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CritDmg` and `EnergyRegen` are never constructed [INFO] [stdout] --> src/domain/light_cone.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum CarveTheMoonWeaveTheCloudEffect { [INFO] [stdout] | ------------------------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | CritDmg, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | EnergyRegen, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CarveTheMoonWeaveTheCloudEffect` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LightConeStats` is never constructed [INFO] [stdout] --> src/domain/light_cone.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct LightConeStats { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RelicSetName` is never used [INFO] [stdout] --> src/domain/relic.rs:99:10 [INFO] [stdout] | [INFO] [stdout] 99 | pub enum RelicSetName { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_mainstat` is never used [INFO] [stdout] --> src/domain/relic.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 205 | impl RawRelic { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 206 | pub fn get_mainstat(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/domain/relic.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 298 | pub struct MainAffixes { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 299 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/domain/relic.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct SubAffixes { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 305 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `affix_id` is never read [INFO] [stdout] --> src/domain/relic.rs:311:9 [INFO] [stdout] | [INFO] [stdout] 310 | pub struct MainAffix { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 311 | pub affix_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MainAffix` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `affix_id` and `property` are never read [INFO] [stdout] --> src/domain/relic.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 318 | pub struct SubAffix { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 319 | pub affix_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 320 | pub property: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SubAffix` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `StatBonusMap` is never used [INFO] [stdout] --> src/engine/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub type StatBonusMap = HashMap; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `title_mapper` is never used [INFO] [stdout] --> src/utils/trace_title_mapper.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn title_mapper(title: &str) -> Stats { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&relics::Relics` instead of cloning the inner type [INFO] [stdout] --> src/engine/optimizer.rs:123:45 [INFO] [stdout] | [INFO] [stdout] 123 | Ok::<_, eyre::Report>(winner.clone().clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.99s [INFO] running `Command { std: "docker" "inspect" "90eee10b2a685404d8c654a3bb7b22a26caea5d7e71578267771377fd7cad860", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90eee10b2a685404d8c654a3bb7b22a26caea5d7e71578267771377fd7cad860", kill_on_drop: false }` [INFO] [stdout] 90eee10b2a685404d8c654a3bb7b22a26caea5d7e71578267771377fd7cad860