[INFO] cloning repository https://github.com/ls-2018/rust-helloworld [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ls-2018/rust-helloworld" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fls-2018%2Frust-helloworld", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fls-2018%2Frust-helloworld'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e5b9794c407360d9407da9eb0b7989ce4b36e37c [INFO] building ls-2018/rust-helloworld against master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fls-2018%2Frust-helloworld" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ls-2018/rust-helloworld on toolchain 44f415c1d617ebc7b931a243b7b321ef8a6ca47c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ls-2018/rust-helloworld [INFO] finished tweaking git repo https://github.com/ls-2018/rust-helloworld [INFO] tweaked toml for git repo https://github.com/ls-2018/rust-helloworld written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ls-2018/rust-helloworld 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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.94 [INFO] [stderr] Downloaded crates-io v0.40.4 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.94 [INFO] [stderr] Downloaded js-sys v0.3.71 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.44 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.94 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.94 [INFO] [stderr] Downloaded wasm-bindgen v0.2.94 [INFO] [stderr] Downloaded web-sys v0.3.71 [INFO] [stderr] Downloaded curl-sys v0.4.77+curl-8.10.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6f8806fb4f874a4adaacbcfeb1303d9b7117a4cc6bd886bfd44730eefe6268f8 [INFO] running `Command { std: "docker" "start" "-a" "6f8806fb4f874a4adaacbcfeb1303d9b7117a4cc6bd886bfd44730eefe6268f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6f8806fb4f874a4adaacbcfeb1303d9b7117a4cc6bd886bfd44730eefe6268f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f8806fb4f874a4adaacbcfeb1303d9b7117a4cc6bd886bfd44730eefe6268f8", kill_on_drop: false }` [INFO] [stdout] 6f8806fb4f874a4adaacbcfeb1303d9b7117a4cc6bd886bfd44730eefe6268f8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e92f813714da7cd0b5f914876c8b089eb5862a2ae4fddf5496c81568dfc6971b [INFO] running `Command { std: "docker" "start" "-a" "e92f813714da7cd0b5f914876c8b089eb5862a2ae4fddf5496c81568dfc6971b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling value-bag v1.9.0 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling cc v1.1.28 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling libz-sys v1.1.20 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling curl-sys v0.4.77+curl-8.10.1 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling brotli-decompressor v4.0.1 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling curl v0.4.47 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling flate2 v1.0.34 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling brotli v6.0.0 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling rustls-pki-types v1.9.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling async-executor v1.13.1 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling impl-more v0.1.6 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling polling v3.7.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling async-io v2.3.4 [INFO] [stderr] Compiling async-signal v0.2.10 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling async-process v2.3.0 [INFO] [stderr] Compiling async-std v1.13.0 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-server v2.5.0 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling crates-io v0.40.4 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling actix-http v3.9.0 [INFO] [stderr] Compiling hyper-util v0.1.9 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.8 [INFO] [stderr] Compiling actix-web v4.9.0 [INFO] [stderr] Compiling garden v0.1.0 (/opt/rustwide/workdir/garden) [INFO] [stdout] warning: unused import: `actix_web::web::Path` [INFO] [stdout] --> garden/src/file.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use actix_web::web::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value::String` [INFO] [stdout] --> garden/src/file.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::Value::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> garden/src/err.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Error, Read}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> garden/src/io.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> garden/src/io.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::*` [INFO] [stdout] --> garden/src/io.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::process::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::middleware::from_fn` [INFO] [stdout] --> garden/src/iter.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::middleware::from_fn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::random` [INFO] [stdout] --> garden/src/iter.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::random; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> garden/src/iter.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> garden/src/reg.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> garden/src/str.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result` and `Write` [INFO] [stdout] --> garden/src/str.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::{Result, Write}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> garden/src/file.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![recursion_limit = "256"] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> garden/src/file.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(trace_macros)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> garden/src/debug.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> garden/src/err.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let a: MyError = x.into(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> garden/src/from.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let t: Result = FromStr::from_str(s); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> garden/src/from.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let t = T::from_str(s); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> garden/src/from.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let t: Result = s.parse(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> garden/src/from.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let t = s.parse::(); // 最常用的写法 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> garden/src/ref.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | fn takes_str(s: &str) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> garden/src/ref.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let s: &str = s.as_ref(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> garden/src/ref.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let a: &str = borrow.as_ref(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> garden/src/safe.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 16 | fn typed(&self, x: T) {} // 方法中不能有类型参数 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> garden/src/safe.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | fn doit1111(x: impl TraitA) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> garden/src/safe.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 85 | fn doit11113(x: T) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> garden/src/safe.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 88 | fn doit11114(x: &dyn TraitA) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> garden/src/safe.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | let mut buf: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> garden/src/safe.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let writer: &mut dyn Write = &mut buf; // 正确 [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> garden/src/safe.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let mut buf: Vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> garden/src/trait.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | fn play(n: T) {} // 注意这一行 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `both_integer` [INFO] [stdout] --> garden/src/trait.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let both_integer = Point2 { x: 5, y: 10 }; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_both_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `both_float` [INFO] [stdout] --> garden/src/trait.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let both_float = Point2 { x: 1.0, y: 4.0 }; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_both_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `integer_and_float` [INFO] [stdout] --> garden/src/trait.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let integer_and_float = Point2 { x: 5, y: 4.0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_integer_and_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> garden/src/trait.rs:377:21 [INFO] [stdout] | [INFO] [stdout] 377 | fn doit(a: T::Mytype) {} // 这里在函数中使用了关联类型 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> garden/src/trait.rs:433:10 [INFO] [stdout] | [INFO] [stdout] 433 | fn p(t: T) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dot_emacs` [INFO] [stdout] --> garden/src/trait_asref.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let dot_emacs = std::fs::File::open(p); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dot_emacs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> garden/src/trait_asref.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let c = a.to_string(); // 堆 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> garden/src/trait_asref.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let b = &a; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `San` is never constructed [INFO] [stdout] --> garden/src/add.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | struct San { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `San` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> garden/src/base.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` 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 `foo` is never used [INFO] [stdout] --> garden/src/base.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn foo(s: &mut String) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Class` is never constructed [INFO] [stdout] --> garden/src/base.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | struct Class { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Color` is never constructed [INFO] [stdout] --> garden/src/base.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | struct Color(i32, i32, i32); // 元组结构体 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArticleModule` is never constructed [INFO] [stdout] --> garden/src/base.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | struct ArticleModule; // 单元结构体 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `List` is never constructed [INFO] [stdout] --> garden/src/base.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | struct List(Vec); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AAA` is never used [INFO] [stdout] --> garden/src/base.rs:165:6 [INFO] [stdout] | [INFO] [stdout] 165 | type AAA = HashMap>; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BBB` is never used [INFO] [stdout] --> garden/src/base.rs:167:6 [INFO] [stdout] | [INFO] [stdout] 167 | type BBB = Vec; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CCC` is never used [INFO] [stdout] --> garden/src/base.rs:169:6 [INFO] [stdout] | [INFO] [stdout] 169 | type CCC = HashMap; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DDD` is never used [INFO] [stdout] --> garden/src/base.rs:171:6 [INFO] [stdout] | [INFO] [stdout] 171 | type DDD = Vec; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `EEE` is never used [INFO] [stdout] --> garden/src/base.rs:173:6 [INFO] [stdout] | [INFO] [stdout] 173 | type EEE = HashMap; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Operate` is never used [INFO] [stdout] --> garden/src/class.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Operate { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyI8` is never constructed [INFO] [stdout] --> garden/src/class.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct MyI8(i8); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `foo` is never used [INFO] [stdout] --> garden/src/class.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl MyI8 { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 15 | fn foo(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> garden/src/debug.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> garden/src/display.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello` is never used [INFO] [stdout] --> garden/src/file.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn say_hello(out: &mut dyn Write) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Redaction`, `InvalidHeader`, and `Unknown` are never constructed [INFO] [stdout] --> garden/src/err.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum DataStoreError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | Redaction(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | #[error("invalid header (expected {expected:?}, found {found:?})")] [INFO] [stdout] 14 | InvalidHeader { expected: String, found: String }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 15 | #[error("unknown data store error")] [INFO] [stdout] 16 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataStoreError` 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 `xxx` is never used [INFO] [stdout] --> garden/src/err.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn xxx() -> Result<(), DataStoreError> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> garden/src/err.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 37 | struct MyError(String); // 用newtype方法定义了一个新的错误类型 [INFO] [stdout] | ------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> garden/src/err.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn read_file() -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> garden/src/from.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 5 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` 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 `x` and `y` are never read [INFO] [stdout] --> garden/src/from.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct Point2 { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 25 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 26 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> garden/src/from.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | struct Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new1` and `new2` are never used [INFO] [stdout] --> garden/src/from.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 70 | impl Person { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 71 | // 这个方法只接收String参数 [INFO] [stdout] 72 | fn new1(name: String) -> Person { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn new2>(name: N) -> Person { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example2` is never used [INFO] [stdout] --> garden/src/from.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn example2(s: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_dir_to` is never used [INFO] [stdout] --> garden/src/io.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn copy_dir_to(src: &Path, dst: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_to` is never used [INFO] [stdout] --> garden/src/io.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn copy_to(src: &Path, src_type: &fs::FileType, dst: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `escape_time` is never used [INFO] [stdout] --> garden/src/iter.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn escape_time(c: Complex, limit: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_number` is never used [INFO] [stdout] --> garden/src/iter.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn parse_number(tokens: &mut Peekable) -> u32 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Flaky` is never constructed [INFO] [stdout] --> garden/src/iter.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | struct Flaky(bool); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `I32Range` is never constructed [INFO] [stdout] --> garden/src/iter.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | struct I32Range { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyEnum2` is never used [INFO] [stdout] --> garden/src/match.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum MyEnum2<'ax> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyEnum2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> garden/src/module.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> garden/src/module.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 34 | // 第一次 impl [INFO] [stdout] 35 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> garden/src/module.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 41 | // 第二次 impl [INFO] [stdout] 42 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Shape` is never used [INFO] [stdout] --> garden/src/module.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> garden/src/module.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct A; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit` is never used [INFO] [stdout] --> garden/src/module.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn doit() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsonError` is never constructed [INFO] [stdout] --> garden/src/panic.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct JsonError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JsonError` 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: function `xa` is never used [INFO] [stdout] --> garden/src/panic.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn xa() -> Result { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> garden/src/pbj.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has derived impls for the traits `Debug` and `Default`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `area`, `area2`, `area3`, `numbers`, and `new` are never used [INFO] [stdout] --> garden/src/pbj.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 9 | // 就像这样去实现 // area就是方法,被放在impl实现体中 [INFO] [stdout] 10 | fn area(self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn area2(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn area3(&mut self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn numbers(rows: u32, cols: u32) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn new(width: u32, height: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Shape` is never used [INFO] [stdout] --> garden/src/pbj.rs:81:6 [INFO] [stdout] | [INFO] [stdout] 81 | enum Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Number` is never used [INFO] [stdout] --> garden/src/pbj.rs:88:6 [INFO] [stdout] | [INFO] [stdout] 88 | enum Number { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyEnum` is never used [INFO] [stdout] --> garden/src/pbj.rs:96:6 [INFO] [stdout] | [INFO] [stdout] 96 | enum MyEnum { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `run` is never used [INFO] [stdout] --> garden/src/pbj.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 103 | impl MyEnum { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 104 | fn run(&self, x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Table` is never used [INFO] [stdout] --> garden/src/rc.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | type Table = HashMap>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show` is never used [INFO] [stdout] --> garden/src/rc.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn show(table: &Table) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_works` is never used [INFO] [stdout] --> garden/src/rc.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn sort_works(table: &mut Table) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_str` is never used [INFO] [stdout] --> garden/src/ref.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn takes_str(s: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_asref_str` is never used [INFO] [stdout] --> garden/src/ref.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn takes_asref_str>(s: S) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example` is never used [INFO] [stdout] --> garden/src/ref.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn example(slice: &str, borrow: &String, owned: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ObjectSafe` is never used [INFO] [stdout] --> garden/src/safe.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | trait ObjectSafe { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NotObjectSafe` is never used [INFO] [stdout] --> garden/src/safe.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | trait NotObjectSafe { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Atype` is never constructed [INFO] [stdout] --> garden/src/safe.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct Atype; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Atype` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Btype` is never constructed [INFO] [stdout] --> garden/src/safe.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct Btype; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Btype` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ctype` is never constructed [INFO] [stdout] --> garden/src/safe.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct Ctype; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ctype` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA` is never used [INFO] [stdout] --> garden/src/safe.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | trait TraitA {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit` is never used [INFO] [stdout] --> garden/src/safe.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn doit(i: u32) -> Box { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit1111` is never used [INFO] [stdout] --> garden/src/safe.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn doit1111(x: impl TraitA) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit11113` is never used [INFO] [stdout] --> garden/src/safe.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn doit11113(x: T) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit11114` is never used [INFO] [stdout] --> garden/src/safe.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn doit11114(x: &dyn TraitA) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `xx` is never used [INFO] [stdout] --> garden/src/safe.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn xx() { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> garden/src/trait.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point2` is never constructed [INFO] [stdout] --> garden/src/trait.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Point2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `play` is never used [INFO] [stdout] --> garden/src/trait.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Point { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 17 | // 注意这一行 [INFO] [stdout] 18 | fn play(n: T) {} // 注意这一行 [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `doit` is never used [INFO] [stdout] --> garden/src/trait.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl Point { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 22 | // 这里,对具化类型 Point 继续做 impl [INFO] [stdout] 23 | fn doit() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Land` and `Water` are never constructed [INFO] [stdout] --> garden/src/trait.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | enum SportType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 27 | Land, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | Water, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA` is never used [INFO] [stdout] --> garden/src/trait.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | trait TraitA { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_trait_a` is never used [INFO] [stdout] --> garden/src/trait.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn print_trait_a(p: Point) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Foo` is never constructed [INFO] [stdout] --> garden/src/trait.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | struct Foo; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main112` is never used [INFO] [stdout] --> garden/src/trait.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn main112() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA2` is never used [INFO] [stdout] --> garden/src/trait.rs:358:7 [INFO] [stdout] | [INFO] [stdout] 358 | trait TraitA2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA3` is never used [INFO] [stdout] --> garden/src/trait.rs:364:7 [INFO] [stdout] | [INFO] [stdout] 364 | trait TraitA3: TraitA2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA4` is never used [INFO] [stdout] --> garden/src/trait.rs:369:7 [INFO] [stdout] | [INFO] [stdout] 369 | trait TraitA4 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit` is never used [INFO] [stdout] --> garden/src/trait.rs:377:4 [INFO] [stdout] | [INFO] [stdout] 377 | fn doit(a: T::Mytype) {} // 这里在函数中使用了关联类型 [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeA` is never constructed [INFO] [stdout] --> garden/src/trait.rs:379:8 [INFO] [stdout] | [INFO] [stdout] 379 | struct TypeA; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Foo2` is never constructed [INFO] [stdout] --> garden/src/trait.rs:387:8 [INFO] [stdout] | [INFO] [stdout] 387 | struct Foo2> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AAAA` is never constructed [INFO] [stdout] --> garden/src/trait.rs:392:8 [INFO] [stdout] | [INFO] [stdout] 392 | struct AAAA; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit22` is never used [INFO] [stdout] --> garden/src/trait.rs:411:4 [INFO] [stdout] | [INFO] [stdout] 411 | fn doit22() [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA22` is never used [INFO] [stdout] --> garden/src/trait.rs:420:7 [INFO] [stdout] | [INFO] [stdout] 420 | trait TraitA22 {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitB22` is never used [INFO] [stdout] --> garden/src/trait.rs:422:7 [INFO] [stdout] | [INFO] [stdout] 422 | trait TraitB22 {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA33` is never used [INFO] [stdout] --> garden/src/trait.rs:426:7 [INFO] [stdout] | [INFO] [stdout] 426 | trait TraitA33 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Atype` is never constructed [INFO] [stdout] --> garden/src/trait.rs:430:8 [INFO] [stdout] | [INFO] [stdout] 430 | struct Atype; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA55` is never used [INFO] [stdout] --> garden/src/trait.rs:442:7 [INFO] [stdout] | [INFO] [stdout] 442 | trait TraitA55 {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Atype55` is never constructed [INFO] [stdout] --> garden/src/trait.rs:444:8 [INFO] [stdout] | [INFO] [stdout] 444 | struct Atype55 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Btype` is never constructed [INFO] [stdout] --> garden/src/trait.rs:455:8 [INFO] [stdout] | [INFO] [stdout] 455 | struct Btype; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ctype` is never constructed [INFO] [stdout] --> garden/src/trait.rs:457:8 [INFO] [stdout] | [INFO] [stdout] 457 | struct Ctype; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TotalType` is never used [INFO] [stdout] --> garden/src/trait.rs:459:6 [INFO] [stdout] | [INFO] [stdout] 459 | enum TotalType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit3` is never used [INFO] [stdout] --> garden/src/trait.rs:464:4 [INFO] [stdout] | [INFO] [stdout] 464 | fn doit3(i: u32) -> TotalType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo2` is never used [INFO] [stdout] --> garden/src/trait.rs:478:4 [INFO] [stdout] | [INFO] [stdout] 478 | fn foo2(a: &u32, b: &u32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyEnum2` is never used [INFO] [stdout] --> garden/src/trait.rs:488:6 [INFO] [stdout] | [INFO] [stdout] 488 | enum MyEnum2<'ax> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyEnum2` 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 `xxx` is never used [INFO] [stdout] --> garden/src/trait.rs:493:4 [INFO] [stdout] | [INFO] [stdout] 493 | fn xxx() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Vegetable` is never used [INFO] [stdout] --> garden/src/trait.rs:515:7 [INFO] [stdout] | [INFO] [stdout] 515 | trait Vegetable {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Salad` is never constructed [INFO] [stdout] --> garden/src/trait.rs:517:8 [INFO] [stdout] | [INFO] [stdout] 517 | struct Salad { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `City` is never constructed [INFO] [stdout] --> garden/src/trait.rs:521:8 [INFO] [stdout] | [INFO] [stdout] 521 | struct City {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Salad3` is never constructed [INFO] [stdout] --> garden/src/trait.rs:525:8 [INFO] [stdout] | [INFO] [stdout] 525 | struct Salad3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_selected_cities` is never used [INFO] [stdout] --> garden/src/trait.rs:528:4 [INFO] [stdout] | [INFO] [stdout] 528 | fn count_selected_cities(cities: &Vec, test_fn: F) -> usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `x` is never used [INFO] [stdout] --> garden/src/trait_asref.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn x() { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dot_product` is never used [INFO] [stdout] --> garden/src/trait_bibao.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn dot_product(a: [f64; N], b: [f64; N]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Atype` is never constructed [INFO] [stdout] --> garden/src/trait_copy.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Atype { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Atype` 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 `Point` is never constructed [INFO] [stdout] --> garden/src/trait_copy.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point2` is never constructed [INFO] [stdout] --> garden/src/trait_copy.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Point2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Point2` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Color` is never constructed [INFO] [stdout] --> garden/src/trait_default.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Color` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> garden/src/trait_default.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Color { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 32 | fn new(r: u32, g: u32, b: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `red`, `green`, and `blue` are never used [INFO] [stdout] --> garden/src/trait_default.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl Color { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 38 | fn red(r: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn green(g: u32) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn blue(b: u32) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Selector` is never constructed [INFO] [stdout] --> garden/src/trait_deref.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Selector { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_it` is never used [INFO] [stdout] --> garden/src/trait_deref.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn show_it(thing: &char) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_it_generic` is never used [INFO] [stdout] --> garden/src/trait_deref.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn show_it_generic(thing: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Appellation` is never constructed [INFO] [stdout] --> garden/src/trait_drop.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Appellation { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `echo` is never used [INFO] [stdout] --> garden/src/vegetables.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn echo(a: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_index` is never used [INFO] [stdout] --> garden/src/web.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | async fn get_index() -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `n` and `m` are never read [INFO] [stdout] --> garden/src/web.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | struct GcdParameters { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 36 | n: u64, [INFO] [stdout] | ^ [INFO] [stdout] 37 | m: u64, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_gcd` is never used [INFO] [stdout] --> garden/src/web.rs:40:10 [INFO] [stdout] | [INFO] [stdout] 40 | async fn post_gcd(form: web::Form) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gcd` is never used [INFO] [stdout] --> garden/src/web.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn gcd(mut n: u64, mut m: u64) -> u64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `STASH` is never used [INFO] [stdout] --> garden/src/width_ref.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | static mut STASH: &i32 = &128; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f` is never used [INFO] [stdout] --> garden/src/width_ref.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn f(p: &'static i32) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `S` is never constructed [INFO] [stdout] --> garden/src/width_ref.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | struct S { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `S1` is never constructed [INFO] [stdout] --> garden/src/width_ref.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct S1<'a> { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `S1` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `S2` is never constructed [INFO] [stdout] --> garden/src/width_ref.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | struct S2 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `S3` is never constructed [INFO] [stdout] --> garden/src/width_ref.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | struct S3<'a, 'b> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `anyhow::error::::msg` that must be used [INFO] [stdout] --> garden/src/err.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | anyhow!("Missing attribute: {}", "missing"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `anyhow` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust-helloworld v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 54s [INFO] running `Command { std: "docker" "inspect" "e92f813714da7cd0b5f914876c8b089eb5862a2ae4fddf5496c81568dfc6971b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e92f813714da7cd0b5f914876c8b089eb5862a2ae4fddf5496c81568dfc6971b", kill_on_drop: false }` [INFO] [stdout] e92f813714da7cd0b5f914876c8b089eb5862a2ae4fddf5496c81568dfc6971b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7bf0132dafde356779299cd2233d2b9bcc56683e2353435de7560ec4dc0a9ff1 [INFO] running `Command { std: "docker" "start" "-a" "7bf0132dafde356779299cd2233d2b9bcc56683e2353435de7560ec4dc0a9ff1", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `actix_web::web::Path` [INFO] [stdout] --> garden/src/file.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use actix_web::web::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value::String` [INFO] [stdout] --> garden/src/file.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::Value::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> garden/src/err.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Error, Read}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> garden/src/io.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> garden/src/io.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::*` [INFO] [stdout] --> garden/src/io.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::process::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::middleware::from_fn` [INFO] [stdout] --> garden/src/iter.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::middleware::from_fn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::random` [INFO] [stdout] --> garden/src/iter.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::random; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> garden/src/iter.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> garden/src/reg.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> garden/src/str.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result` and `Write` [INFO] [stdout] --> garden/src/str.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::{Result, Write}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> garden/src/file.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![recursion_limit = "256"] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> garden/src/file.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(trace_macros)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> garden/src/debug.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> garden/src/err.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let a: MyError = x.into(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> garden/src/from.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let t: Result = FromStr::from_str(s); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> garden/src/from.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let t = T::from_str(s); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> garden/src/from.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let t: Result = s.parse(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> garden/src/from.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let t = s.parse::(); // 最常用的写法 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> garden/src/ref.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | fn takes_str(s: &str) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> garden/src/ref.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let s: &str = s.as_ref(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> garden/src/ref.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let a: &str = borrow.as_ref(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> garden/src/safe.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 16 | fn typed(&self, x: T) {} // 方法中不能有类型参数 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> garden/src/safe.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | fn doit1111(x: impl TraitA) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> garden/src/safe.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 85 | fn doit11113(x: T) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> garden/src/safe.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 88 | fn doit11114(x: &dyn TraitA) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> garden/src/safe.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | let mut buf: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> garden/src/safe.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let writer: &mut dyn Write = &mut buf; // 正确 [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> garden/src/safe.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let mut buf: Vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> garden/src/trait.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | fn play(n: T) {} // 注意这一行 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `both_integer` [INFO] [stdout] --> garden/src/trait.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let both_integer = Point2 { x: 5, y: 10 }; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_both_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `both_float` [INFO] [stdout] --> garden/src/trait.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let both_float = Point2 { x: 1.0, y: 4.0 }; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_both_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `integer_and_float` [INFO] [stdout] --> garden/src/trait.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let integer_and_float = Point2 { x: 5, y: 4.0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_integer_and_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> garden/src/trait.rs:377:21 [INFO] [stdout] | [INFO] [stdout] 377 | fn doit(a: T::Mytype) {} // 这里在函数中使用了关联类型 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> garden/src/trait.rs:433:10 [INFO] [stdout] | [INFO] [stdout] 433 | fn p(t: T) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dot_emacs` [INFO] [stdout] --> garden/src/trait_asref.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let dot_emacs = std::fs::File::open(p); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dot_emacs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> garden/src/trait_asref.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let c = a.to_string(); // 堆 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> garden/src/trait_asref.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let b = &a; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `San` is never constructed [INFO] [stdout] --> garden/src/add.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | struct San { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `San` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> garden/src/base.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` 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 `foo` is never used [INFO] [stdout] --> garden/src/base.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn foo(s: &mut String) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Class` is never constructed [INFO] [stdout] --> garden/src/base.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | struct Class { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Color` is never constructed [INFO] [stdout] --> garden/src/base.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | struct Color(i32, i32, i32); // 元组结构体 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArticleModule` is never constructed [INFO] [stdout] --> garden/src/base.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | struct ArticleModule; // 单元结构体 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `List` is never constructed [INFO] [stdout] --> garden/src/base.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | struct List(Vec); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AAA` is never used [INFO] [stdout] --> garden/src/base.rs:165:6 [INFO] [stdout] | [INFO] [stdout] 165 | type AAA = HashMap>; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BBB` is never used [INFO] [stdout] --> garden/src/base.rs:167:6 [INFO] [stdout] | [INFO] [stdout] 167 | type BBB = Vec; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CCC` is never used [INFO] [stdout] --> garden/src/base.rs:169:6 [INFO] [stdout] | [INFO] [stdout] 169 | type CCC = HashMap; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DDD` is never used [INFO] [stdout] --> garden/src/base.rs:171:6 [INFO] [stdout] | [INFO] [stdout] 171 | type DDD = Vec; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `EEE` is never used [INFO] [stdout] --> garden/src/base.rs:173:6 [INFO] [stdout] | [INFO] [stdout] 173 | type EEE = HashMap; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Operate` is never used [INFO] [stdout] --> garden/src/class.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Operate { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyI8` is never constructed [INFO] [stdout] --> garden/src/class.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct MyI8(i8); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `foo` is never used [INFO] [stdout] --> garden/src/class.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl MyI8 { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 15 | fn foo(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> garden/src/debug.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> garden/src/display.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello` is never used [INFO] [stdout] --> garden/src/file.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn say_hello(out: &mut dyn Write) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Redaction`, `InvalidHeader`, and `Unknown` are never constructed [INFO] [stdout] --> garden/src/err.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum DataStoreError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | Redaction(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | #[error("invalid header (expected {expected:?}, found {found:?})")] [INFO] [stdout] 14 | InvalidHeader { expected: String, found: String }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 15 | #[error("unknown data store error")] [INFO] [stdout] 16 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataStoreError` 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 `xxx` is never used [INFO] [stdout] --> garden/src/err.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn xxx() -> Result<(), DataStoreError> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> garden/src/err.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 37 | struct MyError(String); // 用newtype方法定义了一个新的错误类型 [INFO] [stdout] | ------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> garden/src/err.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn read_file() -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> garden/src/from.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 5 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` 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 `x` and `y` are never read [INFO] [stdout] --> garden/src/from.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct Point2 { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 25 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 26 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> garden/src/from.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | struct Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new1` and `new2` are never used [INFO] [stdout] --> garden/src/from.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 70 | impl Person { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 71 | // 这个方法只接收String参数 [INFO] [stdout] 72 | fn new1(name: String) -> Person { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn new2>(name: N) -> Person { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example2` is never used [INFO] [stdout] --> garden/src/from.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn example2(s: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_dir_to` is never used [INFO] [stdout] --> garden/src/io.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn copy_dir_to(src: &Path, dst: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_to` is never used [INFO] [stdout] --> garden/src/io.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn copy_to(src: &Path, src_type: &fs::FileType, dst: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `escape_time` is never used [INFO] [stdout] --> garden/src/iter.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn escape_time(c: Complex, limit: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_number` is never used [INFO] [stdout] --> garden/src/iter.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn parse_number(tokens: &mut Peekable) -> u32 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Flaky` is never constructed [INFO] [stdout] --> garden/src/iter.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | struct Flaky(bool); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `I32Range` is never constructed [INFO] [stdout] --> garden/src/iter.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | struct I32Range { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyEnum2` is never used [INFO] [stdout] --> garden/src/match.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum MyEnum2<'ax> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyEnum2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> garden/src/module.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> garden/src/module.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 34 | // 第一次 impl [INFO] [stdout] 35 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> garden/src/module.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 41 | // 第二次 impl [INFO] [stdout] 42 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Shape` is never used [INFO] [stdout] --> garden/src/module.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> garden/src/module.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct A; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit` is never used [INFO] [stdout] --> garden/src/module.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn doit() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsonError` is never constructed [INFO] [stdout] --> garden/src/panic.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct JsonError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JsonError` 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: function `xa` is never used [INFO] [stdout] --> garden/src/panic.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn xa() -> Result { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> garden/src/pbj.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has derived impls for the traits `Debug` and `Default`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `area`, `area2`, `area3`, `numbers`, and `new` are never used [INFO] [stdout] --> garden/src/pbj.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 9 | // 就像这样去实现 // area就是方法,被放在impl实现体中 [INFO] [stdout] 10 | fn area(self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn area2(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn area3(&mut self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn numbers(rows: u32, cols: u32) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn new(width: u32, height: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Shape` is never used [INFO] [stdout] --> garden/src/pbj.rs:81:6 [INFO] [stdout] | [INFO] [stdout] 81 | enum Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Number` is never used [INFO] [stdout] --> garden/src/pbj.rs:88:6 [INFO] [stdout] | [INFO] [stdout] 88 | enum Number { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyEnum` is never used [INFO] [stdout] --> garden/src/pbj.rs:96:6 [INFO] [stdout] | [INFO] [stdout] 96 | enum MyEnum { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `run` is never used [INFO] [stdout] --> garden/src/pbj.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 103 | impl MyEnum { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 104 | fn run(&self, x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Table` is never used [INFO] [stdout] --> garden/src/rc.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | type Table = HashMap>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust-helloworld v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `show` is never used [INFO] [stdout] --> garden/src/rc.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn show(table: &Table) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_works` is never used [INFO] [stdout] --> garden/src/rc.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn sort_works(table: &mut Table) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_str` is never used [INFO] [stdout] --> garden/src/ref.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn takes_str(s: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_asref_str` is never used [INFO] [stdout] --> garden/src/ref.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn takes_asref_str>(s: S) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example` is never used [INFO] [stdout] --> garden/src/ref.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn example(slice: &str, borrow: &String, owned: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ObjectSafe` is never used [INFO] [stdout] --> garden/src/safe.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | trait ObjectSafe { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NotObjectSafe` is never used [INFO] [stdout] --> garden/src/safe.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | trait NotObjectSafe { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Atype` is never constructed [INFO] [stdout] --> garden/src/safe.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct Atype; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Atype` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Btype` is never constructed [INFO] [stdout] --> garden/src/safe.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct Btype; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Btype` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ctype` is never constructed [INFO] [stdout] --> garden/src/safe.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct Ctype; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ctype` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA` is never used [INFO] [stdout] --> garden/src/safe.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | trait TraitA {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit` is never used [INFO] [stdout] --> garden/src/safe.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn doit(i: u32) -> Box { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit1111` is never used [INFO] [stdout] --> garden/src/safe.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn doit1111(x: impl TraitA) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit11113` is never used [INFO] [stdout] --> garden/src/safe.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn doit11113(x: T) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit11114` is never used [INFO] [stdout] --> garden/src/safe.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn doit11114(x: &dyn TraitA) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `xx` is never used [INFO] [stdout] --> garden/src/safe.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn xx() { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> garden/src/trait.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point2` is never constructed [INFO] [stdout] --> garden/src/trait.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Point2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `play` is never used [INFO] [stdout] --> garden/src/trait.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Point { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 17 | // 注意这一行 [INFO] [stdout] 18 | fn play(n: T) {} // 注意这一行 [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `doit` is never used [INFO] [stdout] --> garden/src/trait.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl Point { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 22 | // 这里,对具化类型 Point 继续做 impl [INFO] [stdout] 23 | fn doit() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Land` and `Water` are never constructed [INFO] [stdout] --> garden/src/trait.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | enum SportType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 27 | Land, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | Water, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA` is never used [INFO] [stdout] --> garden/src/trait.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | trait TraitA { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_trait_a` is never used [INFO] [stdout] --> garden/src/trait.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn print_trait_a(p: Point) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Foo` is never constructed [INFO] [stdout] --> garden/src/trait.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | struct Foo; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main112` is never used [INFO] [stdout] --> garden/src/trait.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn main112() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA2` is never used [INFO] [stdout] --> garden/src/trait.rs:358:7 [INFO] [stdout] | [INFO] [stdout] 358 | trait TraitA2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA3` is never used [INFO] [stdout] --> garden/src/trait.rs:364:7 [INFO] [stdout] | [INFO] [stdout] 364 | trait TraitA3: TraitA2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA4` is never used [INFO] [stdout] --> garden/src/trait.rs:369:7 [INFO] [stdout] | [INFO] [stdout] 369 | trait TraitA4 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit` is never used [INFO] [stdout] --> garden/src/trait.rs:377:4 [INFO] [stdout] | [INFO] [stdout] 377 | fn doit(a: T::Mytype) {} // 这里在函数中使用了关联类型 [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeA` is never constructed [INFO] [stdout] --> garden/src/trait.rs:379:8 [INFO] [stdout] | [INFO] [stdout] 379 | struct TypeA; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Foo2` is never constructed [INFO] [stdout] --> garden/src/trait.rs:387:8 [INFO] [stdout] | [INFO] [stdout] 387 | struct Foo2> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AAAA` is never constructed [INFO] [stdout] --> garden/src/trait.rs:392:8 [INFO] [stdout] | [INFO] [stdout] 392 | struct AAAA; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit22` is never used [INFO] [stdout] --> garden/src/trait.rs:411:4 [INFO] [stdout] | [INFO] [stdout] 411 | fn doit22() [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA22` is never used [INFO] [stdout] --> garden/src/trait.rs:420:7 [INFO] [stdout] | [INFO] [stdout] 420 | trait TraitA22 {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitB22` is never used [INFO] [stdout] --> garden/src/trait.rs:422:7 [INFO] [stdout] | [INFO] [stdout] 422 | trait TraitB22 {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA33` is never used [INFO] [stdout] --> garden/src/trait.rs:426:7 [INFO] [stdout] | [INFO] [stdout] 426 | trait TraitA33 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Atype` is never constructed [INFO] [stdout] --> garden/src/trait.rs:430:8 [INFO] [stdout] | [INFO] [stdout] 430 | struct Atype; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TraitA55` is never used [INFO] [stdout] --> garden/src/trait.rs:442:7 [INFO] [stdout] | [INFO] [stdout] 442 | trait TraitA55 {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Atype55` is never constructed [INFO] [stdout] --> garden/src/trait.rs:444:8 [INFO] [stdout] | [INFO] [stdout] 444 | struct Atype55 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Btype` is never constructed [INFO] [stdout] --> garden/src/trait.rs:455:8 [INFO] [stdout] | [INFO] [stdout] 455 | struct Btype; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ctype` is never constructed [INFO] [stdout] --> garden/src/trait.rs:457:8 [INFO] [stdout] | [INFO] [stdout] 457 | struct Ctype; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TotalType` is never used [INFO] [stdout] --> garden/src/trait.rs:459:6 [INFO] [stdout] | [INFO] [stdout] 459 | enum TotalType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doit3` is never used [INFO] [stdout] --> garden/src/trait.rs:464:4 [INFO] [stdout] | [INFO] [stdout] 464 | fn doit3(i: u32) -> TotalType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo2` is never used [INFO] [stdout] --> garden/src/trait.rs:478:4 [INFO] [stdout] | [INFO] [stdout] 478 | fn foo2(a: &u32, b: &u32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyEnum2` is never used [INFO] [stdout] --> garden/src/trait.rs:488:6 [INFO] [stdout] | [INFO] [stdout] 488 | enum MyEnum2<'ax> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyEnum2` 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 `xxx` is never used [INFO] [stdout] --> garden/src/trait.rs:493:4 [INFO] [stdout] | [INFO] [stdout] 493 | fn xxx() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Vegetable` is never used [INFO] [stdout] --> garden/src/trait.rs:515:7 [INFO] [stdout] | [INFO] [stdout] 515 | trait Vegetable {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Salad` is never constructed [INFO] [stdout] --> garden/src/trait.rs:517:8 [INFO] [stdout] | [INFO] [stdout] 517 | struct Salad { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `City` is never constructed [INFO] [stdout] --> garden/src/trait.rs:521:8 [INFO] [stdout] | [INFO] [stdout] 521 | struct City {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Salad3` is never constructed [INFO] [stdout] --> garden/src/trait.rs:525:8 [INFO] [stdout] | [INFO] [stdout] 525 | struct Salad3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_selected_cities` is never used [INFO] [stdout] --> garden/src/trait.rs:528:4 [INFO] [stdout] | [INFO] [stdout] 528 | fn count_selected_cities(cities: &Vec, test_fn: F) -> usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `x` is never used [INFO] [stdout] --> garden/src/trait_asref.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn x() { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dot_product` is never used [INFO] [stdout] --> garden/src/trait_bibao.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn dot_product(a: [f64; N], b: [f64; N]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Atype` is never constructed [INFO] [stdout] --> garden/src/trait_copy.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Atype { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Atype` 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 `Point` is never constructed [INFO] [stdout] --> garden/src/trait_copy.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point2` is never constructed [INFO] [stdout] --> garden/src/trait_copy.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Point2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Point2` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Color` is never constructed [INFO] [stdout] --> garden/src/trait_default.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Color` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> garden/src/trait_default.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Color { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 32 | fn new(r: u32, g: u32, b: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `red`, `green`, and `blue` are never used [INFO] [stdout] --> garden/src/trait_default.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl Color { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 38 | fn red(r: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn green(g: u32) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn blue(b: u32) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Selector` is never constructed [INFO] [stdout] --> garden/src/trait_deref.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Selector { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_it` is never used [INFO] [stdout] --> garden/src/trait_deref.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn show_it(thing: &char) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_it_generic` is never used [INFO] [stdout] --> garden/src/trait_deref.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn show_it_generic(thing: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Appellation` is never constructed [INFO] [stdout] --> garden/src/trait_drop.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Appellation { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `echo` is never used [INFO] [stdout] --> garden/src/vegetables.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn echo(a: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_index` is never used [INFO] [stdout] --> garden/src/web.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | async fn get_index() -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `n` and `m` are never read [INFO] [stdout] --> garden/src/web.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | struct GcdParameters { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 36 | n: u64, [INFO] [stdout] | ^ [INFO] [stdout] 37 | m: u64, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_gcd` is never used [INFO] [stdout] --> garden/src/web.rs:40:10 [INFO] [stdout] | [INFO] [stdout] 40 | async fn post_gcd(form: web::Form) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gcd` is never used [INFO] [stdout] --> garden/src/web.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn gcd(mut n: u64, mut m: u64) -> u64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `STASH` is never used [INFO] [stdout] --> garden/src/width_ref.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | static mut STASH: &i32 = &128; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f` is never used [INFO] [stdout] --> garden/src/width_ref.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn f(p: &'static i32) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `S` is never constructed [INFO] [stdout] --> garden/src/width_ref.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | struct S { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `S1` is never constructed [INFO] [stdout] --> garden/src/width_ref.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct S1<'a> { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `S1` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `S2` is never constructed [INFO] [stdout] --> garden/src/width_ref.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | struct S2 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `S3` is never constructed [INFO] [stdout] --> garden/src/width_ref.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | struct S3<'a, 'b> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `anyhow::error::::msg` that must be used [INFO] [stdout] --> garden/src/err.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | anyhow!("Missing attribute: {}", "missing"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `anyhow` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> tests/unfurl.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.44s [INFO] running `Command { std: "docker" "inspect" "7bf0132dafde356779299cd2233d2b9bcc56683e2353435de7560ec4dc0a9ff1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7bf0132dafde356779299cd2233d2b9bcc56683e2353435de7560ec4dc0a9ff1", kill_on_drop: false }` [INFO] [stdout] 7bf0132dafde356779299cd2233d2b9bcc56683e2353435de7560ec4dc0a9ff1