[INFO] cloning repository https://github.com/owolabioromidayo/yugodb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/owolabioromidayo/yugodb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fowolabioromidayo%2Fyugodb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fowolabioromidayo%2Fyugodb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 740b72f08b75472aeea11041356e0ecf91555bb0 [INFO] checking owolabioromidayo/yugodb against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fowolabioromidayo%2Fyugodb" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/owolabioromidayo/yugodb on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/owolabioromidayo/yugodb [INFO] finished tweaking git repo https://github.com/owolabioromidayo/yugodb [INFO] tweaked toml for git repo https://github.com/owolabioromidayo/yugodb written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/owolabioromidayo/yugodb 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e8380f6128d347966e5f0a584a5d9b8109bc54df20461a6ae28675f4ee678718 [INFO] running `Command { std: "docker" "start" "-a" "e8380f6128d347966e5f0a584a5d9b8109bc54df20461a6ae28675f4ee678718", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e8380f6128d347966e5f0a584a5d9b8109bc54df20461a6ae28675f4ee678718", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8380f6128d347966e5f0a584a5d9b8109bc54df20461a6ae28675f4ee678718", kill_on_drop: false }` [INFO] [stdout] e8380f6128d347966e5f0a584a5d9b8109bc54df20461a6ae28675f4ee678718 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d07e8e9649aa0ccbacdaa6fc3b33caebbb0b22131dd097447057860c5d30ce09 [INFO] running `Command { std: "docker" "start" "-a" "d07e8e9649aa0ccbacdaa6fc3b33caebbb0b22131dd097447057860c5d30ce09", kill_on_drop: false }` [INFO] [stderr] Checking yugodb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/pager.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/btree.rs:35:28 [INFO] [stdout] | [INFO] [stdout] 35 | use crate::error::{Result, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/btree.rs:407:63 [INFO] [stdout] | [INFO] [stdout] 407 | internal_node.children[0] = Some(BPTreeNodeEnum::Leaf((leaf_node1) )); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 407 - internal_node.children[0] = Some(BPTreeNodeEnum::Leaf((leaf_node1) )); [INFO] [stdout] 407 + internal_node.children[0] = Some(BPTreeNodeEnum::Leaf(leaf_node1 )); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/btree.rs:408:63 [INFO] [stdout] | [INFO] [stdout] 408 | internal_node.children[1] = Some(BPTreeNodeEnum::Leaf((leaf_node2) )); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 408 - internal_node.children[1] = Some(BPTreeNodeEnum::Leaf((leaf_node2) )); [INFO] [stdout] 408 + internal_node.children[1] = Some(BPTreeNodeEnum::Leaf(leaf_node2 )); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/btree.rs:35:28 [INFO] [stdout] | [INFO] [stdout] 35 | use crate::error::{Result, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/btree.rs:367:14 [INFO] [stdout] | [INFO] [stdout] 367 | for (id, k) in self.keys.iter().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> src/lib.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl Token { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 66 | fn new(token_type: TokenType, text: String, literal: Option, line: usize) -> Token { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tokenizer` is never constructed [INFO] [stdout] --> src/tokenizer.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Tokenizer<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/tokenizer.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a> Tokenizer<'a> { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 18 | fn new(source: &'a str) -> Tokenizer<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn scan_tokens(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn is_at_end(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn scan_token(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn identifier(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn number(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | fn string(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | fn peek(&self) -> char { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | fn peek_next(&self) -> char { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | fn match_char(&mut self, expected: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | fn advance(&mut self) -> char { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | fn add_token(&mut self, token_type: TokenType, literal: Option) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_digit` is never used [INFO] [stdout] --> src/tokenizer.rs:223:4 [INFO] [stdout] | [INFO] [stdout] 223 | fn is_digit(c: char) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_alpha` is never used [INFO] [stdout] --> src/tokenizer.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn is_alpha(c: char) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_alphanumeric` is never used [INFO] [stdout] --> src/tokenizer.rs:231:4 [INFO] [stdout] | [INFO] [stdout] 231 | fn is_alphanumeric(c: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PAGE_SIZE_KB` is never used [INFO] [stdout] --> src/pager.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const PAGE_SIZE_KB: usize = 4096; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PAGE_SIZE_BYTES` is never used [INFO] [stdout] --> src/pager.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const PAGE_SIZE_BYTES:usize = PAGE_SIZE_KB * 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FILE_LIMIT_PAGES` is never used [INFO] [stdout] --> src/pager.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const FILE_LIMIT_PAGES: usize = 4096; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FILE_LIMIT_KB` is never used [INFO] [stdout] --> src/pager.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const FILE_LIMIT_KB:usize = FILE_LIMIT_PAGES * PAGE_SIZE_KB; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INIT_PAGE_COUNT` is never used [INFO] [stdout] --> src/pager.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const INIT_PAGE_COUNT: usize = 24; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileInfo` is never constructed [INFO] [stdout] --> src/pager.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct FileInfo{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Page` is never constructed [INFO] [stdout] --> src/pager.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct Page { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PageCache` is never constructed [INFO] [stdout] --> src/pager.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct PageCache { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pager` is never constructed [INFO] [stdout] --> src/pager.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct Pager { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pager.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl FileInfo { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 52 | fn new() -> FileInfo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_new_page`, `delete_page`, `create_new_file`, `flush_page`, and `flush_all_pages` are never used [INFO] [stdout] --> src/pager.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl Pager { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 62 | [INFO] [stdout] 63 | fn new(fname_prefix: String)-> Pager{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn create_new_page(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn delete_page(&mut self, page: Page) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | fn create_new_file (&mut self, fname: String) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | fn flush_page(&self, page: &Page) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | fn flush_all_pages(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `has_page`, `add_page`, and `get_page` are never used [INFO] [stdout] --> src/pager.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 212 | impl PageCache { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 213 | fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | fn has_page(&mut self, page_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn add_page(&mut self, page: &Page) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | fn get_page(&mut self, page_index: usize) -> Option<&Page> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M` is never used [INFO] [stdout] --> src/btree.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | const M: usize = 32; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BPTreeNodeEnum` is never used [INFO] [stdout] --> src/btree.rs:41:6 [INFO] [stdout] | [INFO] [stdout] 41 | enum BPTreeNodeEnum { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BPTreeNode` is never used [INFO] [stdout] --> src/btree.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | trait BPTreeNode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BPTreeInternalNode` is never constructed [INFO] [stdout] --> src/btree.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct BPTreeInternalNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BPTreeLeafNode` is never constructed [INFO] [stdout] --> src/btree.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | struct BPTreeLeafNode { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/btree.rs:343:8 [INFO] [stdout] | [INFO] [stdout] 342 | impl BPTreeLeafNode{ [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 343 | fn new() -> BPTreeLeafNode{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `is_full` are never used [INFO] [stdout] --> src/btree.rs:354:8 [INFO] [stdout] | [INFO] [stdout] 352 | impl BPTreeInternalNode { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 353 | [INFO] [stdout] 354 | fn new() -> BPTreeInternalNode { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 365 | fn is_full(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/btree.rs:367:14 [INFO] [stdout] | [INFO] [stdout] 367 | for (id, k) in self.keys.iter().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/btree.rs:440:38 [INFO] [stdout] | [INFO] [stdout] 440 | BPTreeNodeEnum::Internal(n) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/btree.rs:452:38 [INFO] [stdout] | [INFO] [stdout] 452 | BPTreeNodeEnum::Internal(n) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `lexeme`, `literal`, and `line` are never read [INFO] [stdout] --> src/lib.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 58 | struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 59 | _type : TokenType, [INFO] [stdout] 60 | lexeme : String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 61 | literal : Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 62 | line : usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bytes` and `dirty` are never read [INFO] [stdout] --> src/pager.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct Page { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 27 | index: usize, [INFO] [stdout] 28 | bytes: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | dirty: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Page` 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 `capacity`, `loaded_pages`, and `counter` are never read [INFO] [stdout] --> src/pager.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct PageCache { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 35 | capacity: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 36 | loaded_pages: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 37 | counter: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PageCache` 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 `cache` is never read [INFO] [stdout] --> src/pager.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct Pager { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | cache: PageCache, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pager.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl FileInfo { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 52 | fn new() -> FileInfo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `flush_page` and `flush_all_pages` are never used [INFO] [stdout] --> src/pager.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl Pager { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 193 | fn flush_page(&self, page: &Page) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | fn flush_all_pages(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_page`, `add_page`, and `get_page` are never used [INFO] [stdout] --> src/pager.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 212 | impl PageCache { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 221 | fn has_page(&mut self, page_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn add_page(&mut self, page: &Page) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | fn get_page(&mut self, page_index: usize) -> Option<&Page> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `serialize`, `is_leaf`, and `is_root` are never used [INFO] [stdout] --> src/btree.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 46 | trait BPTreeNode { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 49 | fn serialize(&self) -> Vec; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn is_leaf(&self) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 56 | fn is_root(&self) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_root` is never read [INFO] [stdout] --> src/btree.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 62 | struct BPTreeInternalNode { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 63 | keys : Vec, // capacity M [INFO] [stdout] 64 | is_root: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BPTreeInternalNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `next_node` is never read [INFO] [stdout] --> src/btree.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 69 | struct BPTreeLeafNode { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 70 | values: HashMap, [INFO] [stdout] 71 | next_node: Option>, // LList [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BPTreeLeafNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::tokenizer` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use yugodb::tokenizer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::tokenizer` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use yugodb::tokenizer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] running `Command { std: "docker" "inspect" "d07e8e9649aa0ccbacdaa6fc3b33caebbb0b22131dd097447057860c5d30ce09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d07e8e9649aa0ccbacdaa6fc3b33caebbb0b22131dd097447057860c5d30ce09", kill_on_drop: false }` [INFO] [stdout] d07e8e9649aa0ccbacdaa6fc3b33caebbb0b22131dd097447057860c5d30ce09