[INFO] cloning repository https://github.com/DarkMountain-wyz/nydusv1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DarkMountain-wyz/nydusv1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarkMountain-wyz%2Fnydusv1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarkMountain-wyz%2Fnydusv1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 39696f72d04b8d97c95ff3851e579148ed686888 [INFO] testing DarkMountain-wyz/nydusv1 against 1.97.0-beta.1 for beta-1.97-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarkMountain-wyz%2Fnydusv1" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-5-tc2/source/rust-toolchain [INFO] started tweaking git repo https://github.com/DarkMountain-wyz/nydusv1 [INFO] finished tweaking git repo https://github.com/DarkMountain-wyz/nydusv1 [INFO] tweaked toml for git repo https://github.com/DarkMountain-wyz/nydusv1 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/DarkMountain-wyz/nydusv1 on toolchain 1.97.0-beta.1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/DarkMountain-wyz/nydusv1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6282f64b9917bbaf1b32cecb6faf4a7c4023571e3c32122074898f554876cbe6 [INFO] running `Command { std: "docker" "start" "-a" "6282f64b9917bbaf1b32cecb6faf4a7c4023571e3c32122074898f554876cbe6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6282f64b9917bbaf1b32cecb6faf4a7c4023571e3c32122074898f554876cbe6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6282f64b9917bbaf1b32cecb6faf4a7c4023571e3c32122074898f554876cbe6", kill_on_drop: false }` [INFO] [stdout] 6282f64b9917bbaf1b32cecb6faf4a7c4023571e3c32122074898f554876cbe6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] faaffa200ef8a518a738a7ccedf62994094047a2ce9a28b1178269541c9d2f88 [INFO] running `Command { std: "docker" "start" "-a" "faaffa200ef8a518a738a7ccedf62994094047a2ce9a28b1178269541c9d2f88", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling once_cell v1.13.0 [INFO] [stderr] Compiling bytes v1.2.0 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling proc-macro2 v1.0.47 [INFO] [stderr] Compiling tokio v1.25.0 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling serde_derive v1.0.139 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling serde v1.0.139 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling tracing-core v0.1.28 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling openssl v0.10.55 [INFO] [stderr] Compiling miniz_oxide v0.5.3 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling unicode-normalization v0.1.21 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling ryu v1.0.10 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling serde_json v1.0.82 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling object v0.29.0 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Compiling smallvec v1.9.0 [INFO] [stderr] Compiling parking_lot_core v0.9.6 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling nix v0.24.2 [INFO] [stderr] Compiling dbs-uhttp v0.3.2 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling fuse-backend-rs v0.10.5 [INFO] [stderr] Compiling vmm-sys-util v0.11.1 [INFO] [stderr] Compiling filetime v0.2.19 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling xattr v1.0.1 [INFO] [stderr] Compiling openssl-src v111.25.0+1.1.1t [INFO] [stderr] Compiling cmake v0.1.49 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling vm-memory v0.10.0 [INFO] [stderr] Compiling ahash v0.8.0 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling ipnet v2.5.0 [INFO] [stderr] Compiling anyhow v1.0.58 [INFO] [stderr] Compiling arc-swap v1.5.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling openssl-sys v0.9.90 [INFO] [stderr] Compiling zstd-sys v2.0.1+zstd.1.5.2 [INFO] [stderr] Compiling libz-sys v1.1.8 [INFO] [stderr] Compiling backtrace v0.3.66 [INFO] [stderr] Compiling lz4-sys v1.9.4 [INFO] [stderr] Compiling blake3 v1.3.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling gpt v3.0.0 [INFO] [stderr] Compiling tar v0.4.40 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling io-uring v0.5.9 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling libsqlite3-sys v0.26.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling allocator-api2 v0.2.16 [INFO] [stderr] Compiling sha2 v0.10.5 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha1 v0.10.5 [INFO] [stderr] Compiling time v0.3.14 [INFO] [stderr] Compiling hashbrown v0.14.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling os_str_bytes v6.4.1 [INFO] [stderr] Compiling clap_lex v0.3.1 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling rlimit v0.9.1 [INFO] [stderr] Compiling log-panics v2.1.0 [INFO] [stderr] Compiling hashlink v0.8.3 [INFO] [stderr] Compiling chrono v0.4.23 [INFO] [stderr] Compiling nydus-rs v0.0.0-git (/opt/rustwide/workdir) [INFO] [stderr] Compiling regex v1.7.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling tracing-attributes v0.1.22 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling tracing v0.1.35 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling thiserror v1.0.31 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling caps v0.5.4 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling rust-fsm-dsl v0.6.0 [INFO] [stderr] Compiling dbs-allocator v0.1.1 [INFO] [stderr] Compiling clap_derive v4.0.18 [INFO] [stderr] Compiling rust-fsm v0.6.0 [INFO] [stderr] Compiling clap v4.0.18 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling leaky-bucket v0.12.1 [INFO] [stderr] Compiling h2 v0.3.18 [INFO] [stderr] Compiling tokio-uring v0.4.0 [INFO] [stderr] Compiling rusqlite v0.29.0 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling lz4 v1.24.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling nydus-api v0.3.1 (/opt/rustwide/workdir/api) [INFO] [stderr] Compiling hyper v0.14.20 [INFO] [stderr] Compiling flate2 v1.0.24 [INFO] [stderr] Compiling flexi_logger v0.25.1 [INFO] [stderr] Compiling hyperlocal v0.8.0 [INFO] [stderr] Compiling zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling nydus-utils v0.4.3 (/opt/rustwide/workdir/utils) [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.16 [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> utils/src/compress/mod.rs:94:22 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn compress(src: &[u8], algorithm: Algorithm) -> Result<(Cow<[u8]>, bool)> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 94 | pub fn compress(src: &[u8], algorithm: Algorithm) -> Result<(Cow<'_, [u8]>, bool)> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> utils/src/crypt.rs:329:35 [INFO] [stdout] | [INFO] [stdout] 329 | pub fn tweak_key_for_xts(key: &[u8]) -> Cow<[u8]> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 329 | pub fn tweak_key_for_xts(key: &[u8]) -> Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> utils/src/mpmc.rs:98:25 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn lock_channel(&self) -> MutexGuard> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 98 | pub fn lock_channel(&self) -> MutexGuard<'_, VecDeque> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling nydus-storage v0.6.4 (/opt/rustwide/workdir/storage) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> storage/src/cache/dummycache.rs:214:27 [INFO] [stdout] | [INFO] [stdout] 214 | fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 214 - fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stdout] 214 + fn backend(&self) -> &dyn BlobBackend { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> storage/src/cache/filecache/mod.rs:159:27 [INFO] [stdout] | [INFO] [stdout] 159 | fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 159 - fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stdout] 159 + fn backend(&self) -> &dyn BlobBackend { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> storage/src/cache/fscache/mod.rs:155:27 [INFO] [stdout] | [INFO] [stdout] 155 | fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 155 - fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stdout] 155 + fn backend(&self) -> &dyn BlobBackend { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> storage/src/cache/mod.rs:652:27 [INFO] [stdout] | [INFO] [stdout] 652 | fn backend(&self) -> &(dyn BlobBackend); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 652 - fn backend(&self) -> &(dyn BlobBackend); [INFO] [stdout] 652 + fn backend(&self) -> &dyn BlobBackend; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> storage/src/backend/registry.rs:151:11 [INFO] [stdout] | [INFO] [stdout] 151 | Basic(BasicAuth), [INFO] [stdout] | ----- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Auth` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 151 - Basic(BasicAuth), [INFO] [stdout] 151 + Basic(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> storage/src/utils.rs:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn consume(&mut self, mut size: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 144 | pub fn consume(&mut self, mut size: usize) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> storage/src/utils.rs:184:24 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn inner_slice(&self) -> &[FileVolatileSlice] { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 184 | pub fn inner_slice(&self) -> &[FileVolatileSlice<'_>] { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling nydus-rafs v0.3.2 (/opt/rustwide/workdir/rafs) [INFO] [stdout] warning: unexpected `cfg` condition value: `backend-oss` [INFO] [stdout] --> rafs/src/fs.rs:876:17 [INFO] [stdout] | [INFO] [stdout] 876 | #[cfg(all(test, feature = "backend-oss"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `fusedev`, `vhost-user-fs`, and `virtio-fs` [INFO] [stdout] = help: consider adding `backend-oss` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> rafs/src/lib.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 165 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> rafs/src/metadata/inode.rs:586:61 [INFO] [stdout] | [INFO] [stdout] 586 | *self = Self::V6(RafsV6Inode::from(i.deref().deref())); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `dyn metadata::RafsInodeExt` does not implement `Deref`, so calling `deref` on `&dyn metadata::RafsInodeExt` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> rafs/src/metadata/inode.rs:589:61 [INFO] [stdout] | [INFO] [stdout] 589 | *self = Self::V5(RafsV5Inode::from(i.deref().deref())); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `dyn metadata::RafsInodeExt` does not implement `Deref`, so calling `deref` on `&dyn metadata::RafsInodeExt` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling nydus-builder v0.1.0 (/opt/rustwide/workdir/builder) [INFO] [stderr] Compiling nydus-service v0.3.0 (/opt/rustwide/workdir/service) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> service/src/fs_service.rs:100:20 [INFO] [stdout] | [INFO] [stdout] 100 | fn upgrade_mgr(&self) -> Option>; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | fn upgrade_mgr(&self) -> Option>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> service/src/fs_service.rs:197:27 [INFO] [stdout] | [INFO] [stdout] 197 | fn backend_collection(&self) -> MutexGuard; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 197 | fn backend_collection(&self) -> MutexGuard<'_, FsBackendCollection>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> service/src/fusedev.rs:215:20 [INFO] [stdout] | [INFO] [stdout] 215 | fn upgrade_mgr(&self) -> Option> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 215 | fn upgrade_mgr(&self) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> service/src/fusedev.rs:219:27 [INFO] [stdout] | [INFO] [stdout] 219 | fn backend_collection(&self) -> MutexGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 219 | fn backend_collection(&self) -> MutexGuard<'_, FsBackendCollection> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> service/src/blob_cache.rs:315:18 [INFO] [stdout] | [INFO] [stdout] 315 | fn get_state(&self) -> MutexGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 315 | fn get_state(&self) -> MutexGuard<'_, BlobCacheState> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> service/src/fs_cache.rs:831:30 [INFO] [stdout] | [INFO] [stdout] 831 | let a = unsafe { std::mem::transmute::<[u8; 4], u32>(buf_le32) }.to_le(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 831 - let a = unsafe { std::mem::transmute::<[u8; 4], u32>(buf_le32) }.to_le(); [INFO] [stdout] 831 + let a = unsafe { u32::from_ne_bytes(buf_le32) }.to_le(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> service/src/fs_cache.rs:928:18 [INFO] [stdout] | [INFO] [stdout] 928 | fn get_state(&self) -> MutexGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 928 | fn get_state(&self) -> MutexGuard<'_, FsCacheState> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> builder/src/core/context.rs:146:20 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn display(&self) -> Display { [INFO] [stdout] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 146 | pub fn display(&self) -> Display<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> builder/src/core/context.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 175 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> builder/src/core/context.rs:214:17 [INFO] [stdout] | [INFO] [stdout] 214 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 214 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> builder/src/core/tree.rs:88:22 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn lock_node(&self) -> MutexGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 88 | pub fn lock_node(&self) -> MutexGuard<'_, Node> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn values_of(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | pub fn values_of(&self, key: &str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_chunks` and `get_blobs` are never used [INFO] [stdout] --> src/bin/nydus-image/deduplicate.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait Database { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 56 | fn get_chunks(&self) -> Result>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn get_blobs(&self) -> Result>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/bin/nydus-image/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[warn(dead_code)]` implied by `#[warn(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clear`, `list_all`, and `list_paged` are never used [INFO] [stdout] --> src/bin/nydus-image/deduplicate.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 212 | pub trait Table: Sync + Send + Sized + 'static [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 217 | fn clear(&self) -> Result<(), Err>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn list_all(&self) -> Result, Err>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | fn list_paged(&self, offset: i64, limit: i64) -> Result, Err>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 28s [INFO] running `Command { std: "docker" "inspect" "faaffa200ef8a518a738a7ccedf62994094047a2ce9a28b1178269541c9d2f88", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "faaffa200ef8a518a738a7ccedf62994094047a2ce9a28b1178269541c9d2f88", kill_on_drop: false }` [INFO] [stdout] faaffa200ef8a518a738a7ccedf62994094047a2ce9a28b1178269541c9d2f88 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6fd31f51f81a4d21b405f951e639446447392308a0a0b4174391c3ba812e41c5 [INFO] running `Command { std: "docker" "start" "-a" "6fd31f51f81a4d21b405f951e639446447392308a0a0b4174391c3ba812e41c5", kill_on_drop: false }` [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> utils/src/compress/mod.rs:94:22 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn compress(src: &[u8], algorithm: Algorithm) -> Result<(Cow<[u8]>, bool)> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 94 | pub fn compress(src: &[u8], algorithm: Algorithm) -> Result<(Cow<'_, [u8]>, bool)> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> utils/src/crypt.rs:329:35 [INFO] [stdout] | [INFO] [stdout] 329 | pub fn tweak_key_for_xts(key: &[u8]) -> Cow<[u8]> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 329 | pub fn tweak_key_for_xts(key: &[u8]) -> Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> utils/src/mpmc.rs:98:25 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn lock_channel(&self) -> MutexGuard> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 98 | pub fn lock_channel(&self) -> MutexGuard<'_, VecDeque> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> storage/src/cache/dummycache.rs:214:27 [INFO] [stdout] | [INFO] [stdout] 214 | fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 214 - fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stdout] 214 + fn backend(&self) -> &dyn BlobBackend { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> storage/src/cache/filecache/mod.rs:159:27 [INFO] [stdout] | [INFO] [stdout] 159 | fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 159 - fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stdout] 159 + fn backend(&self) -> &dyn BlobBackend { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> storage/src/cache/fscache/mod.rs:155:27 [INFO] [stdout] | [INFO] [stdout] 155 | fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 155 - fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stdout] 155 + fn backend(&self) -> &dyn BlobBackend { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> storage/src/cache/mod.rs:652:27 [INFO] [stdout] | [INFO] [stdout] 652 | fn backend(&self) -> &(dyn BlobBackend); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 652 - fn backend(&self) -> &(dyn BlobBackend); [INFO] [stdout] 652 + fn backend(&self) -> &dyn BlobBackend; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> storage/src/backend/registry.rs:151:11 [INFO] [stdout] | [INFO] [stdout] 151 | Basic(BasicAuth), [INFO] [stdout] | ----- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Auth` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 151 - Basic(BasicAuth), [INFO] [stdout] 151 + Basic(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling nydus-rs v0.0.0-git (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> storage/src/utils.rs:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn consume(&mut self, mut size: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 144 | pub fn consume(&mut self, mut size: usize) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> storage/src/utils.rs:184:24 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn inner_slice(&self) -> &[FileVolatileSlice] { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 184 | pub fn inner_slice(&self) -> &[FileVolatileSlice<'_>] { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `backend-oss` [INFO] [stdout] --> rafs/src/fs.rs:876:17 [INFO] [stdout] | [INFO] [stdout] 876 | #[cfg(all(test, feature = "backend-oss"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `fusedev`, `vhost-user-fs`, and `virtio-fs` [INFO] [stdout] = help: consider adding `backend-oss` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> rafs/src/lib.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 165 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> rafs/src/metadata/inode.rs:586:61 [INFO] [stdout] | [INFO] [stdout] 586 | *self = Self::V6(RafsV6Inode::from(i.deref().deref())); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `dyn metadata::RafsInodeExt` does not implement `Deref`, so calling `deref` on `&dyn metadata::RafsInodeExt` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> rafs/src/metadata/inode.rs:589:61 [INFO] [stdout] | [INFO] [stdout] 589 | *self = Self::V5(RafsV5Inode::from(i.deref().deref())); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `dyn metadata::RafsInodeExt` does not implement `Deref`, so calling `deref` on `&dyn metadata::RafsInodeExt` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> builder/src/core/context.rs:146:20 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn display(&self) -> Display { [INFO] [stdout] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 146 | pub fn display(&self) -> Display<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> builder/src/core/context.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 175 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> builder/src/core/context.rs:214:17 [INFO] [stdout] | [INFO] [stdout] 214 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 214 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> builder/src/core/tree.rs:88:22 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn lock_node(&self) -> MutexGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 88 | pub fn lock_node(&self) -> MutexGuard<'_, Node> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> service/src/fs_service.rs:100:20 [INFO] [stdout] | [INFO] [stdout] 100 | fn upgrade_mgr(&self) -> Option>; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | fn upgrade_mgr(&self) -> Option>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> service/src/fs_service.rs:197:27 [INFO] [stdout] | [INFO] [stdout] 197 | fn backend_collection(&self) -> MutexGuard; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 197 | fn backend_collection(&self) -> MutexGuard<'_, FsBackendCollection>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> service/src/fusedev.rs:215:20 [INFO] [stdout] | [INFO] [stdout] 215 | fn upgrade_mgr(&self) -> Option> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 215 | fn upgrade_mgr(&self) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> service/src/fusedev.rs:219:27 [INFO] [stdout] | [INFO] [stdout] 219 | fn backend_collection(&self) -> MutexGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 219 | fn backend_collection(&self) -> MutexGuard<'_, FsBackendCollection> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> service/src/blob_cache.rs:315:18 [INFO] [stdout] | [INFO] [stdout] 315 | fn get_state(&self) -> MutexGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 315 | fn get_state(&self) -> MutexGuard<'_, BlobCacheState> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> service/src/fs_cache.rs:831:30 [INFO] [stdout] | [INFO] [stdout] 831 | let a = unsafe { std::mem::transmute::<[u8; 4], u32>(buf_le32) }.to_le(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 831 - let a = unsafe { std::mem::transmute::<[u8; 4], u32>(buf_le32) }.to_le(); [INFO] [stdout] 831 + let a = unsafe { u32::from_ne_bytes(buf_le32) }.to_le(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> service/src/fs_cache.rs:928:18 [INFO] [stdout] | [INFO] [stdout] 928 | fn get_state(&self) -> MutexGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 928 | fn get_state(&self) -> MutexGuard<'_, FsCacheState> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn values_of(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | pub fn values_of(&self, key: &str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn values_of(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | pub fn values_of(&self, key: &str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_chunks` and `get_blobs` are never used [INFO] [stdout] --> src/bin/nydus-image/deduplicate.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait Database { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 56 | fn get_chunks(&self) -> Result>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn get_blobs(&self) -> Result>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/bin/nydus-image/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[warn(dead_code)]` implied by `#[warn(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/bin/nydus-image/deduplicate.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 212 | pub trait Table: Sync + Send + Sized + 'static [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 217 | fn clear(&self) -> Result<(), Err>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.98s [INFO] running `Command { std: "docker" "inspect" "6fd31f51f81a4d21b405f951e639446447392308a0a0b4174391c3ba812e41c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6fd31f51f81a4d21b405f951e639446447392308a0a0b4174391c3ba812e41c5", kill_on_drop: false }` [INFO] [stdout] 6fd31f51f81a4d21b405f951e639446447392308a0a0b4174391c3ba812e41c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.1" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] af0020020c76dba73c2f00c2dac8f304c1cb9637d071c4ac4da15b06d2039d55 [INFO] running `Command { std: "docker" "start" "-a" "af0020020c76dba73c2f00c2dac8f304c1cb9637d071c4ac4da15b06d2039d55", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> utils/src/compress/mod.rs:94:22 [INFO] [stderr] | [INFO] [stderr] 94 | pub fn compress(src: &[u8], algorithm: Algorithm) -> Result<(Cow<[u8]>, bool)> { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 94 | pub fn compress(src: &[u8], algorithm: Algorithm) -> Result<(Cow<'_, [u8]>, bool)> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> utils/src/crypt.rs:329:35 [INFO] [stderr] | [INFO] [stderr] 329 | pub fn tweak_key_for_xts(key: &[u8]) -> Cow<[u8]> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 329 | pub fn tweak_key_for_xts(key: &[u8]) -> Cow<'_, [u8]> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> utils/src/mpmc.rs:98:25 [INFO] [stderr] | [INFO] [stderr] 98 | pub fn lock_channel(&self) -> MutexGuard> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 98 | pub fn lock_channel(&self) -> MutexGuard<'_, VecDeque> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `nydus-utils` (lib) generated 3 warnings (run `cargo fix --lib -p nydus-utils` to apply 3 suggestions) [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> storage/src/cache/dummycache.rs:214:27 [INFO] [stderr] | [INFO] [stderr] 214 | fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 214 - fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stderr] 214 + fn backend(&self) -> &dyn BlobBackend { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> storage/src/cache/filecache/mod.rs:159:27 [INFO] [stderr] | [INFO] [stderr] 159 | fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 159 - fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stderr] 159 + fn backend(&self) -> &dyn BlobBackend { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> storage/src/cache/fscache/mod.rs:155:27 [INFO] [stderr] | [INFO] [stderr] 155 | fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 155 - fn backend(&self) -> &(dyn BlobBackend) { [INFO] [stderr] 155 + fn backend(&self) -> &dyn BlobBackend { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> storage/src/cache/mod.rs:652:27 [INFO] [stderr] | [INFO] [stderr] 652 | fn backend(&self) -> &(dyn BlobBackend); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 652 - fn backend(&self) -> &(dyn BlobBackend); [INFO] [stderr] 652 + fn backend(&self) -> &dyn BlobBackend; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> storage/src/backend/registry.rs:151:11 [INFO] [stderr] | [INFO] [stderr] 151 | Basic(BasicAuth), [INFO] [stderr] | ----- ^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Auth` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 151 - Basic(BasicAuth), [INFO] [stderr] 151 + Basic(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> storage/src/utils.rs:144:20 [INFO] [stderr] | [INFO] [stderr] 144 | pub fn consume(&mut self, mut size: usize) -> Vec { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 144 | pub fn consume(&mut self, mut size: usize) -> Vec> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> storage/src/utils.rs:184:24 [INFO] [stderr] | [INFO] [stderr] 184 | pub fn inner_slice(&self) -> &[FileVolatileSlice] { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | | | [INFO] [stderr] | | | the same lifetime is hidden here [INFO] [stderr] | | the same lifetime is elided here [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 184 | pub fn inner_slice(&self) -> &[FileVolatileSlice<'_>] { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `nydus-storage` (lib) generated 7 warnings (run `cargo fix --lib -p nydus-storage` to apply 6 suggestions) [INFO] [stderr] warning: unexpected `cfg` condition value: `backend-oss` [INFO] [stderr] --> rafs/src/fs.rs:876:17 [INFO] [stderr] | [INFO] [stderr] 876 | #[cfg(all(test, feature = "backend-oss"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `fusedev`, `vhost-user-fs`, and `virtio-fs` [INFO] [stderr] = help: consider adding `backend-oss` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> rafs/src/lib.rs:165:17 [INFO] [stderr] | [INFO] [stderr] 165 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 165 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stderr] --> rafs/src/metadata/inode.rs:586:61 [INFO] [stderr] | [INFO] [stderr] 586 | *self = Self::V6(RafsV6Inode::from(i.deref().deref())); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `dyn metadata::RafsInodeExt` does not implement `Deref`, so calling `deref` on `&dyn metadata::RafsInodeExt` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stderr] --> rafs/src/metadata/inode.rs:589:61 [INFO] [stderr] | [INFO] [stderr] 589 | *self = Self::V5(RafsV5Inode::from(i.deref().deref())); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `dyn metadata::RafsInodeExt` does not implement `Deref`, so calling `deref` on `&dyn metadata::RafsInodeExt` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: `nydus-rafs` (lib) generated 4 warnings (run `cargo fix --lib -p nydus-rafs` to apply 3 suggestions) [INFO] [stderr] Compiling nydus-rs v0.0.0-git (/opt/rustwide/workdir) [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> builder/src/core/context.rs:146:20 [INFO] [stderr] | [INFO] [stderr] 146 | pub fn display(&self) -> Display { [INFO] [stderr] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 146 | pub fn display(&self) -> Display<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> builder/src/core/context.rs:175:17 [INFO] [stderr] | [INFO] [stderr] 175 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 175 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> builder/src/core/context.rs:214:17 [INFO] [stderr] | [INFO] [stderr] 214 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 214 | fn as_bytes(&mut self) -> std::io::Result> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> builder/src/core/tree.rs:88:22 [INFO] [stderr] | [INFO] [stderr] 88 | pub fn lock_node(&self) -> MutexGuard { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 88 | pub fn lock_node(&self) -> MutexGuard<'_, Node> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `nydus-builder` (lib) generated 4 warnings (run `cargo fix --lib -p nydus-builder` to apply 4 suggestions) [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> service/src/fs_service.rs:100:20 [INFO] [stderr] | [INFO] [stderr] 100 | fn upgrade_mgr(&self) -> Option>; [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 100 | fn upgrade_mgr(&self) -> Option>; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> service/src/fs_service.rs:197:27 [INFO] [stderr] | [INFO] [stderr] 197 | fn backend_collection(&self) -> MutexGuard; [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 197 | fn backend_collection(&self) -> MutexGuard<'_, FsBackendCollection>; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> service/src/fusedev.rs:215:20 [INFO] [stderr] | [INFO] [stderr] 215 | fn upgrade_mgr(&self) -> Option> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 215 | fn upgrade_mgr(&self) -> Option> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> service/src/fusedev.rs:219:27 [INFO] [stderr] | [INFO] [stderr] 219 | fn backend_collection(&self) -> MutexGuard { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 219 | fn backend_collection(&self) -> MutexGuard<'_, FsBackendCollection> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> service/src/blob_cache.rs:315:18 [INFO] [stderr] | [INFO] [stderr] 315 | fn get_state(&self) -> MutexGuard { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 315 | fn get_state(&self) -> MutexGuard<'_, BlobCacheState> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> service/src/fs_cache.rs:831:30 [INFO] [stderr] | [INFO] [stderr] 831 | let a = unsafe { std::mem::transmute::<[u8; 4], u32>(buf_le32) }.to_le(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stderr] help: replace this with [INFO] [stderr] | [INFO] [stderr] 831 - let a = unsafe { std::mem::transmute::<[u8; 4], u32>(buf_le32) }.to_le(); [INFO] [stderr] 831 + let a = unsafe { u32::from_ne_bytes(buf_le32) }.to_le(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> service/src/fs_cache.rs:928:18 [INFO] [stderr] | [INFO] [stderr] 928 | fn get_state(&self) -> MutexGuard { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 928 | fn get_state(&self) -> MutexGuard<'_, FsCacheState> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `nydus-service` (lib) generated 7 warnings (run `cargo fix --lib -p nydus-service` to apply 7 suggestions) [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:34:22 [INFO] [stderr] | [INFO] [stderr] 34 | pub fn values_of(&self, key: &str) -> Option> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 34 | pub fn values_of(&self, key: &str) -> Option> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `nydus-rs` (lib) generated 1 warning (1 duplicate) [INFO] [stderr] warning: `nydus-rs` (lib test) generated 1 warning (run `cargo fix --lib -p nydus-rs --tests` to apply 1 suggestion) [INFO] [stderr] warning: methods `get_chunks` and `get_blobs` are never used [INFO] [stderr] --> src/bin/nydus-image/deduplicate.rs:56:8 [INFO] [stderr] | [INFO] [stderr] 42 | pub trait Database { [INFO] [stderr] | -------- methods in this trait [INFO] [stderr] ... [INFO] [stderr] 56 | fn get_chunks(&self) -> Result>; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 59 | fn get_blobs(&self) -> Result>; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/bin/nydus-image/main.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 5 | #![deny(warnings)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: `#[warn(dead_code)]` implied by `#[warn(warnings)]` [INFO] [stderr] [INFO] [stderr] warning: method `clear` is never used [INFO] [stderr] --> src/bin/nydus-image/deduplicate.rs:217:8 [INFO] [stderr] | [INFO] [stderr] 212 | pub trait Table: Sync + Send + Sized + 'static [INFO] [stderr] | ----- method in this trait [INFO] [stderr] ... [INFO] [stderr] 217 | fn clear(&self) -> Result<(), Err>; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `nydus-rs` (bin "nydus-image" test) generated 2 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.24s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/nydus-6d2599b68a8b078c) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test logger::tests::test_log_level_to_verbosity ... ok [INFO] [stdout] test logger::tests::test_log_rotation ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/bin/nydus-image/main.rs (/opt/rustwide/target/debug/deps/nydus_image-e6ff1b3a8e260a68) [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test tests::test_ensure_file ... ok [INFO] [stdout] test unpack::pax::test::test_read_chunk ... ok [INFO] [stdout] test unpack::pax::test::test_read_chunk_smaller_buffer ... ok [INFO] [stdout] test deduplicate::tests::test_blob_table ... ok [INFO] [stdout] test deduplicate::tests::test_chunk_table ... ok [INFO] [stdout] test unpack::pax::test::test_read_chunk_compress ... ok [INFO] [stdout] test unpack::pax::test::test_read_chunk_zero_buffer ... ok [INFO] [stdout] test deduplicate::tests::test_blob_table_paged ... ok [INFO] [stdout] test unpack::pax::test::test_read_chunk_larger_buffer ... ok [INFO] [stdout] test deduplicate::tests::test_chunk_table_paged ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Running unittests src/bin/nydusctl/main.rs (/opt/rustwide/target/debug/deps/nydusctl-0e3092082638d479) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/bin/nydusd/main.rs (/opt/rustwide/target/debug/deps/nydusd-e1b0c224a243aa79) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests nydus [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "af0020020c76dba73c2f00c2dac8f304c1cb9637d071c4ac4da15b06d2039d55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af0020020c76dba73c2f00c2dac8f304c1cb9637d071c4ac4da15b06d2039d55", kill_on_drop: false }` [INFO] [stdout] af0020020c76dba73c2f00c2dac8f304c1cb9637d071c4ac4da15b06d2039d55