[INFO] cloning repository https://github.com/kristianJW54/InkDB [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kristianJW54/InkDB" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FkristianJW54%2FInkDB", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FkristianJW54%2FInkDB'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 09d4cebc5f6e3bee948692dbabc2d5d04841c26e [INFO] checking kristianJW54/InkDB against try#5d96fa0e954d77528204a1ba3b8847ec083c779b for pr-153457 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FkristianJW54%2FInkDB" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kristianJW54/InkDB [INFO] finished tweaking git repo https://github.com/kristianJW54/InkDB [INFO] tweaked toml for git repo https://github.com/kristianJW54/InkDB written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kristianJW54/InkDB on toolchain 5d96fa0e954d77528204a1ba3b8847ec083c779b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5d96fa0e954d77528204a1ba3b8847ec083c779b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kristianJW54/InkDB 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" "+5d96fa0e954d77528204a1ba3b8847ec083c779b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking kristianJW54/InkDB against try#5d96fa0e954d77528204a1ba3b8847ec083c779b for pr-153457 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FkristianJW54%2FInkDB" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kristianJW54/InkDB [INFO] finished tweaking git repo https://github.com/kristianJW54/InkDB [INFO] tweaked toml for git repo https://github.com/kristianJW54/InkDB written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kristianJW54/InkDB on toolchain 5d96fa0e954d77528204a1ba3b8847ec083c779b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5d96fa0e954d77528204a1ba3b8847ec083c779b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kristianJW54/InkDB 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" "+5d96fa0e954d77528204a1ba3b8847ec083c779b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+5d96fa0e954d77528204a1ba3b8847ec083c779b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e1d94fd74db6787420dc0a9509d90c9b52f97d1b9690bf4fd48228e5e5a3fc0c [INFO] running `Command { std: "docker" "start" "-a" "e1d94fd74db6787420dc0a9509d90c9b52f97d1b9690bf4fd48228e5e5a3fc0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e1d94fd74db6787420dc0a9509d90c9b52f97d1b9690bf4fd48228e5e5a3fc0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1d94fd74db6787420dc0a9509d90c9b52f97d1b9690bf4fd48228e5e5a3fc0c", kill_on_drop: false }` [INFO] [stdout] e1d94fd74db6787420dc0a9509d90c9b52f97d1b9690bf4fd48228e5e5a3fc0c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+5d96fa0e954d77528204a1ba3b8847ec083c779b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5027b48eb8bb094cfd0de85f221b0b9e393ea981e06450e64e32b940f91ee996 [INFO] running `Command { std: "docker" "start" "-a" "5027b48eb8bb094cfd0de85f221b0b9e393ea981e06450e64e32b940f91ee996", kill_on_drop: false }` [INFO] [stderr] Checking InkDB v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `FrameReadGuard` and `FrameWriteGuard` [INFO] [stdout] --> src/buffer/buffer_manager.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::buffer::page_frame::{FrameReadGuard, FrameWriteGuard, PageFrame}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PageKind` [INFO] [stdout] --> src/buffer/page_cache.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::page::{PageID, PageKind}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/buffer/page_frame.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/operation/op_ctx.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | pub pager: Arc<(dyn PageManager)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 5 - pub pager: Arc<(dyn PageManager)>, [INFO] [stdout] 5 + pub pager: Arc, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/operation/op_ctx.rs:14:44 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new_fake_tx(id: u64, pager: Arc<(dyn PageManager)>) -> Self { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 14 - pub fn new_fake_tx(id: u64, pager: Arc<(dyn PageManager)>) -> Self { [INFO] [stdout] 14 + pub fn new_fake_tx(id: u64, pager: Arc) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::internal_page::InternalPageError` [INFO] [stdout] --> src/page/index_cell.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::internal_page::InternalPageError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SlottedPageMut` and `write_u16_le_unsafe` [INFO] [stdout] --> src/page/index_cell.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | SlottedPageMut, SlottedPageRef, read_u16_le_unsafe, read_u64_le_unsafe, write_u16_le_unsafe, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::from_raw_parts` [INFO] [stdout] --> src/page/index_cell.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::slice::from_raw_parts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/page/index_cell.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyView` and `PAGE_SIZE` [INFO] [stdout] --> src/page/index_page.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | PAGE_SIZE, PageFlags, PageStates, SlotID, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 3 | index_cell::{IndexCellOwned, IndexCellRef}, [INFO] [stdout] 4 | key_view::{KeyView, cmp_search}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ENTRY_SIZE_U16`, `InsertErrorCtx`, `PAGE_SIZE_U16`, and `SIBLING_SPECIAL_SIZE_U16` [INFO] [stdout] --> src/page/internal_page.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | ENTRY_SIZE_U16, InsertErrorCtx, PAGE_SIZE_U16, SIBLING_SPECIAL_SIZE_U16, SlotEntry, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ENTRY_SIZE` and `read_u16_le_unsafe` [INFO] [stdout] --> src/page/internal_page.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | ENTRY_SIZE, HEADER_SIZE, IndexLevel, PAGE_SIZE, PageError, SlotID, SlottedPageMut, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | SlottedPageRef, read_u16_le_unsafe, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read_u64_le_unsafe` [INFO] [stdout] --> src/page/internal_page.rs:14:64 [INFO] [stdout] | [INFO] [stdout] 14 | use super::{PageFlags, PageID, PageKind, PageStates, PageType, read_u64_le_unsafe}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::tree::CompareFn` [INFO] [stdout] --> src/page/internal_page.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::tree::CompareFn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Prefix` [INFO] [stdout] --> src/page/internal_page.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::path::Prefix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::from_raw_parts` [INFO] [stdout] --> src/page/internal_page.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::slice::from_raw_parts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::u16::MAX` [INFO] [stdout] --> src/page/internal_page.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::u16::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::PageStates` [INFO] [stdout] --> src/page/slotted_page.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::PageStates; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> src/page/slotted_page.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::f64::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/page/slotted_page.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut` and `Deref` [INFO] [stdout] --> src/page/slotted_page.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use std::ops::{Deref, DerefMut, Range}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::read` [INFO] [stdout] --> src/page/slotted_page.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::ptr::read; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `slice` [INFO] [stdout] --> src/page/slotted_page.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | use std::{ptr, slice}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `mem` and `process` [INFO] [stdout] --> src/page/slotted_page.rs:1317:15 [INFO] [stdout] | [INFO] [stdout] 1317 | use std::{mem, process}; [INFO] [stdout] | ^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::page::index_cell::IndexCellOwned` [INFO] [stdout] --> src/page/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::page::index_cell::IndexCellOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IndexLevel` and `SlottedPageMut` [INFO] [stdout] --> src/tree/btree_base.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::page::{IndexLevel, PageID, PageKind, SlottedPageMut, SlottedPageRef}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/tree/btree_base.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loading` [INFO] [stdout] --> src/buffer/page_table_latch.rs:75:31 [INFO] [stdout] | [INFO] [stdout] 75 | if let Ok(loading) = self.state.compare_exchange( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loading` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefix` [INFO] [stdout] --> src/page/index_cell.rs:174:41 [INFO] [stdout] | [INFO] [stdout] 174 | pub(super) fn set_prefix(&mut self, prefix: u16) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page_id` [INFO] [stdout] --> src/page/internal_page.rs:99:48 [INFO] [stdout] | [INFO] [stdout] 99 | pub(crate) fn set_right_sibling(&mut self, page_id: PageID) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_page_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FrameReadGuard` and `FrameWriteGuard` [INFO] [stdout] --> src/buffer/buffer_manager.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::buffer::page_frame::{FrameReadGuard, FrameWriteGuard, PageFrame}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PageKind` [INFO] [stdout] --> src/buffer/page_cache.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::page::{PageID, PageKind}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/buffer/page_frame.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/operation/op_ctx.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | pub pager: Arc<(dyn PageManager)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 5 - pub pager: Arc<(dyn PageManager)>, [INFO] [stdout] 5 + pub pager: Arc, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/operation/op_ctx.rs:14:44 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new_fake_tx(id: u64, pager: Arc<(dyn PageManager)>) -> Self { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 14 - pub fn new_fake_tx(id: u64, pager: Arc<(dyn PageManager)>) -> Self { [INFO] [stdout] 14 + pub fn new_fake_tx(id: u64, pager: Arc) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::internal_page::InternalPageError` [INFO] [stdout] --> src/page/index_cell.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::internal_page::InternalPageError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SlottedPageMut` and `write_u16_le_unsafe` [INFO] [stdout] --> src/page/index_cell.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | SlottedPageMut, SlottedPageRef, read_u16_le_unsafe, read_u64_le_unsafe, write_u16_le_unsafe, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::from_raw_parts` [INFO] [stdout] --> src/page/index_cell.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::slice::from_raw_parts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyView` and `PAGE_SIZE` [INFO] [stdout] --> src/page/index_page.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | PAGE_SIZE, PageFlags, PageStates, SlotID, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 3 | index_cell::{IndexCellOwned, IndexCellRef}, [INFO] [stdout] 4 | key_view::{KeyView, cmp_search}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ENTRY_SIZE_U16`, `InsertErrorCtx`, `PAGE_SIZE_U16`, and `SIBLING_SPECIAL_SIZE_U16` [INFO] [stdout] --> src/page/internal_page.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | ENTRY_SIZE_U16, InsertErrorCtx, PAGE_SIZE_U16, SIBLING_SPECIAL_SIZE_U16, SlotEntry, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ENTRY_SIZE`, `PAGE_SIZE`, and `read_u16_le_unsafe` [INFO] [stdout] --> src/page/internal_page.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | ENTRY_SIZE, HEADER_SIZE, IndexLevel, PAGE_SIZE, PageError, SlotID, SlottedPageMut, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 12 | SlottedPageRef, read_u16_le_unsafe, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read_u64_le_unsafe` [INFO] [stdout] --> src/page/internal_page.rs:14:64 [INFO] [stdout] | [INFO] [stdout] 14 | use super::{PageFlags, PageID, PageKind, PageStates, PageType, read_u64_le_unsafe}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::tree::CompareFn` [INFO] [stdout] --> src/page/internal_page.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::tree::CompareFn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Prefix` [INFO] [stdout] --> src/page/internal_page.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::path::Prefix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::from_raw_parts` [INFO] [stdout] --> src/page/internal_page.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::slice::from_raw_parts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::u16::MAX` [INFO] [stdout] --> src/page/internal_page.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::u16::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::PageStates` [INFO] [stdout] --> src/page/slotted_page.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::PageStates; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> src/page/slotted_page.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::f64::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/page/slotted_page.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut` and `Deref` [INFO] [stdout] --> src/page/slotted_page.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use std::ops::{Deref, DerefMut, Range}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::read` [INFO] [stdout] --> src/page/slotted_page.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::ptr::read; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `slice` [INFO] [stdout] --> src/page/slotted_page.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | use std::{ptr, slice}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::page::index_cell::IndexCellOwned` [INFO] [stdout] --> src/page/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::page::index_cell::IndexCellOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IndexLevel` and `SlottedPageMut` [INFO] [stdout] --> src/tree/btree_base.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::page::{IndexLevel, PageID, PageKind, SlottedPageMut, SlottedPageRef}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/page/slotted_page.rs:1429:21 [INFO] [stdout] | [INFO] [stdout] 1429 | Err(e) => println!("error"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/page/slotted_page.rs:1431:17 [INFO] [stdout] | [INFO] [stdout] 1431 | Err(e) => panic!("Error adding cell"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read_unaligned` is unsafe and requires unsafe block [INFO] [stdout] --> src/page/mod.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | std::ptr::read_unaligned(ptr as *const u16).to_le() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/page/mod.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | pub(crate) unsafe fn read_u16_le_unsafe(ptr: *const u8) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/page/mod.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | ptr::copy_nonoverlapping(bytes.as_ptr(), b_ptr, 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/page/mod.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 65 | pub(crate) unsafe fn write_u16_le_unsafe(b_ptr: *mut u8, value: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read_unaligned` is unsafe and requires unsafe block [INFO] [stdout] --> src/page/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | std::ptr::read_unaligned(ptr as *const u64).to_le() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/page/mod.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | pub(crate) unsafe fn read_u64_le_unsafe(ptr: *const u8) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/page/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | ptr::copy_nonoverlapping(bytes.as_ptr(), b_ptr, 8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/page/mod.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | pub(crate) unsafe fn write_u64_le_unsafe(b_ptr: *mut u8, value: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/page/mod.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | _ => PT_UNDEFINED, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/page/mod.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 115 | PageKind::Undefined => PT_UNDEFINED, [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] 116 | PageKind::Heap => PT_HEAP, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 117 | PageKind::IndexInternal => PT_INDEX_INTERNAL, [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 118 | PageKind::IndexMiniLeaf => PT_INDEX_MINI_LEAF, [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 122 | _ => PT_UNDEFINED, [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/tree/btree_base.rs:140:41 [INFO] [stdout] | [INFO] [stdout] 140 | pub(super) fn try_insert(&mut self, key: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `slotted_page::SlotEntry` is more private than the item `IndexCellRef::<'page>::from` [INFO] [stdout] --> src/page/index_cell.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | pub(crate) fn from(page: SlottedPageRef<'page>, slot: SlotEntry, slot_index: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `IndexCellRef::<'page>::from` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `slotted_page::SlotEntry` is only usable at visibility `pub(in crate::page)` [INFO] [stdout] --> src/page/slotted_page.rs:1287:1 [INFO] [stdout] | [INFO] [stdout] 1287 | pub(super) struct SlotEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/buffer/buffer_manager.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BufferManagerError` is never used [INFO] [stdout] --> src/buffer/buffer_manager.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) enum BufferManagerError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PageManager` is never used [INFO] [stdout] --> src/buffer/buffer_manager.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) trait PageManager: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BufferManager` is never constructed [INFO] [stdout] --> src/buffer/buffer_manager.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) struct BufferManager { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/buffer/buffer_manager.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 31 | impl BufferManager { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 32 | pub(crate) fn new(cache: Arc, table: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/buffer/page_cache.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PageCacheError` is never used [INFO] [stdout] --> src/buffer/page_cache.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) enum PageCacheError { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PageCache` is never used [INFO] [stdout] --> src/buffer/page_cache.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) trait PageCache: Send + Sync { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BaseFileCache` is never constructed [INFO] [stdout] --> src/buffer/page_cache.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) struct BaseFileCache { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/buffer/page_cache.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 37 | impl BaseFileCache { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 38 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/buffer/page_frame.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | IndexPageError(InternalPageError), [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PageFrameError` 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] 13 - IndexPageError(InternalPageError), [INFO] [stdout] 13 + IndexPageError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidPageKind` is never constructed [INFO] [stdout] --> src/buffer/page_frame.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) enum PageFrameError { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 13 | IndexPageError(InternalPageError), [INFO] [stdout] 14 | InvalidPageKind, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PageFrameError` 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 `id`, `checksum`, `dirty`, and `pin` are never read [INFO] [stdout] --> src/buffer/page_frame.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) struct PageFrame { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 24 | id: PageID, [INFO] [stdout] | ^^ [INFO] [stdout] 25 | checksum: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 26 | kind: PageKind, [INFO] [stdout] 27 | dirty: AtomicBool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | latch: RwLock, [INFO] [stdout] 29 | pin: AtomicU16, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `page_kind`, `write_guard`, and `with_write` are never used [INFO] [stdout] --> src/buffer/page_frame.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 32 | impl PageFrame { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub(crate) fn page_kind(&self) -> PageKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub(super) fn write_guard<'a>(&'a self) -> FrameWriteGuard<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub(crate) fn with_write(&self, f: F) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> src/buffer/page_frame.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub(super) struct FrameReadGuard<'a> { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 83 | page: RwLockReadGuard<'a, RawPage>, [INFO] [stdout] 84 | kind: PageKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `slotted_ref` is never used [INFO] [stdout] --> src/buffer/page_frame.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 87 | impl<'a> FrameReadGuard<'a> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub(super) fn slotted_ref(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FrameWriteGuard` is never constructed [INFO] [stdout] --> src/buffer/page_frame.rs:113:19 [INFO] [stdout] | [INFO] [stdout] 113 | pub(super) struct FrameWriteGuard<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `raw`, and `slotted_mut` are never used [INFO] [stdout] --> src/buffer/page_frame.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 118 | impl<'a> FrameWriteGuard<'a> { [INFO] [stdout] | ---------------------------- associated items in this implementation [INFO] [stdout] 119 | fn new(page: RwLockWriteGuard<'a, RawPage>, kind: PageKind) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | fn raw(&mut self) -> &mut RawPage { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub(super) fn slotted_mut(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/buffer/page_table.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) trait PageTable: Send + Sync { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 43 | fn get(&self, page_id: PageID) -> Option; // We return a handle here so the buffer manager can load from disk a... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PT_INVALID` is never used [INFO] [stdout] --> src/buffer/page_table_latch.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const PT_INVALID: u8 = 3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `state`, `current_state`, and `peek` are never used [INFO] [stdout] --> src/buffer/page_table_latch.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 24 | impl PageTableLatch { [INFO] [stdout] | -------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub(super) fn state(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub(super) fn current_state(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub(super) fn peek(&self) -> (u8, T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `U8Ascending` is never constructed [INFO] [stdout] --> src/index/index_key_types.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct U8Ascending; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `OperatorEncoding` is never used [INFO] [stdout] --> src/index/operator_encoding.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) trait OperatorEncoding { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OpType` is never used [INFO] [stdout] --> src/operation/mod.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) enum OpType { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OpCtx` is never constructed [INFO] [stdout] --> src/operation/op_ctx.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct OpCtx { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_fake_tx` is never used [INFO] [stdout] --> src/operation/op_ctx.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl OpCtx { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 14 | pub fn new_fake_tx(id: u64, pager: Arc<(dyn PageManager)>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_u16_le` is never used [INFO] [stdout] --> src/page/mod.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 55 | pub(crate) fn write_u16_le(bytes: &mut [u8], value: u16) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUBTYPE_MASK` is never used [INFO] [stdout] --> src/page/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | pub(super) const SUBTYPE_MASK: u8 = 0b1111_0000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `uses_slotted_page_layout` is never used [INFO] [stdout] --> src/page/mod.rs:141:19 [INFO] [stdout] | [INFO] [stdout] 127 | impl PageKind { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 141 | pub(crate) fn uses_slotted_page_layout(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `raw`, `page_sub_type`, `set_page_type`, and `set_subtype_page_bits` are never used [INFO] [stdout] --> src/page/mod.rs:167:19 [INFO] [stdout] | [INFO] [stdout] 160 | impl PageType { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub(crate) fn raw(&self) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub(crate) fn page_sub_type(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub(crate) fn set_page_type(&mut self, pt: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub(crate) fn set_subtype_page_bits(&mut self, pst: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_u8` is never used [INFO] [stdout] --> src/page/mod.rs:235:19 [INFO] [stdout] | [INFO] [stdout] 234 | impl PageStates { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 235 | pub(crate) fn from_u8(pf: u8) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear_flag` is never used [INFO] [stdout] --> src/page/mod.rs:276:19 [INFO] [stdout] | [INFO] [stdout] 263 | impl PageFlags { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 276 | pub(crate) fn clear_flag(&mut self, pf: PageStates) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexLevel` is never constructed [INFO] [stdout] --> src/page/mod.rs:316:19 [INFO] [stdout] | [INFO] [stdout] 316 | pub(crate) struct IndexLevel(pub u8); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `MAX`, `new`, and `into` are never used [INFO] [stdout] --> src/page/mod.rs:319:22 [INFO] [stdout] | [INFO] [stdout] 318 | impl IndexLevel { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 319 | pub(crate) const MAX: u8 = 15; [INFO] [stdout] | ^^^ [INFO] [stdout] 320 | [INFO] [stdout] 321 | pub(crate) fn new(level: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 326 | pub(crate) fn into(self) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/page/index_cell.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | pub(super) type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IndexCellError` is never used [INFO] [stdout] --> src/page/index_cell.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub(super) enum IndexCellError { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHILD_PTR_OFFSET` is never used [INFO] [stdout] --> src/page/index_cell.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const CHILD_PTR_OFFSET: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_value_ptr` and `set_prefix` are never used [INFO] [stdout] --> src/page/index_cell.rs:151:19 [INFO] [stdout] | [INFO] [stdout] 90 | impl<'page> IndexCellRef<'page> { [INFO] [stdout] | ------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 151 | pub(super) fn get_value_ptr(&self) -> PageID { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub(super) fn set_prefix(&mut self, prefix: u16) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/page/index_page.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | SlottedPageError(super::PageError), [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IndexPageError` 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] 21 - SlottedPageError(super::PageError), [INFO] [stdout] 21 + SlottedPageError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `index_cell_from_entry`, `get_page_type`, `kind`, `page_sub_type`, and `get_left_sibling` are never used [INFO] [stdout] --> src/page/index_page.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 38 | impl<'page> IndexPageRef<'page> { [INFO] [stdout] | ------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub(super) fn index_cell_from_entry<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub(super) fn get_page_type(&self) -> PageType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub(super) fn kind(&self) -> PageKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub(super) fn page_sub_type(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub(super) fn get_left_sibling(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_page_type`, `get_page_type`, `set_sub_type`, and `set_left_sibling` are never used [INFO] [stdout] --> src/page/index_page.rs:215:19 [INFO] [stdout] | [INFO] [stdout] 183 | impl<'page> IndexPageMut<'page> { [INFO] [stdout] | ------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 215 | pub(super) fn set_page_type(&mut self, page_type: PageType) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | pub(super) fn get_page_type(&self) -> PageType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub(super) fn set_sub_type(&mut self, sub_type: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub(super) fn set_left_sibling(&mut self, left_sibling: PageID) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value_ptr` is never read [INFO] [stdout] --> src/page/index_page.rs:346:16 [INFO] [stdout] | [INFO] [stdout] 344 | pub(super) struct InsertCtx { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 345 | pub(super) cell: IndexCellOwned, [INFO] [stdout] 346 | pub(super) value_ptr: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InsertCtx` 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/page/internal_page.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | PageError(PageError), [INFO] [stdout] | --------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `InternalPageError` has derived impls for the traits `Clone` and `Debug`, but these are 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] 26 - PageError(PageError), [INFO] [stdout] 26 + PageError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidPageType`, `InvalidLevel`, `ChildNotFound`, `InsertionIndexNotFound`, and `TryInsertionFailed` are never constructed [INFO] [stdout] --> src/page/internal_page.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) enum InternalPageError { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 26 | PageError(PageError), [INFO] [stdout] 27 | InvalidPageType, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | InvalidLevel, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 29 | ChildNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 30 | InsertionIndexNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | TryInsertionFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InternalPageError` 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: methods `init_in_place`, `level`, `set_level`, `set_right_sibling`, and `has_right_sibling` are never used [INFO] [stdout] --> src/page/internal_page.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 46 | impl<'page> InternalPageMut<'page> { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub(crate) fn init_in_place(&mut self, lsn: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub(crate) fn level(&mut self) -> IndexLevel { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub(crate) fn set_level(&mut self, level: IndexLevel) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub(crate) fn set_right_sibling(&mut self, page_id: PageID) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub(crate) fn has_right_sibling(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_child_ptr`, `has_right_sibling`, `level`, and `get_right_sibling` are never used [INFO] [stdout] --> src/page/internal_page.rs:226:19 [INFO] [stdout] | [INFO] [stdout] 209 | impl<'page> InternalPageRef<'page> { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 226 | pub(crate) fn find_child_ptr(&self, key: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | pub(super) fn has_right_sibling(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub(super) fn level(&self) -> IndexLevel { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 282 | pub(super) fn get_right_sibling(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_child_ptr` and `get_prefix` are never used [INFO] [stdout] --> src/page/internal_page.rs:302:19 [INFO] [stdout] | [INFO] [stdout] 296 | impl<'page> InternalCellRef<'page> { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 302 | pub(super) fn get_child_ptr(&self) -> PageID { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub(super) fn get_prefix(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `len` and `byte_at` are never used [INFO] [stdout] --> src/page/key_view.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl KeyView<'_> { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 12 | #[inline] [INFO] [stdout] 13 | pub(super) fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub(super) fn byte_at(&self, i: usize) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cmp_p2p` is never used [INFO] [stdout] --> src/page/key_view.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | pub(super) fn cmp_p2p(a: &KeyView<'_>, b: &KeyView<'_>) -> Ordering { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cmp_suffix` is never used [INFO] [stdout] --> src/page/key_view.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn cmp_suffix(a: &KeyView<'_>, b: &KeyView<'_>) -> Ordering { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `common_prefix_len` is never used [INFO] [stdout] --> src/page/prefix_compression.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | pub(super) fn common_prefix_len(ref_key: &[u8], source_key: KeyView<'_>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRAILER_SIZE_U16` is never used [INFO] [stdout] --> src/page/slotted_page.rs:74:18 [INFO] [stdout] | [INFO] [stdout] 74 | pub(crate) const TRAILER_SIZE_U16: u16 = TRAILER_SIZE as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PREFIX_SIZE_U16` is never used [INFO] [stdout] --> src/page/slotted_page.rs:83:18 [INFO] [stdout] | [INFO] [stdout] 83 | pub(crate) const PREFIX_SIZE_U16: u16 = PREFIX_OFFSET_SIZE as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/page/slotted_page.rs:90:23 [INFO] [stdout] | [INFO] [stdout] 90 | SlotIDOutOfBounds(u16, u16), [INFO] [stdout] | ----------------- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PageError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 90 - SlotIDOutOfBounds(u16, u16), [INFO] [stdout] 90 + SlotIDOutOfBounds((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/page/slotted_page.rs:101:23 [INFO] [stdout] | [INFO] [stdout] 101 | OffsetOutOfBounds(u16, u16), [INFO] [stdout] | ----------------- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PageError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 101 - OffsetOutOfBounds(u16, u16), [INFO] [stdout] 101 + OffsetOutOfBounds((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/page/slotted_page.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | InsertError(InsertErrorCtx), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PageError` has derived impls for the traits `Clone` and `Debug`, but these are 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] 102 - InsertError(InsertErrorCtx), [INFO] [stdout] 102 + InsertError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SpecialOffsetIsZero`, `NoContigiousSpace`, `InvalidFreeStart`, `TransferError`, `InvalidSlotIndex`, and `SpecialSpaceCannotBeSet` are never constructed [INFO] [stdout] --> src/page/slotted_page.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub(crate) enum PageError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 92 | SpecialOffsetIsZero, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 93 | SlotIndexNotInRange, [INFO] [stdout] 94 | NoContigiousSpace, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | InvalidFreeStart, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 98 | TransferError, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 99 | InvalidSlotIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 100 | SpecialSpaceCannotBeSet, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PageError` 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: fields `contiguous_space`, `fragment_space`, and `required_space` are never read [INFO] [stdout] --> src/page/slotted_page.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub(crate) struct InsertErrorCtx { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 107 | contiguous_space: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 108 | fragment_space: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 109 | required_space: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InsertErrorCtx` 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 `new` is never used [INFO] [stdout] --> src/page/slotted_page.rs:113:19 [INFO] [stdout] | [INFO] [stdout] 112 | impl InsertErrorCtx { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 113 | pub(crate) fn new(contiguous_space: u16, fragment_space: u16, required_space: u16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/page/slotted_page.rs:137:26 [INFO] [stdout] | [INFO] [stdout] 127 | impl<'a> SlottedPageMut<'a> { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 137 | pub(super) unsafe fn as_ptr(&self) -> *const u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub(super) fn get_tx_id(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub(super) fn set_tx_id(&mut self, tx_id: u64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub(super) fn get_lsn(&self) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub(super) fn get_checksum(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub(super) fn set_checksum(&mut self, checksum: u16) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub(super) fn free_fragmented_space(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 616 | pub(super) fn get_prefix_entry_ref(&self) -> SlotEntryRef<'_> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 647 | pub(super) fn has_prefix(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/page/slotted_page.rs:942:19 [INFO] [stdout] | [INFO] [stdout] 926 | impl<'a> SlottedPageRef<'a> { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 942 | pub(super) fn get_tx_id(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 950 | pub(super) fn get_lsn(&self) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 958 | pub(super) fn get_checksum(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 979 | pub(super) fn free_end(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 987 | pub(super) fn free_contiguous_space(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 991 | pub(super) fn get_fragmented_space(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1000 | pub(super) fn free_fragmented_space(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1011 | pub(super) fn memory_used_non_frag(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1025 | pub(super) fn memory_used(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1114 | fn cell_and_entry_from_index(&self, slot_index: u16) -> Result<(SlotEntryRef, CellRef)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1150 | pub(super) fn get_prefix_entry_ref(&self) -> SlotEntryRef<'_> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1164 | pub(super) fn has_prefix(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SlotDirMut` is never constructed [INFO] [stdout] --> src/page/slotted_page.rs:1217:19 [INFO] [stdout] | [INFO] [stdout] 1217 | pub(super) struct SlotDirMut<'a> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/page/slotted_page.rs:1224:19 [INFO] [stdout] | [INFO] [stdout] 1223 | impl<'a> SlotDirMut<'a> { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 1224 | pub(super) fn new(start: *mut u8, size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CompareFn` is never used [INFO] [stdout] --> src/tree/mod.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) type CompareFn = fn(&[u8], &[u8]) -> std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/tree/btree_base.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub(super) type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BTreeInnerError` is never used [INFO] [stdout] --> src/tree/btree_base.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | pub(super) enum BTreeInnerError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BInner` is never constructed [INFO] [stdout] --> src/tree/btree_base.rs:56:19 [INFO] [stdout] | [INFO] [stdout] 56 | pub(super) struct BInner<'blink> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `traverse_to_leaf`, `traverse_to_leaf_with_ctx`, and `try_insert` are never used [INFO] [stdout] --> src/tree/btree_base.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl<'blink> BInner<'blink> { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 63 | pub fn new(tx: &'blink OpCtx) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub(super) fn traverse_to_leaf(&self, page: PageID, key: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub(super) fn traverse_to_leaf_with_ctx<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub(super) fn try_insert(&mut self, key: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TraverseCtx` is never constructed [INFO] [stdout] --> src/tree/btree_base.rs:147:19 [INFO] [stdout] | [INFO] [stdout] 147 | pub(super) struct TraverseCtx<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_key` is never used [INFO] [stdout] --> src/tree/btree_base.rs:153:19 [INFO] [stdout] | [INFO] [stdout] 152 | impl<'a> TraverseCtx<'a> { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 153 | pub(super) fn from_key(key: &'a [u8]) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/page/index_cell.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | pub(super) fn get_key_view(&self) -> KeyView { [INFO] [stdout] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 116 | pub(super) fn get_key_view(&self) -> KeyView<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/page/internal_page.rs:108:23 [INFO] [stdout] | [INFO] [stdout] 108 | fn get_prefix_key(&self) -> IndexCellRef { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 108 | fn get_prefix_key(&self) -> IndexCellRef<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/page/internal_page.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | drop(self); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut internal_page::InternalPageRef<'_>` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 205 - drop(self); [INFO] [stdout] 205 + let _ = self; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/page/slotted_page.rs:896:13 [INFO] [stdout] | [INFO] [stdout] 896 | sp.set_prefix_entry(entry); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 896 | let _ = sp.set_prefix_entry(entry); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/page/slotted_page.rs:1114:34 [INFO] [stdout] | [INFO] [stdout] 1114 | fn cell_and_entry_from_index(&self, slot_index: u16) -> Result<(SlotEntryRef, CellRef)> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | the lifetime is elided here the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1114 | fn cell_and_entry_from_index(&self, slot_index: u16) -> Result<(SlotEntryRef<'_>, CellRef<'_>)> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/page/slotted_page.rs:1364:9 [INFO] [stdout] | [INFO] [stdout] 1364 | page.set_free_end(new_free_end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1364 | let _ = page.set_free_end(new_free_end); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loading` [INFO] [stdout] --> src/buffer/page_table_latch.rs:75:31 [INFO] [stdout] | [INFO] [stdout] 75 | if let Ok(loading) = self.state.compare_exchange( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loading` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefix` [INFO] [stdout] --> src/page/index_cell.rs:174:41 [INFO] [stdout] | [INFO] [stdout] 174 | pub(super) fn set_prefix(&mut self, prefix: u16) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page_id` [INFO] [stdout] --> src/page/internal_page.rs:99:48 [INFO] [stdout] | [INFO] [stdout] 99 | pub(crate) fn set_right_sibling(&mut self, page_id: PageID) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_page_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read_unaligned` is unsafe and requires unsafe block [INFO] [stdout] --> src/page/mod.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | std::ptr::read_unaligned(ptr as *const u16).to_le() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/page/mod.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | pub(crate) unsafe fn read_u16_le_unsafe(ptr: *const u8) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/page/mod.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | ptr::copy_nonoverlapping(bytes.as_ptr(), b_ptr, 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/page/mod.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 65 | pub(crate) unsafe fn write_u16_le_unsafe(b_ptr: *mut u8, value: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read_unaligned` is unsafe and requires unsafe block [INFO] [stdout] --> src/page/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | std::ptr::read_unaligned(ptr as *const u64).to_le() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/page/mod.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | pub(crate) unsafe fn read_u64_le_unsafe(ptr: *const u8) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/page/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | ptr::copy_nonoverlapping(bytes.as_ptr(), b_ptr, 8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/page/mod.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | pub(crate) unsafe fn write_u64_le_unsafe(b_ptr: *mut u8, value: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/page/mod.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | _ => PT_UNDEFINED, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/page/mod.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 115 | PageKind::Undefined => PT_UNDEFINED, [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] 116 | PageKind::Heap => PT_HEAP, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 117 | PageKind::IndexInternal => PT_INDEX_INTERNAL, [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 118 | PageKind::IndexMiniLeaf => PT_INDEX_MINI_LEAF, [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 122 | _ => PT_UNDEFINED, [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/tree/btree_base.rs:140:41 [INFO] [stdout] | [INFO] [stdout] 140 | pub(super) fn try_insert(&mut self, key: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `SlotEntry` is more private than the item `IndexCellRef::<'page>::from` [INFO] [stdout] --> src/page/index_cell.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | pub(crate) fn from(page: SlottedPageRef<'page>, slot: SlotEntry, slot_index: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `IndexCellRef::<'page>::from` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `SlotEntry` is only usable at visibility `pub(in crate::page)` [INFO] [stdout] --> src/page/slotted_page.rs:1287:1 [INFO] [stdout] | [INFO] [stdout] 1287 | pub(super) struct SlotEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/buffer/buffer_manager.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BufferManagerError` is never used [INFO] [stdout] --> src/buffer/buffer_manager.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) enum BufferManagerError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PageManager` is never used [INFO] [stdout] --> src/buffer/buffer_manager.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) trait PageManager: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BufferManager` is never constructed [INFO] [stdout] --> src/buffer/buffer_manager.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) struct BufferManager { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/buffer/buffer_manager.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 31 | impl BufferManager { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 32 | pub(crate) fn new(cache: Arc, table: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/buffer/page_cache.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PageCacheError` is never used [INFO] [stdout] --> src/buffer/page_cache.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) enum PageCacheError { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PageCache` is never used [INFO] [stdout] --> src/buffer/page_cache.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) trait PageCache: Send + Sync { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BaseFileCache` is never constructed [INFO] [stdout] --> src/buffer/page_cache.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) struct BaseFileCache { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/buffer/page_cache.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 37 | impl BaseFileCache { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 38 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/buffer/page_frame.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PageFrameError` is never used [INFO] [stdout] --> src/buffer/page_frame.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) enum PageFrameError { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PageFrame` is never constructed [INFO] [stdout] --> src/buffer/page_frame.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) struct PageFrame { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `page_kind`, `read_guard`, `write_guard`, `with_read`, and `with_write` are never used [INFO] [stdout] --> src/buffer/page_frame.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 32 | impl PageFrame { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 33 | pub(crate) fn new(id: PageID, checksum: u32, kind: PageKind, raw_page: RawPage) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub(crate) fn page_kind(&self) -> PageKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub(super) fn read_guard<'a>(&'a self) -> FrameReadGuard<'a> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub(super) fn write_guard<'a>(&'a self) -> FrameWriteGuard<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub(crate) fn with_read(&self, f: F) -> Result [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub(crate) fn with_write(&self, f: F) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FrameReadGuard` is never constructed [INFO] [stdout] --> src/buffer/page_frame.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | pub(super) struct FrameReadGuard<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `raw`, and `slotted_ref` are never used [INFO] [stdout] --> src/buffer/page_frame.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 87 | impl<'a> FrameReadGuard<'a> { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 88 | fn new(page: RwLockReadGuard<'a, RawPage>, kind: PageKind) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn raw(&self) -> &RawPage { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub(super) fn slotted_ref(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FrameWriteGuard` is never constructed [INFO] [stdout] --> src/buffer/page_frame.rs:113:19 [INFO] [stdout] | [INFO] [stdout] 113 | pub(super) struct FrameWriteGuard<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `raw`, and `slotted_mut` are never used [INFO] [stdout] --> src/buffer/page_frame.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 118 | impl<'a> FrameWriteGuard<'a> { [INFO] [stdout] | ---------------------------- associated items in this implementation [INFO] [stdout] 119 | fn new(page: RwLockWriteGuard<'a, RawPage>, kind: PageKind) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | fn raw(&mut self) -> &mut RawPage { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub(super) fn slotted_mut(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PageTable` is never used [INFO] [stdout] --> src/buffer/page_table.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) trait PageTable: Send + Sync { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PageTableResult` is never used [INFO] [stdout] --> src/buffer/page_table.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) enum PageTableResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PageTableEntry` is never constructed [INFO] [stdout] --> src/buffer/page_table.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) struct PageTableEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/buffer/page_table.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 62 | impl PageTableEntry { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 63 | fn new(id: PageID) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `PageTableHandle` is never used [INFO] [stdout] --> src/buffer/page_table.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | pub(crate) type PageTableHandle = Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NaiveMappingTable` is never constructed [INFO] [stdout] --> src/buffer/page_table.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | pub(crate) struct NaiveMappingTable { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/buffer/page_table.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 78 | impl NaiveMappingTable { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 79 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SPIN_LIMIT` is never used [INFO] [stdout] --> src/buffer/page_table_latch.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const SPIN_LIMIT: u8 = 10; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `YIELD_LIMIT` is never used [INFO] [stdout] --> src/buffer/page_table_latch.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const YIELD_LIMIT: u8 = 50; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PT_ON_DISK` is never used [INFO] [stdout] --> src/buffer/page_table_latch.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const PT_ON_DISK: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PT_LOADING` is never used [INFO] [stdout] --> src/buffer/page_table_latch.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const PT_LOADING: u8 = 1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PT_IN_MEMORY` is never used [INFO] [stdout] --> src/buffer/page_table_latch.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const PT_IN_MEMORY: u8 = 2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PT_INVALID` is never used [INFO] [stdout] --> src/buffer/page_table_latch.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const PT_INVALID: u8 = 3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PageTableLatch` is never constructed [INFO] [stdout] --> src/buffer/page_table_latch.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | pub(super) struct PageTableLatch { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `state`, `current_state`, `peek`, and `load` are never used [INFO] [stdout] --> src/buffer/page_table_latch.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 24 | impl PageTableLatch { [INFO] [stdout] | -------------------------------- associated items in this implementation [INFO] [stdout] 25 | pub(crate) fn new(data: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub(super) fn state(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub(super) fn current_state(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub(super) fn peek(&self) -> (u8, T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub(super) fn load(&self, work: impl FnOnce(T) -> Result) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `U8Ascending` is never constructed [INFO] [stdout] --> src/index/index_key_types.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct U8Ascending; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `OperatorEncoding` is never used [INFO] [stdout] --> src/index/operator_encoding.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) trait OperatorEncoding { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OpType` is never used [INFO] [stdout] --> src/operation/mod.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) enum OpType { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OpCtx` is never constructed [INFO] [stdout] --> src/operation/op_ctx.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct OpCtx { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_fake_tx` is never used [INFO] [stdout] --> src/operation/op_ctx.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl OpCtx { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 14 | pub fn new_fake_tx(id: u64, pager: Arc<(dyn PageManager)>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RawPage` is never used [INFO] [stdout] --> src/page/mod.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) type RawPage = [u8; 4096]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PageID` is never constructed [INFO] [stdout] --> src/page/mod.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct PageID(pub u64); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `into` and `to_offset` are never used [INFO] [stdout] --> src/page/mod.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 21 | impl PageID { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 22 | pub(crate) fn into(self) -> u64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub(crate) fn to_offset(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SlotID` is never constructed [INFO] [stdout] --> src/page/mod.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) struct SlotID(pub u16); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_u16_le` is never used [INFO] [stdout] --> src/page/mod.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | pub(crate) fn read_u16_le(bytes: &[u8]) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_u16_le` is never used [INFO] [stdout] --> src/page/mod.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 55 | pub(crate) fn write_u16_le(bytes: &mut [u8], value: u16) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_u16_le_unsafe` is never used [INFO] [stdout] --> src/page/mod.rs:60:22 [INFO] [stdout] | [INFO] [stdout] 60 | pub(crate) unsafe fn read_u16_le_unsafe(ptr: *const u8) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_u16_le_unsafe` is never used [INFO] [stdout] --> src/page/mod.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | pub(crate) unsafe fn write_u16_le_unsafe(b_ptr: *mut u8, value: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_u64_le_unsafe` is never used [INFO] [stdout] --> src/page/mod.rs:71:22 [INFO] [stdout] | [INFO] [stdout] 71 | pub(crate) unsafe fn read_u64_le_unsafe(ptr: *const u8) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_u64_le_unsafe` is never used [INFO] [stdout] --> src/page/mod.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | pub(crate) unsafe fn write_u64_le_unsafe(b_ptr: *mut u8, value: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PAGE_TYPE_MASK` is never used [INFO] [stdout] --> src/page/mod.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 89 | pub(super) const PAGE_TYPE_MASK: u8 = 0b0000_1111; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUBTYPE_MASK` is never used [INFO] [stdout] --> src/page/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | pub(super) const SUBTYPE_MASK: u8 = 0b1111_0000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/page/mod.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub(super) enum PageKind { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 102 | Heap = 0x01, [INFO] [stdout] | ^^^^ [INFO] [stdout] 103 | IndexInternal = 0x02, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 104 | IndexMiniLeaf = 0x03, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 105 | IndexLeaf = 0x04, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 106 | Meta = 0x05, [INFO] [stdout] | ^^^^ [INFO] [stdout] 107 | Free = 0x06, [INFO] [stdout] | ^^^^ [INFO] [stdout] 108 | Undefined = 0xFF, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PageKind` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_u8` and `uses_slotted_page_layout` are never used [INFO] [stdout] --> src/page/mod.rs:128:19 [INFO] [stdout] | [INFO] [stdout] 127 | impl PageKind { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 128 | pub(super) fn from_u8(pt: u8) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub(crate) fn uses_slotted_page_layout(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/page/mod.rs:161:19 [INFO] [stdout] | [INFO] [stdout] 160 | impl PageType { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 161 | pub(crate) fn new(pt: u8, pst: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub(crate) fn raw(&self) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub(crate) fn page_type(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub(crate) fn page_kind(&self) -> PageKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub(crate) fn page_sub_type(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub(crate) fn set_page_type(&mut self, pt: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub(crate) fn set_subtype_page_bits(&mut self, pst: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NO_STATE` is never used [INFO] [stdout] --> src/page/mod.rs:215:7 [INFO] [stdout] | [INFO] [stdout] 215 | const NO_STATE: u8 = 0b000_0000; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FAST_PARENT` is never used [INFO] [stdout] --> src/page/mod.rs:216:7 [INFO] [stdout] | [INFO] [stdout] 216 | const FAST_PARENT: u8 = 0b000_0001; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DELETED` is never used [INFO] [stdout] --> src/page/mod.rs:217:7 [INFO] [stdout] | [INFO] [stdout] 217 | const DELETED: u8 = 0b000_0010; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HALF_DELETED` is never used [INFO] [stdout] --> src/page/mod.rs:218:7 [INFO] [stdout] | [INFO] [stdout] 218 | const HALF_DELETED: u8 = 0b000_0100; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INCOMPLETE_SPLIT` is never used [INFO] [stdout] --> src/page/mod.rs:219:7 [INFO] [stdout] | [INFO] [stdout] 219 | const INCOMPLETE_SPLIT: u8 = 0b000_1000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HIGH_KEY` is never used [INFO] [stdout] --> src/page/mod.rs:220:7 [INFO] [stdout] | [INFO] [stdout] 220 | const HIGH_KEY: u8 = 0b001_0000; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PREFIX_COMPRESSED` is never used [INFO] [stdout] --> src/page/mod.rs:221:7 [INFO] [stdout] | [INFO] [stdout] 221 | const PREFIX_COMPRESSED: u8 = 0b010_0000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PageStates` is never used [INFO] [stdout] --> src/page/mod.rs:224:17 [INFO] [stdout] | [INFO] [stdout] 224 | pub(crate) enum PageStates { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_u8` and `bit` are never used [INFO] [stdout] --> src/page/mod.rs:235:19 [INFO] [stdout] | [INFO] [stdout] 234 | impl PageStates { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 235 | pub(crate) fn from_u8(pf: u8) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub(crate) fn bit(self) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PageFlags` is never constructed [INFO] [stdout] --> src/page/mod.rs:261:19 [INFO] [stdout] | [INFO] [stdout] 261 | pub(crate) struct PageFlags(u8); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `into_bits`, `set_flag`, `clear_flag`, `has_flag`, and `extract_all_flags` are never used [INFO] [stdout] --> src/page/mod.rs:264:19 [INFO] [stdout] | [INFO] [stdout] 263 | impl PageFlags { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 264 | pub(crate) fn new(pf: PageStates) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | pub(crate) fn into_bits(self) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub(crate) fn set_flag(&mut self, pf: PageStates) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 276 | pub(crate) fn clear_flag(&mut self, pf: PageStates) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 280 | pub(crate) fn has_flag(&self, pf: PageStates) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | pub(crate) fn extract_all_flags(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexLevel` is never constructed [INFO] [stdout] --> src/page/mod.rs:316:19 [INFO] [stdout] | [INFO] [stdout] 316 | pub(crate) struct IndexLevel(pub u8); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `MAX`, `new`, and `into` are never used [INFO] [stdout] --> src/page/mod.rs:319:22 [INFO] [stdout] | [INFO] [stdout] 318 | impl IndexLevel { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 319 | pub(crate) const MAX: u8 = 15; [INFO] [stdout] | ^^^ [INFO] [stdout] 320 | [INFO] [stdout] 321 | pub(crate) fn new(level: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 326 | pub(crate) fn into(self) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/page/index_cell.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | pub(super) type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IndexCellError` is never used [INFO] [stdout] --> src/page/index_cell.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub(super) enum IndexCellError { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHILD_PTR_OFFSET` is never used [INFO] [stdout] --> src/page/index_cell.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const CHILD_PTR_OFFSET: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PREFIX_OFFSET` is never used [INFO] [stdout] --> src/page/index_cell.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | const PREFIX_OFFSET: usize = 8; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY_LEN_OFFSET` is never used [INFO] [stdout] --> src/page/index_cell.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 42 | const KEY_LEN_OFFSET: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY_DATA_OFFSET` is never used [INFO] [stdout] --> src/page/index_cell.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | const KEY_DATA_OFFSET: usize = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexCellOwned` is never constructed [INFO] [stdout] --> src/page/index_cell.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) struct IndexCellOwned(Box<[u8]>); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `MAX_INDEX_CELL_SIZE` and `new` are never used [INFO] [stdout] --> src/page/index_cell.rs:49:22 [INFO] [stdout] | [INFO] [stdout] 48 | impl IndexCellOwned { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 49 | pub(crate) const MAX_INDEX_CELL_SIZE: usize = (PAGE_SIZE - HEADER_SIZE - ENTRY_SIZE) / 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 50 | [INFO] [stdout] 51 | pub(crate) fn new(key: &[u8], prefix_offset: u16, child_ptr: PageID) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexCellRef` is never constructed [INFO] [stdout] --> src/page/index_cell.rs:84:19 [INFO] [stdout] | [INFO] [stdout] 84 | pub(crate) struct IndexCellRef<'page> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from`, `get_key`, `get_key_view`, `get_value_ptr`, `get_prefix`, and `set_prefix` are never used [INFO] [stdout] --> src/page/index_cell.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 90 | impl<'page> IndexCellRef<'page> { [INFO] [stdout] | ------------------------------- associated items in this implementation [INFO] [stdout] 91 | pub(crate) fn from(page: SlottedPageRef<'page>, slot: SlotEntry, slot_index: u16) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub(super) fn get_key(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub(super) fn get_key_view(&self) -> KeyView { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub(super) fn get_value_ptr(&self) -> PageID { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub(super) fn get_prefix(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub(super) fn set_prefix(&mut self, prefix: u16) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IndexPageError` is never used [INFO] [stdout] --> src/page/index_page.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | pub(super) enum IndexPageError { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexPageRef` is never constructed [INFO] [stdout] --> src/page/index_page.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | pub(super) struct IndexPageRef<'page> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/page/index_page.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 38 | impl<'page> IndexPageRef<'page> { [INFO] [stdout] | ------------------------------- associated items in this implementation [INFO] [stdout] 39 | pub(super) fn from_slotted_page(page: SlottedPageRef<'page>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub(super) fn index_cell_from_id<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub(super) fn index_cell_from_entry<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub(super) fn get_page_type(&self) -> PageType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub(super) fn kind(&self) -> PageKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub(super) fn flags(&self) -> PageFlags { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub(super) fn page_sub_type(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub(super) fn prefix_compressed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub(super) fn first_insertion_prefix_compression(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub(super) fn get_left_sibling(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub(super) fn get_right_sibling(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub(super) fn find_insertion_index(&self, key: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub(super) fn prepare_cell_for_insertion( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexPageMut` is never constructed [INFO] [stdout] --> src/page/index_page.rs:179:19 [INFO] [stdout] | [INFO] [stdout] 179 | pub(super) struct IndexPageMut<'page> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/page/index_page.rs:184:19 [INFO] [stdout] | [INFO] [stdout] 183 | impl<'page> IndexPageMut<'page> { [INFO] [stdout] | ------------------------------- associated items in this implementation [INFO] [stdout] 184 | pub(super) fn from_slotted_page( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub(super) fn as_ref<'a>(&'a self) -> IndexPageRef<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub(super) fn init_in_place( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | pub(super) fn set_page_type(&mut self, page_type: PageType) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | pub(super) fn get_page_type(&self) -> PageType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub(super) fn set_sub_type(&mut self, sub_type: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub(super) fn set_left_sibling(&mut self, left_sibling: PageID) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub(super) fn set_right_sibling(&mut self, right_sibling: PageID) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | pub(super) fn try_insert( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 286 | pub(super) fn insert_high_key( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 335 | fn insert(&mut self, ctx: InsertCtx) -> Result<(), IndexPageError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InsertCtx` is never constructed [INFO] [stdout] --> src/page/index_page.rs:344:19 [INFO] [stdout] | [INFO] [stdout] 344 | pub(super) struct InsertCtx { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/page/internal_page.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InternalPageError` is never used [INFO] [stdout] --> src/page/internal_page.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) enum InternalPageError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InternalPageMut` is never constructed [INFO] [stdout] --> src/page/internal_page.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) struct InternalPageMut<'page> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/page/internal_page.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 46 | impl<'page> InternalPageMut<'page> { [INFO] [stdout] | ---------------------------------- associated items in this implementation [INFO] [stdout] 47 | pub(crate) fn from_slotted_page(page: SlottedPageMut<'page>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub(crate) fn init_in_place(&mut self, lsn: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub(crate) fn get_page_type(&self) -> PageType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub(crate) fn set_page_type(&mut self, page_type: PageKind) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub(crate) fn kind(&self) -> PageKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub(crate) fn flags(&self) -> PageFlags { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub(crate) fn level(&mut self) -> IndexLevel { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub(crate) fn set_level(&mut self, level: IndexLevel) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub(crate) fn set_right_sibling(&mut self, page_id: PageID) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub(crate) fn has_right_sibling(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn get_prefix_key(&self) -> IndexCellRef { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | fn find_insertion_index(&self, key: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub(crate) fn prepare_index_cell( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub(crate) fn try_insert(&mut self, key: &[u8], child_ptr: PageID) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | fn insert(&mut self, ctx: InsertCtx) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InternalPageRef` is never constructed [INFO] [stdout] --> src/page/internal_page.rs:199:19 [INFO] [stdout] | [INFO] [stdout] 199 | pub(crate) struct InternalPageRef<'page> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/page/internal_page.rs:210:19 [INFO] [stdout] | [INFO] [stdout] 209 | impl<'page> InternalPageRef<'page> { [INFO] [stdout] | ---------------------------------- associated items in this implementation [INFO] [stdout] 210 | pub(crate) fn from_slotted_page(page: SlottedPageRef<'page>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub(super) fn cell_from_slot_entry(&'_ self, se: SlotEntry) -> InternalCellRef<'page> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | pub(super) fn cell_from_slot_id(&'_ self, idx: SlotID) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | pub(crate) fn find_child_ptr(&self, key: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | pub(super) fn has_right_sibling(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | pub(super) fn get_page_type(&self) -> PageType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 270 | pub(crate) fn kind(&self) -> PageKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | pub(crate) fn flags(&self) -> PageFlags { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub(super) fn level(&self) -> IndexLevel { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 282 | pub(super) fn get_right_sibling(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InternalCellRef` is never constructed [INFO] [stdout] --> src/page/internal_page.rs:290:19 [INFO] [stdout] | [INFO] [stdout] 290 | pub(super) struct InternalCellRef<'page> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_key`, `get_child_ptr`, and `get_prefix` are never used [INFO] [stdout] --> src/page/internal_page.rs:297:19 [INFO] [stdout] | [INFO] [stdout] 296 | impl<'page> InternalCellRef<'page> { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] 297 | pub(super) fn get_key(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | pub(super) fn get_child_ptr(&self) -> PageID { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub(super) fn get_prefix(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeyView` is never constructed [INFO] [stdout] --> src/page/key_view.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) struct KeyView<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `len` and `byte_at` are never used [INFO] [stdout] --> src/page/key_view.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl KeyView<'_> { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 12 | #[inline] [INFO] [stdout] 13 | pub(super) fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub(super) fn byte_at(&self, i: usize) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cmp_p2p` is never used [INFO] [stdout] --> src/page/key_view.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | pub(super) fn cmp_p2p(a: &KeyView<'_>, b: &KeyView<'_>) -> Ordering { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cmp_suffix` is never used [INFO] [stdout] --> src/page/key_view.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn cmp_suffix(a: &KeyView<'_>, b: &KeyView<'_>) -> Ordering { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cmp_search` is never used [INFO] [stdout] --> src/page/key_view.rs:78:15 [INFO] [stdout] | [INFO] [stdout] 78 | pub(super) fn cmp_search(a: &[u8], b: KeyView<'_>) -> Ordering { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lcp_calculate` is never used [INFO] [stdout] --> src/page/prefix_compression.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn lcp_calculate(x: &[u8], y: &[u8]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lcp_32` is never used [INFO] [stdout] --> src/page/prefix_compression.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn lcp_32(x: &[u8], y: &[u8]) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lcp_64` is never used [INFO] [stdout] --> src/page/prefix_compression.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn lcp_64(x: &[u8], y: &[u8]) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lcp_128` is never used [INFO] [stdout] --> src/page/prefix_compression.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn lcp_128(x: &[u8], y: &[u8]) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lcp_256` is never used [INFO] [stdout] --> src/page/prefix_compression.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn lcp_256(x: &[u8], y: &[u8]) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_prefix_offset` is never used [INFO] [stdout] --> src/page/prefix_compression.rs:43:15 [INFO] [stdout] | [INFO] [stdout] 43 | pub(super) fn find_prefix_offset(reference_key: &[u8], source_key: &[u8]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `common_prefix_len` is never used [INFO] [stdout] --> src/page/prefix_compression.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | pub(super) fn common_prefix_len(ref_key: &[u8], source_key: KeyView<'_>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PAGE_SIZE` is never used [INFO] [stdout] --> src/page/slotted_page.rs:46:18 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) const PAGE_SIZE: usize = 4096; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PAGE_SIZE_U16` is never used [INFO] [stdout] --> src/page/slotted_page.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | pub(crate) const PAGE_SIZE_U16: u16 = PAGE_SIZE as u16; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENTRY_SIZE` is never used [INFO] [stdout] --> src/page/slotted_page.rs:48:18 [INFO] [stdout] | [INFO] [stdout] 48 | pub(crate) const ENTRY_SIZE: usize = size_of::(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENTRY_SIZE_U16` is never used [INFO] [stdout] --> src/page/slotted_page.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 49 | pub(crate) const ENTRY_SIZE_U16: u16 = ENTRY_SIZE as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LSN_OFFSET` is never used [INFO] [stdout] --> src/page/slotted_page.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | const LSN_OFFSET: usize = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LSN_SIZE` is never used [INFO] [stdout] --> src/page/slotted_page.rs:52:7 [INFO] [stdout] | [INFO] [stdout] 52 | const LSN_SIZE: usize = 8; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHECKSUM_OFFSET` is never used [INFO] [stdout] --> src/page/slotted_page.rs:53:7 [INFO] [stdout] | [INFO] [stdout] 53 | const CHECKSUM_OFFSET: usize = LSN_OFFSET + LSN_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHECKSUM_SIZE` is never used [INFO] [stdout] --> src/page/slotted_page.rs:54:7 [INFO] [stdout] | [INFO] [stdout] 54 | const CHECKSUM_SIZE: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PAGE_TYPE_OFFSET` is never used [INFO] [stdout] --> src/page/slotted_page.rs:55:7 [INFO] [stdout] | [INFO] [stdout] 55 | const PAGE_TYPE_OFFSET: usize = CHECKSUM_OFFSET + CHECKSUM_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PAGE_TYPE_SIZE` is never used [INFO] [stdout] --> src/page/slotted_page.rs:56:7 [INFO] [stdout] | [INFO] [stdout] 56 | const PAGE_TYPE_SIZE: usize = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FLAGS_OFFSET` is never used [INFO] [stdout] --> src/page/slotted_page.rs:57:7 [INFO] [stdout] | [INFO] [stdout] 57 | const FLAGS_OFFSET: usize = PAGE_TYPE_OFFSET + PAGE_TYPE_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FLAGS_SIZE` is never used [INFO] [stdout] --> src/page/slotted_page.rs:58:7 [INFO] [stdout] | [INFO] [stdout] 58 | const FLAGS_SIZE: usize = 1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FREE_START_OFFSET` is never used [INFO] [stdout] --> src/page/slotted_page.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | const FREE_START_OFFSET: usize = FLAGS_OFFSET + FLAGS_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FREE_START_SIZE` is never used [INFO] [stdout] --> src/page/slotted_page.rs:60:7 [INFO] [stdout] | [INFO] [stdout] 60 | const FREE_START_SIZE: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FREE_END_OFFSET` is never used [INFO] [stdout] --> src/page/slotted_page.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 61 | const FREE_END_OFFSET: usize = FREE_START_OFFSET + FREE_START_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FREE_END_SIZE` is never used [INFO] [stdout] --> src/page/slotted_page.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | const FREE_END_SIZE: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PREFIX_OFFSET` is never used [INFO] [stdout] --> src/page/slotted_page.rs:63:7 [INFO] [stdout] | [INFO] [stdout] 63 | const PREFIX_OFFSET: usize = FREE_END_OFFSET + FREE_END_SIZE; // Prefix special slot entry - NOT sibling pointer space NOTE: Sibling... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PREFIX_OFFSET_SIZE` is never used [INFO] [stdout] --> src/page/slotted_page.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | const PREFIX_OFFSET_SIZE: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FRAG_OFFSET` is never used [INFO] [stdout] --> src/page/slotted_page.rs:65:7 [INFO] [stdout] | [INFO] [stdout] 65 | const FRAG_OFFSET: usize = PREFIX_OFFSET + PREFIX_OFFSET_SIZE; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FRAG_SIZE` is never used [INFO] [stdout] --> src/page/slotted_page.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 66 | const FRAG_SIZE: usize = 2; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TXID_OFFSET` is never used [INFO] [stdout] --> src/page/slotted_page.rs:67:7 [INFO] [stdout] | [INFO] [stdout] 67 | const TXID_OFFSET: usize = FRAG_OFFSET + FRAG_SIZE; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TXID_SIZE` is never used [INFO] [stdout] --> src/page/slotted_page.rs:68:7 [INFO] [stdout] | [INFO] [stdout] 68 | const TXID_SIZE: usize = 4; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HEADER_SIZE` is never used [INFO] [stdout] --> src/page/slotted_page.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | pub(crate) const HEADER_SIZE: usize = TXID_OFFSET + TXID_SIZE; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HEADER_SIZE_U16` is never used [INFO] [stdout] --> src/page/slotted_page.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 71 | pub(crate) const HEADER_SIZE_U16: u16 = HEADER_SIZE as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRAILER_SIZE` is never used [INFO] [stdout] --> src/page/slotted_page.rs:73:18 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) const TRAILER_SIZE: usize = 24; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRAILER_SIZE_U16` is never used [INFO] [stdout] --> src/page/slotted_page.rs:74:18 [INFO] [stdout] | [INFO] [stdout] 74 | pub(crate) const TRAILER_SIZE_U16: u16 = TRAILER_SIZE as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRAILER_OFFSET` is never used [INFO] [stdout] --> src/page/slotted_page.rs:75:18 [INFO] [stdout] | [INFO] [stdout] 75 | pub(crate) const TRAILER_OFFSET: usize = PAGE_SIZE - TRAILER_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRAILER_OFFSET_U16` is never used [INFO] [stdout] --> src/page/slotted_page.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | pub(crate) const TRAILER_OFFSET_U16: u16 = TRAILER_OFFSET as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIBLING_SPECIAL_SIZE` is never used [INFO] [stdout] --> src/page/slotted_page.rs:78:18 [INFO] [stdout] | [INFO] [stdout] 78 | pub(super) const SIBLING_SPECIAL_SIZE: usize = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIBLING_SPECIAL_SIZE_U16` is never used [INFO] [stdout] --> src/page/slotted_page.rs:79:18 [INFO] [stdout] | [INFO] [stdout] 79 | pub(super) const SIBLING_SPECIAL_SIZE_U16: u16 = SIBLING_SPECIAL_SIZE as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RIGHT_SIBLING_OFFSET` is never used [INFO] [stdout] --> src/page/slotted_page.rs:80:18 [INFO] [stdout] | [INFO] [stdout] 80 | pub(super) const RIGHT_SIBLING_OFFSET: usize = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PREFIX_SIZE` is never used [INFO] [stdout] --> src/page/slotted_page.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 82 | pub(crate) const PREFIX_SIZE: usize = size_of::(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PREFIX_SIZE_U16` is never used [INFO] [stdout] --> src/page/slotted_page.rs:83:18 [INFO] [stdout] | [INFO] [stdout] 83 | pub(crate) const PREFIX_SIZE_U16: u16 = PREFIX_OFFSET_SIZE as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/page/slotted_page.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | pub(crate) type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PageError` is never used [INFO] [stdout] --> src/page/slotted_page.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | pub(crate) enum PageError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InsertErrorCtx` is never constructed [INFO] [stdout] --> src/page/slotted_page.rs:106:19 [INFO] [stdout] | [INFO] [stdout] 106 | pub(crate) struct InsertErrorCtx { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/page/slotted_page.rs:113:19 [INFO] [stdout] | [INFO] [stdout] 112 | impl InsertErrorCtx { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 113 | pub(crate) fn new(contiguous_space: u16, fragment_space: u16, required_space: u16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SlottedPageMut` is never constructed [INFO] [stdout] --> src/page/slotted_page.rs:123:19 [INFO] [stdout] | [INFO] [stdout] 123 | pub(crate) struct SlottedPageMut<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/page/slotted_page.rs:128:19 [INFO] [stdout] | [INFO] [stdout] 127 | impl<'a> SlottedPageMut<'a> { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 128 | pub(crate) fn from_bytes(bytes: &'a mut RawPage) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub(crate) fn as_ref(&'a self) -> SlottedPageRef<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub(super) unsafe fn as_ptr(&self) -> *const u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub(super) unsafe fn as_mut_ptr(&mut self) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub(crate) fn wipe_page(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub(crate) fn init_new(bytes: &'a mut RawPage, page_type: u8, flags: u8) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub(super) fn get_tx_id(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub(super) fn set_tx_id(&mut self, tx_id: u64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub(super) fn get_lsn(&self) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub(super) fn set_lsn(&mut self, lsn: u64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub(super) fn get_checksum(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub(super) fn set_checksum(&mut self, checksum: u16) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub(super) fn set_page_type(&mut self, page_type: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | pub(super) fn get_page_type(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 231 | pub(super) fn free_start(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | pub(super) fn free_end(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub(super) fn set_free_start(&mut self, offset: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | pub(super) fn increment_free_start(&mut self, bytes: u16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub(super) fn decrement_free_start(&mut self, bytes: u16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | pub(super) fn set_free_end(&mut self, offset: u16) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | pub(super) fn free_contiguous_space(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub(super) fn get_fragmented_space(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 322 | pub(super) fn increase_fragmented_space(&mut self, amount: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub(super) fn free_fragmented_space(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | pub(super) fn memory_used_non_frag(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 371 | pub(super) fn memory_used(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | pub(super) fn get_slot_count(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 393 | pub(super) fn get_flags(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 398 | pub(super) fn set_flags(&mut self, flags: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 402 | pub(super) fn slot_dir_ref(&self) -> SlotRef<'_> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 414 | fn append_slot_entry(&mut self, entry: SlotEntry) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 442 | pub(super) fn insert_slot_entry_at_index(&mut self, idx: u16, entry: SlotEntry) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 494 | fn prepend_slot_entry(&mut self, entry: SlotEntry) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 535 | fn remove_slot_index_range(&mut self, range: Range, mut f: F) -> Result<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 559 | fn remove_slot_array_physical(&mut self, range: Range) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 616 | pub(super) fn get_prefix_entry_ref(&self) -> SlotEntryRef<'_> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 620 | pub(super) fn get_prefix_entry(&self) -> SlotEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 630 | pub(super) fn set_prefix_entry(&mut self, entry: SlotEntry) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 647 | pub(super) fn has_prefix(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | pub(super) fn check_contiguous_insert(&self, cell: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 666 | pub(super) fn insert_cell(&mut self, cell: &[u8], insert_index: u16) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 708 | pub(super) fn insert_cell_raw(&mut self, cell: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 748 | pub(super) fn insert_cell_append(&mut self, cell: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 754 | pub(super) fn cell_slice_from_id(&self, slot_id: SlotID) -> Result<&'_ [u8]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 790 | fn cell_and_entry_from_index( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 826 | pub(super) fn cell_slice_from_entry(&self, se: SlotEntry) -> &'_ [u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 840 | pub(super) fn transfer(&mut self, slot_index: u16, page: &mut SlottedPageMut) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 880 | fn compact(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SlottedPageRef` is never constructed [INFO] [stdout] --> src/page/slotted_page.rs:922:19 [INFO] [stdout] | [INFO] [stdout] 922 | pub(crate) struct SlottedPageRef<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/page/slotted_page.rs:927:19 [INFO] [stdout] | [INFO] [stdout] 926 | impl<'a> SlottedPageRef<'a> { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 927 | pub(crate) fn from_bytes(bytes: &'a RawPage) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 935 | pub(super) unsafe fn as_ptr(&self) -> *const u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 942 | pub(super) fn get_tx_id(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 950 | pub(super) fn get_lsn(&self) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 958 | pub(super) fn get_checksum(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 966 | pub(super) fn get_page_type(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 971 | pub(super) fn free_start(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 979 | pub(super) fn free_end(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 987 | pub(super) fn free_contiguous_space(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 991 | pub(super) fn get_fragmented_space(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1000 | pub(super) fn free_fragmented_space(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1011 | pub(super) fn memory_used_non_frag(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1025 | pub(super) fn memory_used(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1039 | pub(super) fn get_flags(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1045 | pub(super) fn slot_dir_ref(&self) -> SlotRef<'_> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1056 | pub(super) fn get_slot_count(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1065 | pub(super) fn cell_slice_from_id(&self, slot_id: SlotID) -> Result<&'_ [u8]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1101 | pub(super) fn cell_slice_from_entry(&self, se: SlotEntry) -> &'_ [u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1114 | fn cell_and_entry_from_index(&self, slot_index: u16) -> Result<(SlotEntryRef, CellRef)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1150 | pub(super) fn get_prefix_entry_ref(&self) -> SlotEntryRef<'_> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1154 | pub(super) fn get_prefix_entry(&self) -> SlotEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1164 | pub(super) fn has_prefix(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SlotRef` is never constructed [INFO] [stdout] --> src/page/slotted_page.rs:1173:19 [INFO] [stdout] | [INFO] [stdout] 1173 | pub(super) struct SlotRef<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `slot_count`, `iter`, and `get_slot_entry` are never used [INFO] [stdout] --> src/page/slotted_page.rs:1183:19 [INFO] [stdout] | [INFO] [stdout] 1181 | impl<'a> SlotRef<'a> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 1182 | // This isn't unsafe yet because we are only storing a raw const pointer and not aliasing or dereferencing [INFO] [stdout] 1183 | pub(super) fn new(start: *const u8, size: u16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 1191 | pub(super) fn slot_count(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1198 | pub(super) fn iter(&self) -> SlotDirIter<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1202 | pub(super) fn get_slot_entry(&self, idx: SlotID) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SlotDirMut` is never constructed [INFO] [stdout] --> src/page/slotted_page.rs:1217:19 [INFO] [stdout] | [INFO] [stdout] 1217 | pub(super) struct SlotDirMut<'a> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/page/slotted_page.rs:1224:19 [INFO] [stdout] | [INFO] [stdout] 1223 | impl<'a> SlotDirMut<'a> { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 1224 | pub(super) fn new(start: *mut u8, size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SlotDirIter` is never constructed [INFO] [stdout] --> src/page/slotted_page.rs:1233:19 [INFO] [stdout] | [INFO] [stdout] 1233 | pub(super) struct SlotDirIter<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `slot_count`, and `next_entry` are never used [INFO] [stdout] --> src/page/slotted_page.rs:1241:19 [INFO] [stdout] | [INFO] [stdout] 1240 | impl SlotDirIter<'_> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 1241 | pub(super) fn new(ptr: *const u8, size: u16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 1251 | pub(super) fn slot_count(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1255 | pub(super) fn next_entry(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SlotEntry` is never constructed [INFO] [stdout] --> src/page/slotted_page.rs:1287:19 [INFO] [stdout] | [INFO] [stdout] 1287 | pub(super) struct SlotEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/page/slotted_page.rs:1293:19 [INFO] [stdout] | [INFO] [stdout] 1292 | impl SlotEntry { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 1293 | pub(super) fn new(offset: u16, length: u16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SlotEntryRef` is never constructed [INFO] [stdout] --> src/page/slotted_page.rs:1311:19 [INFO] [stdout] | [INFO] [stdout] 1311 | pub(super) struct SlotEntryRef<'a>(&'a [u8]); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CellRef` is never constructed [INFO] [stdout] --> src/page/slotted_page.rs:1312:19 [INFO] [stdout] | [INFO] [stdout] 1312 | pub(super) struct CellRef<'a>(&'a [u8]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CompareFn` is never used [INFO] [stdout] --> src/tree/mod.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) type CompareFn = fn(&[u8], &[u8]) -> std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/tree/btree_base.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub(super) type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BTreeInnerError` is never used [INFO] [stdout] --> src/tree/btree_base.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | pub(super) enum BTreeInnerError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BInner` is never constructed [INFO] [stdout] --> src/tree/btree_base.rs:56:19 [INFO] [stdout] | [INFO] [stdout] 56 | pub(super) struct BInner<'blink> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `traverse_to_leaf`, `traverse_to_leaf_with_ctx`, and `try_insert` are never used [INFO] [stdout] --> src/tree/btree_base.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl<'blink> BInner<'blink> { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 63 | pub fn new(tx: &'blink OpCtx) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub(super) fn traverse_to_leaf(&self, page: PageID, key: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub(super) fn traverse_to_leaf_with_ctx<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub(super) fn try_insert(&mut self, key: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TraverseCtx` is never constructed [INFO] [stdout] --> src/tree/btree_base.rs:147:19 [INFO] [stdout] | [INFO] [stdout] 147 | pub(super) struct TraverseCtx<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_key` is never used [INFO] [stdout] --> src/tree/btree_base.rs:153:19 [INFO] [stdout] | [INFO] [stdout] 152 | impl<'a> TraverseCtx<'a> { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 153 | pub(super) fn from_key(key: &'a [u8]) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `InkDB` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `ink_db` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/page/index_cell.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | pub(super) fn get_key_view(&self) -> KeyView { [INFO] [stdout] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 116 | pub(super) fn get_key_view(&self) -> KeyView<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/page/internal_page.rs:108:23 [INFO] [stdout] | [INFO] [stdout] 108 | fn get_prefix_key(&self) -> IndexCellRef { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 108 | fn get_prefix_key(&self) -> IndexCellRef<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/page/internal_page.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | drop(self); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut InternalPageRef<'_>` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 205 - drop(self); [INFO] [stdout] 205 + let _ = self; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/page/slotted_page.rs:896:13 [INFO] [stdout] | [INFO] [stdout] 896 | sp.set_prefix_entry(entry); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 896 | let _ = sp.set_prefix_entry(entry); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/page/slotted_page.rs:1114:34 [INFO] [stdout] | [INFO] [stdout] 1114 | fn cell_and_entry_from_index(&self, slot_index: u16) -> Result<(SlotEntryRef, CellRef)> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | the lifetime is elided here the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1114 | fn cell_and_entry_from_index(&self, slot_index: u16) -> Result<(SlotEntryRef<'_>, CellRef<'_>)> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.58s [INFO] running `Command { std: "docker" "inspect" "5027b48eb8bb094cfd0de85f221b0b9e393ea981e06450e64e32b940f91ee996", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5027b48eb8bb094cfd0de85f221b0b9e393ea981e06450e64e32b940f91ee996", kill_on_drop: false }` [INFO] [stdout] 5027b48eb8bb094cfd0de85f221b0b9e393ea981e06450e64e32b940f91ee996