[INFO] cloning repository https://github.com/gqinghua/flysolosdb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gqinghua/flysolosdb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgqinghua%2Fflysolosdb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgqinghua%2Fflysolosdb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ed4389b3f557641a5502de393621ca4a5afe0f33 [INFO] checking gqinghua/flysolosdb/ed4389b3f557641a5502de393621ca4a5afe0f33 against master#0f353363965ebf05e0757f7679c800b39c51a07e for pr-144896 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgqinghua%2Fflysolosdb" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/gqinghua/flysolosdb [INFO] finished tweaking git repo https://github.com/gqinghua/flysolosdb [INFO] tweaked toml for git repo https://github.com/gqinghua/flysolosdb written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gqinghua/flysolosdb on toolchain 0f353363965ebf05e0757f7679c800b39c51a07e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0f353363965ebf05e0757f7679c800b39c51a07e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0f353363965ebf05e0757f7679c800b39c51a07e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 158 packages to latest compatible versions [INFO] [stderr] Adding moka v0.10.4 (available: v0.12.10) [INFO] [stderr] Adding ouroboros v0.16.0 (available: v0.18.5) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0f353363965ebf05e0757f7679c800b39c51a07e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ouroboros_macro v0.16.0 [INFO] [stderr] Downloaded ouroboros v0.16.0 [INFO] [stderr] Downloaded moka v0.10.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+0f353363965ebf05e0757f7679c800b39c51a07e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 03d1d96320d17c9f9dd12e90adbab573743fa60d54981d10884b05b679f5229d [INFO] running `Command { std: "docker" "start" "-a" "03d1d96320d17c9f9dd12e90adbab573743fa60d54981d10884b05b679f5229d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "03d1d96320d17c9f9dd12e90adbab573743fa60d54981d10884b05b679f5229d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03d1d96320d17c9f9dd12e90adbab573743fa60d54981d10884b05b679f5229d", kill_on_drop: false }` [INFO] [stdout] 03d1d96320d17c9f9dd12e90adbab573743fa60d54981d10884b05b679f5229d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+0f353363965ebf05e0757f7679c800b39c51a07e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0bdb1270de71ac062f466e16e18acebea55349f89fcf1411a20345aff5fa377c [INFO] running `Command { std: "docker" "start" "-a" "0bdb1270de71ac062f466e16e18acebea55349f89fcf1411a20345aff5fa377c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking anstyle-query v1.1.4 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking colorchoice v1.0.4 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Checking anstyle-parse v0.2.7 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling moka v0.10.4 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Checking raw-cpuid v10.7.0 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking anstream v0.6.20 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking clap_builder v4.5.42 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking triomphe v0.1.14 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking quanta v0.11.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking tagptr v0.2.0 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking aliasable v0.1.3 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking crossbeam-skiplist v0.1.3 [INFO] [stderr] Checking arc-swap v1.7.1 [INFO] [stderr] Checking scheduled-thread-pool v0.2.7 [INFO] [stderr] Checking farmhash v1.1.5 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tempfile v3.20.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling ouroboros_macro v0.16.0 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking ouroboros v0.16.0 [INFO] [stderr] Checking clap v4.5.42 [INFO] [stderr] Checking serverCopy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/compact.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `anyhow` and `bail` [INFO] [stdout] --> src/iterators.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::{anyhow, bail, Result}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyVec`, `SIZEOF_U16`, and `two_merge_iterator::TwoMergeIterator` [INFO] [stdout] --> src/lsm_storage.rs:18:35 [INFO] [stdout] | [INFO] [stdout] 18 | ...terator, SIZEOF_U16}, compact::{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | ...catIterator, StorageIterator}, key::{KeySlice, KeyVec}, sstable::{FileObject, SsTable}, two_merge_iterator::TwoMergeIterator, MemTable [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/compact.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `anyhow` and `bail` [INFO] [stdout] --> src/iterators.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::{anyhow, bail, Result}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyVec`, `SIZEOF_U16`, and `two_merge_iterator::TwoMergeIterator` [INFO] [stdout] --> src/lsm_storage.rs:18:35 [INFO] [stdout] | [INFO] [stdout] 18 | ...terator, SIZEOF_U16}, compact::{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | ...catIterator, StorageIterator}, key::{KeySlice, KeyVec}, sstable::{FileObject, SsTable}, two_merge_iterator::TwoMergeIterator, MemTable [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `bail` [INFO] [stdout] --> src/minilsm.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::{bail, Context, Result}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/memtable.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use std::path::{self, Path}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt`, `layer::SubscriberExt`, and `util::SubscriberInitExt` [INFO] [stdout] --> src/memtable.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | use tracing_subscriber::{fmt, layer::SubscriberExt, util::SubscriberInitExt}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `bail` [INFO] [stdout] --> src/minilsm.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::{bail, Context, Result}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::tempdir` [INFO] [stdout] --> src/memtable.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tempfile::tempdir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/memtable.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use std::path::{self, Path}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt`, `layer::SubscriberExt`, and `util::SubscriberInitExt` [INFO] [stdout] --> src/memtable.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | use tracing_subscriber::{fmt, layer::SubscriberExt, util::SubscriberInitExt}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::tempdir` [INFO] [stdout] --> src/memtable.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tempfile::tempdir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `Result` [INFO] [stdout] --> src/main.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> src/main.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use bytes::{BufMut, Bytes}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crossbeam_skiplist::SkipMap` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crossbeam_skiplist::SkipMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File` and `OpenOptions` [INFO] [stdout] --> src/main.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hasher` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::hash::Hasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter` and `Write` [INFO] [stdout] --> src/main.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | use std::io::{BufWriter, Read, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `Result` [INFO] [stdout] --> src/main.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path` and `self` [INFO] [stdout] --> src/main.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | use std::path::{self, Path}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::bail` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use anyhow::bail; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> src/main.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use bytes::{BufMut, Bytes}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use bytes::Buf; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crossbeam_skiplist::SkipMap` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crossbeam_skiplist::SkipMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parking_lot::Mutex` [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use parking_lot::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::atomic::AtomicUsize` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use std::sync::atomic::AtomicUsize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokenize::parse` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use tokenize::parse; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File` and `OpenOptions` [INFO] [stdout] --> src/main.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hasher` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::hash::Hasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter` and `Write` [INFO] [stdout] --> src/main.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | use std::io::{BufWriter, Read, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path` and `self` [INFO] [stdout] --> src/main.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | use std::path::{self, Path}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::tokenize::tokenize as tk` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use crate::tokenize::tokenize as tk; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::bail` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use anyhow::bail; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use bytes::Buf; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parking_lot::Mutex` [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use parking_lot::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::atomic::AtomicUsize` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use std::sync::atomic::AtomicUsize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use bytes::{BufMut, Bytes}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/main.rs:21:26 [INFO] [stdout] | [INFO] [stdout] 21 | use std::io::{BufWriter, Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/main.rs:21:26 [INFO] [stdout] | [INFO] [stdout] 21 | use std::io::{BufWriter, Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use bytes::{BufMut, Bytes}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/compact.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | let this = self.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/compact.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | let this = self.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ticker` [INFO] [stdout] --> src/compact.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | let ticker = crossbeam_channel::tick(Duration::from_millis(50)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ticker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ticker` [INFO] [stdout] --> src/compact.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | let ticker = crossbeam_channel::tick(Duration::from_millis(50)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ticker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/compact.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let this = self.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ticker` [INFO] [stdout] --> src/compact.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | let ticker = crossbeam_channel::tick(Duration::from_millis(50)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ticker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/compact.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let this = self.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ticker` [INFO] [stdout] --> src/compact.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | let ticker = crossbeam_channel::tick(Duration::from_millis(50)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ticker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clone_data` [INFO] [stdout] --> src/lsm_storage.rs:339:13 [INFO] [stdout] | [INFO] [stdout] 339 | let clone_data = memtable.clone(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clone_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l0_iter` [INFO] [stdout] --> src/lsm_storage.rs:428:13 [INFO] [stdout] | [INFO] [stdout] 428 | let l0_iter = MergeIterator::create(l0_iters); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_l0_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clone_data` [INFO] [stdout] --> src/lsm_storage.rs:339:13 [INFO] [stdout] | [INFO] [stdout] 339 | let clone_data = memtable.clone(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clone_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/lsm_storage.rs:453:13 [INFO] [stdout] | [INFO] [stdout] 453 | let text: &str = "a.txt"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l0_iter` [INFO] [stdout] --> src/lsm_storage.rs:428:13 [INFO] [stdout] | [INFO] [stdout] 428 | let l0_iter = MergeIterator::create(l0_iters); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_l0_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/lsm_storage.rs:453:13 [INFO] [stdout] | [INFO] [stdout] 453 | let text: &str = "a.txt"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw_bloom` [INFO] [stdout] --> src/sstable.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let raw_bloom = file.read(bloom_offset, len - 4 - bloom_offset)?; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_raw_bloom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/sstable.rs:185:24 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn read(&self, offset: u64, len: u64) -> Result> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sstable.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let mut data = vec![0; len as usize]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw_bloom` [INFO] [stdout] --> src/sstable.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let raw_bloom = file.read(bloom_offset, len - 4 - bloom_offset)?; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_raw_bloom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/sstable.rs:185:24 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn read(&self, offset: u64, len: u64) -> Result> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sstable.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let mut data = vec![0; len as usize]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let dir = tempdir().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let path = r"E:\tmp\a"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let dir = tempdir().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let path = r"E:\tmp\a"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_function` is never used [INFO] [stdout] --> src/main.rs:117:4 [INFO] [stdout] | [INFO] [stdout] 117 | fn some_function(num: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compact.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | Leveled(LeveledCompactionController), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 29 - Leveled(LeveledCompactionController), [INFO] [stdout] 29 + Leveled(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compact.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | Tiered(TieredCompactionController), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 30 - Tiered(TieredCompactionController), [INFO] [stdout] 30 + Tiered(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compact.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | Simple(SimpleLeveledCompactionController), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 31 - Simple(SimpleLeveledCompactionController), [INFO] [stdout] 31 + Simple(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `options` is never read [INFO] [stdout] --> src/compact.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct LeveledCompactionController { [INFO] [stdout] | --------------------------- field in this struct [INFO] [stdout] 45 | options: LeveledCompactionOptions, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `options` is never read [INFO] [stdout] --> src/compact.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct TieredCompactionController { [INFO] [stdout] | -------------------------- field in this struct [INFO] [stdout] 54 | options: TieredCompactionOptions, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `options` is never read [INFO] [stdout] --> src/compact.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct SimpleLeveledCompactionController { [INFO] [stdout] | --------------------------------- field in this struct [INFO] [stdout] 63 | options: SimpleLeveledCompactionOptions, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `block_cache` and `compaction_controller` are never read [INFO] [stdout] --> src/lsm_storage.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) struct LsmStorageInner { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | pub(crate) block_cache: Arc, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub(crate) compaction_controller: CompactionController, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `delete` and `sync_dir` are never used [INFO] [stdout] --> src/lsm_storage.rs:270:15 [INFO] [stdout] | [INFO] [stdout] 123 | impl LsmStorageInner { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 270 | pub fn delete(&self, key: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 451 | pub(super) fn sync_dir(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `iters` and `current` are never read [INFO] [stdout] --> src/lsm_storage.rs:506:5 [INFO] [stdout] | [INFO] [stdout] 505 | pub struct MergeIterator { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 506 | iters: BinaryHeap>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 507 | current: Option>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sstable.rs:182:23 [INFO] [stdout] | [INFO] [stdout] 182 | pub struct FileObject(Option, u64); [INFO] [stdout] | ---------- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [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] 182 - pub struct FileObject(Option, u64); [INFO] [stdout] 182 + pub struct FileObject((), u64); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `inner`, `flush_thread`, and `compaction_thread` are never read [INFO] [stdout] --> src/minilsm.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct MiniLsm { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 10 | pub(crate) inner: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | flush_thread: Mutex>>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | compaction_thread: Mutex>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/block.rs:111:16 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn key(&self) -> KeySlice { [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] 111 | pub fn key(&self) -> KeySlice<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/iterators.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | fn key(&self) -> KeySlice { [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] 94 | fn key(&self) -> KeySlice<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/key.rs:57:25 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn as_key_slice(&self) -> KeySlice { [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] 57 | pub fn as_key_slice(&self) -> KeySlice<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/key.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn as_key_slice(&self) -> KeySlice { [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] 80 | pub fn as_key_slice(&self) -> KeySlice<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lsm_storage.rs:482:12 [INFO] [stdout] | [INFO] [stdout] 482 | fn key(&self) -> KeySlice { [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] 482 | fn key(&self) -> KeySlice<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/memtable.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | fn key(&self) -> KeySlice { [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] 221 | fn key(&self) -> KeySlice<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compact.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | Leveled(LeveledCompactionController), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` 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] 29 - Leveled(LeveledCompactionController), [INFO] [stdout] 29 + Leveled(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compact.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | Tiered(TieredCompactionController), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 30 - Tiered(TieredCompactionController), [INFO] [stdout] 30 + Tiered(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compact.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | Simple(SimpleLeveledCompactionController), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 31 - Simple(SimpleLeveledCompactionController), [INFO] [stdout] 31 + Simple(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `options` is never read [INFO] [stdout] --> src/compact.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct LeveledCompactionController { [INFO] [stdout] | --------------------------- field in this struct [INFO] [stdout] 45 | options: LeveledCompactionOptions, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `options` is never read [INFO] [stdout] --> src/compact.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct TieredCompactionController { [INFO] [stdout] | -------------------------- field in this struct [INFO] [stdout] 54 | options: TieredCompactionOptions, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `options` is never read [INFO] [stdout] --> src/compact.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct SimpleLeveledCompactionController { [INFO] [stdout] | --------------------------------- field in this struct [INFO] [stdout] 63 | options: SimpleLeveledCompactionOptions, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `block_cache` and `compaction_controller` are never read [INFO] [stdout] --> src/lsm_storage.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) struct LsmStorageInner { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | pub(crate) block_cache: Arc, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub(crate) compaction_controller: CompactionController, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `delete` and `sync_dir` are never used [INFO] [stdout] --> src/lsm_storage.rs:270:15 [INFO] [stdout] | [INFO] [stdout] 123 | impl LsmStorageInner { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 270 | pub fn delete(&self, key: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 451 | pub(super) fn sync_dir(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `iters` and `current` are never read [INFO] [stdout] --> src/lsm_storage.rs:506:5 [INFO] [stdout] | [INFO] [stdout] 505 | pub struct MergeIterator { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 506 | iters: BinaryHeap>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 507 | current: Option>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sstable.rs:182:23 [INFO] [stdout] | [INFO] [stdout] 182 | pub struct FileObject(Option, u64); [INFO] [stdout] | ---------- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [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] 182 - pub struct FileObject(Option, u64); [INFO] [stdout] 182 + pub struct FileObject((), u64); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `inner`, `flush_thread`, and `compaction_thread` are never read [INFO] [stdout] --> src/minilsm.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct MiniLsm { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 10 | pub(crate) inner: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | flush_thread: Mutex>>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | compaction_thread: Mutex>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/block.rs:111:16 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn key(&self) -> KeySlice { [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] 111 | pub fn key(&self) -> KeySlice<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/iterators.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | fn key(&self) -> KeySlice { [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] 94 | fn key(&self) -> KeySlice<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/key.rs:57:25 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn as_key_slice(&self) -> KeySlice { [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] 57 | pub fn as_key_slice(&self) -> KeySlice<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/key.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn as_key_slice(&self) -> KeySlice { [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] 80 | pub fn as_key_slice(&self) -> KeySlice<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lsm_storage.rs:482:12 [INFO] [stdout] | [INFO] [stdout] 482 | fn key(&self) -> KeySlice { [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] 482 | fn key(&self) -> KeySlice<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/memtable.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | fn key(&self) -> KeySlice { [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] 221 | fn key(&self) -> KeySlice<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.80s [INFO] running `Command { std: "docker" "inspect" "0bdb1270de71ac062f466e16e18acebea55349f89fcf1411a20345aff5fa377c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bdb1270de71ac062f466e16e18acebea55349f89fcf1411a20345aff5fa377c", kill_on_drop: false }` [INFO] [stdout] 0bdb1270de71ac062f466e16e18acebea55349f89fcf1411a20345aff5fa377c