[INFO] cloning repository https://github.com/shixiaozhong/bitcask-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shixiaozhong/bitcask-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshixiaozhong%2Fbitcask-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshixiaozhong%2Fbitcask-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7390187258b7ee392a3990c1b32b7935afdda95f [INFO] checking shixiaozhong/bitcask-rs against master#a33907a7a5381473eec8bcfa0c56e05a856a911c for pr-151539 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshixiaozhong%2Fbitcask-rs" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/shixiaozhong/bitcask-rs [INFO] finished tweaking git repo https://github.com/shixiaozhong/bitcask-rs [INFO] tweaked toml for git repo https://github.com/shixiaozhong/bitcask-rs written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/shixiaozhong/bitcask-rs on toolchain a33907a7a5381473eec8bcfa0c56e05a856a911c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a33907a7a5381473eec8bcfa0c56e05a856a911c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/shixiaozhong/bitcask-rs 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" "+a33907a7a5381473eec8bcfa0c56e05a856a911c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+a33907a7a5381473eec8bcfa0c56e05a856a911c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6316ce1eb0a6d0498040762aa0989ea7c49a849f320eddd3ffa014887d1800be [INFO] running `Command { std: "docker" "start" "-a" "6316ce1eb0a6d0498040762aa0989ea7c49a849f320eddd3ffa014887d1800be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6316ce1eb0a6d0498040762aa0989ea7c49a849f320eddd3ffa014887d1800be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6316ce1eb0a6d0498040762aa0989ea7c49a849f320eddd3ffa014887d1800be", kill_on_drop: false }` [INFO] [stdout] 6316ce1eb0a6d0498040762aa0989ea7c49a849f320eddd3ffa014887d1800be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+a33907a7a5381473eec8bcfa0c56e05a856a911c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fa93b601b96ace3d52d5e28edd933bc9c5f0fdb92927739369fce56be6a44f70 [INFO] running `Command { std: "docker" "start" "-a" "fa93b601b96ace3d52d5e28edd933bc9c5f0fdb92927739369fce56be6a44f70", kill_on_drop: false }` [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Compiling prost-derive v0.14.1 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Checking env_filter v0.1.4 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Checking thiserror v2.0.17 [INFO] [stderr] Checking prost v0.14.1 [INFO] [stderr] Checking bitcask-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `EngineConfig` is never constructed [INFO] [stdout] --> src/config.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct EngineConfig { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate` is never used [INFO] [stdout] --> src/config.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl EngineConfig { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 21 | pub fn validate(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IOConfig` is never constructed [INFO] [stdout] --> src/config.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct IOConfig { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IteratorConfig` is never constructed [INFO] [stdout] --> src/config.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct IteratorConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DATA_FILE_NAME_SUFFIX` is never used [INFO] [stdout] --> src/data/data_file.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const DATA_FILE_NAME_SUFFIX: &str = "data"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INITIAL_FILE_ID` is never used [INFO] [stdout] --> src/data/data_file.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const INITIAL_FILE_ID: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataFile` is never constructed [INFO] [stdout] --> src/data/data_file.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct DataFile { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/data/data_file.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl DataFile { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 26 | pub fn new(dir_path: &PathBuf, file_id: u32) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn read(&self, offset: u64) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn write(&self, log_record: LogRecord) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn sync(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn get_write_offset(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn set_write_offset(&self, offset: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn get_file_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogRecordPos` is never constructed [INFO] [stdout] --> src/data/log_record.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct LogRecordPos { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LogRecordType` is never used [INFO] [stdout] --> src/data/log_record.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum LogRecordType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_u8` is never used [INFO] [stdout] --> src/data/log_record.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl LogRecordType { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 20 | pub fn from_u8(v: u8) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogRecord` is never constructed [INFO] [stdout] --> src/data/log_record.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct LogRecord { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `encode`, `get_crc`, `encode_length`, and `encode_without_crc` are never used [INFO] [stdout] --> src/data/log_record.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl LogRecord { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn encode(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_crc(&self) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn encode_length(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn encode_without_crc(&self) -> BytesMut { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_log_record_header_size` is never used [INFO] [stdout] --> src/data/log_record.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn max_log_record_header_size() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Engine` is never constructed [INFO] [stdout] --> src/db.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Engine { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/db.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Engine { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 27 | pub fn open(opts: EngineConfig) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn get(&self, key: Bytes) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn put(&self, key: Bytes, value: Bytes) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn delete(&self, key: Bytes) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn sync(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn iter(&self) -> Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn list_keys(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Errors` is never used [INFO] [stdout] --> src/errors.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Errors { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/errors.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | pub type Result = result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IOManager` is never used [INFO] [stdout] --> src/fio/mod.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait IOManager: Send + Sync { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_io_manager` is never used [INFO] [stdout] --> src/fio/mod.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new_io_manager(file_path: PathBuf) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EngineIO` is never constructed [INFO] [stdout] --> src/fio/db_io.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct EngineIO { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `init`, `get`, `put`, and `sync` are never used [INFO] [stdout] --> src/fio/db_io.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl EngineIO { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 29 | pub fn new(io_config: IOConfig) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn init(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn get(&self, log_record_pos: LogRecordPos) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn put(&self, log_record: LogRecord) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn sync(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileIO` is never constructed [INFO] [stdout] --> src/fio/file_io.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct FileIO { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/fio/file_io.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl FileIO { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 27 | pub fn new(file_path: PathBuf) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Indexer` is never used [INFO] [stdout] --> src/inidex/mod.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Indexer: Send + Sync { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_indexer` is never used [INFO] [stdout] --> src/inidex/mod.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn new_indexer(index_type: IndexType) -> impl Indexer { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IndexType` is never used [INFO] [stdout] --> src/inidex/mod.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum IndexType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IndexIterator` is never used [INFO] [stdout] --> src/inidex/mod.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub trait IndexIterator: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BTree` is never constructed [INFO] [stdout] --> src/inidex/btree.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct BTree { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/inidex/btree.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl BTree { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 21 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EngineConfig` is never constructed [INFO] [stdout] --> src/config.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct EngineConfig { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate` is never used [INFO] [stdout] --> src/config.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl EngineConfig { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 21 | pub fn validate(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BTreeIterator` is never constructed [INFO] [stdout] --> src/inidex/btree.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct BTreeIterator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Iterator` is never constructed [INFO] [stdout] --> src/iterator.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Iterator<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IOConfig` is never constructed [INFO] [stdout] --> src/config.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct IOConfig { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `rewind`, `seek`, and `next` are never used [INFO] [stdout] --> src/iterator.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Iterator<'_> { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 15 | // 回到迭代器的起点 [INFO] [stdout] 16 | fn rewind(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn seek(&self, key: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn next(&self) -> Option<(Bytes, Bytes)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IteratorConfig` is never constructed [INFO] [stdout] --> src/config.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct IteratorConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DATA_FILE_NAME_SUFFIX` is never used [INFO] [stdout] --> src/data/data_file.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const DATA_FILE_NAME_SUFFIX: &str = "data"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INITIAL_FILE_ID` is never used [INFO] [stdout] --> src/data/data_file.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const INITIAL_FILE_ID: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataFile` is never constructed [INFO] [stdout] --> src/data/data_file.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct DataFile { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/data/data_file.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl DataFile { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 26 | pub fn new(dir_path: &PathBuf, file_id: u32) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn read(&self, offset: u64) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn write(&self, log_record: LogRecord) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn sync(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn get_write_offset(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn set_write_offset(&self, offset: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn get_file_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LogRecordType` is never used [INFO] [stdout] --> src/data/log_record.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum LogRecordType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_u8` is never used [INFO] [stdout] --> src/data/log_record.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl LogRecordType { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 20 | pub fn from_u8(v: u8) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogRecord` is never constructed [INFO] [stdout] --> src/data/log_record.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct LogRecord { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/db.rs:117:17 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn iter(&self) -> Iterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 117 | pub fn iter(&self) -> Iterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `encode`, `get_crc`, `encode_length`, and `encode_without_crc` are never used [INFO] [stdout] --> src/data/log_record.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl LogRecord { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn encode(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_crc(&self) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn encode_length(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn encode_without_crc(&self) -> BytesMut { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_log_record_header_size` is never used [INFO] [stdout] --> src/data/log_record.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn max_log_record_header_size() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.63s [INFO] [stdout] warning: struct `Engine` is never constructed [INFO] [stdout] --> src/db.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Engine { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/db.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Engine { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 27 | pub fn open(opts: EngineConfig) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn get(&self, key: Bytes) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn put(&self, key: Bytes, value: Bytes) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn delete(&self, key: Bytes) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn sync(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn iter(&self) -> Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn list_keys(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Errors` is never used [INFO] [stdout] --> src/errors.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Errors { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/errors.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | pub type Result = result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IOManager` is never used [INFO] [stdout] --> src/fio/mod.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait IOManager: Send + Sync { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_io_manager` is never used [INFO] [stdout] --> src/fio/mod.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new_io_manager(file_path: PathBuf) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EngineIO` is never constructed [INFO] [stdout] --> src/fio/db_io.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct EngineIO { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `init`, `get`, `put`, and `sync` are never used [INFO] [stdout] --> src/fio/db_io.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl EngineIO { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 29 | pub fn new(io_config: IOConfig) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn init(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn get(&self, log_record_pos: LogRecordPos) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn put(&self, log_record: LogRecord) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn sync(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileIO` is never constructed [INFO] [stdout] --> src/fio/file_io.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct FileIO { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/fio/file_io.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl FileIO { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 27 | pub fn new(file_path: PathBuf) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `init`, `delete`, `list_keys`, and `iterator` are never used [INFO] [stdout] --> src/inidex/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Indexer: Send + Sync { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] 9 | // 初始化构建索引 [INFO] [stdout] 10 | fn init(&self, dir_path: &PathBuf) -> Result<()>; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn delete(&self, key: Vec) -> bool; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn list_keys(&self) -> Result>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn iterator(&self, config: IteratorConfig) -> Box; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_indexer` is never used [INFO] [stdout] --> src/inidex/mod.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn new_indexer(index_type: IndexType) -> impl Indexer { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IndexType` is never used [INFO] [stdout] --> src/inidex/mod.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum IndexType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IndexIterator` is never used [INFO] [stdout] --> src/inidex/mod.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub trait IndexIterator: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BTreeIterator` is never constructed [INFO] [stdout] --> src/inidex/btree.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct BTreeIterator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Iterator` is never constructed [INFO] [stdout] --> src/iterator.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Iterator<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `rewind`, `seek`, and `next` are never used [INFO] [stdout] --> src/iterator.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Iterator<'_> { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 15 | // 回到迭代器的起点 [INFO] [stdout] 16 | fn rewind(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn seek(&self, key: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn next(&self) -> Option<(Bytes, Bytes)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/db.rs:117:17 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn iter(&self) -> Iterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 117 | pub fn iter(&self) -> Iterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "fa93b601b96ace3d52d5e28edd933bc9c5f0fdb92927739369fce56be6a44f70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa93b601b96ace3d52d5e28edd933bc9c5f0fdb92927739369fce56be6a44f70", kill_on_drop: false }` [INFO] [stdout] fa93b601b96ace3d52d5e28edd933bc9c5f0fdb92927739369fce56be6a44f70