[INFO] fetching crate db-core 0.1.1... [INFO] checking db-core-0.1.1 against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] extracting crate db-core 0.1.1 into /workspace/builds/worker-9/source [INFO] validating manifest of crates.io crate db-core 0.1.1 on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate db-core 0.1.1 [INFO] finished tweaking crates.io crate db-core 0.1.1 [INFO] tweaked toml for crates.io crate db-core 0.1.1 written to /workspace/builds/worker-9/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4f400fe26b019952a43a0852ee8a753bebc8f6f208e104f8b9da4da4c2c6ef6b [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" "4f400fe26b019952a43a0852ee8a753bebc8f6f208e104f8b9da4da4c2c6ef6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4f400fe26b019952a43a0852ee8a753bebc8f6f208e104f8b9da4da4c2c6ef6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f400fe26b019952a43a0852ee8a753bebc8f6f208e104f8b9da4da4c2c6ef6b", kill_on_drop: false }` [INFO] [stdout] 4f400fe26b019952a43a0852ee8a753bebc8f6f208e104f8b9da4da4c2c6ef6b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] af8bdf4b4cfcdab038b92b68d0a8fd5dd9b71a6dacdb6bea3380a9360b9bcc34 [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" "af8bdf4b4cfcdab038b92b68d0a8fd5dd9b71a6dacdb6bea3380a9360b9bcc34", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.88 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking db-core v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated type alias `std::alloc::LayoutErr`: Name does not follow std convention, use LayoutError [INFO] [stdout] --> src/common/errors.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | std::alloc::LayoutErr, IncorrectLayout, layout_err, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::alloc::LayoutErr`: Name does not follow std convention, use LayoutError [INFO] [stdout] --> src/common/errors.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | std::alloc::LayoutErr, IncorrectLayout, layout_err, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::alloc::LayoutErr`: Name does not follow std convention, use LayoutError [INFO] [stdout] --> src/common/errors.rs:206:67 [INFO] [stdout] | [INFO] [stdout] 206 | IncorrectLayout , incorrect_layout , std::alloc::LayoutErr, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/common/intercom.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | core::sync::atomic::spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/log_mgr/log_mgr.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::block_mgr::block::BasicBlock` [INFO] [stdout] --> src/storage/block_driver.rs:661:9 [INFO] [stdout] | [INFO] [stdout] 661 | use crate::block_mgr::block::BasicBlock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/system/instance.rs:514:9 [INFO] [stdout] | [INFO] [stdout] 514 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicU64::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/buf_mgr/buf_mgr.rs:287:39 [INFO] [stdout] | [INFO] [stdout] 287 | let cur2 = self.pins[idx].compare_and_swap(cur, new_val, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicU64::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/buf_mgr/buf_mgr.rs:373:43 [INFO] [stdout] | [INFO] [stdout] 373 | let cur2 = self.pins[buf_idx].compare_and_swap(cur, cur+1, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicU64::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/buf_mgr/buf_mgr.rs:388:32 [INFO] [stdout] | [INFO] [stdout] 388 | self.pins[buf_idx].compare_and_swap(cur, cur | PINLOCK_BIT, Ordering::Relaxed) == 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::alloc::LayoutErr`: Name does not follow std convention, use LayoutError [INFO] [stdout] --> src/common/errors.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | std::alloc::LayoutErr, IncorrectLayout, layout_err, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::alloc::LayoutErr`: Name does not follow std convention, use LayoutError [INFO] [stdout] --> src/common/errors.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | std::alloc::LayoutErr, IncorrectLayout, layout_err, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::alloc::LayoutErr`: Name does not follow std convention, use LayoutError [INFO] [stdout] --> src/common/errors.rs:206:67 [INFO] [stdout] | [INFO] [stdout] 206 | IncorrectLayout , incorrect_layout , std::alloc::LayoutErr, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/common/intercom.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | core::sync::atomic::spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicBool::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/common/intercom.rs:221:36 [INFO] [stdout] | [INFO] [stdout] 221 | let cur = self.wr_lock.compare_and_swap(cur, true, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/log_mgr/buf.rs:112:52 [INFO] [stdout] | [INFO] [stdout] 112 | let cur_acq_size = self.acquire_size.0.compare_and_swap( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/log_mgr/buf.rs:182:52 [INFO] [stdout] | [INFO] [stdout] 182 | let cur_acq_size = self.acquire_size.0.compare_and_swap( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicU64::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/buf_mgr/buf_mgr.rs:287:39 [INFO] [stdout] | [INFO] [stdout] 287 | let cur2 = self.pins[idx].compare_and_swap(cur, new_val, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicU64::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/buf_mgr/buf_mgr.rs:373:43 [INFO] [stdout] | [INFO] [stdout] 373 | let cur2 = self.pins[buf_idx].compare_and_swap(cur, cur+1, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicU64::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/buf_mgr/buf_mgr.rs:388:32 [INFO] [stdout] | [INFO] [stdout] 388 | self.pins[buf_idx].compare_and_swap(cur, cur | PINLOCK_BIT, Ordering::Relaxed) == 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicU16::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/storage/datastore.rs:668:36 [INFO] [stdout] | [INFO] [stdout] 668 | ret = self.seq_file_id.compare_and_swap(current, current+1, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicBool::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/common/intercom.rs:221:36 [INFO] [stdout] | [INFO] [stdout] 221 | let cur = self.wr_lock.compare_and_swap(cur, true, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/log_mgr/buf.rs:112:52 [INFO] [stdout] | [INFO] [stdout] 112 | let cur_acq_size = self.acquire_size.0.compare_and_swap( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicU64::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/system/instance.rs:201:51 [INFO] [stdout] | [INFO] [stdout] 201 | cur_csn = self.csns.latest_commit_csn.compare_and_swap(cur_csn, csn, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/log_mgr/buf.rs:182:52 [INFO] [stdout] | [INFO] [stdout] 182 | let cur_acq_size = self.acquire_size.0.compare_and_swap( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicU32::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/system/checkpointer.rs:104:59 [INFO] [stdout] | [INFO] [stdout] 104 | let new_req_count = self.checkpoint_req_count.compare_and_swap(req_count, req_count + 1, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicU16::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/storage/datastore.rs:668:36 [INFO] [stdout] | [INFO] [stdout] 668 | ret = self.seq_file_id.compare_and_swap(current, current+1, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicU64::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/system/instance.rs:201:51 [INFO] [stdout] | [INFO] [stdout] 201 | cur_csn = self.csns.latest_commit_csn.compare_and_swap(cur_csn, csn, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicU32::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/system/checkpointer.rs:104:59 [INFO] [stdout] | [INFO] [stdout] 104 | let new_req_count = self.checkpoint_req_count.compare_and_swap(req_count, req_count + 1, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf_idx` [INFO] [stdout] --> src/buf_mgr/buf_mgr.rs:525:25 [INFO] [stdout] | [INFO] [stdout] 525 | let (mut block, buf_idx) = bm.allocate_on_cache(&block_id, BlockType::DataBlock).expect("Failed to allocate block"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buf_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/buf_mgr/buf_mgr.rs:530:13 [INFO] [stdout] | [INFO] [stdout] 530 | for i in 0..block_num { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf_idx` [INFO] [stdout] --> src/buf_mgr/buf_mgr.rs:533:29 [INFO] [stdout] | [INFO] [stdout] 533 | let (mut block, buf_idx) = bm.allocate_on_cache(&block_id, BlockType::DataBlock).expect("Failed to allocate block"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buf_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf_idx` [INFO] [stdout] --> src/buf_mgr/buf_mgr.rs:542:25 [INFO] [stdout] | [INFO] [stdout] 542 | let (block, buf_idx) = bm.get_block(&block_id).expect("Block was not found"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buf_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf_idx` [INFO] [stdout] --> src/buf_mgr/buf_mgr.rs:548:21 [INFO] [stdout] | [INFO] [stdout] 548 | let (block, buf_idx) = bm.get_block(&block_id).expect("Block was not found"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buf_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/buf_mgr/buf_mgr.rs:552:13 [INFO] [stdout] | [INFO] [stdout] 552 | for i in 1..block_num { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf_idx` [INFO] [stdout] --> src/buf_mgr/buf_mgr.rs:554:29 [INFO] [stdout] | [INFO] [stdout] 554 | let (mut block, buf_idx) = bm.allocate_on_cache(&block_id, BlockType::DataBlock).expect("Failed to allocate block"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buf_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/buf_mgr/buf_mgr.rs:561:13 [INFO] [stdout] | [INFO] [stdout] 561 | for i in 0..block_num { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init_fdesc` [INFO] [stdout] --> src/storage/block_driver.rs:736:13 [INFO] [stdout] | [INFO] [stdout] 736 | let init_fdesc = init_datastore(dspath, block_size); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_fdesc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/storage/block_driver.rs:748:14 [INFO] [stdout] | [INFO] [stdout] 748 | let (obj, mut cursor) = bd.create(tsn, csn, initial_size).expect("Failed to create object"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `written` [INFO] [stdout] --> src/storage/block_driver.rs:749:14 [INFO] [stdout] | [INFO] [stdout] 749 | let (written, checkpoint_csn) = bd.write(&mut cursor, b"123").expect("Failed to write to a block"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_written` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checkpoint_csn` [INFO] [stdout] --> src/storage/block_driver.rs:749:23 [INFO] [stdout] | [INFO] [stdout] 749 | let (written, checkpoint_csn) = bd.write(&mut cursor, b"123").expect("Failed to write to a block"); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checkpoint_csn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `written` [INFO] [stdout] --> src/storage/block_driver.rs:751:18 [INFO] [stdout] | [INFO] [stdout] 751 | let (written, checkpoint_csn) = bd.write(&mut cursor, b"1234567890").expect("Failed to write to a block"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_written` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checkpoint_csn` [INFO] [stdout] --> src/storage/block_driver.rs:751:27 [INFO] [stdout] | [INFO] [stdout] 751 | let (written, checkpoint_csn) = bd.write(&mut cursor, b"1234567890").expect("Failed to write to a block"); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checkpoint_csn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `desc` [INFO] [stdout] --> src/block_mgr/block_mgr.rs:444:24 [INFO] [stdout] | [INFO] [stdout] 444 | while let Some(desc) = block_iter.next() { } [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `csn` is never read [INFO] [stdout] --> src/block_mgr/block.rs:1285:13 [INFO] [stdout] | [INFO] [stdout] 1285 | let mut csn = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `csn` is never read [INFO] [stdout] --> src/block_mgr/block.rs:1347:13 [INFO] [stdout] | [INFO] [stdout] 1347 | let mut csn = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `csn` is never read [INFO] [stdout] --> src/block_mgr/block.rs:1412:13 [INFO] [stdout] | [INFO] [stdout] 1412 | let mut csn = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init_fdesc` [INFO] [stdout] --> src/block_mgr/allocator.rs:351:13 [INFO] [stdout] | [INFO] [stdout] 351 | let init_fdesc = init_datastore(dspath, block_size); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_fdesc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `wake_writers` [INFO] [stdout] --> src/buf_mgr/buf_writer.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn wake_writers(&self) { [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: `init` [INFO] [stdout] --> src/common/defs.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn init(file_id: u16, extent_id: u16, block_id: u16) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_entry` [INFO] [stdout] --> src/block_mgr/block.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 276 | pub fn delete_entry(&mut self, entry_id: u16) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_free_info_free` [INFO] [stdout] --> src/block_mgr/allocator.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn set_free_info_free(&self, block_id: &BlockId) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/storage/datastore.rs:887:13 [INFO] [stdout] | [INFO] [stdout] 887 | let mut conf = ConfigMt::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/storage/block_driver.rs:724:13 [INFO] [stdout] | [INFO] [stdout] 724 | let mut conf = ConfigMt::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block_mgr/block_mgr.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | let mut conf = ConfigMt::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block_mgr/block_mgr.rs:390:13 [INFO] [stdout] | [INFO] [stdout] 390 | let mut entry_sz = 501; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block_mgr/block_mgr.rs:391:13 [INFO] [stdout] | [INFO] [stdout] 391 | let mut full_cnt = 0; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block_mgr/block.rs:1101:13 [INFO] [stdout] | [INFO] [stdout] 1101 | let mut entry2 = block.add_version_entry(entry_sz2); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block_mgr/block.rs:1144:13 [INFO] [stdout] | [INFO] [stdout] 1144 | let mut block_id2 = BlockId { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block_mgr/allocator.rs:344:13 [INFO] [stdout] | [INFO] [stdout] 344 | let mut conf = ConfigMt::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `wake_writers` [INFO] [stdout] --> src/buf_mgr/buf_writer.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn wake_writers(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/block_mgr/block.rs:1237:9 [INFO] [stdout] | [INFO] [stdout] 1237 | block.restore_entry(&entry4); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.34s [INFO] running `Command { std: "docker" "inspect" "af8bdf4b4cfcdab038b92b68d0a8fd5dd9b71a6dacdb6bea3380a9360b9bcc34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af8bdf4b4cfcdab038b92b68d0a8fd5dd9b71a6dacdb6bea3380a9360b9bcc34", kill_on_drop: false }` [INFO] [stdout] af8bdf4b4cfcdab038b92b68d0a8fd5dd9b71a6dacdb6bea3380a9360b9bcc34