[INFO] cloning repository https://github.com/ihorandrianov/databased [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ihorandrianov/databased" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fihorandrianov%2Fdatabased", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fihorandrianov%2Fdatabased'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b0074481a24eab1655a22e2fe1e02de654c1d7dc [INFO] checking ihorandrianov/databased against master#9d28fe39763974a96d61232e96ac856735e4cdd6 for pr-139624 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fihorandrianov%2Fdatabased" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ihorandrianov/databased on toolchain 9d28fe39763974a96d61232e96ac856735e4cdd6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9d28fe39763974a96d61232e96ac856735e4cdd6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ihorandrianov/databased [INFO] finished tweaking git repo https://github.com/ihorandrianov/databased [INFO] tweaked toml for git repo https://github.com/ihorandrianov/databased written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ihorandrianov/databased 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" "+9d28fe39763974a96d61232e96ac856735e4cdd6" "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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+9d28fe39763974a96d61232e96ac856735e4cdd6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9169c481164f1c66e531770f41b898aa14772f86e5e9241add5a0fe85ab88fb3 [INFO] running `Command { std: "docker" "start" "-a" "9169c481164f1c66e531770f41b898aa14772f86e5e9241add5a0fe85ab88fb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9169c481164f1c66e531770f41b898aa14772f86e5e9241add5a0fe85ab88fb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9169c481164f1c66e531770f41b898aa14772f86e5e9241add5a0fe85ab88fb3", kill_on_drop: false }` [INFO] [stdout] 9169c481164f1c66e531770f41b898aa14772f86e5e9241add5a0fe85ab88fb3 [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+9d28fe39763974a96d61232e96ac856735e4cdd6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bded53fcc39068874acd182efeaddd93c1d8a03a183a3ec0529eb69ee90c7cc4 [INFO] running `Command { std: "docker" "start" "-a" "bded53fcc39068874acd182efeaddd93c1d8a03a183a3ec0529eb69ee90c7cc4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking clap_builder v4.5.15 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking hashlink v0.9.1 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling clap_derive v4.5.13 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking clap v4.5.16 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking kvstore v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `LogParseError` is never constructed [INFO] [stdout] --> src/errors.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum LogError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | LogParseError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `TokenParseError`, `KeyParseError`, and `ValueParseError` are never constructed [INFO] [stdout] --> src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum ParserError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 36 | #[error("Error parsing token")] [INFO] [stdout] 37 | TokenParseError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | KeyParseError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | ValueParseError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ReadError` is never constructed [INFO] [stdout] --> src/errors.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub enum WALError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 64 | ReadError(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WALError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SerializationError` and `GenericError` are never constructed [INFO] [stdout] --> src/errors.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub enum PersistentLayerError { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 79 | SerializationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | GenericError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PersistentLayerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/errors.rs:90:14 [INFO] [stdout] | [INFO] [stdout] 90 | WALError(WALError), [INFO] [stdout] | -------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `KVStoreError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 90 - WALError(WALError), [INFO] [stdout] 90 + WALError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/errors.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | FileSystemError(FileSystemError), [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `KVStoreError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 91 - FileSystemError(FileSystemError), [INFO] [stdout] 91 + FileSystemError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MemoryLayerError`, `BytecodeSerializerError`, `ParserError`, `PersistentLayerError`, and `LogError` are never constructed [INFO] [stdout] --> src/errors.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 86 | pub enum KVStoreError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 87 | MemoryLayerError(MemoryLayerErrors), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | BytecodeSerializerError(BytecodeSerializerError), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 89 | ParserError(ParserError), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | PersistentLayerError(PersistentLayerError), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 93 | LogError(LogError), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KVStoreError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root` is never read [INFO] [stdout] --> src/filesystem.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct FileSystem { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 8 | root: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_root_ref`, `get_snapshot_ref`, `get_temp_ref`, and `get_persistent_ref` are never used [INFO] [stdout] --> src/filesystem.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl FileSystem { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub async fn get_root_ref(&self) -> &PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub async fn get_snapshot_ref(&self) -> &PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub async fn get_temp_ref(&self) -> &PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub async fn get_persistent_ref(&self) -> &PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_snapshot` is never used [INFO] [stdout] --> src/in_memory.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl InMemoryLayer { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_snapshot(&self) -> Vec<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_system` and `cache` are never read [INFO] [stdout] --> src/kvstore.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct KvStore { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | file_system: FileSystem, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | cache: LruCacheLayer, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DeletedFilesCount` is never used [INFO] [stdout] --> src/log.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type DeletedFilesCount = usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_latest_file` and `timed_cleanup` are never used [INFO] [stdout] --> src/log.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl WALFileManager { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn get_latest_file(&self) -> &Path { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub async fn timed_cleanup( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cache` is never read [INFO] [stdout] --> src/lru_cache.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct LruCacheLayer { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 4 | cache: LinkedHashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `put`, `get`, and `del` are never used [INFO] [stdout] --> src/lru_cache.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl LruCacheLayer { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | fn put(&mut self, key: &str, value: &str) -> () { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn get(&mut self, key: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn del(&mut self, key: &str) -> () { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `EOF` is never constructed [INFO] [stdout] --> src/parser.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Token { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | EOF, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HEADER_SIZE` is never used [INFO] [stdout] --> src/persistent/block.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const HEADER_SIZE: usize = 12; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LP_LEN` is never used [INFO] [stdout] --> src/persistent/block.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const LP_LEN: usize = 32; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IDX_LEN` is never used [INFO] [stdout] --> src/persistent/block.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const IDX_LEN: usize = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinePointer` is never constructed [INFO] [stdout] --> src/persistent/block.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct LinePointer(String, u16); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `to_bytes`, `from_bytes`, and `get_byte_size` are never used [INFO] [stdout] --> src/persistent/block.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl LinePointer { [INFO] [stdout] | ----------------------------------------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(value: &str, idx: u16) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn from_bytes(bytes: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_byte_size() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ValueEntry` is never constructed [INFO] [stdout] --> src/persistent/block.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct ValueEntry { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_str`, `to_bytes`, and `from_bytes` are never used [INFO] [stdout] --> src/persistent/block.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl ValueEntry { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 62 | fn from_str(value: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn from_bytes(bytes: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/persistent/block.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `construct`, `write_record`, `to_bytes`, `from_bytes`, `calculate_fletcher16`, and `validate_checksum` are never used [INFO] [stdout] --> src/persistent/block.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 103 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 104 | fn construct( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | fn write_record( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | fn from_bytes(data: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | fn calculate_fletcher16(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | fn validate_checksum(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `checksum`, `flags`, `lower`, `upper`, `linp`, and `page_size` are never read [INFO] [stdout] --> src/persistent/block.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 213 | struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 214 | checksum: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 215 | flags: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 216 | lower: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 217 | upper: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 218 | linp: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 219 | page_size: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/persistent/block.rs:236:8 [INFO] [stdout] | [INFO] [stdout] 235 | impl Header { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 236 | fn from_bytes(bytes: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 326 | fn set(&mut self, value: HeaderProps) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 336 | fn upper(&self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | fn lower(&self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | fn checksum(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | fn is_space_to_write(&self, size: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HeaderProps` is never used [INFO] [stdout] --> src/persistent/block.rs:358:6 [INFO] [stdout] | [INFO] [stdout] 358 | enum HeaderProps { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/persistent/errors.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum PersistentLayerError { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] 6 | #[error("Error creating block header, cause: {0}")] [INFO] [stdout] 7 | HeaderCrError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | LinePointerLenError(usize, usize), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | LinePointerSerializationError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | ValueTooLong, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | HeaderError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | ValueEntryOOBError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | ChecksumValidationError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | NoSpaceInBlock, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PersistentLayerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PersistentLayer` is never constructed [INFO] [stdout] --> src/persistent/persistent.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PersistentLayer<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_dir_contents` are never used [INFO] [stdout] --> src/persistent/persistent.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'a> PersistentLayer<'a> { [INFO] [stdout] | ---------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(dir: &'a PathBuf) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn get_dir_contents(&self) -> Result, PersistentLayerError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TcpAdapter` is never constructed [INFO] [stdout] --> src/tcp_adapter.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct TcpAdapter { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/tcp_adapter.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl TcpAdapter { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 8 | pub async fn new(kv_store: KvStore) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/persistent/block.rs:492:14 [INFO] [stdout] | [INFO] [stdout] 492 | let (block, not_fit) = Block::construct(init_data).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LogParseError` is never constructed [INFO] [stdout] --> src/errors.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum LogError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | LogParseError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `TokenParseError`, `KeyParseError`, and `ValueParseError` are never constructed [INFO] [stdout] --> src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum ParserError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 36 | #[error("Error parsing token")] [INFO] [stdout] 37 | TokenParseError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | KeyParseError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | ValueParseError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ReadError` is never constructed [INFO] [stdout] --> src/errors.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub enum WALError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 64 | ReadError(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WALError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SerializationError` and `GenericError` are never constructed [INFO] [stdout] --> src/errors.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub enum PersistentLayerError { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 79 | SerializationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | GenericError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PersistentLayerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/errors.rs:90:14 [INFO] [stdout] | [INFO] [stdout] 90 | WALError(WALError), [INFO] [stdout] | -------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `KVStoreError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 90 - WALError(WALError), [INFO] [stdout] 90 + WALError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/errors.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | FileSystemError(FileSystemError), [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `KVStoreError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 91 - FileSystemError(FileSystemError), [INFO] [stdout] 91 + FileSystemError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MemoryLayerError`, `BytecodeSerializerError`, `ParserError`, `PersistentLayerError`, and `LogError` are never constructed [INFO] [stdout] --> src/errors.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 86 | pub enum KVStoreError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 87 | MemoryLayerError(MemoryLayerErrors), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | BytecodeSerializerError(BytecodeSerializerError), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 89 | ParserError(ParserError), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | PersistentLayerError(PersistentLayerError), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 93 | LogError(LogError), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KVStoreError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_snapshot_ref`, `get_temp_ref`, and `get_persistent_ref` are never used [INFO] [stdout] --> src/filesystem.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl FileSystem { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub async fn get_snapshot_ref(&self) -> &PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub async fn get_temp_ref(&self) -> &PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub async fn get_persistent_ref(&self) -> &PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_snapshot` is never used [INFO] [stdout] --> src/in_memory.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl InMemoryLayer { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_snapshot(&self) -> Vec<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_system` and `cache` are never read [INFO] [stdout] --> src/kvstore.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct KvStore { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | file_system: FileSystem, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | cache: LruCacheLayer, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DeletedFilesCount` is never used [INFO] [stdout] --> src/log.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type DeletedFilesCount = usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_latest_file` and `timed_cleanup` are never used [INFO] [stdout] --> src/log.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl WALFileManager { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn get_latest_file(&self) -> &Path { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub async fn timed_cleanup( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cache` is never read [INFO] [stdout] --> src/lru_cache.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct LruCacheLayer { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 4 | cache: LinkedHashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `put`, `get`, and `del` are never used [INFO] [stdout] --> src/lru_cache.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl LruCacheLayer { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | fn put(&mut self, key: &str, value: &str) -> () { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn get(&mut self, key: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn del(&mut self, key: &str) -> () { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `EOF` is never constructed [INFO] [stdout] --> src/parser.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Token { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | EOF, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_byte_size` is never used [INFO] [stdout] --> src/persistent/block.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl LinePointer { [INFO] [stdout] | ----------------------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_byte_size() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FLAGS` is never constructed [INFO] [stdout] --> src/persistent/block.rs:360:5 [INFO] [stdout] | [INFO] [stdout] 358 | enum HeaderProps { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 359 | CHECKSUM(u16), [INFO] [stdout] 360 | FLAGS(u16), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HeaderCrError` is never constructed [INFO] [stdout] --> src/persistent/errors.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum PersistentLayerError { [INFO] [stdout] | -------------------- variant in this enum [INFO] [stdout] 6 | #[error("Error creating block header, cause: {0}")] [INFO] [stdout] 7 | HeaderCrError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PersistentLayerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PersistentLayer` is never constructed [INFO] [stdout] --> src/persistent/persistent.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PersistentLayer<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_dir_contents` are never used [INFO] [stdout] --> src/persistent/persistent.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'a> PersistentLayer<'a> { [INFO] [stdout] | ---------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(dir: &'a PathBuf) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn get_dir_contents(&self) -> Result, PersistentLayerError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TcpAdapter` is never constructed [INFO] [stdout] --> src/tcp_adapter.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct TcpAdapter { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/tcp_adapter.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl TcpAdapter { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 8 | pub async fn new(kv_store: KvStore) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.47s [INFO] running `Command { std: "docker" "inspect" "bded53fcc39068874acd182efeaddd93c1d8a03a183a3ec0529eb69ee90c7cc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bded53fcc39068874acd182efeaddd93c1d8a03a183a3ec0529eb69ee90c7cc4", kill_on_drop: false }` [INFO] [stdout] bded53fcc39068874acd182efeaddd93c1d8a03a183a3ec0529eb69ee90c7cc4