[INFO] fetching crate mintkv 0.1.0... [INFO] checking mintkv-0.1.0 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate mintkv 0.1.0 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate mintkv 0.1.0 on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate mintkv 0.1.0 [INFO] finished tweaking crates.io crate mintkv 0.1.0 [INFO] tweaked toml for crates.io crate mintkv 0.1.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate mintkv 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bd3957a581eb62e41c23bdb6bfd39d960b398dd7584e85953c5f9c4d9f8ef97d [INFO] running `Command { std: "docker" "start" "-a" "bd3957a581eb62e41c23bdb6bfd39d960b398dd7584e85953c5f9c4d9f8ef97d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bd3957a581eb62e41c23bdb6bfd39d960b398dd7584e85953c5f9c4d9f8ef97d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd3957a581eb62e41c23bdb6bfd39d960b398dd7584e85953c5f9c4d9f8ef97d", kill_on_drop: false }` [INFO] [stdout] bd3957a581eb62e41c23bdb6bfd39d960b398dd7584e85953c5f9c4d9f8ef97d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 886727e18585b4c07c1574e1b3cd37bc0d5370654c61397542f31e0a984bc9ab [INFO] running `Command { std: "docker" "start" "-a" "886727e18585b4c07c1574e1b3cd37bc0d5370654c61397542f31e0a984bc9ab", kill_on_drop: false }` [INFO] [stderr] Checking mintkv v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/block/mod.rs:7:32 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{ErrorKind, Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/block/mod.rs:102:33 [INFO] [stdout] | [INFO] [stdout] 102 | pub(crate) fn remove(&self, key: &[u8]) -> Result, Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/block/mod.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | pub(crate) fn get(&self, key: &[u8]) -> Result, Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `offset` is never read [INFO] [stdout] --> src/block/mod.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | offset += 8; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_id` [INFO] [stdout] --> src/block/mod.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | let current_id = u64::from_le_bytes(buffer[offset..offset + 8].try_into().unwrap()); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `offset` is never read [INFO] [stdout] --> src/block/mod.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | offset += 8; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_node` [INFO] [stdout] --> src/btree/node.rs:108:33 [INFO] [stdout] | [INFO] [stdout] 108 | TypedNode::Leaf(ref leaf_node) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/block/mod.rs:7:32 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{ErrorKind, Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/memtable/encoder.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | fn decode(data: &[u8]) -> Result<(OpKind, &[u8]), Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/block/mod.rs:102:33 [INFO] [stdout] | [INFO] [stdout] 102 | pub(crate) fn remove(&self, key: &[u8]) -> Result, Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/block/mod.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | pub(crate) fn get(&self, key: &[u8]) -> Result, Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `offset` is never read [INFO] [stdout] --> src/block/mod.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | offset += 8; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_id` [INFO] [stdout] --> src/block/mod.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | let current_id = u64::from_le_bytes(buffer[offset..offset + 8].try_into().unwrap()); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `offset` is never read [INFO] [stdout] --> src/block/mod.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | offset += 8; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `limits` [INFO] [stdout] --> src/db.rs:55:29 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn get_range(&self, limits: i32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_limits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tombstone` is never constructed [INFO] [stdout] --> src/tombstone.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Tombstone { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/block/mod.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 121 | pub(crate) struct Segment { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 125 | id: usize, // id according a filename 按照时间 [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Encoder` is never constructed [INFO] [stdout] --> src/block/encoder.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Encoder { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `display`, `delete`, `redistribution_leaf`, `redistribution_internal`, `find`, and `delete_node` are never used [INFO] [stdout] --> src/btree/mod.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl BTree { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn delete(&mut self, key: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | fn redistribution_leaf( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 343 | fn redistribution_internal( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 472 | pub fn find(&self, key: &[u8]) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 534 | pub fn delete_node(&mut self, node: u64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EmptyTree` and `KeyNotFound` are never constructed [INFO] [stdout] --> src/btree/error.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 3 | EmptyTree, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 4 | KeyNotFound, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `release_page` is never used [INFO] [stdout] --> src/btree/freelist.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Freelist { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn release_page(&mut self, _page_number: u64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `display` is never used [INFO] [stdout] --> src/btree/node.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl Node { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_spare_element` and `is_underflow` are never used [INFO] [stdout] --> src/btree/node.rs:353:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl Node { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 353 | pub fn can_spare_element(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 430 | pub fn is_underflow(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OpKind` is never used [INFO] [stdout] --> src/memtable/constant.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | pub(super) enum OpKind { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_u8` is never used [INFO] [stdout] --> src/memtable/constant.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 6 | impl OpKind { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 7 | #[inline] [INFO] [stdout] 8 | pub(super) fn as_u8(self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Encoder` is never constructed [INFO] [stdout] --> src/memtable/encoder.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) struct Encoder; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `encode` and `decode` are never used [INFO] [stdout] --> src/memtable/encoder.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 8 | impl Encoder { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 9 | pub(super) fn encode(opkind: OpKind, data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn decode(data: &[u8]) -> Result<(OpKind, &[u8]), Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `deserialize` is never used [INFO] [stdout] --> src/chunk/mod.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl Chunk { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 82 | fn deserialize(buffer: &[u8]) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Iter` is never constructed [INFO] [stdout] --> src/chunk/skiplist.rs:185:19 [INFO] [stdout] | [INFO] [stdout] 185 | pub(super) struct Iter { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `iter` is never used [INFO] [stdout] --> src/chunk/skiplist.rs:190:19 [INFO] [stdout] | [INFO] [stdout] 189 | impl SkipList { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 190 | pub(super) fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `int32`, `f64`, and `u64` are never used [INFO] [stdout] --> src/util.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 8 | impl Random { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 9 | pub(crate) fn int32() -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub(crate) fn f64() -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub(crate) fn u64() -> Result { [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/block/mod.rs:83:22 [INFO] [stdout] | [INFO] [stdout] 49 | let meta_file = match OpenOptions::new() [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 54 | Ok(mut file_ptr) => { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 60 | Err(err) => { [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 63 | let meta_file = [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 77 | let segment = Segment::new(format!("{}/block-{}", block_dir, &metadata.block_id).as_str()); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 83 | _blocks: Vec::new(), [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/btree/mod.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 32 | let fp = match OpenOptions::new().write(true).read(true).open(path) { [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 33 | Ok(file_ptr) => file_ptr, [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 34 | Err(err) => { [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 43 | let pager = Pager::new(fp); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 62 | pager: Rc::new(pager), [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 2 previous errors; 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_node` [INFO] [stdout] --> src/btree/node.rs:108:33 [INFO] [stdout] | [INFO] [stdout] 108 | TypedNode::Leaf(ref leaf_node) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mintkv` (lib) due to 3 previous errors; 25 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/memtable/encoder.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | fn decode(data: &[u8]) -> Result<(OpKind, &[u8]), Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `limits` [INFO] [stdout] --> src/db.rs:55:29 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn get_range(&self, limits: i32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_limits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tombstone` is never constructed [INFO] [stdout] --> src/tombstone.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Tombstone { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/block/mod.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 121 | pub(crate) struct Segment { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 125 | id: usize, // id according a filename 按照时间 [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Encoder` is never constructed [INFO] [stdout] --> src/block/encoder.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Encoder { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `display`, `delete`, `redistribution_leaf`, `redistribution_internal`, `find`, and `delete_node` are never used [INFO] [stdout] --> src/btree/mod.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl BTree { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn delete(&mut self, key: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | fn redistribution_leaf( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 343 | fn redistribution_internal( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 472 | pub fn find(&self, key: &[u8]) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 534 | pub fn delete_node(&mut self, node: u64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EmptyTree` and `KeyNotFound` are never constructed [INFO] [stdout] --> src/btree/error.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 3 | EmptyTree, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 4 | KeyNotFound, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `release_page` is never used [INFO] [stdout] --> src/btree/freelist.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Freelist { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn release_page(&mut self, _page_number: u64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_freelist_basic_operations` is never used [INFO] [stdout] --> src/btree/freelist.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn test_freelist_basic_operations() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_freelist_basic_functionality` is never used [INFO] [stdout] --> src/btree/freelist.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | fn test_freelist_basic_functionality() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_freelist_serialization_deserialization` is never used [INFO] [stdout] --> src/btree/freelist.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | fn test_freelist_serialization_deserialization() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_freelist_boundary_conditions` is never used [INFO] [stdout] --> src/btree/freelist.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | fn test_freelist_boundary_conditions() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_freelist_exception_handling` is never used [INFO] [stdout] --> src/btree/freelist.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | fn test_freelist_exception_handling() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `display` is never used [INFO] [stdout] --> src/btree/node.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl Node { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_spare_element` and `is_underflow` are never used [INFO] [stdout] --> src/btree/node.rs:353:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl Node { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 353 | pub fn can_spare_element(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 430 | pub fn is_underflow(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OpKind` is never used [INFO] [stdout] --> src/memtable/constant.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | pub(super) enum OpKind { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_u8` is never used [INFO] [stdout] --> src/memtable/constant.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 6 | impl OpKind { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 7 | #[inline] [INFO] [stdout] 8 | pub(super) fn as_u8(self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Encoder` is never constructed [INFO] [stdout] --> src/memtable/encoder.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) struct Encoder; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `encode` and `decode` are never used [INFO] [stdout] --> src/memtable/encoder.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 8 | impl Encoder { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 9 | pub(super) fn encode(opkind: OpKind, data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn decode(data: &[u8]) -> Result<(OpKind, &[u8]), Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `int32`, `f64`, and `u64` are never used [INFO] [stdout] --> src/util.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 8 | impl Random { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 9 | pub(crate) fn int32() -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub(crate) fn f64() -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub(crate) fn u64() -> Result { [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/block/mod.rs:83:22 [INFO] [stdout] | [INFO] [stdout] 49 | let meta_file = match OpenOptions::new() [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 54 | Ok(mut file_ptr) => { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 60 | Err(err) => { [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 63 | let meta_file = [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 77 | let segment = Segment::new(format!("{}/block-{}", block_dir, &metadata.block_id).as_str()); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 83 | _blocks: Vec::new(), [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/btree/mod.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 32 | let fp = match OpenOptions::new().write(true).read(true).open(path) { [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 33 | Ok(file_ptr) => file_ptr, [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 34 | Err(err) => { [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 43 | let pager = Pager::new(fp); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 62 | pager: Rc::new(pager), [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 2 previous errors; 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mintkv` (lib test) due to 3 previous errors; 28 warnings emitted [INFO] running `Command { std: "docker" "inspect" "886727e18585b4c07c1574e1b3cd37bc0d5370654c61397542f31e0a984bc9ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "886727e18585b4c07c1574e1b3cd37bc0d5370654c61397542f31e0a984bc9ab", kill_on_drop: false }` [INFO] [stdout] 886727e18585b4c07c1574e1b3cd37bc0d5370654c61397542f31e0a984bc9ab