[INFO] cloning repository https://github.com/Mctursh/rust-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Mctursh/rust-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMctursh%2Frust-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMctursh%2Frust-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f07b61c85a949187e6c3e246e8716406da49fc67 [INFO] checking Mctursh/rust-api against try#39605810efb1a0d52f955bfba9e4eec7a01d5deb for pr-153692 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMctursh%2Frust-api" "/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/Mctursh/rust-api [INFO] finished tweaking git repo https://github.com/Mctursh/rust-api [INFO] tweaked toml for git repo https://github.com/Mctursh/rust-api written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Mctursh/rust-api on toolchain 39605810efb1a0d52f955bfba9e4eec7a01d5deb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Mctursh/rust-api 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" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d4b9cf2c1ef84e683e8a665d0e5b06120759135a7fbc1117baa4a5c4c72504e8 [INFO] running `Command { std: "docker" "start" "-a" "d4b9cf2c1ef84e683e8a665d0e5b06120759135a7fbc1117baa4a5c4c72504e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d4b9cf2c1ef84e683e8a665d0e5b06120759135a7fbc1117baa4a5c4c72504e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4b9cf2c1ef84e683e8a665d0e5b06120759135a7fbc1117baa4a5c4c72504e8", kill_on_drop: false }` [INFO] [stdout] d4b9cf2c1ef84e683e8a665d0e5b06120759135a7fbc1117baa4a5c4c72504e8 [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" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a1548aa8b04a9ef0f4e65260a4c189777f4b8bc0430d3c6dd71decd65d68f351 [INFO] running `Command { std: "docker" "start" "-a" "a1548aa8b04a9ef0f4e65260a4c189777f4b8bc0430d3c6dd71decd65d68f351", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Checking bytes v1.11.0 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking matchit v0.8.4 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Checking socket2 v0.6.1 [INFO] [stderr] Checking mio v1.1.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking axum-core v0.5.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking hyper-util v0.1.18 [INFO] [stderr] Checking axum v0.8.7 [INFO] [stderr] Checking rust-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/buffer/pool.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/buffer/pool.rs:84:35 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn find_empty_slot (self: &mut BufferPool) -> PoolResult<(&mut PoolEntry)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #140611 [INFO] [stdout] = note: `#[deny(self_lifetime_elision_not_applicable)]` (part of `#[deny(future_incompatible)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/buffer/pool.rs:84:66 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn find_empty_slot (self: &mut BufferPool) -> PoolResult<(&mut PoolEntry)> { [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] 84 - pub fn find_empty_slot (self: &mut BufferPool) -> PoolResult<(&mut PoolEntry)> { [INFO] [stdout] 84 + pub fn find_empty_slot (self: &mut BufferPool) -> PoolResult<&mut PoolEntry> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/record/mod.rs:219:27 [INFO] [stdout] | [INFO] [stdout] 219 | let slot_offset = (PAGE_SIZE - ((slot_index + 1) * SLOT_BYTE_SIZE)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 219 - let slot_offset = (PAGE_SIZE - ((slot_index + 1) * SLOT_BYTE_SIZE)); [INFO] [stdout] 219 + let slot_offset = PAGE_SIZE - ((slot_index + 1) * SLOT_BYTE_SIZE); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/record/mod.rs:268:108 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn insert_record (page_bytes: &mut [u8; PAGE_SIZE as usize], record_bytes: &[u8]) -> EncoderResult<(u32)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 268 - pub fn insert_record (page_bytes: &mut [u8; PAGE_SIZE as usize], record_bytes: &[u8]) -> EncoderResult<(u32)> { [INFO] [stdout] 268 + pub fn insert_record (page_bytes: &mut [u8; PAGE_SIZE as usize], record_bytes: &[u8]) -> EncoderResult { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/record/mod.rs:282:41 [INFO] [stdout] | [INFO] [stdout] 282 | let slot_bytes = Slot::to_bytes((record_bytes.len() as u16), (free_space_offset as u16)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 282 - let slot_bytes = Slot::to_bytes((record_bytes.len() as u16), (free_space_offset as u16)); [INFO] [stdout] 282 + let slot_bytes = Slot::to_bytes(record_bytes.len() as u16, (free_space_offset as u16)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/record/mod.rs:282:70 [INFO] [stdout] | [INFO] [stdout] 282 | let slot_bytes = Slot::to_bytes((record_bytes.len() as u16), (free_space_offset as u16)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 282 - let slot_bytes = Slot::to_bytes((record_bytes.len() as u16), (free_space_offset as u16)); [INFO] [stdout] 282 + let slot_bytes = Slot::to_bytes((record_bytes.len() as u16), free_space_offset as u16); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/buffer/pool.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/buffer/pool.rs:84:35 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn find_empty_slot (self: &mut BufferPool) -> PoolResult<(&mut PoolEntry)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #140611 [INFO] [stdout] = note: `#[deny(self_lifetime_elision_not_applicable)]` (part of `#[deny(future_incompatible)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/buffer/pool.rs:84:66 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn find_empty_slot (self: &mut BufferPool) -> PoolResult<(&mut PoolEntry)> { [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] 84 - pub fn find_empty_slot (self: &mut BufferPool) -> PoolResult<(&mut PoolEntry)> { [INFO] [stdout] 84 + pub fn find_empty_slot (self: &mut BufferPool) -> PoolResult<&mut PoolEntry> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/record/mod.rs:219:27 [INFO] [stdout] | [INFO] [stdout] 219 | let slot_offset = (PAGE_SIZE - ((slot_index + 1) * SLOT_BYTE_SIZE)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 219 - let slot_offset = (PAGE_SIZE - ((slot_index + 1) * SLOT_BYTE_SIZE)); [INFO] [stdout] 219 + let slot_offset = PAGE_SIZE - ((slot_index + 1) * SLOT_BYTE_SIZE); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/record/mod.rs:268:108 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn insert_record (page_bytes: &mut [u8; PAGE_SIZE as usize], record_bytes: &[u8]) -> EncoderResult<(u32)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 268 - pub fn insert_record (page_bytes: &mut [u8; PAGE_SIZE as usize], record_bytes: &[u8]) -> EncoderResult<(u32)> { [INFO] [stdout] 268 + pub fn insert_record (page_bytes: &mut [u8; PAGE_SIZE as usize], record_bytes: &[u8]) -> EncoderResult { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/record/mod.rs:282:41 [INFO] [stdout] | [INFO] [stdout] 282 | let slot_bytes = Slot::to_bytes((record_bytes.len() as u16), (free_space_offset as u16)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 282 - let slot_bytes = Slot::to_bytes((record_bytes.len() as u16), (free_space_offset as u16)); [INFO] [stdout] 282 + let slot_bytes = Slot::to_bytes(record_bytes.len() as u16, (free_space_offset as u16)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/record/mod.rs:282:70 [INFO] [stdout] | [INFO] [stdout] 282 | let slot_bytes = Slot::to_bytes((record_bytes.len() as u16), (free_space_offset as u16)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 282 - let slot_bytes = Slot::to_bytes((record_bytes.len() as u16), (free_space_offset as u16)); [INFO] [stdout] 282 + let slot_bytes = Slot::to_bytes((record_bytes.len() as u16), free_space_offset as u16); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page_bytes` [INFO] [stdout] --> src/record/mod.rs:214:35 [INFO] [stdout] | [INFO] [stdout] 214 | fn get_page_free_slot_offset (page_bytes: &[u8; PAGE_SIZE as usize], record_count: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_page_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/record/mod.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | let mut page_header = PageHeader::from_bytes(page_bytes); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page_header` [INFO] [stdout] --> src/record/mod.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | let mut page_header = PageHeader::from_bytes(page_bytes); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_page_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page_bytes` [INFO] [stdout] --> src/record/mod.rs:345:28 [INFO] [stdout] | [INFO] [stdout] 345 | pub fn iterate_records(page_bytes: &[u8; PAGE_SIZE as usize]) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_page_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `PoolResult` is never used [INFO] [stdout] --> src/buffer/pool.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | type PoolResult = 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: type alias `PoolPageReuslt` is never used [INFO] [stdout] --> src/buffer/pool.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | type PoolPageReuslt = PoolResult>; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PoolEntry` is never constructed [INFO] [stdout] --> src/buffer/pool.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct PoolEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `empty` is never used [INFO] [stdout] --> src/buffer/pool.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl PoolEntry { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 27 | fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cleanup` is never used [INFO] [stdout] --> src/buffer/pool.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl PoolEntry { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 39 | pub fn cleanup (&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BufferPool` is never constructed [INFO] [stdout] --> src/buffer/pool.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct BufferPool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `find_page`, `find_empty_slot`, and `evict_lru` are never used [INFO] [stdout] --> src/buffer/pool.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl BufferPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 58 | pub fn new () -> BufferPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn find_page (&mut self, page_id: u32) -> PoolPageReuslt<&mut PoolEntry> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn find_empty_slot (self: &mut BufferPool) -> PoolResult<(&mut PoolEntry)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn evict_lru (&mut self) -> PoolResult<&mut PoolEntry> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FILE_HEADER_PAGE` is never used [INFO] [stdout] --> src/constants.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const FILE_HEADER_PAGE: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_STRING_LENGTH` is never used [INFO] [stdout] --> src/constants.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const MAX_STRING_LENGTH: u16 = 65535; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_BUFFER_POOL_SIZE` is never used [INFO] [stdout] --> src/constants.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const DEFAULT_BUFFER_POOL_SIZE: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `table_id`, `name`, `first_page`, `index_root_page`, and `auto_increment_counter` are never read [INFO] [stdout] --> src/types.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Table { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 46 | table_id: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 47 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | first_page: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 49 | index_root_page: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 50 | auto_increment_counter: Option [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_bytes` and `from_bytes` are never used [INFO] [stdout] --> src/types.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl Table { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | fn to_bytes (&self) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 61 | fn from_bytes (&self) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Encoder` should have a snake case name [INFO] [stdout] --> src/record/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod Encoder { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `encoder` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page_bytes` [INFO] [stdout] --> src/record/mod.rs:214:35 [INFO] [stdout] | [INFO] [stdout] 214 | fn get_page_free_slot_offset (page_bytes: &[u8; PAGE_SIZE as usize], record_count: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_page_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/record/mod.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | let mut page_header = PageHeader::from_bytes(page_bytes); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page_header` [INFO] [stdout] --> src/record/mod.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | let mut page_header = PageHeader::from_bytes(page_bytes); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_page_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page_bytes` [INFO] [stdout] --> src/record/mod.rs:345:28 [INFO] [stdout] | [INFO] [stdout] 345 | pub fn iterate_records(page_bytes: &[u8; PAGE_SIZE as usize]) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_page_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `PoolResult` is never used [INFO] [stdout] --> src/buffer/pool.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | type PoolResult = 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: type alias `PoolPageReuslt` is never used [INFO] [stdout] --> src/buffer/pool.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | type PoolPageReuslt = PoolResult>; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-api` (lib test) due to 1 previous error; 23 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: struct `PoolEntry` is never constructed [INFO] [stdout] --> src/buffer/pool.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct PoolEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `empty` is never used [INFO] [stdout] --> src/buffer/pool.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl PoolEntry { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 27 | fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cleanup` is never used [INFO] [stdout] --> src/buffer/pool.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl PoolEntry { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 39 | pub fn cleanup (&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BufferPool` is never constructed [INFO] [stdout] --> src/buffer/pool.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct BufferPool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `find_page`, `find_empty_slot`, and `evict_lru` are never used [INFO] [stdout] --> src/buffer/pool.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl BufferPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 58 | pub fn new () -> BufferPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn find_page (&mut self, page_id: u32) -> PoolPageReuslt<&mut PoolEntry> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn find_empty_slot (self: &mut BufferPool) -> PoolResult<(&mut PoolEntry)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn evict_lru (&mut self) -> PoolResult<&mut PoolEntry> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FILE_HEADER_PAGE` is never used [INFO] [stdout] --> src/constants.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const FILE_HEADER_PAGE: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_STRING_LENGTH` is never used [INFO] [stdout] --> src/constants.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const MAX_STRING_LENGTH: u16 = 65535; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_BUFFER_POOL_SIZE` is never used [INFO] [stdout] --> src/constants.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const DEFAULT_BUFFER_POOL_SIZE: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `table_id`, `name`, `first_page`, `index_root_page`, and `auto_increment_counter` are never read [INFO] [stdout] --> src/types.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Table { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 46 | table_id: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 47 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | first_page: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 49 | index_root_page: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 50 | auto_increment_counter: Option [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_bytes` and `from_bytes` are never used [INFO] [stdout] --> src/types.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl Table { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | fn to_bytes (&self) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 61 | fn from_bytes (&self) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Encoder` should have a snake case name [INFO] [stdout] --> src/record/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod Encoder { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `encoder` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-api` (lib) due to 1 previous error; 23 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a1548aa8b04a9ef0f4e65260a4c189777f4b8bc0430d3c6dd71decd65d68f351", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1548aa8b04a9ef0f4e65260a4c189777f4b8bc0430d3c6dd71decd65d68f351", kill_on_drop: false }` [INFO] [stdout] a1548aa8b04a9ef0f4e65260a4c189777f4b8bc0430d3c6dd71decd65d68f351