[INFO] cloning repository https://github.com/gfreezy/lsm-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gfreezy/lsm-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgfreezy%2Flsm-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgfreezy%2Flsm-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8e0118a1006bebf59b91cf3ce4d8f0e86949a240 [INFO] checking gfreezy/lsm-rs against master#b359ccf1b0b7b2d2c1c4932344b806e68bd053a9 for pr-105483 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgfreezy%2Flsm-rs" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gfreezy/lsm-rs on toolchain b359ccf1b0b7b2d2c1c4932344b806e68bd053a9 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b359ccf1b0b7b2d2c1c4932344b806e68bd053a9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gfreezy/lsm-rs [INFO] finished tweaking git repo https://github.com/gfreezy/lsm-rs [INFO] tweaked toml for git repo https://github.com/gfreezy/lsm-rs written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/gfreezy/lsm-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b359ccf1b0b7b2d2c1c4932344b806e68bd053a9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quote v0.6.8 [INFO] [stderr] Downloaded failure_derive v0.1.2 [INFO] [stderr] Downloaded num-complex v0.1.43 [INFO] [stderr] Downloaded proc-macro2 v0.4.20 [INFO] [stderr] Downloaded syn v0.14.9 [INFO] [stderr] Downloaded build_const v0.2.1 [INFO] [stderr] Downloaded synstructure v0.9.0 [INFO] [stderr] Downloaded spectral v0.6.0 [INFO] [stderr] Downloaded rand v0.4.3 [INFO] [stderr] Downloaded failure v0.1.2 [INFO] [stderr] Downloaded num-bigint v0.1.44 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+b359ccf1b0b7b2d2c1c4932344b806e68bd053a9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 220af12a93e702f66e454641eedd0a3688e79d70a93f81572048b1405e589b89 [INFO] running `Command { std: "docker" "start" "-a" "220af12a93e702f66e454641eedd0a3688e79d70a93f81572048b1405e589b89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "220af12a93e702f66e454641eedd0a3688e79d70a93f81572048b1405e589b89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "220af12a93e702f66e454641eedd0a3688e79d70a93f81572048b1405e589b89", kill_on_drop: false }` [INFO] [stdout] 220af12a93e702f66e454641eedd0a3688e79d70a93f81572048b1405e589b89 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+b359ccf1b0b7b2d2c1c4932344b806e68bd053a9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fe2003203510228d78d458f6f3def3116735e12101a9e57f590c5fe678197f34 [INFO] running `Command { std: "docker" "start" "-a" "fe2003203510228d78d458f6f3def3116735e12101a9e57f590c5fe678197f34", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Checking libc v0.2.43 [INFO] [stderr] Compiling proc-macro2 v0.4.20 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Compiling cc v1.0.25 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling failure_derive v0.1.2 [INFO] [stderr] Compiling build_const v0.2.1 [INFO] [stderr] Checking cfg-if v0.1.5 [INFO] [stderr] Checking rustc-demangle v0.1.9 [INFO] [stderr] Checking byteorder v1.2.7 [INFO] [stderr] Compiling crc v1.8.1 [INFO] [stderr] Checking rand v0.4.3 [INFO] [stderr] Compiling quote v0.6.8 [INFO] [stderr] Compiling backtrace-sys v0.1.24 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking backtrace v0.3.9 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking spectral v0.6.0 [INFO] [stderr] Compiling synstructure v0.9.0 [INFO] [stderr] Checking failure v0.1.2 [INFO] [stderr] Checking lsm-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `RECORD_EXTRA_SIZE` is never used [INFO] [stdout] --> src/block.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const RECORD_EXTRA_SIZE: usize = 7; // 7 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Full`, `First`, `Middle`, and `Last` are never constructed [INFO] [stdout] --> src/block.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Type { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 12 | Full = 1, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | First = 2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | Middle = 3, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | Last = 4, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` 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: function `make_records_from_buf` is never used [INFO] [stdout] --> src/block.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn make_records_from_buf(free_block_size: usize, buf: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/block.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn new(typ: Type, data: &'a [u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `write_to` is never used [INFO] [stdout] --> src/block.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn write_to(&self, writer: &mut W) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `compute_checksum` is never used [INFO] [stdout] --> src/block.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | fn compute_checksum(typ: Type, data: &[u8]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AvailableSpace` and `ThresholdReached` are never constructed [INFO] [stdout] --> src/memtable.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum SetRet { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 9 | AvailableSpace, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 10 | ThresholdReached, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SetRet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `map`, `max_size`, and `size` are never read [INFO] [stdout] --> src/memtable.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct ImmutableMemtable { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 74 | map: BTreeMap, [INFO] [stdout] | ^^^ [INFO] [stdout] 75 | // max memory size in bytes [INFO] [stdout] 76 | max_size: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 77 | size: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImmutableMemtable` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/memtable.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(max_size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `set` is never used [INFO] [stdout] --> src/memtable.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn set(&mut self, key: Key, value: Value) -> Fallible { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get` is never used [INFO] [stdout] --> src/memtable.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn get(&self, key: &[u8]) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove` is never used [INFO] [stdout] --> src/memtable.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn remove(&mut self, key: Key) -> Fallible { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_threshold_reached` is never used [INFO] [stdout] --> src/memtable.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn is_threshold_reached(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get` is never used [INFO] [stdout] --> src/memtable.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn get(&self, key: &[u8]) -> Option<&Value> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `iter` is never used [INFO] [stdout] --> src/memtable.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SSTable` is never constructed [INFO] [stdout] --> src/sstable.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct SSTable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TOMBSTONE` is never used [INFO] [stdout] --> src/types.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const TOMBSTONE: &[u8] = &[0x6b, 0xe5, 0xa5, 0xa2]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WAL_LOG_MAX_SIZE` is never used [INFO] [stdout] --> src/types.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const WAL_LOG_MAX_SIZE: usize = 4 * 1024 * 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_MAX_SIZE` is never used [INFO] [stdout] --> src/types.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const BLOCK_MAX_SIZE: usize = 32 * 1024; // 32KB [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_MIN_FREE_SIZE` is never used [INFO] [stdout] --> src/types.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const BLOCK_MIN_FREE_SIZE: usize = 6; // 6 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/wal.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Wal { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 15 | path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/wal.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new>(path: P) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `make_records` is never used [INFO] [stdout] --> src/wal.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn make_records<'a>(&self, buf: &'a [u8]) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `write_records` is never used [INFO] [stdout] --> src/wal.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn write_records<'a>(&mut self, records: Vec>) -> Fallible>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `write_record` is never used [INFO] [stdout] --> src/wal.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | fn write_record(&mut self, record: &Record) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_block` is never used [INFO] [stdout] --> src/wal.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | fn new_block(&mut self) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `write_trailer` is never used [INFO] [stdout] --> src/wal.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn write_trailer(&mut self) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `free_space` is never used [INFO] [stdout] --> src/wal.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | fn free_space(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `current_block_free_space` is never used [INFO] [stdout] --> src/wal.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | fn current_block_free_space(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_size` and `size` are never read [INFO] [stdout] --> src/memtable.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct ImmutableMemtable { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 76 | max_size: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 77 | size: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImmutableMemtable` 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: struct `SSTable` is never constructed [INFO] [stdout] --> src/sstable.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct SSTable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/wal.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Wal { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 15 | path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.11s [INFO] running `Command { std: "docker" "inspect" "fe2003203510228d78d458f6f3def3116735e12101a9e57f590c5fe678197f34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe2003203510228d78d458f6f3def3116735e12101a9e57f590c5fe678197f34", kill_on_drop: false }` [INFO] [stdout] fe2003203510228d78d458f6f3def3116735e12101a9e57f590c5fe678197f34