[INFO] cloning repository https://github.com/cfeitong/cft-leveldb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cfeitong/cft-leveldb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcfeitong%2Fcft-leveldb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcfeitong%2Fcft-leveldb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e5b12beb7bf39b6692392c99e9a4cc2f92bd8e7b [INFO] checking cfeitong/cft-leveldb against master#3e826bb11228508fbe749e594038d6727208aa94 for pr-82322 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcfeitong%2Fcft-leveldb" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cfeitong/cft-leveldb on toolchain 3e826bb11228508fbe749e594038d6727208aa94 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e826bb11228508fbe749e594038d6727208aa94" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cfeitong/cft-leveldb [INFO] finished tweaking git repo https://github.com/cfeitong/cft-leveldb [INFO] tweaked toml for git repo https://github.com/cfeitong/cft-leveldb written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/cfeitong/cft-leveldb already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e826bb11228508fbe749e594038d6727208aa94" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+3e826bb11228508fbe749e594038d6727208aa94" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3ea91cd263fe0a5bb245aca38b002e12f732234c0bbb58bc1e6c89804d299336 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3ea91cd263fe0a5bb245aca38b002e12f732234c0bbb58bc1e6c89804d299336", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3ea91cd263fe0a5bb245aca38b002e12f732234c0bbb58bc1e6c89804d299336", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ea91cd263fe0a5bb245aca38b002e12f732234c0bbb58bc1e6c89804d299336", kill_on_drop: false }` [INFO] [stdout] 3ea91cd263fe0a5bb245aca38b002e12f732234c0bbb58bc1e6c89804d299336 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+3e826bb11228508fbe749e594038d6727208aa94" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cc193be722d6ff64d68e002d77865197ad3404b608447b93be5b8ddcae52d8c2 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "cc193be722d6ff64d68e002d77865197ad3404b608447b93be5b8ddcae52d8c2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking pin-project-lite v0.2.4 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Compiling cmake v0.1.45 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Compiling libmimalloc-sys v0.1.20 [INFO] [stderr] Compiling tokio v1.2.0 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Checking parking_lot_core v0.8.2 [INFO] [stderr] Checking signal-hook-registry v1.3.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking mio v0.7.7 [INFO] [stderr] Checking memmap2 v0.2.1 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking mimalloc v0.1.24 [INFO] [stderr] Compiling tracing-attributes v0.1.12 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Compiling tokio-macros v1.1.0 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Checking thiserror v1.0.23 [INFO] [stderr] Checking tracing v0.1.23 [INFO] [stderr] Checking cft-db v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/encoding.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | fn put_var_u32_le(&mut self, n: u32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/encoding.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | fn put_var_u64_le(&mut self, n: u64) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains` [INFO] [stdout] --> src/mem_table.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | pub async fn contains(&self, key: &Bytes) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/mem_table.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 37 | pub async fn remove(&self, key: &Bytes) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `base` [INFO] [stdout] --> src/vfs.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | base: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `open_sstable` [INFO] [stdout] --> src/vfs.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 49 | pub async fn open_sstable(&self, level: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `open_wal` [INFO] [stdout] --> src/vfs.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn open_wal(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `base` [INFO] [stdout] --> src/vfs.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | fn base(&self) -> PathBuf { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `VFile` [INFO] [stdout] --> src/vfs.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct VFile { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `VFileInner` [INFO] [stdout] --> src/vfs.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | struct VFileInner { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append` [INFO] [stdout] --> src/vfs.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | pub async fn append(&self, data: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_at` [INFO] [stdout] --> src/vfs.rs:91:18 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn read_at(&self, offset: u64, len: usize) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sync` [INFO] [stdout] --> src/vfs.rs:96:18 [INFO] [stdout] | [INFO] [stdout] 96 | pub async fn sync(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/vfs.rs:102:18 [INFO] [stdout] | [INFO] [stdout] 102 | pub async fn len(&self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `open` [INFO] [stdout] --> src/vfs.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 108 | async fn open(path: impl AsRef) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append` [INFO] [stdout] --> src/vfs.rs:119:14 [INFO] [stdout] | [INFO] [stdout] 119 | async fn append(&mut self, data: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_at` [INFO] [stdout] --> src/vfs.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 124 | async fn read_at(&mut self, offset: u64, len: usize) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sync` [INFO] [stdout] --> src/vfs.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | async fn sync(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/vfs.rs:136:14 [INFO] [stdout] | [INFO] [stdout] 136 | async fn len(&self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BLOCK_SIZE` [INFO] [stdout] --> src/wal.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const BLOCK_SIZE: usize = 32768; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HEADER_SIZE` [INFO] [stdout] --> src/wal.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const HEADER_SIZE: usize = 4 + 2 + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `WalFile` [INFO] [stdout] --> src/wal.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct WalFile { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_record` [INFO] [stdout] --> src/wal.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn write_record(&mut self, data: Bytes) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ZEROES` [INFO] [stdout] --> src/wal.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | const ZEROES: [u8; HEADER_SIZE] = [0; HEADER_SIZE]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_vfile` [INFO] [stdout] --> src/wal.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 54 | pub async fn from_vfile(vfile: VFile) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `emit_physical_record` [INFO] [stdout] --> src/wal.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | async fn emit_physical_record(&mut self, ty: RecordType, rec: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Full` [INFO] [stdout] --> src/wal.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | Full = 1, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `First` [INFO] [stdout] --> src/wal.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | First = 2, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Middle` [INFO] [stdout] --> src/wal.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | Middle = 3, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Last` [INFO] [stdout] --> src/wal.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | Last = 4, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calc` [INFO] [stdout] --> src/wal.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn calc(is_begin: bool, is_end: bool) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Record` [INFO] [stdout] --> src/wal.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | struct Record { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Block` [INFO] [stdout] --> src/wal.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | struct Block {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `vfs` [INFO] [stdout] --> src/db.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | vfs: VFS, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/encoding.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | fn put_var_u32_le(&mut self, n: u32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> src/wal.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | self.emit_physical_record(RecordType::calc(is_begin, is_end), &data[..cur_len]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/encoding.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | fn put_var_u64_le(&mut self, n: u64) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains` [INFO] [stdout] --> src/mem_table.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | pub async fn contains(&self, key: &Bytes) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/mem_table.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 37 | pub async fn remove(&self, key: &Bytes) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `base` [INFO] [stdout] --> src/vfs.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | base: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `open_sstable` [INFO] [stdout] --> src/vfs.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 49 | pub async fn open_sstable(&self, level: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `open_wal` [INFO] [stdout] --> src/vfs.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn open_wal(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `base` [INFO] [stdout] --> src/vfs.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | fn base(&self) -> PathBuf { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `VFile` [INFO] [stdout] --> src/vfs.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct VFile { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `VFileInner` [INFO] [stdout] --> src/vfs.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | struct VFileInner { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append` [INFO] [stdout] --> src/vfs.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | pub async fn append(&self, data: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_at` [INFO] [stdout] --> src/vfs.rs:91:18 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn read_at(&self, offset: u64, len: usize) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sync` [INFO] [stdout] --> src/vfs.rs:96:18 [INFO] [stdout] | [INFO] [stdout] 96 | pub async fn sync(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/vfs.rs:102:18 [INFO] [stdout] | [INFO] [stdout] 102 | pub async fn len(&self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `open` [INFO] [stdout] --> src/vfs.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 108 | async fn open(path: impl AsRef) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append` [INFO] [stdout] --> src/vfs.rs:119:14 [INFO] [stdout] | [INFO] [stdout] 119 | async fn append(&mut self, data: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_at` [INFO] [stdout] --> src/vfs.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 124 | async fn read_at(&mut self, offset: u64, len: usize) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sync` [INFO] [stdout] --> src/vfs.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | async fn sync(&self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/vfs.rs:136:14 [INFO] [stdout] | [INFO] [stdout] 136 | async fn len(&self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BLOCK_SIZE` [INFO] [stdout] --> src/wal.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const BLOCK_SIZE: usize = 32768; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HEADER_SIZE` [INFO] [stdout] --> src/wal.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const HEADER_SIZE: usize = 4 + 2 + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `WalFile` [INFO] [stdout] --> src/wal.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct WalFile { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_record` [INFO] [stdout] --> src/wal.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn write_record(&mut self, data: Bytes) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ZEROES` [INFO] [stdout] --> src/wal.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | const ZEROES: [u8; HEADER_SIZE] = [0; HEADER_SIZE]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_vfile` [INFO] [stdout] --> src/wal.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 54 | pub async fn from_vfile(vfile: VFile) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `emit_physical_record` [INFO] [stdout] --> src/wal.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | async fn emit_physical_record(&mut self, ty: RecordType, rec: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Full` [INFO] [stdout] --> src/wal.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | Full = 1, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `First` [INFO] [stdout] --> src/wal.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | First = 2, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Middle` [INFO] [stdout] --> src/wal.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | Middle = 3, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Last` [INFO] [stdout] --> src/wal.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | Last = 4, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calc` [INFO] [stdout] --> src/wal.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn calc(is_begin: bool, is_end: bool) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Record` [INFO] [stdout] --> src/wal.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | struct Record { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Block` [INFO] [stdout] --> src/wal.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | struct Block {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `vfs` [INFO] [stdout] --> src/db.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | vfs: VFS, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> src/wal.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | self.emit_physical_record(RecordType::calc(is_begin, is_end), &data[..cur_len]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 21.34s [INFO] running `Command { std: "docker" "inspect" "cc193be722d6ff64d68e002d77865197ad3404b608447b93be5b8ddcae52d8c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc193be722d6ff64d68e002d77865197ad3404b608447b93be5b8ddcae52d8c2", kill_on_drop: false }` [INFO] [stdout] cc193be722d6ff64d68e002d77865197ad3404b608447b93be5b8ddcae52d8c2