[INFO] fetching crate mintkv 0.1.0... [INFO] checking mintkv-0.1.0 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate mintkv 0.1.0 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate mintkv 0.1.0 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "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-tc1/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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f2b8ff568b1155f6a16a9e1e34e3ca0ad96f8dfdeadff4c67527c2be35f2485b [INFO] running `Command { std: "docker" "start" "-a" "f2b8ff568b1155f6a16a9e1e34e3ca0ad96f8dfdeadff4c67527c2be35f2485b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f2b8ff568b1155f6a16a9e1e34e3ca0ad96f8dfdeadff4c67527c2be35f2485b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2b8ff568b1155f6a16a9e1e34e3ca0ad96f8dfdeadff4c67527c2be35f2485b", kill_on_drop: false }` [INFO] [stdout] f2b8ff568b1155f6a16a9e1e34e3ca0ad96f8dfdeadff4c67527c2be35f2485b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b9ef7d980887939004d3caac03c8fd184630a5f060ad3198e372f84e493c456d [INFO] running `Command { std: "docker" "start" "-a" "b9ef7d980887939004d3caac03c8fd184630a5f060ad3198e372f84e493c456d", 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 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, 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: `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 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 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: `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] 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] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.61s [INFO] running `Command { std: "docker" "inspect" "b9ef7d980887939004d3caac03c8fd184630a5f060ad3198e372f84e493c456d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9ef7d980887939004d3caac03c8fd184630a5f060ad3198e372f84e493c456d", kill_on_drop: false }` [INFO] [stdout] b9ef7d980887939004d3caac03c8fd184630a5f060ad3198e372f84e493c456d