[INFO] fetching crate cyfs-base 0.5.5... [INFO] building cyfs-base-0.5.5 against try#434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275 for pr-101591 [INFO] extracting crate cyfs-base 0.5.5 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate cyfs-base 0.5.5 on toolchain 434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cyfs-base 0.5.5 [INFO] finished tweaking crates.io crate cyfs-base 0.5.5 [INFO] tweaked toml for crates.io crate cyfs-base 0.5.5 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3bd5aae0717dda8325c83552bcee95f053013ea6c850351f462233011b09b4d4 [INFO] running `Command { std: "docker" "start" "-a" "3bd5aae0717dda8325c83552bcee95f053013ea6c850351f462233011b09b4d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3bd5aae0717dda8325c83552bcee95f053013ea6c850351f462233011b09b4d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3bd5aae0717dda8325c83552bcee95f053013ea6c850351f462233011b09b4d4", kill_on_drop: false }` [INFO] [stdout] 3bd5aae0717dda8325c83552bcee95f053013ea6c850351f462233011b09b4d4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 966a75c7b5f7b8a8b9e082d4a834fb5547fee524a0cb1406f9c5091561b5c84b [INFO] running `Command { std: "docker" "start" "-a" "966a75c7b5f7b8a8b9e082d4a834fb5547fee524a0cb1406f9c5091561b5c84b", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling serde_derive v1.0.144 [INFO] [stderr] Compiling serde v1.0.144 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling once_cell v1.14.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling fastrand v1.8.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling futures-core v0.3.24 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling cache-padded v1.2.0 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling futures-io v0.3.24 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling iana-time-zone v0.1.47 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling subtle v1.0.0 [INFO] [stderr] Compiling itoa v1.0.3 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling protobuf v2.27.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling async-task v4.3.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling signal-hook v0.3.14 [INFO] [stderr] Compiling cpuid-bool v0.2.0 [INFO] [stderr] Compiling libm v0.2.5 [INFO] [stderr] Compiling smallvec v1.9.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling crossbeam-utils v0.8.11 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling zstd-safe v4.1.6+zstd.1.5.2 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling atomic-waker v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling protoc-bin-vendored-linux-x86_32 v3.0.0 [INFO] [stderr] Compiling serde_json v1.0.85 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling num_threads v0.1.6 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling byte-slice-cast v1.2.1 [INFO] [stderr] Compiling protoc-bin-vendored-linux-ppcle_64 v3.0.0 [INFO] [stderr] Compiling base64ct v1.0.1 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling protoc-bin-vendored-linux-aarch_64 v3.0.0 [INFO] [stderr] Compiling protoc-bin-vendored-linux-x86_64 v3.0.0 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Compiling ryu v1.0.11 [INFO] [stderr] Compiling protoc-bin-vendored-macos-x86_64 v3.0.0 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling protoc-bin-vendored-win32 v3.0.0 [INFO] [stderr] Compiling anyhow v1.0.64 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling async-trait v0.1.57 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling http-types v2.12.0 [INFO] [stderr] Compiling rustc-hex v2.1.0 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling infer v0.2.3 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling bytes v1.2.1 [INFO] [stderr] Compiling base58 v0.2.0 [INFO] [stderr] Compiling lru_time_cache v0.11.11 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.9 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling concurrent-queue v1.2.4 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling polling v2.3.0 [INFO] [stderr] Compiling async-io v1.9.0 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling async-process v1.5.0 [INFO] [stderr] Compiling async-lock v2.5.0 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Compiling protoc-bin-vendored v3.0.0 [INFO] [stderr] Compiling miniz_oxide v0.5.4 [INFO] [stderr] Compiling num-bigint-dig v0.6.1 [INFO] [stderr] Compiling unicode-normalization v0.1.21 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling aho-corasick v0.7.19 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling which v4.3.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling time v0.3.14 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling async-channel v1.7.1 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling uint v0.9.3 [INFO] [stderr] Compiling bitvec v0.20.4 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling flate2 v1.0.24 [INFO] [stderr] Compiling protobuf-codegen v2.27.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling protoc v2.27.1 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling blocking v1.2.0 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.3 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling universal-hash v0.4.1 [INFO] [stderr] Compiling crypto-mac v0.10.1 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling aead v0.3.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling password-hash v0.3.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling protoc-rust v2.27.1 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling polyval v0.4.5 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling block-modes v0.8.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling chrono v0.4.22 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Compiling zstd-sys v1.6.3+zstd.1.5.2 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling libsqlite3-sys v0.24.2 [INFO] [stderr] Compiling hkdf v0.10.0 [INFO] [stderr] Compiling ghash v0.3.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling sha2 v0.10.5 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha1 v0.10.4 [INFO] [stderr] Compiling aes v0.6.0 [INFO] [stderr] Compiling fixed-hash v0.7.0 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling aes-gcm v0.8.0 [INFO] [stderr] Compiling pbkdf2 v0.10.1 [INFO] [stderr] Compiling cyfs-base v0.5.5 (/opt/rustwide/workdir) [INFO] [stderr] Compiling thiserror-impl v1.0.34 [INFO] [stderr] Compiling ctor v0.1.23 [INFO] [stderr] Compiling zeroize_derive v1.3.2 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling int-enum-impl v0.4.0 [INFO] [stderr] Compiling cyfs-base-derive v0.5.0 [INFO] [stderr] Compiling async-recursion v1.0.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling simple_logger v2.3.0 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling bzip2 v0.4.3 [INFO] [stderr] Compiling zeroize v1.5.7 [INFO] [stderr] Compiling async-global-executor v2.3.0 [INFO] [stderr] Compiling async-std v1.12.0 [INFO] [stderr] Compiling int-enum v0.4.0 [INFO] [stderr] Compiling thiserror v1.0.34 [INFO] [stderr] Compiling proc-macro-crate v1.2.1 [INFO] [stderr] Compiling parity-scale-codec-derive v2.3.1 [INFO] [stderr] Compiling rusqlite v0.27.0 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling serde_qs v0.8.5 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling crypto-mac v0.7.0 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling hmac v0.7.1 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling hmac-drbg v0.2.0 [INFO] [stderr] Compiling hkdf v0.8.0 [INFO] [stderr] Compiling libsecp256k1 v0.3.5 [INFO] [stderr] Compiling rsa v0.3.0 [INFO] [stderr] Compiling rsa-export v0.1.2 [INFO] [stderr] Compiling parity-scale-codec v2.3.1 [INFO] [stderr] Compiling impl-codec v0.5.1 [INFO] [stderr] Compiling primitive-types v0.9.1 [INFO] [stderr] Compiling cyfs-ecies v0.1.4 [INFO] [stderr] Compiling zstd v0.10.2+zstd.1.5.2 [INFO] [stderr] Compiling zip v0.6.2 [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: associated function `convert_bdt_error_code` is never used [INFO] [stdout] --> src/base/error.rs:919:8 [INFO] [stdout] | [INFO] [stdout] 919 | 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:1511:5 [INFO] [stdout] | [INFO] [stdout] 1502 | pub struct ObjectMutBody [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1511 | 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:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | 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 function `expand_altered` is never used [INFO] [stdout] --> src/objects/object_map/diff.rs:720:14 [INFO] [stdout] | [INFO] [stdout] 720 | async fn expand_altered( [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 `find_lock` is never used [INFO] [stdout] --> src/objects/object_map/lock.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | fn find_lock(&self, path: &str, sid: u64) -> Option<(usize, &PathLockData)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_lock_valid` is never used [INFO] [stdout] --> src/objects/object_map/lock.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn check_lock_valid(&self, req_list: Vec) -> BuckyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_lock_valid` is never used [INFO] [stdout] --> src/objects/object_map/lock.rs:366:18 [INFO] [stdout] | [INFO] [stdout] 366 | pub async fn check_lock_valid(&self, req_list: Vec) -> BuckyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_lock` is never used [INFO] [stdout] --> src/objects/object_map/lock.rs:370:18 [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:1910:12 [INFO] [stdout] | [INFO] [stdout] 1910 | 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:1949:12 [INFO] [stdout] | [INFO] [stdout] 1949 | 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:468:14 [INFO] [stdout] | [INFO] [stdout] 468 | async fn update_root(update_root_fn: F) -> BuckyResult<()> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sub_type` is never read [INFO] [stdout] --> src/objects/object_typeless.rs:1087:5 [INFO] [stdout] | [INFO] [stdout] 1086 | pub struct TypelessObjectType { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 1087 | 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: associated function `version` is never used [INFO] [stdout] --> src/objects/object_typeless.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn version(&self) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `format` is never used [INFO] [stdout] --> src/objects/object_typeless.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn format(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [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: 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: 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: associated function `new` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:406:8 [INFO] [stdout] | [INFO] [stdout] 406 | fn new() -> ServiceReceipt { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_accept` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:465:12 [INFO] [stdout] | [INFO] [stdout] 465 | pub fn is_accept(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_refuse` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:468:12 [INFO] [stdout] | [INFO] [stdout] 468 | pub fn is_refuse(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 38s [INFO] running `Command { std: "docker" "inspect" "966a75c7b5f7b8a8b9e082d4a834fb5547fee524a0cb1406f9c5091561b5c84b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "966a75c7b5f7b8a8b9e082d4a834fb5547fee524a0cb1406f9c5091561b5c84b", kill_on_drop: false }` [INFO] [stdout] 966a75c7b5f7b8a8b9e082d4a834fb5547fee524a0cb1406f9c5091561b5c84b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bab7db0a34e68b1c93565289530a1b63c96437f2b02d19f30d6dee747d74ebd7 [INFO] running `Command { std: "docker" "start" "-a" "bab7db0a34e68b1c93565289530a1b63c96437f2b02d19f30d6dee747d74ebd7", kill_on_drop: false }` [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: associated function `convert_bdt_error_code` is never used [INFO] [stdout] --> src/base/error.rs:919:8 [INFO] [stdout] | [INFO] [stdout] 919 | 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:1511:5 [INFO] [stdout] | [INFO] [stdout] 1502 | pub struct ObjectMutBody [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1511 | 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:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | 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 function `expand_altered` is never used [INFO] [stdout] --> src/objects/object_map/diff.rs:720:14 [INFO] [stdout] | [INFO] [stdout] 720 | async fn expand_altered( [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 `find_lock` is never used [INFO] [stdout] --> src/objects/object_map/lock.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | fn find_lock(&self, path: &str, sid: u64) -> Option<(usize, &PathLockData)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_lock_valid` is never used [INFO] [stdout] --> src/objects/object_map/lock.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn check_lock_valid(&self, req_list: Vec) -> BuckyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_lock_valid` is never used [INFO] [stdout] --> src/objects/object_map/lock.rs:366:18 [INFO] [stdout] | [INFO] [stdout] 366 | pub async fn check_lock_valid(&self, req_list: Vec) -> BuckyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_lock` is never used [INFO] [stdout] --> src/objects/object_map/lock.rs:370:18 [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:1910:12 [INFO] [stdout] | [INFO] [stdout] 1910 | 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:1949:12 [INFO] [stdout] | [INFO] [stdout] 1949 | 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:468:14 [INFO] [stdout] | [INFO] [stdout] 468 | async fn update_root(update_root_fn: F) -> BuckyResult<()> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sub_type` is never read [INFO] [stdout] --> src/objects/object_typeless.rs:1087:5 [INFO] [stdout] | [INFO] [stdout] 1086 | pub struct TypelessObjectType { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 1087 | 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: associated function `version` is never used [INFO] [stdout] --> src/objects/object_typeless.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn version(&self) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `format` is never used [INFO] [stdout] --> src/objects/object_typeless.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn format(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [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: 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] [stderr] Compiling cyfs-base v0.5.5 (/opt/rustwide/workdir) [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: 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: associated function `new` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:406:8 [INFO] [stdout] | [INFO] [stdout] 406 | fn new() -> ServiceReceipt { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_accept` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:465:12 [INFO] [stdout] | [INFO] [stdout] 465 | pub fn is_accept(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_refuse` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:468:12 [INFO] [stdout] | [INFO] [stdout] 468 | pub fn is_refuse(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [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: associated function `convert_bdt_error_code` is never used [INFO] [stdout] --> src/base/error.rs:919:8 [INFO] [stdout] | [INFO] [stdout] 919 | 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:1511:5 [INFO] [stdout] | [INFO] [stdout] 1502 | pub struct ObjectMutBody [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1511 | 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 function `expand_altered` is never used [INFO] [stdout] --> src/objects/object_map/diff.rs:720:14 [INFO] [stdout] | [INFO] [stdout] 720 | async fn expand_altered( [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:1910:12 [INFO] [stdout] | [INFO] [stdout] 1910 | 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:1949:12 [INFO] [stdout] | [INFO] [stdout] 1949 | 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:3168:9 [INFO] [stdout] | [INFO] [stdout] 3166 | struct ObjectMapSlim { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 3167 | // 对象类别 [INFO] [stdout] 3168 | 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:3287:14 [INFO] [stdout] | [INFO] [stdout] 3287 | async fn test_set() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sub_type` is never read [INFO] [stdout] --> src/objects/object_typeless.rs:1087:5 [INFO] [stdout] | [INFO] [stdout] 1086 | pub struct TypelessObjectType { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 1087 | 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: associated function `version` is never used [INFO] [stdout] --> src/objects/object_typeless.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn version(&self) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `format` is never used [INFO] [stdout] --> src/objects/object_typeless.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn format(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [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: 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: 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: associated function `new` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:406:8 [INFO] [stdout] | [INFO] [stdout] 406 | fn new() -> ServiceReceipt { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_accept` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:465:12 [INFO] [stdout] | [INFO] [stdout] 465 | pub fn is_accept(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_refuse` is never used [INFO] [stdout] --> src/objects/proof_of_service.rs:468:12 [INFO] [stdout] | [INFO] [stdout] 468 | pub fn is_refuse(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 22.88s [INFO] running `Command { std: "docker" "inspect" "bab7db0a34e68b1c93565289530a1b63c96437f2b02d19f30d6dee747d74ebd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bab7db0a34e68b1c93565289530a1b63c96437f2b02d19f30d6dee747d74ebd7", kill_on_drop: false }` [INFO] [stdout] bab7db0a34e68b1c93565289530a1b63c96437f2b02d19f30d6dee747d74ebd7