[INFO] cloning repository https://github.com/Y-ZD-heheka/rust_learn
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Y-ZD-heheka/rust_learn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FY-ZD-heheka%2Frust_learn", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FY-ZD-heheka%2Frust_learn'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e4f349eda7e49f5d44693b4793a2f671ea5546e3
[INFO] checking Y-ZD-heheka/rust_learn against try#7424ce9ff9baac3e9d9f5dd3c85828cddea0134d for pr-136776-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FY-ZD-heheka%2Frust_learn" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Y-ZD-heheka/rust_learn
[INFO] finished tweaking git repo https://github.com/Y-ZD-heheka/rust_learn
[INFO] tweaked toml for git repo https://github.com/Y-ZD-heheka/rust_learn written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Y-ZD-heheka/rust_learn on toolchain 7424ce9ff9baac3e9d9f5dd3c85828cddea0134d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7424ce9ff9baac3e9d9f5dd3c85828cddea0134d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Y-ZD-heheka/rust_learn 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" "+7424ce9ff9baac3e9d9f5dd3c85828cddea0134d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+7424ce9ff9baac3e9d9f5dd3c85828cddea0134d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d8ca8596ee946e6f42f1a9d72a8baf40ff031d2aff32f16219f71c789dec5ff3
[INFO] running `Command { std: "docker" "start" "-a" "d8ca8596ee946e6f42f1a9d72a8baf40ff031d2aff32f16219f71c789dec5ff3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d8ca8596ee946e6f42f1a9d72a8baf40ff031d2aff32f16219f71c789dec5ff3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d8ca8596ee946e6f42f1a9d72a8baf40ff031d2aff32f16219f71c789dec5ff3", kill_on_drop: false }`
[INFO] [stdout] d8ca8596ee946e6f42f1a9d72a8baf40ff031d2aff32f16219f71c789dec5ff3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+7424ce9ff9baac3e9d9f5dd3c85828cddea0134d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f441bbf1bac18f6cac39538a756b4fe5ade0fe6059d0be903bbb309a5b71f539
[INFO] running `Command { std: "docker" "start" "-a" "f441bbf1bac18f6cac39538a756b4fe5ade0fe6059d0be903bbb309a5b71f539", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling icu_properties_data v2.1.1
[INFO] [stderr]    Compiling icu_normalizer_data v2.1.1
[INFO] [stderr]    Compiling cc v1.2.45
[INFO] [stderr]    Compiling stable_deref_trait v1.2.1
[INFO] [stderr]    Compiling syn v2.0.108
[INFO] [stderr]    Compiling zerocopy v0.8.28
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling writeable v0.6.2
[INFO] [stderr]    Compiling litemap v0.8.1
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]    Compiling futures-core v0.3.31
[INFO] [stderr]    Compiling rustls v0.23.35
[INFO] [stderr]    Compiling zeroize v1.8.2
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling lock_api v0.4.14
[INFO] [stderr]     Checking crypto-common v0.1.7
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling futures-sink v0.3.31
[INFO] [stderr]     Checking indexmap v2.12.0
[INFO] [stderr]     Checking rustls-pki-types v1.13.0
[INFO] [stderr]    Compiling socket2 v0.6.1
[INFO] [stderr]    Compiling mio v1.1.0
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]    Compiling bytes v1.10.1
[INFO] [stderr]    Compiling foldhash v0.1.5
[INFO] [stderr]    Compiling slab v0.4.11
[INFO] [stderr]    Compiling allocator-api2 v0.2.21
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling futures-io v0.3.31
[INFO] [stderr]    Compiling webpki-roots v1.0.4
[INFO] [stderr]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling tracing-core v0.1.35
[INFO] [stderr]    Compiling parking v2.2.1
[INFO] [stderr]    Compiling iana-time-zone v0.1.64
[INFO] [stderr]    Compiling crc v3.3.0
[INFO] [stderr]    Compiling event-listener v5.4.1
[INFO] [stderr]    Compiling hashbrown v0.15.5
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling webpki-roots v0.26.11
[INFO] [stderr]    Compiling tokio v1.48.0
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]    Compiling uuid v1.18.1
[INFO] [stderr]    Compiling chrono v0.4.42
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]    Compiling openssl v0.10.75
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling openssl-sys v0.9.111
[INFO] [stderr]    Compiling libsqlite3-sys v0.30.1
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling unicode-properties v0.1.4
[INFO] [stderr]    Compiling stringprep v0.1.5
[INFO] [stderr]     Checking regex-automata v0.4.13
[INFO] [stderr]    Compiling hashlink v0.10.0
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling flume v0.11.1
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling home v0.5.12
[INFO] [stderr]    Compiling whoami v1.6.1
[INFO] [stderr]    Compiling bitflags v2.10.0
[INFO] [stderr]     Checking clap_builder v4.5.53
[INFO] [stderr]     Checking serde_json v1.0.145
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]     Checking iri-string v0.7.9
[INFO] [stderr]    Compiling rayon-core v1.13.0
[INFO] [stderr]     Checking encoding_rs v0.8.35
[INFO] [stderr]     Checking plotters-backend v0.3.7
[INFO] [stderr]     Checking ciborium-io v0.2.2
[INFO] [stderr]     Checking tempfile v3.23.0
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]     Checking plotters-svg v0.3.7
[INFO] [stderr]     Checking pbkdf2 v0.12.2
[INFO] [stderr]     Checking wait-timeout v0.2.1
[INFO] [stderr]     Checking bit-vec v0.8.0
[INFO] [stderr]     Checking plotters v0.3.7
[INFO] [stderr]     Checking rusty-fork v0.3.1
[INFO] [stderr]     Checking rand_xorshift v0.4.0
[INFO] [stderr]     Checking bit-set v0.8.0
[INFO] [stderr]     Checking oorandom v11.1.5
[INFO] [stderr]     Checking unarray v0.1.4
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]     Checking regex v1.12.2
[INFO] [stderr]     Checking matchers v0.2.0
[INFO] [stderr]     Checking rustls-webpki v0.103.8
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling zerocopy-derive v0.8.28
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling thiserror-impl v2.0.17
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling clap_derive v4.5.49
[INFO] [stderr]    Compiling thiserror v2.0.17
[INFO] [stderr]     Checking tracing v0.1.42
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]     Checking yoke v0.8.1
[INFO] [stderr]     Checking zerovec v0.11.5
[INFO] [stderr]     Checking zerotrie v0.2.3
[INFO] [stderr]     Checking clap v4.5.53
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]     Checking icu_locale_core v2.1.1
[INFO] [stderr]     Checking smallvec v1.15.1
[INFO] [stderr]     Checking either v1.15.0
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking tinytemplate v1.2.1
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]     Checking tracing-subscriber v0.3.21
[INFO] [stderr]     Checking itertools v0.13.0
[INFO] [stderr]     Checking rayon v1.11.0
[INFO] [stderr]    Compiling icu_provider v2.1.1
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling icu_properties v2.1.1
[INFO] [stderr]     Checking futures-intrusive v0.5.0
[INFO] [stderr]     Checking futures v0.3.31
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling url v2.5.7
[INFO] [stderr]     Checking criterion-plot v0.6.0
[INFO] [stderr]     Checking half v2.7.1
[INFO] [stderr]     Checking ciborium-ll v0.2.2
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]    Compiling sqlx-core v0.8.6
[INFO] [stderr]     Checking ciborium v0.2.2
[INFO] [stderr]     Checking rand v0.9.2
[INFO] [stderr]     Checking proptest v1.9.0
[INFO] [stderr]     Checking criterion v0.7.0
[INFO] [stderr]     Checking tokio-util v0.7.17
[INFO] [stderr]     Checking tower v0.5.2
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking tower-http v0.6.6
[INFO] [stderr]     Checking h2 v0.4.12
[INFO] [stderr]    Compiling sqlx-sqlite v0.8.6
[INFO] [stderr]    Compiling sqlx-postgres v0.8.6
[INFO] [stderr]     Checking hyper v1.8.0
[INFO] [stderr]     Checking hyper-util v0.1.17
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.6
[INFO] [stderr]     Checking hyper-tls v0.6.0
[INFO] [stderr]     Checking reqwest v0.12.24
[INFO] [stderr]    Compiling sqlx-macros v0.8.6
[INFO] [stderr]     Checking sqlx v0.8.6
[INFO] [stderr]     Checking rust_learn v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unexpected `cfg` condition value: `systemd`
[INFO] [stdout]    --> src/modules.rs:234:11
[INFO] [stdout]     |
[INFO] [stdout] 234 |     #[cfg(feature = "systemd")]
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = help: consider adding `systemd` as a feature in `Cargo.toml`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused macro definition: `html_div`
[INFO] [stdout]    --> src/macros.rs:400:18
[INFO] [stdout]     |
[INFO] [stdout] 400 |     macro_rules! html_div {
[INFO] [stdout]     |                  ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt`
[INFO] [stdout]  --> src/best_practices.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::fmt;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `systemd`
[INFO] [stdout]    --> src/modules.rs:234:11
[INFO] [stdout]     |
[INFO] [stdout] 234 |     #[cfg(feature = "systemd")]
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = help: consider adding `systemd` as a feature in `Cargo.toml`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused macro definition: `html_div`
[INFO] [stdout]    --> src/macros.rs:400:18
[INFO] [stdout]     |
[INFO] [stdout] 400 |     macro_rules! html_div {
[INFO] [stdout]     |                  ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]    --> src/testing.rs:282:9
[INFO] [stdout]     |
[INFO] [stdout] 282 |     use super::*;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt`
[INFO] [stdout]  --> src/best_practices.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::fmt;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_empty` is never used
[INFO] [stdout]    --> src/basics.rs:131:12
[INFO] [stdout]     |
[INFO] [stdout] 113 |     impl ModernStack {
[INFO] [stdout]     |     ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 131 |         fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_empty` is never used
[INFO] [stdout]    --> src/basics.rs:186:12
[INFO] [stdout]     |
[INFO] [stdout] 159 |     impl ModernQueue {
[INFO] [stdout]     |     ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 186 |         fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id`, `value`, and `neighbors` are never read
[INFO] [stdout]    --> src/ownership.rs:574:9
[INFO] [stdout]     |
[INFO] [stdout] 573 |     struct GraphNode {
[INFO] [stdout]     |            --------- fields in this struct
[INFO] [stdout] 574 |         id: u32,
[INFO] [stdout]     |         ^^
[INFO] [stdout] 575 |         value: String,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 576 |         neighbors: Vec<Weak<Node>>,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `GraphNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `add_neighbor` is never used
[INFO] [stdout]    --> src/ownership.rs:590:12
[INFO] [stdout]     |
[INFO] [stdout] 581 |     impl GraphNode {
[INFO] [stdout]     |     -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 590 |         fn add_neighbor(&self, _neighbor: &Node) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `distance` and `travel_time` are never read
[INFO] [stdout]    --> src/types.rs:453:9
[INFO] [stdout]     |
[INFO] [stdout] 452 |     struct Route {
[INFO] [stdout]     |            ----- fields in this struct
[INFO] [stdout] 453 |         distance: f64,
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 454 |         travel_time: f64,
[INFO] [stdout]     |         ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Route` 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: trait `Drawable` is never used
[INFO] [stdout]    --> src/types.rs:592:11
[INFO] [stdout]     |
[INFO] [stdout] 592 |     trait Drawable {
[INFO] [stdout]     |           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Red` is never constructed
[INFO] [stdout]    --> src/types.rs:600:12
[INFO] [stdout]     |
[INFO] [stdout] 600 |     struct Red;
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Blue` is never constructed
[INFO] [stdout]    --> src/types.rs:602:12
[INFO] [stdout]     |
[INFO] [stdout] 602 |     struct Blue;
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RedCircle` is never constructed
[INFO] [stdout]    --> src/types.rs:605:12
[INFO] [stdout]     |
[INFO] [stdout] 605 |     struct RedCircle {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `BlueRectangle` is never constructed
[INFO] [stdout]    --> src/types.rs:611:12
[INFO] [stdout]     |
[INFO] [stdout] 611 |     struct BlueRectangle {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `disable` is never used
[INFO] [stdout]    --> src/types.rs:721:12
[INFO] [stdout]     |
[INFO] [stdout] 720 |     impl LightSwitch<Enabled> {
[INFO] [stdout]     |     ------------------------- method in this implementation
[INFO] [stdout] 721 |         fn disable(self) -> LightSwitch<Disabled> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `remove` is never used
[INFO] [stdout]    --> src/types.rs:827:12
[INFO] [stdout]     |
[INFO] [stdout] 815 |     impl Composite {
[INFO] [stdout]     |     -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 827 |         fn remove(&mut self, index: usize) {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Container` is never constructed
[INFO] [stdout]    --> src/types.rs:954:12
[INFO] [stdout]     |
[INFO] [stdout] 954 |     struct Container<T> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `push`, `get`, and `len` are never used
[INFO] [stdout]    --> src/types.rs:960:12
[INFO] [stdout]     |
[INFO] [stdout] 959 |     impl<T> Container<T> {
[INFO] [stdout]     |     -------------------- associated items in this implementation
[INFO] [stdout] 960 |         fn new() -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 967 |         fn push(&mut self, item: T) {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 971 |         fn get(&self, index: usize) -> Option<&T> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 975 |         fn len(&self) -> usize {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PublishedState` is never constructed
[INFO] [stdout]     --> src/types.rs:1059:12
[INFO] [stdout]      |
[INFO] [stdout] 1059 |     struct PublishedState;
[INFO] [stdout]      |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_content` is never used
[INFO] [stdout]     --> src/types.rs:1067:12
[INFO] [stdout]      |
[INFO] [stdout] 1066 |     impl SimpleDocument<PublishedState> {
[INFO] [stdout]      |     ----------------------------------- method in this implementation
[INFO] [stdout] 1067 |         fn get_content(&self) -> &str {
[INFO] [stdout]      |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Seconds` is never constructed
[INFO] [stdout]     --> src/types.rs:1160:12
[INFO] [stdout]      |
[INFO] [stdout] 1160 |     struct Seconds(f64);
[INFO] [stdout]      |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_meters` is never used
[INFO] [stdout]     --> src/types.rs:1169:12
[INFO] [stdout]      |
[INFO] [stdout] 1168 |     impl Kilometers {
[INFO] [stdout]      |     --------------- method in this implementation
[INFO] [stdout] 1169 |         fn to_meters(self) -> Meters {
[INFO] [stdout]      |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `NetworkError` and `JsonParsingError` are never constructed
[INFO] [stdout]    --> src/error_handling.rs:274:9
[INFO] [stdout]     |
[INFO] [stdout] 270 |     enum NetworkError {
[INFO] [stdout]     |          ------------ variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 274 |         NetworkError(String),
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] 275 |         JsonParsingError,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `NetworkError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fetch_user_data` is never used
[INFO] [stdout]    --> src/error_handling.rs:291:14
[INFO] [stdout]     |
[INFO] [stdout] 291 |     async fn fetch_user_data(user_id: u32) -> Result<String, NetworkError> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_config_file` is never used
[INFO] [stdout]    --> src/error_handling.rs:352:8
[INFO] [stdout]     |
[INFO] [stdout] 352 |     fn read_config_file() -> Result<String, io::Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `InvalidType` and `FileParseError` are never constructed
[INFO] [stdout]    --> src/error_handling.rs:419:9
[INFO] [stdout]     |
[INFO] [stdout] 417 |     enum ConfigError {
[INFO] [stdout]     |          ----------- variants in this enum
[INFO] [stdout] 418 |         MissingField(String),
[INFO] [stdout] 419 |         InvalidType { field: String, expected: String, actual: String },
[INFO] [stdout]     |         ^^^^^^^^^^^
[INFO] [stdout] 420 |         InvalidValue { field: String, value: String, reason: String },
[INFO] [stdout] 421 |         FileParseError(String),
[INFO] [stdout]     |         ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ConfigError` 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 `host`, `port`, `database_url`, and `debug` are never read
[INFO] [stdout]    --> src/error_handling.rs:442:9
[INFO] [stdout]     |
[INFO] [stdout] 441 |     struct AppConfig {
[INFO] [stdout]     |            --------- fields in this struct
[INFO] [stdout] 442 |         host: String,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 443 |         port: u16,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 444 |         database_url: String,
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] 445 |         debug: bool,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `AppConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ForbiddenAction` is never constructed
[INFO] [stdout]    --> src/error_handling.rs:543:9
[INFO] [stdout]     |
[INFO] [stdout] 538 |     enum ValidationError {
[INFO] [stdout]     |          --------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 543 |         ForbiddenAction(String),
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ValidationError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `TimeoutError` is never constructed
[INFO] [stdout]    --> src/error_handling.rs:666:9
[INFO] [stdout]     |
[INFO] [stdout] 663 |     enum ResourceError {
[INFO] [stdout]     |          ------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 666 |         TimeoutError,
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ResourceError` 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 `price`, `category`, and `stock` are never read
[INFO] [stdout]    --> src/modules.rs:345:17
[INFO] [stdout]     |
[INFO] [stdout] 342 |         pub struct Product {
[INFO] [stdout]     |                    ------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 345 |             pub price: f64,
[INFO] [stdout]     |                 ^^^^^
[INFO] [stdout] 346 |             pub category: String,
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout] 347 |             pub stock: u32,
[INFO] [stdout]     |                 ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Product` 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: method `find_by_id` is never used
[INFO] [stdout]    --> src/modules.rs:352:16
[INFO] [stdout]     |
[INFO] [stdout] 351 |         pub trait UserRepository {
[INFO] [stdout]     |                   -------------- method in this trait
[INFO] [stdout] 352 |             fn find_by_id(&self, id: u64) -> Option<User>;
[INFO] [stdout]     |                ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `find_by_id` is never used
[INFO] [stdout]    --> src/modules.rs:359:16
[INFO] [stdout]     |
[INFO] [stdout] 358 |         pub trait ProductRepository {
[INFO] [stdout]     |                   ----------------- method in this trait
[INFO] [stdout] 359 |             fn find_by_id(&self, id: u64) -> Option<Product>;
[INFO] [stdout]     |                ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `product_service` is never read
[INFO] [stdout]    --> src/modules.rs:595:13
[INFO] [stdout]     |
[INFO] [stdout] 593 |         pub struct ApiGateway {
[INFO] [stdout]     |                    ---------- field in this struct
[INFO] [stdout] 594 |             user_service: user_service::UserService,
[INFO] [stdout] 595 |             product_service: product_service::ProductService,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Processing` and `Completed` are never constructed
[INFO] [stdout]    --> src/macros.rs:794:9
[INFO] [stdout]     |
[INFO] [stdout] 792 |     enum SimpleState {
[INFO] [stdout]     |          ----------- variants in this enum
[INFO] [stdout] 793 |         Idle,
[INFO] [stdout] 794 |         Processing,
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout] 795 |         Completed,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `SimpleState` 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 `id` and `items` are never read
[INFO] [stdout]    --> src/testing.rs:750:13
[INFO] [stdout]     |
[INFO] [stdout] 749 |     pub struct Order {
[INFO] [stdout]     |                ----- fields in this struct
[INFO] [stdout] 750 |         pub id: u32,
[INFO] [stdout]     |             ^^
[INFO] [stdout] 751 |         pub items: Vec<OrderItem>,
[INFO] [stdout]     |             ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Order` 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: field `product_id` is never read
[INFO] [stdout]    --> src/testing.rs:758:13
[INFO] [stdout]     |
[INFO] [stdout] 757 |     pub struct OrderItem {
[INFO] [stdout]     |                --------- field in this struct
[INFO] [stdout] 758 |         pub product_id: u32,
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OrderItem` 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: variant `Cancelled` is never constructed
[INFO] [stdout]    --> src/testing.rs:767:9
[INFO] [stdout]     |
[INFO] [stdout] 764 |     pub enum OrderStatus {
[INFO] [stdout]     |              ----------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 767 |         Cancelled,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OrderStatus` 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: type alias `AppResult` is never used
[INFO] [stdout]   --> src/best_practices.rs:16:10
[INFO] [stdout]    |
[INFO] [stdout] 16 |     type AppResult<T> = anyhow::Result<T>;
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `UserNotFound` and `PermissionDenied` are never constructed
[INFO] [stdout]   --> src/best_practices.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     enum BusinessError {
[INFO] [stdout]    |          ------------- variants in this enum
[INFO] [stdout] 21 |         #[error("用户不存在: {0}")]
[INFO] [stdout] 22 |         UserNotFound(String),
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 23 |         #[error("权限不足: {0}")]
[INFO] [stdout] 24 |         PermissionDenied(String),
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BusinessError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_user_data` is never used
[INFO] [stdout]   --> src/best_practices.rs:43:8
[INFO] [stdout]    |
[INFO] [stdout] 43 |     fn process_user_data(user_id: &str) -> AppResult<String> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `value` is never read
[INFO] [stdout]    --> src/best_practices.rs:202:9
[INFO] [stdout]     |
[INFO] [stdout] 201 |     struct Node {
[INFO] [stdout]     |            ---- field in this struct
[INFO] [stdout] 202 |         value: i32,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Node` 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 `a`, `b`, `c`, `d`, and `e` are never read
[INFO] [stdout]    --> src/best_practices.rs:231:9
[INFO] [stdout]     |
[INFO] [stdout] 230 |     struct UnoptimizedStruct {
[INFO] [stdout]     |            ----------------- fields in this struct
[INFO] [stdout] 231 |         a: u8,    // 1字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 232 |         b: u64,   // 8字节 (需要8字节对齐)
[INFO] [stdout]     |         ^
[INFO] [stdout] 233 |         c: u32,   // 4字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 234 |         d: u16,   // 2字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 235 |         e: u8,    // 1字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ApiError` is never used
[INFO] [stdout]    --> src/best_practices.rs:362:14
[INFO] [stdout]     |
[INFO] [stdout] 362 |     pub enum ApiError {
[INFO] [stdout]     |              ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `ApiResult` is never used
[INFO] [stdout]    --> src/best_practices.rs:380:10
[INFO] [stdout]     |
[INFO] [stdout] 380 |     type ApiResult<T> = Result<T, ApiError>;
[INFO] [stdout]     |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Validator` is never used
[INFO] [stdout]    --> src/best_practices.rs:383:15
[INFO] [stdout]     |
[INFO] [stdout] 383 |     pub trait Validator {
[INFO] [stdout]     |               ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `validate_email_correct_format` is never used
[INFO] [stdout]    --> src/best_practices.rs:428:12
[INFO] [stdout]     |
[INFO] [stdout] 428 |         fn validate_email_correct_format() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_config_functionality` is never used
[INFO] [stdout]    --> src/best_practices.rs:434:12
[INFO] [stdout]     |
[INFO] [stdout] 434 |         fn test_config_functionality() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `panics_on_invalid_input` is never used
[INFO] [stdout]    --> src/best_practices.rs:442:12
[INFO] [stdout]     |
[INFO] [stdout] 442 |         fn panics_on_invalid_input() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `return_first_element` is never used
[INFO] [stdout]   --> src/pitfalls.rs:30:8
[INFO] [stdout]    |
[INFO] [stdout] 30 |     fn return_first_element() -> i32 {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Node` is never constructed
[INFO] [stdout]    --> src/pitfalls.rs:257:12
[INFO] [stdout]     |
[INFO] [stdout] 257 |     struct Node {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SafeNode` is never constructed
[INFO] [stdout]    --> src/pitfalls.rs:286:12
[INFO] [stdout]     |
[INFO] [stdout] 286 |     struct SafeNode {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `data` and `metadata` are never read
[INFO] [stdout]    --> src/pitfalls.rs:296:9
[INFO] [stdout]     |
[INFO] [stdout] 295 |     struct LargeData {
[INFO] [stdout]     |            --------- fields in this struct
[INFO] [stdout] 296 |         data: Vec<u8>,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 297 |         metadata: Vec<String>,
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_empty` is never used
[INFO] [stdout]    --> src/basics.rs:131:12
[INFO] [stdout]     |
[INFO] [stdout] 113 |     impl ModernStack {
[INFO] [stdout]     |     ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 131 |         fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_empty` is never used
[INFO] [stdout]    --> src/basics.rs:186:12
[INFO] [stdout]     |
[INFO] [stdout] 159 |     impl ModernQueue {
[INFO] [stdout]     |     ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 186 |         fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id`, `value`, and `neighbors` are never read
[INFO] [stdout]    --> src/ownership.rs:574:9
[INFO] [stdout]     |
[INFO] [stdout] 573 |     struct GraphNode {
[INFO] [stdout]     |            --------- fields in this struct
[INFO] [stdout] 574 |         id: u32,
[INFO] [stdout]     |         ^^
[INFO] [stdout] 575 |         value: String,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 576 |         neighbors: Vec<Weak<Node>>,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `GraphNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `add_neighbor` is never used
[INFO] [stdout]    --> src/ownership.rs:590:12
[INFO] [stdout]     |
[INFO] [stdout] 581 |     impl GraphNode {
[INFO] [stdout]     |     -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 590 |         fn add_neighbor(&self, _neighbor: &Node) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `distance` and `travel_time` are never read
[INFO] [stdout]    --> src/types.rs:453:9
[INFO] [stdout]     |
[INFO] [stdout] 452 |     struct Route {
[INFO] [stdout]     |            ----- fields in this struct
[INFO] [stdout] 453 |         distance: f64,
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 454 |         travel_time: f64,
[INFO] [stdout]     |         ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Route` 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: trait `Drawable` is never used
[INFO] [stdout]    --> src/types.rs:592:11
[INFO] [stdout]     |
[INFO] [stdout] 592 |     trait Drawable {
[INFO] [stdout]     |           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Red` is never constructed
[INFO] [stdout]    --> src/types.rs:600:12
[INFO] [stdout]     |
[INFO] [stdout] 600 |     struct Red;
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Blue` is never constructed
[INFO] [stdout]    --> src/types.rs:602:12
[INFO] [stdout]     |
[INFO] [stdout] 602 |     struct Blue;
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RedCircle` is never constructed
[INFO] [stdout]    --> src/types.rs:605:12
[INFO] [stdout]     |
[INFO] [stdout] 605 |     struct RedCircle {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `BlueRectangle` is never constructed
[INFO] [stdout]    --> src/types.rs:611:12
[INFO] [stdout]     |
[INFO] [stdout] 611 |     struct BlueRectangle {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `disable` is never used
[INFO] [stdout]    --> src/types.rs:721:12
[INFO] [stdout]     |
[INFO] [stdout] 720 |     impl LightSwitch<Enabled> {
[INFO] [stdout]     |     ------------------------- method in this implementation
[INFO] [stdout] 721 |         fn disable(self) -> LightSwitch<Disabled> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `remove` is never used
[INFO] [stdout]    --> src/types.rs:827:12
[INFO] [stdout]     |
[INFO] [stdout] 815 |     impl Composite {
[INFO] [stdout]     |     -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 827 |         fn remove(&mut self, index: usize) {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Container` is never constructed
[INFO] [stdout]    --> src/types.rs:954:12
[INFO] [stdout]     |
[INFO] [stdout] 954 |     struct Container<T> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `push`, `get`, and `len` are never used
[INFO] [stdout]    --> src/types.rs:960:12
[INFO] [stdout]     |
[INFO] [stdout] 959 |     impl<T> Container<T> {
[INFO] [stdout]     |     -------------------- associated items in this implementation
[INFO] [stdout] 960 |         fn new() -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 967 |         fn push(&mut self, item: T) {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 971 |         fn get(&self, index: usize) -> Option<&T> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 975 |         fn len(&self) -> usize {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PublishedState` is never constructed
[INFO] [stdout]     --> src/types.rs:1059:12
[INFO] [stdout]      |
[INFO] [stdout] 1059 |     struct PublishedState;
[INFO] [stdout]      |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_content` is never used
[INFO] [stdout]     --> src/types.rs:1067:12
[INFO] [stdout]      |
[INFO] [stdout] 1066 |     impl SimpleDocument<PublishedState> {
[INFO] [stdout]      |     ----------------------------------- method in this implementation
[INFO] [stdout] 1067 |         fn get_content(&self) -> &str {
[INFO] [stdout]      |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Seconds` is never constructed
[INFO] [stdout]     --> src/types.rs:1160:12
[INFO] [stdout]      |
[INFO] [stdout] 1160 |     struct Seconds(f64);
[INFO] [stdout]      |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_meters` is never used
[INFO] [stdout]     --> src/types.rs:1169:12
[INFO] [stdout]      |
[INFO] [stdout] 1168 |     impl Kilometers {
[INFO] [stdout]      |     --------------- method in this implementation
[INFO] [stdout] 1169 |         fn to_meters(self) -> Meters {
[INFO] [stdout]      |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `NetworkError` and `JsonParsingError` are never constructed
[INFO] [stdout]    --> src/error_handling.rs:274:9
[INFO] [stdout]     |
[INFO] [stdout] 270 |     enum NetworkError {
[INFO] [stdout]     |          ------------ variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 274 |         NetworkError(String),
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] 275 |         JsonParsingError,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `NetworkError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fetch_user_data` is never used
[INFO] [stdout]    --> src/error_handling.rs:291:14
[INFO] [stdout]     |
[INFO] [stdout] 291 |     async fn fetch_user_data(user_id: u32) -> Result<String, NetworkError> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_config_file` is never used
[INFO] [stdout]    --> src/error_handling.rs:352:8
[INFO] [stdout]     |
[INFO] [stdout] 352 |     fn read_config_file() -> Result<String, io::Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `InvalidType` and `FileParseError` are never constructed
[INFO] [stdout]    --> src/error_handling.rs:419:9
[INFO] [stdout]     |
[INFO] [stdout] 417 |     enum ConfigError {
[INFO] [stdout]     |          ----------- variants in this enum
[INFO] [stdout] 418 |         MissingField(String),
[INFO] [stdout] 419 |         InvalidType { field: String, expected: String, actual: String },
[INFO] [stdout]     |         ^^^^^^^^^^^
[INFO] [stdout] 420 |         InvalidValue { field: String, value: String, reason: String },
[INFO] [stdout] 421 |         FileParseError(String),
[INFO] [stdout]     |         ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ConfigError` 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 `host`, `port`, `database_url`, and `debug` are never read
[INFO] [stdout]    --> src/error_handling.rs:442:9
[INFO] [stdout]     |
[INFO] [stdout] 441 |     struct AppConfig {
[INFO] [stdout]     |            --------- fields in this struct
[INFO] [stdout] 442 |         host: String,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 443 |         port: u16,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 444 |         database_url: String,
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] 445 |         debug: bool,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `AppConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ForbiddenAction` is never constructed
[INFO] [stdout]    --> src/error_handling.rs:543:9
[INFO] [stdout]     |
[INFO] [stdout] 538 |     enum ValidationError {
[INFO] [stdout]     |          --------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 543 |         ForbiddenAction(String),
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ValidationError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `TimeoutError` is never constructed
[INFO] [stdout]    --> src/error_handling.rs:666:9
[INFO] [stdout]     |
[INFO] [stdout] 663 |     enum ResourceError {
[INFO] [stdout]     |          ------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 666 |         TimeoutError,
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ResourceError` 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 `price`, `category`, and `stock` are never read
[INFO] [stdout]    --> src/modules.rs:345:17
[INFO] [stdout]     |
[INFO] [stdout] 342 |         pub struct Product {
[INFO] [stdout]     |                    ------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 345 |             pub price: f64,
[INFO] [stdout]     |                 ^^^^^
[INFO] [stdout] 346 |             pub category: String,
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout] 347 |             pub stock: u32,
[INFO] [stdout]     |                 ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Product` 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: method `find_by_id` is never used
[INFO] [stdout]    --> src/modules.rs:352:16
[INFO] [stdout]     |
[INFO] [stdout] 351 |         pub trait UserRepository {
[INFO] [stdout]     |                   -------------- method in this trait
[INFO] [stdout] 352 |             fn find_by_id(&self, id: u64) -> Option<User>;
[INFO] [stdout]     |                ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `find_by_id` is never used
[INFO] [stdout]    --> src/modules.rs:359:16
[INFO] [stdout]     |
[INFO] [stdout] 358 |         pub trait ProductRepository {
[INFO] [stdout]     |                   ----------------- method in this trait
[INFO] [stdout] 359 |             fn find_by_id(&self, id: u64) -> Option<Product>;
[INFO] [stdout]     |                ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `product_service` is never read
[INFO] [stdout]    --> src/modules.rs:595:13
[INFO] [stdout]     |
[INFO] [stdout] 593 |         pub struct ApiGateway {
[INFO] [stdout]     |                    ---------- field in this struct
[INFO] [stdout] 594 |             user_service: user_service::UserService,
[INFO] [stdout] 595 |             product_service: product_service::ProductService,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Processing` and `Completed` are never constructed
[INFO] [stdout]    --> src/macros.rs:794:9
[INFO] [stdout]     |
[INFO] [stdout] 792 |     enum SimpleState {
[INFO] [stdout]     |          ----------- variants in this enum
[INFO] [stdout] 793 |         Idle,
[INFO] [stdout] 794 |         Processing,
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout] 795 |         Completed,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `SimpleState` 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 `id` and `items` are never read
[INFO] [stdout]    --> src/testing.rs:750:13
[INFO] [stdout]     |
[INFO] [stdout] 749 |     pub struct Order {
[INFO] [stdout]     |                ----- fields in this struct
[INFO] [stdout] 750 |         pub id: u32,
[INFO] [stdout]     |             ^^
[INFO] [stdout] 751 |         pub items: Vec<OrderItem>,
[INFO] [stdout]     |             ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Order` 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: field `product_id` is never read
[INFO] [stdout]    --> src/testing.rs:758:13
[INFO] [stdout]     |
[INFO] [stdout] 757 |     pub struct OrderItem {
[INFO] [stdout]     |                --------- field in this struct
[INFO] [stdout] 758 |         pub product_id: u32,
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OrderItem` 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: variant `Cancelled` is never constructed
[INFO] [stdout]    --> src/testing.rs:767:9
[INFO] [stdout]     |
[INFO] [stdout] 764 |     pub enum OrderStatus {
[INFO] [stdout]     |              ----------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 767 |         Cancelled,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OrderStatus` 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: type alias `AppResult` is never used
[INFO] [stdout]   --> src/best_practices.rs:16:10
[INFO] [stdout]    |
[INFO] [stdout] 16 |     type AppResult<T> = anyhow::Result<T>;
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `UserNotFound` and `PermissionDenied` are never constructed
[INFO] [stdout]   --> src/best_practices.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     enum BusinessError {
[INFO] [stdout]    |          ------------- variants in this enum
[INFO] [stdout] 21 |         #[error("用户不存在: {0}")]
[INFO] [stdout] 22 |         UserNotFound(String),
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 23 |         #[error("权限不足: {0}")]
[INFO] [stdout] 24 |         PermissionDenied(String),
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BusinessError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_user_data` is never used
[INFO] [stdout]   --> src/best_practices.rs:43:8
[INFO] [stdout]    |
[INFO] [stdout] 43 |     fn process_user_data(user_id: &str) -> AppResult<String> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `value` is never read
[INFO] [stdout]    --> src/best_practices.rs:202:9
[INFO] [stdout]     |
[INFO] [stdout] 201 |     struct Node {
[INFO] [stdout]     |            ---- field in this struct
[INFO] [stdout] 202 |         value: i32,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Node` 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 `a`, `b`, `c`, `d`, and `e` are never read
[INFO] [stdout]    --> src/best_practices.rs:231:9
[INFO] [stdout]     |
[INFO] [stdout] 230 |     struct UnoptimizedStruct {
[INFO] [stdout]     |            ----------------- fields in this struct
[INFO] [stdout] 231 |         a: u8,    // 1字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 232 |         b: u64,   // 8字节 (需要8字节对齐)
[INFO] [stdout]     |         ^
[INFO] [stdout] 233 |         c: u32,   // 4字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 234 |         d: u16,   // 2字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 235 |         e: u8,    // 1字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ApiError` is never used
[INFO] [stdout]    --> src/best_practices.rs:362:14
[INFO] [stdout]     |
[INFO] [stdout] 362 |     pub enum ApiError {
[INFO] [stdout]     |              ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `ApiResult` is never used
[INFO] [stdout]    --> src/best_practices.rs:380:10
[INFO] [stdout]     |
[INFO] [stdout] 380 |     type ApiResult<T> = Result<T, ApiError>;
[INFO] [stdout]     |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Validator` is never used
[INFO] [stdout]    --> src/best_practices.rs:383:15
[INFO] [stdout]     |
[INFO] [stdout] 383 |     pub trait Validator {
[INFO] [stdout]     |               ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `return_first_element` is never used
[INFO] [stdout]   --> src/pitfalls.rs:30:8
[INFO] [stdout]    |
[INFO] [stdout] 30 |     fn return_first_element() -> i32 {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Node` is never constructed
[INFO] [stdout]    --> src/pitfalls.rs:257:12
[INFO] [stdout]     |
[INFO] [stdout] 257 |     struct Node {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SafeNode` is never constructed
[INFO] [stdout]    --> src/pitfalls.rs:286:12
[INFO] [stdout]     |
[INFO] [stdout] 286 |     struct SafeNode {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `data` and `metadata` are never read
[INFO] [stdout]    --> src/pitfalls.rs:296:9
[INFO] [stdout]     |
[INFO] [stdout] 295 |     struct LargeData {
[INFO] [stdout]     |            --------- fields in this struct
[INFO] [stdout] 296 |         data: Vec<u8>,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 297 |         metadata: Vec<String>,
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 09s
[INFO] running `Command { std: "docker" "inspect" "f441bbf1bac18f6cac39538a756b4fe5ade0fe6059d0be903bbb309a5b71f539", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f441bbf1bac18f6cac39538a756b4fe5ade0fe6059d0be903bbb309a5b71f539", kill_on_drop: false }`
[INFO] [stdout] f441bbf1bac18f6cac39538a756b4fe5ade0fe6059d0be903bbb309a5b71f539
