[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 against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgqinghua%2Fflysolosdb" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gqinghua/flysolosdb on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "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-5-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 144 packages to latest compatible versions [INFO] [stderr] Adding addr2line v0.22.0 (latest: v0.24.1) [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.6.0) [INFO] [stderr] Adding cargo_metadata v0.14.2 (latest: v0.18.1) [INFO] [stderr] Adding gimli v0.29.0 (latest: v0.31.0) [INFO] [stderr] Adding heck v0.4.1 (latest: v0.5.0) [INFO] [stderr] Adding hermit-abi v0.3.9 (latest: v0.4.0) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (latest: v0.6.5) [INFO] [stderr] Adding miniz_oxide v0.7.4 (latest: v0.8.0) [INFO] [stderr] Adding moka v0.10.4 (latest: v0.12.8) [INFO] [stderr] Adding nu-ansi-term v0.46.0 (latest: v0.50.1) [INFO] [stderr] Adding ouroboros v0.16.0 (latest: v0.18.4) [INFO] [stderr] Adding ouroboros_macro v0.16.0 (latest: v0.18.4) [INFO] [stderr] Adding pulldown-cmark v0.9.6 (latest: v0.12.0) [INFO] [stderr] Adding quanta v0.11.1 (latest: v0.12.3) [INFO] [stderr] Adding raw-cpuid v10.7.0 (latest: v11.1.0) [INFO] [stderr] Adding syn v1.0.109 (latest: v2.0.76) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-sys v0.52.0 (latest: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ouroboros_macro v0.16.0 [INFO] [stderr] Downloaded ouroboros v0.16.0 [INFO] [stderr] Downloaded crossbeam-skiplist v0.1.3 [INFO] [stderr] Downloaded moka v0.10.4 [INFO] [stderr] Downloaded farmhash v1.1.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] de36d37e0b26830a57db54b820541534bdf6df75a3871c225751bddba2aaa526 [INFO] running `Command { std: "docker" "start" "-a" "de36d37e0b26830a57db54b820541534bdf6df75a3871c225751bddba2aaa526", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "de36d37e0b26830a57db54b820541534bdf6df75a3871c225751bddba2aaa526", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de36d37e0b26830a57db54b820541534bdf6df75a3871c225751bddba2aaa526", kill_on_drop: false }` [INFO] [stdout] de36d37e0b26830a57db54b820541534bdf6df75a3871c225751bddba2aaa526 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c3f9bc8da8ff03e79368dde866cfeb3f27e7b9e90185101450936bddce376018 [INFO] running `Command { std: "docker" "start" "-a" "c3f9bc8da8ff03e79368dde866cfeb3f27e7b9e90185101450936bddce376018", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling autocfg v1.3.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] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling rustix v0.38.35 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Checking raw-cpuid v10.7.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling syn v2.0.76 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling moka v0.10.4 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking scheduled-thread-pool v0.2.7 [INFO] [stderr] Checking clap_builder v4.5.15 [INFO] [stderr] Checking quanta v0.11.1 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.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 fastrand v2.1.1 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking tagptr v0.2.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking aliasable v0.1.3 [INFO] [stderr] Checking triomphe v0.1.13 [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 arc-swap v1.7.1 [INFO] [stderr] Checking farmhash v1.1.5 [INFO] [stderr] Checking tempfile v3.12.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling ouroboros_macro v0.16.0 [INFO] [stderr] Compiling clap_derive v4.5.13 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking ouroboros v0.16.0 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking clap v4.5.16 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [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 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 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: `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 `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: `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: `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 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 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: `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 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: `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 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: `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 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: `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::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: `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: `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: `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: `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(()), [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: 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: 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.82s [INFO] running `Command { std: "docker" "inspect" "c3f9bc8da8ff03e79368dde866cfeb3f27e7b9e90185101450936bddce376018", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3f9bc8da8ff03e79368dde866cfeb3f27e7b9e90185101450936bddce376018", kill_on_drop: false }` [INFO] [stdout] c3f9bc8da8ff03e79368dde866cfeb3f27e7b9e90185101450936bddce376018 [INFO] checking gqinghua/flysolosdb against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgqinghua%2Fflysolosdb" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gqinghua/flysolosdb on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "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-5-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 144 packages to latest compatible versions [INFO] [stderr] Adding addr2line v0.22.0 (latest: v0.24.1) [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.6.0) [INFO] [stderr] Adding cargo_metadata v0.14.2 (latest: v0.18.1) [INFO] [stderr] Adding gimli v0.29.0 (latest: v0.31.0) [INFO] [stderr] Adding heck v0.4.1 (latest: v0.5.0) [INFO] [stderr] Adding hermit-abi v0.3.9 (latest: v0.4.0) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (latest: v0.6.5) [INFO] [stderr] Adding miniz_oxide v0.7.4 (latest: v0.8.0) [INFO] [stderr] Adding moka v0.10.4 (latest: v0.12.8) [INFO] [stderr] Adding nu-ansi-term v0.46.0 (latest: v0.50.1) [INFO] [stderr] Adding ouroboros v0.16.0 (latest: v0.18.4) [INFO] [stderr] Adding ouroboros_macro v0.16.0 (latest: v0.18.4) [INFO] [stderr] Adding pulldown-cmark v0.9.6 (latest: v0.12.0) [INFO] [stderr] Adding quanta v0.11.1 (latest: v0.12.3) [INFO] [stderr] Adding raw-cpuid v10.7.0 (latest: v11.1.0) [INFO] [stderr] Adding syn v1.0.109 (latest: v2.0.76) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-sys v0.52.0 (latest: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 61be92855f7e1658cc443aa76448e7fc8c75486651fca1f951a8e2046897510e [INFO] running `Command { std: "docker" "start" "-a" "61be92855f7e1658cc443aa76448e7fc8c75486651fca1f951a8e2046897510e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "61be92855f7e1658cc443aa76448e7fc8c75486651fca1f951a8e2046897510e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61be92855f7e1658cc443aa76448e7fc8c75486651fca1f951a8e2046897510e", kill_on_drop: false }` [INFO] [stdout] 61be92855f7e1658cc443aa76448e7fc8c75486651fca1f951a8e2046897510e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9699d3f84a3b6bd2517dfa248e6cae32f40e50486ee71d660d98d51b9781aa90 [INFO] running `Command { std: "docker" "start" "-a" "9699d3f84a3b6bd2517dfa248e6cae32f40e50486ee71d660d98d51b9781aa90", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling autocfg v1.3.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] Checking utf8parse v0.2.2 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling rustix v0.38.35 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking raw-cpuid v10.7.0 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Compiling syn v2.0.76 [INFO] [stderr] Compiling moka v0.10.4 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking clap_builder v4.5.15 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking scheduled-thread-pool v0.2.7 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking quanta v0.11.1 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking crossbeam-channel v0.5.13 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking aliasable v0.1.3 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking tagptr v0.2.0 [INFO] [stderr] Checking fastrand v2.1.1 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking triomphe v0.1.13 [INFO] [stderr] Checking itoa v1.0.11 [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 arc-swap v1.7.1 [INFO] [stderr] Checking farmhash v1.1.5 [INFO] [stderr] Checking tempfile v3.12.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling serde_derive v1.0.209 [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.13 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking ouroboros v0.16.0 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking clap v4.5.16 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [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 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 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 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: `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 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: `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::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 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 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: `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: `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: `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: `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: `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: `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(()), [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/compact.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 75 | rx: crossbeam_channel::Receiver<()>, [INFO] [stdout] | ----------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 95 | Ok(None) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/compact.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 99 | rx: crossbeam_channel::Receiver<()>, [INFO] [stdout] | ----------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 100 | ) -> Result>> { [INFO] [stdout] 101 | let this = self.clone(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 102 | let handle = std::thread::spawn(move || { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 113 | Ok(Some(handle)) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lsm_storage.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn create(path: impl AsRef) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 60 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 61 | | file: Arc::new(Mutex::new( [INFO] [stdout] 62 | | OpenOptions::new() [INFO] [stdout] 63 | | .read(true) [INFO] [stdout] ... | [INFO] [stdout] 68 | | )), [INFO] [stdout] 69 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lsm_storage.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn recover(path: impl AsRef) -> Result<(Self, Vec)> { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 85 | tracing::info!("recover方法 入参{:?}", path.as_ref()); [INFO] [stdout] 86 | let mut file = OpenOptions::new() [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 106 | Ok(( [INFO] [stdout] | ____________^ [INFO] [stdout] 107 | | Self { [INFO] [stdout] 108 | | file: Arc::new(Mutex::new(file)), [INFO] [stdout] 109 | | }, [INFO] [stdout] 110 | | records, [INFO] [stdout] 111 | | )) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lsm_storage.rs:449:12 [INFO] [stdout] | [INFO] [stdout] 373 | let snapshot = { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 374 | let guard = self.state.read(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 400 | let mut l0_iters = Vec::with_capacity(snapshot.l0_sstables.len()); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 428 | let l0_iter = MergeIterator::create(l0_iters); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 429 | let mut level_iters = Vec::with_capacity(snapshot.levels.len()); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 449 | Ok(None) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lsm_storage.rs:567:22 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn create(iters: Vec>) -> Self { [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 547 | let mut heap = BinaryHeap::new(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 564 | let current = heap.pop().unwrap(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 567 | current: Some(current), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lsm_storage.rs:595:12 [INFO] [stdout] | [INFO] [stdout] 586 | let mut blk_iter = [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 595 | Ok((blk_idx, blk_iter)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sstable.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn open(id: usize, block_cache: Option>, file: FileObject) -> Result { [INFO] [stdout] | ------------------------------------ ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 40 | let block_meta = BlockMeta::decode_block_meta(&raw_meta[..])?; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 41 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 42 | | file, [INFO] [stdout] 43 | | first_key: block_meta.first().unwrap().first_key.clone(), [INFO] [stdout] 44 | | last_key: block_meta.last().unwrap().last_key.clone(), [INFO] [stdout] ... | [INFO] [stdout] 50 | | max_ts: 0, [INFO] [stdout] 51 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sstable.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | Ok(Arc::new(Block::decode(block_data))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sstable.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 209 | let file = File::options().read(true).write(false).open(path)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 210 | let size = file.metadata()?.len(); [INFO] [stdout] 211 | Ok(FileObject(Some(file), size)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/minilsm.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn open(path: impl AsRef, options: LsmStorageOptions) -> Result> { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 37 | let inner = Arc::new(LsmStorageInner::open(path, options)?); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 38 | let (tx1, rx) = crossbeam_channel::unbounded(); [INFO] [stdout] | --- -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 39 | let compaction_thread = inner.spawn_compaction_thread(rx)?; [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 40 | let (tx2, rx) = crossbeam_channel::unbounded(); [INFO] [stdout] | --- -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 41 | let flush_thread = inner.spawn_flush_thread(rx)?; [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 42 | Ok(Arc::new(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 43 | | inner, [INFO] [stdout] 44 | | flush_notifier: tx2, [INFO] [stdout] 45 | | flush_thread: Mutex::new(flush_thread), [INFO] [stdout] 46 | | compaction_notifier: tx1, [INFO] [stdout] 47 | | compaction_thread: Mutex::new(compaction_thread), [INFO] [stdout] 48 | | })) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |__________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn create_with_wal(id: usize, path: impl AsRef) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 45 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 46 | | id, [INFO] [stdout] 47 | | map: Arc::new(SkipMap::new()), [INFO] [stdout] 48 | | wal: Some(Wal::create(path.as_ref())?), [INFO] [stdout] 49 | | approximate_size: Arc::new(AtomicUsize::new(0)), [INFO] [stdout] 50 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn create_wal(id: usize, path: impl AsRef) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 59 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 60 | | id, [INFO] [stdout] 61 | | map: Arc::new(SkipMap::new()), [INFO] [stdout] 62 | | wal: Some(Wal::create(path.as_ref())?), [INFO] [stdout] 63 | | approximate_size: Arc::new(AtomicUsize::new(0)), [INFO] [stdout] 64 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn recover_from_wal(id: usize, path: impl AsRef) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 74 | let map = Arc::new(SkipMap::new()); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 75 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 76 | | id, [INFO] [stdout] 77 | | wal: Some(Wal::recover(path.as_ref(), &map)?), [INFO] [stdout] 78 | | map, [INFO] [stdout] 79 | | approximate_size: Arc::new(AtomicUsize::new(0)), [INFO] [stdout] 80 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn create(path: impl AsRef) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 139 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 140 | | file: Arc::new(Mutex::new(BufWriter::new( [INFO] [stdout] 141 | | OpenOptions::new() [INFO] [stdout] 142 | | .read(true) [INFO] [stdout] ... | [INFO] [stdout] 147 | | ))), [INFO] [stdout] 148 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn recover(path: impl AsRef, skiplist: &SkipMap) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 151 | let path = path.as_ref(); [INFO] [stdout] 152 | let mut file = OpenOptions::new() [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 178 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 179 | | file: Arc::new(Mutex::new(BufWriter::new(file))), [INFO] [stdout] 180 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 207 | fn entry_to_item(entry: Option>) -> (Bytes, Bytes) { [INFO] [stdout] | -------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 208 | / entry [INFO] [stdout] 209 | | .map(|x| (x.key().clone(), x.value().clone())) [INFO] [stdout] | |__________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:209:23 [INFO] [stdout] | [INFO] [stdout] 209 | .map(|x| (x.key().clone(), x.value().clone())) [INFO] [stdout] | - ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:209:40 [INFO] [stdout] | [INFO] [stdout] 209 | .map(|x| (x.key().clone(), x.value().clone())) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:210:33 [INFO] [stdout] | [INFO] [stdout] 210 | .unwrap_or_else(|| (Bytes::from_static(&[]), Bytes::from_static(&[]))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:210:58 [INFO] [stdout] | [INFO] [stdout] 210 | .unwrap_or_else(|| (Bytes::from_static(&[]), Bytes::from_static(&[]))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:230:79 [INFO] [stdout] | [INFO] [stdout] 230 | let entry = self.with_iter_mut(|iter| MemTableIterator::entry_to_item(iter.next())); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 22 previous errors; 46 warnings emitted [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/compact.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 75 | rx: crossbeam_channel::Receiver<()>, [INFO] [stdout] | ----------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 95 | Ok(None) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/compact.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 99 | rx: crossbeam_channel::Receiver<()>, [INFO] [stdout] | ----------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 100 | ) -> Result>> { [INFO] [stdout] 101 | let this = self.clone(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 102 | let handle = std::thread::spawn(move || { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 113 | Ok(Some(handle)) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lsm_storage.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn create(path: impl AsRef) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 60 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 61 | | file: Arc::new(Mutex::new( [INFO] [stdout] 62 | | OpenOptions::new() [INFO] [stdout] 63 | | .read(true) [INFO] [stdout] ... | [INFO] [stdout] 68 | | )), [INFO] [stdout] 69 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lsm_storage.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn recover(path: impl AsRef) -> Result<(Self, Vec)> { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 85 | tracing::info!("recover方法 入参{:?}", path.as_ref()); [INFO] [stdout] 86 | let mut file = OpenOptions::new() [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 106 | Ok(( [INFO] [stdout] | ____________^ [INFO] [stdout] 107 | | Self { [INFO] [stdout] 108 | | file: Arc::new(Mutex::new(file)), [INFO] [stdout] 109 | | }, [INFO] [stdout] 110 | | records, [INFO] [stdout] 111 | | )) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lsm_storage.rs:449:12 [INFO] [stdout] | [INFO] [stdout] 373 | let snapshot = { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 374 | let guard = self.state.read(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 400 | let mut l0_iters = Vec::with_capacity(snapshot.l0_sstables.len()); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 428 | let l0_iter = MergeIterator::create(l0_iters); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 429 | let mut level_iters = Vec::with_capacity(snapshot.levels.len()); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 449 | Ok(None) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `serverCopy` (bin "serverCopy") due to 23 previous errors; 46 warnings emitted [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lsm_storage.rs:567:22 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn create(iters: Vec>) -> Self { [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 547 | let mut heap = BinaryHeap::new(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 564 | let current = heap.pop().unwrap(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 567 | current: Some(current), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lsm_storage.rs:595:12 [INFO] [stdout] | [INFO] [stdout] 586 | let mut blk_iter = [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 595 | Ok((blk_idx, blk_iter)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sstable.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn open(id: usize, block_cache: Option>, file: FileObject) -> Result { [INFO] [stdout] | ------------------------------------ ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 40 | let block_meta = BlockMeta::decode_block_meta(&raw_meta[..])?; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 41 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 42 | | file, [INFO] [stdout] 43 | | first_key: block_meta.first().unwrap().first_key.clone(), [INFO] [stdout] 44 | | last_key: block_meta.last().unwrap().last_key.clone(), [INFO] [stdout] ... | [INFO] [stdout] 50 | | max_ts: 0, [INFO] [stdout] 51 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sstable.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | Ok(Arc::new(Block::decode(block_data))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sstable.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 209 | let file = File::options().read(true).write(false).open(path)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 210 | let size = file.metadata()?.len(); [INFO] [stdout] 211 | Ok(FileObject(Some(file), size)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/minilsm.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn open(path: impl AsRef, options: LsmStorageOptions) -> Result> { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 37 | let inner = Arc::new(LsmStorageInner::open(path, options)?); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 38 | let (tx1, rx) = crossbeam_channel::unbounded(); [INFO] [stdout] | --- -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 39 | let compaction_thread = inner.spawn_compaction_thread(rx)?; [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 40 | let (tx2, rx) = crossbeam_channel::unbounded(); [INFO] [stdout] | --- -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 41 | let flush_thread = inner.spawn_flush_thread(rx)?; [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 42 | Ok(Arc::new(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 43 | | inner, [INFO] [stdout] 44 | | flush_notifier: tx2, [INFO] [stdout] 45 | | flush_thread: Mutex::new(flush_thread), [INFO] [stdout] 46 | | compaction_notifier: tx1, [INFO] [stdout] 47 | | compaction_thread: Mutex::new(compaction_thread), [INFO] [stdout] 48 | | })) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |__________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn create_with_wal(id: usize, path: impl AsRef) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 45 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 46 | | id, [INFO] [stdout] 47 | | map: Arc::new(SkipMap::new()), [INFO] [stdout] 48 | | wal: Some(Wal::create(path.as_ref())?), [INFO] [stdout] 49 | | approximate_size: Arc::new(AtomicUsize::new(0)), [INFO] [stdout] 50 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn create_wal(id: usize, path: impl AsRef) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 59 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 60 | | id, [INFO] [stdout] 61 | | map: Arc::new(SkipMap::new()), [INFO] [stdout] 62 | | wal: Some(Wal::create(path.as_ref())?), [INFO] [stdout] 63 | | approximate_size: Arc::new(AtomicUsize::new(0)), [INFO] [stdout] 64 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn recover_from_wal(id: usize, path: impl AsRef) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 74 | let map = Arc::new(SkipMap::new()); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 75 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 76 | | id, [INFO] [stdout] 77 | | wal: Some(Wal::recover(path.as_ref(), &map)?), [INFO] [stdout] 78 | | map, [INFO] [stdout] 79 | | approximate_size: Arc::new(AtomicUsize::new(0)), [INFO] [stdout] 80 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn create(path: impl AsRef) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 139 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 140 | | file: Arc::new(Mutex::new(BufWriter::new( [INFO] [stdout] 141 | | OpenOptions::new() [INFO] [stdout] 142 | | .read(true) [INFO] [stdout] ... | [INFO] [stdout] 147 | | ))), [INFO] [stdout] 148 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn recover(path: impl AsRef, skiplist: &SkipMap) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 151 | let path = path.as_ref(); [INFO] [stdout] 152 | let mut file = OpenOptions::new() [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 178 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 179 | | file: Arc::new(Mutex::new(BufWriter::new(file))), [INFO] [stdout] 180 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 207 | fn entry_to_item(entry: Option>) -> (Bytes, Bytes) { [INFO] [stdout] | -------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 208 | / entry [INFO] [stdout] 209 | | .map(|x| (x.key().clone(), x.value().clone())) [INFO] [stdout] | |__________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:209:23 [INFO] [stdout] | [INFO] [stdout] 209 | .map(|x| (x.key().clone(), x.value().clone())) [INFO] [stdout] | - ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:209:40 [INFO] [stdout] | [INFO] [stdout] 209 | .map(|x| (x.key().clone(), x.value().clone())) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:210:33 [INFO] [stdout] | [INFO] [stdout] 210 | .unwrap_or_else(|| (Bytes::from_static(&[]), Bytes::from_static(&[]))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:210:58 [INFO] [stdout] | [INFO] [stdout] 210 | .unwrap_or_else(|| (Bytes::from_static(&[]), Bytes::from_static(&[]))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/memtable.rs:230:79 [INFO] [stdout] | [INFO] [stdout] 230 | let entry = self.with_iter_mut(|iter| MemTableIterator::entry_to_item(iter.next())); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 22 previous errors; 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `serverCopy` (bin "serverCopy" test) due to 23 previous errors; 43 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9699d3f84a3b6bd2517dfa248e6cae32f40e50486ee71d660d98d51b9781aa90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9699d3f84a3b6bd2517dfa248e6cae32f40e50486ee71d660d98d51b9781aa90", kill_on_drop: false }` [INFO] [stdout] 9699d3f84a3b6bd2517dfa248e6cae32f40e50486ee71d660d98d51b9781aa90