[INFO] fetching crate mintkv 0.1.0...
[INFO] checking mintkv-0.1.0 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577
[INFO] extracting crate mintkv 0.1.0 into /workspace/builds/worker-7-tc2/source
[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-7-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate mintkv 0.1.0 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e24451ad36e13f1fe60d6c081acfa1c6a4e88858b991d7757ec84f6dbe8510bd
[INFO] running `Command { std: "docker" "start" "-a" "e24451ad36e13f1fe60d6c081acfa1c6a4e88858b991d7757ec84f6dbe8510bd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e24451ad36e13f1fe60d6c081acfa1c6a4e88858b991d7757ec84f6dbe8510bd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e24451ad36e13f1fe60d6c081acfa1c6a4e88858b991d7757ec84f6dbe8510bd", kill_on_drop: false }`
[INFO] [stdout] e24451ad36e13f1fe60d6c081acfa1c6a4e88858b991d7757ec84f6dbe8510bd
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 129310deb6ff879fb2a15ce88584c616cc2f183febd0226ff4a49c2db48fa3c5
[INFO] running `Command { std: "docker" "start" "-a" "129310deb6ff879fb2a15ce88584c616cc2f183febd0226ff4a49c2db48fa3c5", 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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<Vec<u8>, Error> {
[INFO] [stdout]     |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) 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<Vec<u8>, 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)]` (part of `#[warn(unused)]`) 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:29
[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 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)]` (part of `#[warn(unused)]`) 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<String, Error> {
[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<KeyValue, Error> {
[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<u8> {
[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<Vec<(String, String)>, 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<i32, std::io::Error> {
[INFO] [stdout]    |                   ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 25 |     pub(crate) fn f64() -> Result<f64, std::io::Error> {
[INFO] [stdout]    |                   ^^^
[INFO] [stdout] ...
[INFO] [stdout] 33 |     pub(crate) fn u64() -> Result<u64, std::io::Error> {
[INFO] [stdout]    |                   ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible>
[INFO] [stdout]    --> src/btree/node.rs:286:40
[INFO] [stdout]     |
[INFO] [stdout] 286 |             key_bytes.clone_from_slice(buf[offset..offset + key_size].try_into().unwrap());
[INFO] [stdout]     |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: requested on the command line with `-D unmustuse-in-always-ok`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible>
[INFO] [stdout]    --> src/btree/node.rs:295:42
[INFO] [stdout]     |
[INFO] [stdout] 295 |             value_bytes.clone_from_slice(buf[offset..offset + val_size].try_into().unwrap());
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `mintkv` (lib) due to 2 previous errors; 25 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[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: `key`
[INFO] [stdout]    --> src/block/mod.rs:102:33
[INFO] [stdout]     |
[INFO] [stdout] 102 |     pub(crate) fn remove(&self, key: &[u8]) -> Result<Vec<u8>, Error> {
[INFO] [stdout]     |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) 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<Vec<u8>, 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)]` (part of `#[warn(unused)]`) 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:29
[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 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)]` (part of `#[warn(unused)]`) 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<String, Error> {
[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<KeyValue, Error> {
[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<u8> {
[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<i32, std::io::Error> {
[INFO] [stdout]    |                   ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 25 |     pub(crate) fn f64() -> Result<f64, std::io::Error> {
[INFO] [stdout]    |                   ^^^
[INFO] [stdout] ...
[INFO] [stdout] 33 |     pub(crate) fn u64() -> Result<u64, std::io::Error> {
[INFO] [stdout]    |                   ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible>
[INFO] [stdout]    --> src/btree/node.rs:286:40
[INFO] [stdout]     |
[INFO] [stdout] 286 |             key_bytes.clone_from_slice(buf[offset..offset + key_size].try_into().unwrap());
[INFO] [stdout]     |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: requested on the command line with `-D unmustuse-in-always-ok`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible>
[INFO] [stdout]    --> src/btree/node.rs:295:42
[INFO] [stdout]     |
[INFO] [stdout] 295 |             value_bytes.clone_from_slice(buf[offset..offset + val_size].try_into().unwrap());
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `mintkv` (lib test) due to 2 previous errors; 28 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "129310deb6ff879fb2a15ce88584c616cc2f183febd0226ff4a49c2db48fa3c5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "129310deb6ff879fb2a15ce88584c616cc2f183febd0226ff4a49c2db48fa3c5", kill_on_drop: false }`
[INFO] [stdout] 129310deb6ff879fb2a15ce88584c616cc2f183febd0226ff4a49c2db48fa3c5
