[INFO] fetching crate cyfs-base 0.6.12... [INFO] checking cyfs-base-0.6.12 against master#4457658f68b5c165cd76d24b8147a8f77b9f660e for pr-107620 [INFO] extracting crate cyfs-base 0.6.12 into /workspace/builds/worker-2-tc1/source [INFO] validating manifest of crates.io crate cyfs-base 0.6.12 on toolchain 4457658f68b5c165cd76d24b8147a8f77b9f660e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4457658f68b5c165cd76d24b8147a8f77b9f660e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cyfs-base 0.6.12 [INFO] finished tweaking crates.io crate cyfs-base 0.6.12 [INFO] tweaked toml for crates.io crate cyfs-base 0.6.12 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4457658f68b5c165cd76d24b8147a8f77b9f660e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4457658f68b5c165cd76d24b8147a8f77b9f660e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded int-enum v0.4.0 [INFO] [stderr] Downloaded intbits v0.2.0 [INFO] [stderr] Downloaded hkdf v0.8.0 [INFO] [stderr] Downloaded time-macros-impl v0.1.2 [INFO] [stderr] Downloaded lru_time_cache v0.11.11 [INFO] [stderr] Downloaded radium v0.6.2 [INFO] [stderr] Downloaded rusqlite v0.27.0 [INFO] [stderr] Downloaded impl-codec v0.5.1 [INFO] [stderr] Downloaded primitive-types v0.9.1 [INFO] [stderr] Downloaded int-enum-impl v0.4.0 [INFO] [stderr] Downloaded protoc-bin-vendored v3.0.0 [INFO] [stderr] Downloaded base58 v0.2.0 [INFO] [stderr] Downloaded protoc-rust v2.28.0 [INFO] [stderr] Downloaded fixed-hash v0.7.0 [INFO] [stderr] Downloaded const_fn v0.4.9 [INFO] [stderr] Downloaded base-x v0.2.11 [INFO] [stderr] Downloaded simple_logger v2.3.0 [INFO] [stderr] Downloaded async-recursion v1.0.4 [INFO] [stderr] Downloaded pem v0.8.3 [INFO] [stderr] Downloaded parity-scale-codec-derive v2.3.1 [INFO] [stderr] Downloaded standback v0.2.17 [INFO] [stderr] Downloaded cookie v0.14.4 [INFO] [stderr] Downloaded cyfs-base-derive v0.5.0 [INFO] [stderr] Downloaded time v0.2.27 [INFO] [stderr] Downloaded sqlx v0.5.13 [INFO] [stderr] Downloaded num-bigint-dig v0.6.1 [INFO] [stderr] Downloaded sqlx-core v0.5.13 [INFO] [stderr] Downloaded bitvec v0.20.4 [INFO] [stderr] Downloaded protobuf-codegen v2.28.0 [INFO] [stderr] Downloaded protoc-bin-vendored-win32 v3.0.0 [INFO] [stderr] Downloaded protoc-bin-vendored-linux-aarch_64 v3.0.0 [INFO] [stderr] Downloaded protoc-bin-vendored-linux-ppcle_64 v3.0.0 [INFO] [stderr] Downloaded protoc-bin-vendored-macos-x86_64 v3.0.0 [INFO] [stderr] Downloaded protoc-bin-vendored-linux-x86_32 v3.0.0 [INFO] [stderr] Downloaded protoc-bin-vendored-linux-x86_64 v3.0.0 [INFO] [stderr] Downloaded sqlformat v0.1.8 [INFO] [stderr] Downloaded rsa-export v0.1.2 [INFO] [stderr] Downloaded rsa v0.3.0 [INFO] [stderr] Downloaded parity-scale-codec v2.3.1 [INFO] [stderr] Downloaded block-modes v0.8.1 [INFO] [stderr] Downloaded cyfs-ecies v0.1.4 [INFO] [stderr] Downloaded sqlx-rt v0.5.13 [INFO] [stderr] Downloaded atoi v0.4.0 [INFO] [stderr] Downloaded protoc v2.28.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+4457658f68b5c165cd76d24b8147a8f77b9f660e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2dad32fa42f7fac21e889e34408361918c5b7633c8b0868a2c02f390c776742d [INFO] running `Command { std: "docker" "start" "-a" "2dad32fa42f7fac21e889e34408361918c5b7633c8b0868a2c02f390c776742d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2dad32fa42f7fac21e889e34408361918c5b7633c8b0868a2c02f390c776742d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2dad32fa42f7fac21e889e34408361918c5b7633c8b0868a2c02f390c776742d", kill_on_drop: false }` [INFO] [stdout] 2dad32fa42f7fac21e889e34408361918c5b7633c8b0868a2c02f390c776742d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+4457658f68b5c165cd76d24b8147a8f77b9f660e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] acd2a7320b4769edcb65d71da7a8fc10043019e9b7b1f217186f9a8d08ca6825 [INFO] running `Command { std: "docker" "start" "-a" "acd2a7320b4769edcb65d71da7a8fc10043019e9b7b1f217186f9a8d08ca6825", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.146 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking value-bag v1.4.0 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Compiling syn v2.0.18 [INFO] [stderr] Checking concurrent-queue v2.2.0 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking parking v2.1.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Checking async-lock v2.7.0 [INFO] [stderr] Checking futures-lite v1.13.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling rustix v0.37.20 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Checking cipher v0.2.5 [INFO] [stderr] Checking io-lifetimes v1.0.11 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Compiling toml_datetime v0.6.2 [INFO] [stderr] Compiling protobuf v2.28.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling winnow v0.4.7 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking universal-hash v0.4.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling signal-hook v0.3.15 [INFO] [stderr] Checking async-task v4.4.0 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Checking cpuid-bool v0.2.0 [INFO] [stderr] Checking polyval v0.4.5 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Compiling tempfile v3.6.0 [INFO] [stderr] Compiling num-bigint-dig v0.6.1 [INFO] [stderr] Checking aes-soft v0.6.4 [INFO] [stderr] Checking async-channel v1.8.0 [INFO] [stderr] Checking crypto-mac v0.10.1 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Compiling jobserver v0.1.26 [INFO] [stderr] Compiling which v4.4.0 [INFO] [stderr] Compiling async-process v1.7.0 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Checking atomic-waker v1.1.1 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Compiling time-core v0.1.1 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Checking chrono v0.4.26 [INFO] [stderr] Compiling time-macros v0.2.9 [INFO] [stderr] Compiling protoc v2.28.0 [INFO] [stderr] Checking blocking v1.3.1 [INFO] [stderr] Checking aes v0.6.0 [INFO] [stderr] Checking hmac v0.10.1 [INFO] [stderr] Compiling toml_edit v0.19.10 [INFO] [stderr] Checking bitvec v0.20.4 [INFO] [stderr] Checking ghash v0.3.1 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking async-executor v1.5.1 [INFO] [stderr] Checking ctr v0.6.0 [INFO] [stderr] Checking aead v0.3.2 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling protoc-bin-vendored-linux-ppcle_64 v3.0.0 [INFO] [stderr] Compiling protoc-bin-vendored-linux-x86_64 v3.0.0 [INFO] [stderr] Checking byte-slice-cast v1.2.2 [INFO] [stderr] Checking base64ct v1.6.0 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Compiling protoc-bin-vendored-win32 v3.0.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling protoc-bin-vendored-linux-aarch_64 v3.0.0 [INFO] [stderr] Compiling zstd-sys v2.0.8+zstd.1.5.5 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling libsqlite3-sys v0.24.2 [INFO] [stderr] Compiling anyhow v1.0.71 [INFO] [stderr] Compiling protoc-bin-vendored-linux-x86_32 v3.0.0 [INFO] [stderr] Checking num_threads v0.1.6 [INFO] [stderr] Compiling protoc-bin-vendored-macos-x86_64 v3.0.0 [INFO] [stderr] Checking idna v0.4.0 [INFO] [stderr] Compiling protoc-bin-vendored v3.0.0 [INFO] [stderr] Checking password-hash v0.4.2 [INFO] [stderr] Compiling aho-corasick v1.0.2 [INFO] [stderr] Checking time v0.3.22 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Checking async-global-executor v2.3.1 [INFO] [stderr] Checking simple_asn1 v0.4.1 [INFO] [stderr] Compiling protobuf-codegen v2.28.0 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Checking aes-gcm v0.8.0 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking hkdf v0.10.0 [INFO] [stderr] Checking pem v0.8.3 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.7 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Compiling async-trait v0.1.68 [INFO] [stderr] Compiling regex-syntax v0.7.2 [INFO] [stderr] Checking arrayref v0.3.7 [INFO] [stderr] Compiling http-types v2.12.0 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking fixed-hash v0.7.0 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking aes v0.8.3 [INFO] [stderr] Checking hashlink v0.7.0 [INFO] [stderr] Checking flate2 v1.0.26 [INFO] [stderr] Checking uint v0.9.5 [INFO] [stderr] Compiling protoc-rust v2.28.0 [INFO] [stderr] Checking sha1 v0.10.5 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking block-padding v0.2.1 [INFO] [stderr] Checking simple_logger v2.3.0 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking block-modes v0.8.1 [INFO] [stderr] Checking base58 v0.2.0 [INFO] [stderr] Checking lru_time_cache v0.11.11 [INFO] [stderr] Checking intbits v0.2.0 [INFO] [stderr] Checking base-x v0.2.11 [INFO] [stderr] Compiling serde_derive v1.0.164 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Checking bzip2 v0.4.4 [INFO] [stderr] Compiling async-recursion v1.0.4 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling parity-scale-codec-derive v2.3.1 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Checking zeroize v1.6.0 [INFO] [stderr] Compiling cyfs-base v0.6.12 (/opt/rustwide/workdir) [INFO] [stderr] Compiling regex v1.8.4 [INFO] [stderr] Compiling int-enum-impl v0.4.0 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking async-std v1.12.0 [INFO] [stderr] Checking thiserror v1.0.40 [INFO] [stderr] Checking int-enum v0.4.0 [INFO] [stderr] Compiling cyfs-base-derive v0.5.0 [INFO] [stderr] Checking zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Checking zip v0.6.6 [INFO] [stderr] Checking rusqlite v0.27.0 [INFO] [stderr] Checking generic-array v0.12.4 [INFO] [stderr] Checking parity-scale-codec v2.3.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_json v1.0.97 [INFO] [stderr] Checking url v2.4.0 [INFO] [stderr] Checking serde_qs v0.8.5 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking crypto-mac v0.7.0 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking hmac v0.7.1 [INFO] [stderr] Checking hmac-drbg v0.2.0 [INFO] [stderr] Checking hkdf v0.8.0 [INFO] [stderr] Checking libsecp256k1 v0.3.5 [INFO] [stderr] Checking impl-codec v0.5.1 [INFO] [stderr] Checking primitive-types v0.9.1 [INFO] [stderr] Checking rsa v0.3.0 [INFO] [stderr] Checking rsa-export v0.1.2 [INFO] [stderr] Checking cyfs-ecies v0.1.4 [INFO] [stdout] warning: enum `OutputTarget` is never used [INFO] [stdout] --> src/codec/protobuf/protobuf_helper.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | enum OutputTarget<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodedOutputStream` is never constructed [INFO] [stdout] --> src/codec/protobuf/protobuf_helper.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct CodedOutputStream<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ACCESS_GROUP_MASK` is never used [INFO] [stdout] --> src/base/access_string.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const ACCESS_GROUP_MASK: u32 = 0b111 << 29; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `convert_bdt_error_code` is never used [INFO] [stdout] --> src/base/error.rs:963:8 [INFO] [stdout] | [INFO] [stdout] 933 | impl BuckyError { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 963 | fn convert_bdt_error_code(code: u32) -> BuckyErrorCode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `obj_type` is never read [INFO] [stdout] --> src/objects/object.rs:456:5 [INFO] [stdout] | [INFO] [stdout] 447 | pub struct ObjectMutBody [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 456 | obj_type: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObjectMutBody` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/objects/object_map/cache.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl ObjectMapMemoryNOCCache { [INFO] [stdout] | ---------------------------- associated function in this implementation [INFO] [stdout] 60 | pub fn new() -> ObjectMapNOCCacheRef { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `owner` and `dec_id` are never read [INFO] [stdout] --> src/objects/object_map/diff.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct ObjectMapDiff { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 33 | owner: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 34 | dec_id: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `expand_altered` and `diff_and_expand_recursive` are never used [INFO] [stdout] --> src/objects/object_map/diff.rs:720:14 [INFO] [stdout] | [INFO] [stdout] 66 | impl ObjectMapDiff { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 720 | async fn expand_altered( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 796 | async fn diff_and_expand_recursive( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HubContentIterator` is never constructed [INFO] [stdout] --> src/objects/object_map/iterator.rs:342:8 [INFO] [stdout] | [INFO] [stdout] 342 | struct HubContentIterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `guard` is never read [INFO] [stdout] --> src/objects/object_map/lock.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct PathLockMutex { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 14 | lock: Arc>, [INFO] [stdout] 15 | guard: AsyncMutexGuardArc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_lock` and `check_lock_valid` are never used [INFO] [stdout] --> src/objects/object_map/lock.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 54 | impl PathLockList { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | fn find_lock(&self, path: &str, sid: u64) -> Option<(usize, &PathLockData)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn check_lock_valid(&self, req_list: Vec) -> BuckyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `check_lock_valid` and `try_lock` are never used [INFO] [stdout] --> src/objects/object_map/lock.rs:366:18 [INFO] [stdout] | [INFO] [stdout] 350 | impl ObjectMapPathLock { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 366 | pub async fn check_lock_valid(&self, req_list: Vec) -> BuckyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 370 | pub async fn try_lock(&self, req: PathLockRequest) -> BuckyResult<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/objects/object_map/object_map.rs:1926:12 [INFO] [stdout] | [INFO] [stdout] 1925 | impl ObjectMapContentHashCacheImpl { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] 1926 | pub fn new(object_id: ObjectId) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/objects/object_map/object_map.rs:1965:12 [INFO] [stdout] | [INFO] [stdout] 1964 | impl ObjectMapContentHashCache { [INFO] [stdout] | ------------------------------ associated function in this implementation [INFO] [stdout] 1965 | pub fn new(object_id: ObjectId) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_root` is never used [INFO] [stdout] --> src/objects/object_map/op_env.rs:685:14 [INFO] [stdout] | [INFO] [stdout] 685 | async fn update_root(update_root_fn: F) -> BuckyResult<()> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `version` and `format` are never used [INFO] [stdout] --> src/objects/object_typeless.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl TypelessObjectBodyContent { [INFO] [stdout] | ------------------------------ methods in this implementation [INFO] [stdout] 26 | fn version(&self) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn format(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sub_type` is never read [INFO] [stdout] --> src/objects/object_typeless.rs:1091:5 [INFO] [stdout] | [INFO] [stdout] 1090 | pub struct TypelessObjectType { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 1091 | sub_type: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypelessObjectType` 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: field `contract_body` is never read [INFO] [stdout] --> src/objects/proof_of_service.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub struct ServiceContract { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 170 | contract_body: ServiceContractBody, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServiceContract` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `customer`, `service_type`, `service_start`, `service_end`, and `receipt_body` are never read [INFO] [stdout] --> src/objects/proof_of_service.rs:398:5 [INFO] [stdout] | [INFO] [stdout] 397 | pub struct ServiceReceipt { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 398 | customer: ObjectId, // 谁使用服务 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 399 | service_type: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 400 | service_start: u64, // 本凭证的开始时间 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 401 | service_end: u64, // 本凭证的结束时间 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 402 | receipt_body: ServiceReceiptBody, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServiceReceipt` 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: associated function `new` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:406:8 [INFO] [stdout] | [INFO] [stdout] 405 | impl ServiceReceipt { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 406 | fn new() -> ServiceReceipt { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONTRACT_SN_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:439:7 [INFO] [stdout] | [INFO] [stdout] 439 | const CONTRACT_SN_BODY_CODE: u8 = 0_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONTRACT_TRAFFIC_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:440:7 [INFO] [stdout] | [INFO] [stdout] 440 | const CONTRACT_TRAFFIC_BODY_CODE: u8 = 1_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONTRACT_CHUNK_TRANS_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:441:7 [INFO] [stdout] | [INFO] [stdout] 441 | const CONTRACT_CHUNK_TRANS_BODY_CODE: u8 = 2_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONTRACT_DSG_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:442:7 [INFO] [stdout] | [INFO] [stdout] 442 | const CONTRACT_DSG_BODY_CODE: u8 = 3_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RECEIPT_SN_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:443:7 [INFO] [stdout] | [INFO] [stdout] 443 | const RECEIPT_SN_BODY_CODE: u8 = 10_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RECEIPT_TRAFFIC_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:444:7 [INFO] [stdout] | [INFO] [stdout] 444 | const RECEIPT_TRAFFIC_BODY_CODE: u8 = 11_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RECEIPT_CHUNK_TRANS_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:445:7 [INFO] [stdout] | [INFO] [stdout] 445 | const RECEIPT_CHUNK_TRANS_BODY_CODE: u8 = 12_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RECEIPT_DSG_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:446:7 [INFO] [stdout] | [INFO] [stdout] 446 | const RECEIPT_DSG_BODY_CODE: u8 = 13_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_accept` and `is_refuse` are never used [INFO] [stdout] --> src/objects/proof_of_service.rs:465:12 [INFO] [stdout] | [INFO] [stdout] 464 | impl SnServiceGrade { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 465 | pub fn is_accept(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | pub fn is_refuse(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ProofOfServiceBodyContentProofData` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:555:6 [INFO] [stdout] | [INFO] [stdout] 555 | type ProofOfServiceBodyContentProofData = ProofOfServiceBodyContent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/dir.rs:313:21 [INFO] [stdout] | [INFO] [stdout] 313 | drop(list); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&dir::NDNObjectList` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/dir.rs:321:33 [INFO] [stdout] | [INFO] [stdout] 321 | ... drop(list); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut HashMap>` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_id.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | drop(hash_value); [INFO] [stdout] | ^^^^^----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut [u8]` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_map/lock.rs:284:13 [INFO] [stdout] | [INFO] [stdout] 284 | drop(lock_item); [INFO] [stdout] | ^^^^^---------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&PathLockData` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_map/lock.rs:339:13 [INFO] [stdout] | [INFO] [stdout] 339 | drop(lock_item); [INFO] [stdout] | ^^^^^---------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&PathLockData` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_map/object_map.rs:1345:25 [INFO] [stdout] | [INFO] [stdout] 1345 | drop(solt); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut ObjectMapHubItem` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_map/object_map.rs:1462:25 [INFO] [stdout] | [INFO] [stdout] 1462 | drop(solt); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut ObjectMapHubItem` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_map/object_map.rs:1545:25 [INFO] [stdout] | [INFO] [stdout] 1545 | drop(solt); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut ObjectMapHubItem` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_map/object_map.rs:1634:25 [INFO] [stdout] | [INFO] [stdout] 1634 | drop(solt); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut ObjectMapHubItem` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_map/op_env.rs:511:9 [INFO] [stdout] | [INFO] [stdout] 511 | drop(value); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&ObjectMapOpEnvHolder` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object_id` [INFO] [stdout] --> src/objects/object_map/object_map.rs:3417:13 [INFO] [stdout] | [INFO] [stdout] 3417 | let object_id = ObjectId::default(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_object_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OutputTarget` is never used [INFO] [stdout] --> src/codec/protobuf/protobuf_helper.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | enum OutputTarget<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodedOutputStream` is never constructed [INFO] [stdout] --> src/codec/protobuf/protobuf_helper.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct CodedOutputStream<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U22_MAX` is never used [INFO] [stdout] --> src/codec/raw/raw_types.rs:2299:15 [INFO] [stdout] | [INFO] [stdout] 2299 | const U22_MAX: u64 = (u32::MAX >> 10) as u64; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ACCESS_GROUP_MASK` is never used [INFO] [stdout] --> src/base/access_string.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const ACCESS_GROUP_MASK: u32 = 0b111 << 29; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `convert_bdt_error_code` is never used [INFO] [stdout] --> src/base/error.rs:963:8 [INFO] [stdout] | [INFO] [stdout] 933 | impl BuckyError { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 963 | fn convert_bdt_error_code(code: u32) -> BuckyErrorCode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `obj_type` is never read [INFO] [stdout] --> src/objects/object.rs:456:5 [INFO] [stdout] | [INFO] [stdout] 447 | pub struct ObjectMutBody [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 456 | obj_type: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObjectMutBody` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `owner` and `dec_id` are never read [INFO] [stdout] --> src/objects/object_map/diff.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct ObjectMapDiff { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 33 | owner: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 34 | dec_id: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `expand_altered` and `diff_and_expand_recursive` are never used [INFO] [stdout] --> src/objects/object_map/diff.rs:720:14 [INFO] [stdout] | [INFO] [stdout] 66 | impl ObjectMapDiff { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 720 | async fn expand_altered( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 796 | async fn diff_and_expand_recursive( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_next2` is never used [INFO] [stdout] --> src/objects/object_map/diff.rs:927:14 [INFO] [stdout] | [INFO] [stdout] 927 | async fn gen_next2(cache: &ObjectMapOpEnvCacheRef) -> ObjectId { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HubContentIterator` is never constructed [INFO] [stdout] --> src/objects/object_map/iterator.rs:342:8 [INFO] [stdout] | [INFO] [stdout] 342 | struct HubContentIterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `guard` is never read [INFO] [stdout] --> src/objects/object_map/lock.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct PathLockMutex { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 14 | lock: Arc>, [INFO] [stdout] 15 | guard: AsyncMutexGuardArc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/objects/object_map/object_map.rs:1926:12 [INFO] [stdout] | [INFO] [stdout] 1925 | impl ObjectMapContentHashCacheImpl { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] 1926 | pub fn new(object_id: ObjectId) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/objects/object_map/object_map.rs:1965:12 [INFO] [stdout] | [INFO] [stdout] 1964 | impl ObjectMapContentHashCache { [INFO] [stdout] | ------------------------------ associated function in this implementation [INFO] [stdout] 1965 | pub fn new(object_id: ObjectId) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `class` is never read [INFO] [stdout] --> src/objects/object_map/object_map.rs:3204:9 [INFO] [stdout] | [INFO] [stdout] 3202 | struct ObjectMapSlim { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 3203 | // 对象类别 [INFO] [stdout] 3204 | class: ObjectMapClass, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_set` is never used [INFO] [stdout] --> src/objects/object_map/object_map.rs:3323:14 [INFO] [stdout] | [INFO] [stdout] 3323 | async fn test_set() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `version` and `format` are never used [INFO] [stdout] --> src/objects/object_typeless.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl TypelessObjectBodyContent { [INFO] [stdout] | ------------------------------ methods in this implementation [INFO] [stdout] 26 | fn version(&self) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn format(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sub_type` is never read [INFO] [stdout] --> src/objects/object_typeless.rs:1091:5 [INFO] [stdout] | [INFO] [stdout] 1090 | pub struct TypelessObjectType { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 1091 | sub_type: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypelessObjectType` 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: field `contract_body` is never read [INFO] [stdout] --> src/objects/proof_of_service.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub struct ServiceContract { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 170 | contract_body: ServiceContractBody, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServiceContract` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `customer`, `service_type`, `service_start`, `service_end`, and `receipt_body` are never read [INFO] [stdout] --> src/objects/proof_of_service.rs:398:5 [INFO] [stdout] | [INFO] [stdout] 397 | pub struct ServiceReceipt { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 398 | customer: ObjectId, // 谁使用服务 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 399 | service_type: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 400 | service_start: u64, // 本凭证的开始时间 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 401 | service_end: u64, // 本凭证的结束时间 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 402 | receipt_body: ServiceReceiptBody, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServiceReceipt` 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: associated function `new` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:406:8 [INFO] [stdout] | [INFO] [stdout] 405 | impl ServiceReceipt { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 406 | fn new() -> ServiceReceipt { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONTRACT_SN_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:439:7 [INFO] [stdout] | [INFO] [stdout] 439 | const CONTRACT_SN_BODY_CODE: u8 = 0_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONTRACT_TRAFFIC_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:440:7 [INFO] [stdout] | [INFO] [stdout] 440 | const CONTRACT_TRAFFIC_BODY_CODE: u8 = 1_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONTRACT_CHUNK_TRANS_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:441:7 [INFO] [stdout] | [INFO] [stdout] 441 | const CONTRACT_CHUNK_TRANS_BODY_CODE: u8 = 2_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONTRACT_DSG_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:442:7 [INFO] [stdout] | [INFO] [stdout] 442 | const CONTRACT_DSG_BODY_CODE: u8 = 3_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RECEIPT_SN_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:443:7 [INFO] [stdout] | [INFO] [stdout] 443 | const RECEIPT_SN_BODY_CODE: u8 = 10_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RECEIPT_TRAFFIC_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:444:7 [INFO] [stdout] | [INFO] [stdout] 444 | const RECEIPT_TRAFFIC_BODY_CODE: u8 = 11_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RECEIPT_CHUNK_TRANS_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:445:7 [INFO] [stdout] | [INFO] [stdout] 445 | const RECEIPT_CHUNK_TRANS_BODY_CODE: u8 = 12_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RECEIPT_DSG_BODY_CODE` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:446:7 [INFO] [stdout] | [INFO] [stdout] 446 | const RECEIPT_DSG_BODY_CODE: u8 = 13_u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_accept` and `is_refuse` are never used [INFO] [stdout] --> src/objects/proof_of_service.rs:465:12 [INFO] [stdout] | [INFO] [stdout] 464 | impl SnServiceGrade { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 465 | pub fn is_accept(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | pub fn is_refuse(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ProofOfServiceBodyContentProofData` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:555:6 [INFO] [stdout] | [INFO] [stdout] 555 | type ProofOfServiceBodyContentProofData = ProofOfServiceBodyContent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/dir.rs:313:21 [INFO] [stdout] | [INFO] [stdout] 313 | drop(list); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&dir::NDNObjectList` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/dir.rs:321:33 [INFO] [stdout] | [INFO] [stdout] 321 | ... drop(list); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut HashMap>` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_id.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | drop(hash_value); [INFO] [stdout] | ^^^^^----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut [u8]` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_map/lock.rs:284:13 [INFO] [stdout] | [INFO] [stdout] 284 | drop(lock_item); [INFO] [stdout] | ^^^^^---------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&PathLockData` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_map/lock.rs:339:13 [INFO] [stdout] | [INFO] [stdout] 339 | drop(lock_item); [INFO] [stdout] | ^^^^^---------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&PathLockData` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_map/object_map.rs:1345:25 [INFO] [stdout] | [INFO] [stdout] 1345 | drop(solt); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut objects::object_map::object_map::ObjectMapHubItem` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_map/object_map.rs:1462:25 [INFO] [stdout] | [INFO] [stdout] 1462 | drop(solt); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut objects::object_map::object_map::ObjectMapHubItem` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_map/object_map.rs:1545:25 [INFO] [stdout] | [INFO] [stdout] 1545 | drop(solt); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut objects::object_map::object_map::ObjectMapHubItem` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_map/object_map.rs:1634:25 [INFO] [stdout] | [INFO] [stdout] 1634 | drop(solt); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut objects::object_map::object_map::ObjectMapHubItem` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/objects/object_map/op_env.rs:511:9 [INFO] [stdout] | [INFO] [stdout] 511 | drop(value); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&ObjectMapOpEnvHolder` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 39.24s [INFO] running `Command { std: "docker" "inspect" "acd2a7320b4769edcb65d71da7a8fc10043019e9b7b1f217186f9a8d08ca6825", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "acd2a7320b4769edcb65d71da7a8fc10043019e9b7b1f217186f9a8d08ca6825", kill_on_drop: false }` [INFO] [stdout] acd2a7320b4769edcb65d71da7a8fc10043019e9b7b1f217186f9a8d08ca6825