[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 try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgqinghua%2Fflysolosdb" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gqinghua/flysolosdb on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-0-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 141 packages to latest compatible versions [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding cargo_metadata v0.14.2 (available: v0.18.1) [INFO] [stderr] Adding heck v0.4.1 (available: v0.5.0) [INFO] [stderr] Adding hermit-abi v0.3.9 (available: v0.4.0) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (available: v0.6.5) [INFO] [stderr] Adding moka v0.10.4 (available: v0.12.8) [INFO] [stderr] Adding nu-ansi-term v0.46.0 (available: v0.50.1) [INFO] [stderr] Adding ouroboros v0.16.0 (available: v0.18.4) [INFO] [stderr] Adding ouroboros_macro v0.16.0 (available: v0.18.4) [INFO] [stderr] Adding pulldown-cmark v0.9.6 (available: v0.12.1) [INFO] [stderr] Adding quanta v0.11.1 (available: v0.12.3) [INFO] [stderr] Adding raw-cpuid v10.7.0 (available: v11.1.0) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.79) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 87fe3ee854ac1f2c61b05d42f7d628ac683c1457251a124bf18c69af73bf6125 [INFO] running `Command { std: "docker" "start" "-a" "87fe3ee854ac1f2c61b05d42f7d628ac683c1457251a124bf18c69af73bf6125", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "87fe3ee854ac1f2c61b05d42f7d628ac683c1457251a124bf18c69af73bf6125", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87fe3ee854ac1f2c61b05d42f7d628ac683c1457251a124bf18c69af73bf6125", kill_on_drop: false }` [INFO] [stdout] 87fe3ee854ac1f2c61b05d42f7d628ac683c1457251a124bf18c69af73bf6125 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72f98a48471a484e3a345e969b49f28fc68b4bbe49f7158f7586642b9a24f664 [INFO] running `Command { std: "docker" "start" "-a" "72f98a48471a484e3a345e969b49f28fc68b4bbe49f7158f7586642b9a24f664", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Checking raw-cpuid v10.7.0 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling moka v0.10.4 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking scheduled-thread-pool v0.2.7 [INFO] [stderr] Checking clap_builder v4.5.18 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking quanta v0.11.1 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking crossbeam-channel v0.5.13 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking fastrand v2.1.1 [INFO] [stderr] Checking aliasable v0.1.3 [INFO] [stderr] Checking bytes v1.7.2 [INFO] [stderr] Checking triomphe v0.1.13 [INFO] [stderr] Checking tagptr v0.2.0 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking crossbeam-skiplist v0.1.3 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking farmhash v1.1.5 [INFO] [stderr] Checking arc-swap v1.7.1 [INFO] [stderr] Checking tempfile v3.13.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling ouroboros_macro v0.16.0 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking ouroboros v0.16.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking clap v4.5.18 [INFO] [stderr] Checking serverCopy v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/iterators.rs (2 fixes) [INFO] [stderr] Fixed src/lsm_storage.rs (2 fixes) [INFO] [stderr] Fixed src/sstable.rs (2 fixes) [INFO] [stderr] Fixed src/compact.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (11 fixes) [INFO] [stderr] Fixed src/memtable.rs (3 fixes) [INFO] [stderr] Fixed src/minilsm.rs (1 fix) [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::BufMut` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use bytes::BufMut; [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: `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: `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: `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: unused variable: `dir` [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | 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:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | 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: 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(()), [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(()), [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(()), [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((), 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: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/iterators.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | while let Some(iter) = self.current.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/iterators.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stdout] warning: unused import: `sql::*` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use sql::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::BufMut` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use bytes::BufMut; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::io::Read; [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: `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: `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: `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: unused variable: `dir` [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | 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:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | 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:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | 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(()), [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(()), [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(()), [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((), 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.00s [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/iterators.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | while let Some(iter) = self.current.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/iterators.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking serverCopy v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused import: `sql::*` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use sql::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse` in this scope [INFO] [stdout] --> src/main.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | let parsed = parse(&tokens); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 12 + use crate::tokenize::parse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sql::*` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use sql::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::BufMut` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use bytes::BufMut; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `tk` in this scope [INFO] [stdout] --> src/main.rs:96:18 [INFO] [stdout] | [INFO] [stdout] 96 | let tokens = tk(sql); [INFO] [stdout] | ^^ help: a tuple variant with a similar name exists: `Ok` [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/core/src/result.rs:531:5 [INFO] [stdout] | [INFO] [stdout] = note: similarly named tuple variant `Ok` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::BufMut` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use bytes::BufMut; [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: `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: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: `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: `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: `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: `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: `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: `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: 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: unused variable: `dir` [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | 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:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | 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:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | 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:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | 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:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | 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(()), [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(()), [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(()), [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((), 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] error: aborting due to 2 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `serverCopy` (bin "serverCopy" test) due to 3 previous errors; 14 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "72f98a48471a484e3a345e969b49f28fc68b4bbe49f7158f7586642b9a24f664", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72f98a48471a484e3a345e969b49f28fc68b4bbe49f7158f7586642b9a24f664", kill_on_drop: false }` [INFO] [stdout] 72f98a48471a484e3a345e969b49f28fc68b4bbe49f7158f7586642b9a24f664