[INFO] cloning repository https://github.com/rishavbhowmik/storage-engine-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rishavbhowmik/storage-engine-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishavbhowmik%2Fstorage-engine-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishavbhowmik%2Fstorage-engine-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f443dfc459f82417678708289c379e2cf7054bb5 [INFO] checking rishavbhowmik/storage-engine-rust against master#f21fbac535ab2c3bc50db20547f4d48477357103 for pr-143193 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishavbhowmik%2Fstorage-engine-rust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rishavbhowmik/storage-engine-rust [INFO] finished tweaking git repo https://github.com/rishavbhowmik/storage-engine-rust [INFO] tweaked toml for git repo https://github.com/rishavbhowmik/storage-engine-rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rishavbhowmik/storage-engine-rust on toolchain f21fbac535ab2c3bc50db20547f4d48477357103 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f21fbac535ab2c3bc50db20547f4d48477357103" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rishavbhowmik/storage-engine-rust 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" "+f21fbac535ab2c3bc50db20547f4d48477357103" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f21fbac535ab2c3bc50db20547f4d48477357103" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eb07bee25185fceb39ee5004daeae2c425a6c3d3d550f34969a0c8a3d5df61e6 [INFO] running `Command { std: "docker" "start" "-a" "eb07bee25185fceb39ee5004daeae2c425a6c3d3d550f34969a0c8a3d5df61e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eb07bee25185fceb39ee5004daeae2c425a6c3d3d550f34969a0c8a3d5df61e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb07bee25185fceb39ee5004daeae2c425a6c3d3d550f34969a0c8a3d5df61e6", kill_on_drop: false }` [INFO] [stdout] eb07bee25185fceb39ee5004daeae2c425a6c3d3d550f34969a0c8a3d5df61e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f21fbac535ab2c3bc50db20547f4d48477357103" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 73711c37851d22d7ad143e3b3fa2d9f5cefb72104d2d4f72e789945f1591353e [INFO] running `Command { std: "docker" "start" "-a" "73711c37851d22d7ad143e3b3fa2d9f5cefb72104d2d4f72e789945f1591353e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking se1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/storage/util.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn u32_to_bytes(n: u32) -> ([u8; 4]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 2 - pub fn u32_to_bytes(n: u32) -> ([u8; 4]) { [INFO] [stdout] 2 + pub fn u32_to_bytes(n: u32) -> [u8; 4] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/storage/util.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn u32_to_bytes(n: u32) -> ([u8; 4]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 2 - pub fn u32_to_bytes(n: u32) -> ([u8; 4]) { [INFO] [stdout] 2 + pub fn u32_to_bytes(n: u32) -> [u8; 4] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StorageHeader` is never constructed [INFO] [stdout] --> src/storage/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct StorageHeader { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STORAGE_HEADER_SIZE` is never used [INFO] [stdout] --> src/storage/mod.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const STORAGE_HEADER_SIZE: usize = std::mem::size_of::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from_bytes`, and `to_bytes` are never used [INFO] [stdout] --> src/storage/mod.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl StorageHeader { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 17 | fn new(block_len: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn from_bytes(bytes: &[u8; STORAGE_HEADER_SIZE]) -> StorageHeader { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn to_bytes(&self) -> [u8; STORAGE_HEADER_SIZE] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockHeader` is never constructed [INFO] [stdout] --> src/storage/mod.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct BlockHeader { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_HEADER_SIZE` is never used [INFO] [stdout] --> src/storage/mod.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 66 | const BLOCK_HEADER_SIZE: usize = std::mem::size_of::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from_bytes`, and `to_bytes` are never used [INFO] [stdout] --> src/storage/mod.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 68 | impl BlockHeader { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 69 | fn new(block_data_size: u32) -> BlockHeader { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn from_bytes(bytes: &[u8; BLOCK_HEADER_SIZE]) -> BlockHeader { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn to_bytes(&self) -> [u8; BLOCK_HEADER_SIZE] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Storage` is never constructed [INFO] [stdout] --> src/storage/mod.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct Storage { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/storage/mod.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 135 | impl Storage { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 143 | fn open_file_writer(file_path: &String, truncate: bool) -> Result<(File, u64), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | fn open_file_reader(file_path: &String) -> Result<(File, u64), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn new(file_path: String, block_len: usize) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn open(file_path: String) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | fn block_exists(&mut self, block_index: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | fn is_empty_block(&mut self, block_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | fn set_storage_header(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | fn get_storage_header(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 364 | fn read_storage_block_headers(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 452 | pub fn read_block(&mut self, block_index: usize) -> Result<(usize, Vec), Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 519 | pub fn write_block(&mut self, block_index: usize, data: &Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 590 | pub fn delete_block(&mut self, block_index: usize, hard_delete: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Error` is never constructed [INFO] [stdout] --> src/storage/error.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u32_to_bytes` is never used [INFO] [stdout] --> src/storage/util.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn u32_to_bytes(n: u32) -> ([u8; 4]) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_to_u32` is never used [INFO] [stdout] --> src/storage/util.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn bytes_to_u32(bytes: &[u8]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/storage/util.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn u32_to_bytes(n: u32) -> ([u8; 4]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 2 - pub fn u32_to_bytes(n: u32) -> ([u8; 4]) { [INFO] [stdout] 2 + pub fn u32_to_bytes(n: u32) -> [u8; 4] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/storage/util.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn u32_to_bytes(n: u32) -> ([u8; 4]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 2 - pub fn u32_to_bytes(n: u32) -> ([u8; 4]) { [INFO] [stdout] 2 + pub fn u32_to_bytes(n: u32) -> [u8; 4] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Storage` is never constructed [INFO] [stdout] --> src/storage/mod.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct Storage { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/storage/mod.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 135 | impl Storage { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 143 | fn open_file_writer(file_path: &String, truncate: bool) -> Result<(File, u64), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | fn open_file_reader(file_path: &String) -> Result<(File, u64), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn new(file_path: String, block_len: usize) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn open(file_path: String) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | fn block_exists(&mut self, block_index: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | fn is_empty_block(&mut self, block_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | fn set_storage_header(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | fn get_storage_header(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 364 | fn read_storage_block_headers(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 452 | pub fn read_block(&mut self, block_index: usize) -> Result<(usize, Vec), Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 519 | pub fn write_block(&mut self, block_index: usize, data: &Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 590 | pub fn delete_block(&mut self, block_index: usize, hard_delete: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Error` is never constructed [INFO] [stdout] --> src/storage/error.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.44s [INFO] running `Command { std: "docker" "inspect" "73711c37851d22d7ad143e3b3fa2d9f5cefb72104d2d4f72e789945f1591353e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73711c37851d22d7ad143e3b3fa2d9f5cefb72104d2d4f72e789945f1591353e", kill_on_drop: false }` [INFO] [stdout] 73711c37851d22d7ad143e3b3fa2d9f5cefb72104d2d4f72e789945f1591353e