[INFO] cloning repository https://github.com/dust1/relationaldb-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dust1/relationaldb-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdust1%2Frelationaldb-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdust1%2Frelationaldb-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8b9d7cabb7accd40eadb30d94e2f5fc2ee777fea [INFO] checking dust1/relationaldb-rs against master#2e6fc425411280c658d852813de01c5157255088 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdust1%2Frelationaldb-rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dust1/relationaldb-rs on toolchain 2e6fc425411280c658d852813de01c5157255088 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dust1/relationaldb-rs [INFO] finished tweaking git repo https://github.com/dust1/relationaldb-rs [INFO] tweaked toml for git repo https://github.com/dust1/relationaldb-rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dust1/relationaldb-rs 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" "+2e6fc425411280c658d852813de01c5157255088" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fd-lock v2.0.0 [INFO] [stderr] Downloaded rustyline v8.2.0 [INFO] [stderr] Downloaded clap v2.33.4 [INFO] [stderr] Downloaded tokio v1.6.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b59dc379833df78d64bb606b3535e0fa503032fb738f3ec4781415aa6d684abb [INFO] running `Command { std: "docker" "start" "-a" "b59dc379833df78d64bb606b3535e0fa503032fb738f3ec4781415aa6d684abb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b59dc379833df78d64bb606b3535e0fa503032fb738f3ec4781415aa6d684abb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b59dc379833df78d64bb606b3535e0fa503032fb738f3ec4781415aa6d684abb", kill_on_drop: false }` [INFO] [stdout] b59dc379833df78d64bb606b3535e0fa503032fb738f3ec4781415aa6d684abb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1fe3a3e5361fc337f5cbf564b87b0cf211571ceb288ed83fd055a5c71f84f0ce [INFO] running `Command { std: "docker" "start" "-a" "1fe3a3e5361fc337f5cbf564b87b0cf211571ceb288ed83fd055a5c71f84f0ce", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling proc-macro2 v1.0.34 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling serde v1.0.131 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Checking futures-sink v0.3.17 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling serde_json v1.0.73 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking futures-io v0.3.17 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Checking serde v0.8.23 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling futures-macro v0.3.17 [INFO] [stderr] Compiling tokio v1.6.4 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Checking nibble_vec v0.1.0 [INFO] [stderr] Checking endian-type v0.1.2 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Compiling serde_derive v1.0.131 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking radix_trie v0.2.1 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking rust-ini v0.13.0 [INFO] [stderr] Checking unicode-segmentation v1.8.0 [INFO] [stderr] Checking utf8parse v0.2.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Checking fd-lock v2.0.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking nix v0.20.2 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking dirs-next v2.0.0 [INFO] [stderr] Checking clap v2.33.4 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking tempdir v0.3.7 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Checking serde-hjson v0.9.1 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking config v0.11.0 [INFO] [stderr] Checking rustyline v8.2.0 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling enum-ordinalize v3.1.10 [INFO] [stderr] Compiling rustyline-derive v0.4.0 [INFO] [stderr] Compiling educe v0.4.18 [INFO] [stderr] Checking pin-project v1.0.8 [INFO] [stderr] Checking tokio-serde v0.8.0 [INFO] [stderr] Checking futures-executor v0.3.17 [INFO] [stderr] Checking futures v0.3.17 [INFO] [stderr] Checking tokio-stream v0.1.6 [INFO] [stderr] Checking tokio-util v0.6.9 [INFO] [stderr] Checking relationaldb-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `table_page_5` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:215:17 [INFO] [stdout] | [INFO] [stdout] 215 | let mut table_page_5 = buffer_pool_manager.new_page(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_page_5` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let mut table_page_5 = buffer_pool_manager.new_page(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `BufferPoolCache` is more private than the item `PoolManager::fetch_page` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | fn fetch_page(&mut self, page_id: usize) -> Option>>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `PoolManager::fetch_page` is reachable at visibility `pub(storage)` [INFO] [stdout] | [INFO] [stdout] note: but type `BufferPoolCache` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | struct BufferPoolCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `BufferPoolCache` is more private than the item `PoolManager::new_page` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | fn new_page(&mut self) -> Arc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `PoolManager::new_page` is reachable at visibility `pub(storage)` [INFO] [stdout] | [INFO] [stdout] note: but type `BufferPoolCache` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | struct BufferPoolCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `BufferPoolCache` is more private than the item `::fetch_page` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | fn fetch_page(&mut self, page_id: usize) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::fetch_page` is reachable at visibility `pub(storage)` [INFO] [stdout] | [INFO] [stdout] note: but type `BufferPoolCache` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | struct BufferPoolCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `BufferPoolCache` is more private than the item `::new_page` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | fn new_page(&mut self) -> Arc> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::new_page` is reachable at visibility `pub(storage)` [INFO] [stdout] | [INFO] [stdout] note: but type `BufferPoolCache` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | struct BufferPoolCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_page` is never used [INFO] [stdout] --> src/storage/disk_manager.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait DiskManager { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn read_page(&self, page_id: usize, page_data: &mut [u8; PAGE_SIZE]) -> Result; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct BufferPoolManager { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 16 | queue: VecDeque<(usize, Arc>)>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | disk_manager: Arc, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 18 | pool_size: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | /// [summary](https://github.com/cmu-db/bustub/blob... [INFO] [stdout] 20 | num_instance: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 21 | instance_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 22 | next_page_id: AtomicUsize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 23 | clock_replacer: ClockReplacer [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PoolManager` is never used [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait PoolManager { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `allocate_page`, `deallocate_page`, `validate_page_id`, and `check_queue` are never used [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl BufferPoolManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | fn allocate_page(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn deallocate_page(&mut self, _page_id: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn validate_page_id(&self, page_id: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn check_queue(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `create` and `read` are never used [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 144 | impl BufferPoolCache { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 145 | [INFO] [stdout] 146 | pub fn create(page_id: usize, disk_manager: Arc) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn read(page_id: usize, disk_manager: Arc) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | disk_manager.write_page(page_id, &page_data); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 148 | let _ = disk_manager.write_page(page_id, &page_data); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | self.disk_manager.write_page(self.page_id, &self.cache); [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] 179 | let _ = self.disk_manager.write_page(self.page_id, &self.cache); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `BufferPoolCache` is more private than the item `PoolManager::fetch_page` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | fn fetch_page(&mut self, page_id: usize) -> Option>>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `PoolManager::fetch_page` is reachable at visibility `pub(storage)` [INFO] [stdout] | [INFO] [stdout] note: but type `BufferPoolCache` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | struct BufferPoolCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `BufferPoolCache` is more private than the item `PoolManager::new_page` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | fn new_page(&mut self) -> Arc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `PoolManager::new_page` is reachable at visibility `pub(storage)` [INFO] [stdout] | [INFO] [stdout] note: but type `BufferPoolCache` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | struct BufferPoolCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `BufferPoolCache` is more private than the item `::fetch_page` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | fn fetch_page(&mut self, page_id: usize) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::fetch_page` is reachable at visibility `pub(storage)` [INFO] [stdout] | [INFO] [stdout] note: but type `BufferPoolCache` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | struct BufferPoolCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `BufferPoolCache` is more private than the item `::new_page` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | fn new_page(&mut self) -> Arc> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `::new_page` is reachable at visibility `pub(storage)` [INFO] [stdout] | [INFO] [stdout] note: but type `BufferPoolCache` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | struct BufferPoolCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `delete_page` and `flush_all_page` are never used [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait PoolManager { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 31 | fn delete_page(&mut self, page_id: usize); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 32 | fn flush_all_page(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `deallocate_page` is never used [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl BufferPoolManager { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | fn deallocate_page(&mut self, _page_id: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | disk_manager.write_page(page_id, &page_data); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 148 | let _ = disk_manager.write_page(page_id, &page_data); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/storage/buffer_pool_manager.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | self.disk_manager.write_page(self.page_id, &self.cache); [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] 179 | let _ = self.disk_manager.write_page(self.page_id, &self.cache); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.36s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v5.1.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "1fe3a3e5361fc337f5cbf564b87b0cf211571ceb288ed83fd055a5c71f84f0ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fe3a3e5361fc337f5cbf564b87b0cf211571ceb288ed83fd055a5c71f84f0ce", kill_on_drop: false }` [INFO] [stdout] 1fe3a3e5361fc337f5cbf564b87b0cf211571ceb288ed83fd055a5c71f84f0ce