[INFO] cloning repository https://github.com/shoyo/minuSQL [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shoyo/minuSQL" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshoyo%2FminuSQL", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshoyo%2FminuSQL'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0c00ac4d62861a4cb74ff39167b9c5aabc27c03f [INFO] checking shoyo/minuSQL against try#81275a1445c7502a974118e0c69b795ab60be991 for pr-80243 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshoyo%2FminuSQL" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shoyo/minuSQL on toolchain 81275a1445c7502a974118e0c69b795ab60be991 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+81275a1445c7502a974118e0c69b795ab60be991" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shoyo/minuSQL [INFO] finished tweaking git repo https://github.com/shoyo/minuSQL [INFO] tweaked toml for git repo https://github.com/shoyo/minuSQL written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/shoyo/minuSQL already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+81275a1445c7502a974118e0c69b795ab60be991" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+81275a1445c7502a974118e0c69b795ab60be991" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c6056faa3794c77c7e486bf2462c33139c8d8c20fe85531aad8c132871b6ac10 [INFO] running `Command { std: "docker" "start" "-a" "c6056faa3794c77c7e486bf2462c33139c8d8c20fe85531aad8c132871b6ac10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c6056faa3794c77c7e486bf2462c33139c8d8c20fe85531aad8c132871b6ac10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6056faa3794c77c7e486bf2462c33139c8d8c20fe85531aad8c132871b6ac10", kill_on_drop: false }` [INFO] [stdout] c6056faa3794c77c7e486bf2462c33139c8d8c20fe85531aad8c132871b6ac10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+81275a1445c7502a974118e0c69b795ab60be991" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1bfb682a9979df138d3e26972ad33cd6c1964b7d8f2b5fa4b4f30976853d45df [INFO] running `Command { std: "docker" "start" "-a" "1bfb682a9979df138d3e26972ad33cd6c1964b7d8f2b5fa4b4f30976853d45df", kill_on_drop: false }` [INFO] [stderr] Checking jin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Relation` [INFO] [stdout] --> src/execution/transaction.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::relation::relation::{Relation, RelationGuard}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::manager::BufferManager` [INFO] [stdout] --> src/index/btree_index.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::buffer::manager::BufferManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::relation::attribute::Attribute` [INFO] [stdout] --> src/relation/record.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::relation::attribute::Attribute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/relation/record.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Relation` [INFO] [stdout] --> src/execution/transaction.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::relation::relation::{Relation, RelationGuard}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::manager::BufferManager` [INFO] [stdout] --> src/index/btree_index.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::buffer::manager::BufferManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::relation::attribute::Attribute` [INFO] [stdout] --> src/relation/record.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::relation::attribute::Attribute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/relation/record.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record` [INFO] [stdout] --> src/block/relation_block.rs:183:33 [INFO] [stdout] | [INFO] [stdout] 183 | fn update_record(&mut self, record: Record) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_record` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame_id` [INFO] [stdout] --> src/buffer/eviction_policies/clock.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | fn pin(&mut self, frame_id: BufferFrameIdT) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frame_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame_id` [INFO] [stdout] --> src/buffer/eviction_policies/clock.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | fn unpin(&mut self, frame_id: BufferFrameIdT) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frame_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame_id` [INFO] [stdout] --> src/buffer/eviction_policies/lru.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | fn pin(&mut self, frame_id: BufferFrameIdT) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frame_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame_id` [INFO] [stdout] --> src/buffer/eviction_policies/lru.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | fn unpin(&mut self, frame_id: BufferFrameIdT) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frame_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/buffer/manager.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | for i in 0..self.buffer_size {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame` [INFO] [stdout] --> src/buffer/manager.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | let mut frame = self.buffer_pool[open_frame_id].write().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frame` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_id` [INFO] [stdout] --> src/buffer/manager.rs:122:36 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn delete_block(&mut self, block_id: BlockIdT) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_id` [INFO] [stdout] --> src/buffer/manager.rs:127:35 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn flush_block(&mut self, block_id: BlockIdT) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index/btree_index.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | fn get(key: &Record, txn: &'a Transaction) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/index/btree_index.rs:29:26 [INFO] [stdout] | [INFO] [stdout] 29 | fn get(key: &Record, txn: &'a Transaction) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index/btree_index.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | fn set(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rid` [INFO] [stdout] --> src/index/btree_index.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | fn set(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/index/btree_index.rs:33:41 [INFO] [stdout] | [INFO] [stdout] 33 | fn set(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index/btree_index.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | fn delete(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rid` [INFO] [stdout] --> src/index/btree_index.rs:37:29 [INFO] [stdout] | [INFO] [stdout] 37 | fn delete(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/index/btree_index.rs:37:44 [INFO] [stdout] | [INFO] [stdout] 37 | fn delete(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index/hash_table_index.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | fn get(key: &Record, txn: &'a Transaction) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/index/hash_table_index.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | fn get(key: &Record, txn: &'a Transaction) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index/hash_table_index.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | fn set(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rid` [INFO] [stdout] --> src/index/hash_table_index.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | fn set(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/index/hash_table_index.rs:30:41 [INFO] [stdout] | [INFO] [stdout] 30 | fn set(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index/hash_table_index.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | fn delete(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rid` [INFO] [stdout] --> src/index/hash_table_index.rs:34:29 [INFO] [stdout] | [INFO] [stdout] 34 | fn delete(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/index/hash_table_index.rs:34:44 [INFO] [stdout] | [INFO] [stdout] 34 | fn delete(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record` [INFO] [stdout] --> src/relation/heap.rs:38:30 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn insert(&mut self, record: Record) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_record` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record_id` [INFO] [stdout] --> src/relation/heap.rs:44:35 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn flag_delete(&mut self, record_id: RecordIdT) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_record_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record_id` [INFO] [stdout] --> src/relation/heap.rs:49:37 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn commit_delete(&mut self, record_id: RecordIdT) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_record_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record_id` [INFO] [stdout] --> src/relation/heap.rs:54:39 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn rollback_delete(&mut self, record_id: RecordIdT) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_record_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/relation/record.rs:51:36 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_column_value(&self, idx: u32, schema: &Schema) -> &[u8] { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `schema` [INFO] [stdout] --> src/relation/record.rs:51:46 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_column_value(&self, idx: u32, schema: &Schema) -> &[u8] { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/buffer/manager.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut list = self.free_list.lock().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/buffer/manager.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | let mut frame = self.buffer_pool[open_frame_id].write().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record` [INFO] [stdout] --> src/block/relation_block.rs:183:33 [INFO] [stdout] | [INFO] [stdout] 183 | fn update_record(&mut self, record: Record) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_record` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame_id` [INFO] [stdout] --> src/buffer/eviction_policies/clock.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | fn pin(&mut self, frame_id: BufferFrameIdT) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frame_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame_id` [INFO] [stdout] --> src/buffer/eviction_policies/clock.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | fn unpin(&mut self, frame_id: BufferFrameIdT) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frame_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame_id` [INFO] [stdout] --> src/buffer/eviction_policies/lru.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | fn pin(&mut self, frame_id: BufferFrameIdT) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frame_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame_id` [INFO] [stdout] --> src/buffer/eviction_policies/lru.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | fn unpin(&mut self, frame_id: BufferFrameIdT) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frame_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/buffer/manager.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | for i in 0..self.buffer_size {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame` [INFO] [stdout] --> src/buffer/manager.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | let mut frame = self.buffer_pool[open_frame_id].write().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frame` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_id` [INFO] [stdout] --> src/buffer/manager.rs:122:36 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn delete_block(&mut self, block_id: BlockIdT) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_id` [INFO] [stdout] --> src/buffer/manager.rs:127:35 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn flush_block(&mut self, block_id: BlockIdT) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index/btree_index.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | fn get(key: &Record, txn: &'a Transaction) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/index/btree_index.rs:29:26 [INFO] [stdout] | [INFO] [stdout] 29 | fn get(key: &Record, txn: &'a Transaction) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index/btree_index.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | fn set(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rid` [INFO] [stdout] --> src/index/btree_index.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | fn set(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/index/btree_index.rs:33:41 [INFO] [stdout] | [INFO] [stdout] 33 | fn set(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index/btree_index.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | fn delete(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rid` [INFO] [stdout] --> src/index/btree_index.rs:37:29 [INFO] [stdout] | [INFO] [stdout] 37 | fn delete(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/index/btree_index.rs:37:44 [INFO] [stdout] | [INFO] [stdout] 37 | fn delete(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index/hash_table_index.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | fn get(key: &Record, txn: &'a Transaction) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/index/hash_table_index.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | fn get(key: &Record, txn: &'a Transaction) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index/hash_table_index.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | fn set(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rid` [INFO] [stdout] --> src/index/hash_table_index.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | fn set(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/index/hash_table_index.rs:30:41 [INFO] [stdout] | [INFO] [stdout] 30 | fn set(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index/hash_table_index.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | fn delete(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rid` [INFO] [stdout] --> src/index/hash_table_index.rs:34:29 [INFO] [stdout] | [INFO] [stdout] 34 | fn delete(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/index/hash_table_index.rs:34:44 [INFO] [stdout] | [INFO] [stdout] 34 | fn delete(key: &Record, rid: RecordId, txn: &'a Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record` [INFO] [stdout] --> src/relation/heap.rs:38:30 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn insert(&mut self, record: Record) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_record` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record_id` [INFO] [stdout] --> src/relation/heap.rs:44:35 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn flag_delete(&mut self, record_id: RecordIdT) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_record_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record_id` [INFO] [stdout] --> src/relation/heap.rs:49:37 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn commit_delete(&mut self, record_id: RecordIdT) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_record_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record_id` [INFO] [stdout] --> src/relation/heap.rs:54:39 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn rollback_delete(&mut self, record_id: RecordIdT) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_record_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/relation/record.rs:51:36 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_column_value(&self, idx: u32, schema: &Schema) -> &[u8] { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `schema` [INFO] [stdout] --> src/relation/record.rs:51:46 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_column_value(&self, idx: u32, schema: &Schema) -> &[u8] { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_record` [INFO] [stdout] --> src/block/relation_block.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | fn update_record(&mut self, record: Record) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `policy` [INFO] [stdout] --> src/buffer/manager.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | policy: ClockPolicy, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `meta` [INFO] [stdout] --> src/execution/executors/insert.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | meta: ExecutorMeta<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `node` [INFO] [stdout] --> src/execution/executors/insert.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | node: InsertPlanNode<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `transaction` [INFO] [stdout] --> src/execution/executors/mod.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | transaction: &'a Transaction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `system_catalog` [INFO] [stdout] --> src/execution/executors/mod.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | system_catalog: &'a SystemCatalog, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `buffer_manager` [INFO] [stdout] --> src/execution/executors/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | buffer_manager: &'a BufferManager, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block/mod.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | let mut array = [1; BLOCK_SIZE as usize]; [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: struct is never constructed: `AggregationPlanNode` [INFO] [stdout] --> src/execution/plans/aggregation.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct AggregationPlanNode {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `relation_id` [INFO] [stdout] --> src/execution/plans/insert.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | relation_id: RelationIdT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `SequentialScanPlanNode` [INFO] [stdout] --> src/execution/plans/sequential_scan.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct SequentialScanPlanNode {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/execution/transaction.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | id: TransactionIdT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `state` [INFO] [stdout] --> src/execution/transaction.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | state: TransactionState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `prev_lsn` [INFO] [stdout] --> src/execution/transaction.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | prev_lsn: LsnT, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `write_record_q` [INFO] [stdout] --> src/execution/transaction.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | write_record_q: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `block_q` [INFO] [stdout] --> src/execution/transaction.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | block_q: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `delete_block_q` [INFO] [stdout] --> src/execution/transaction.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | delete_block_q: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `shared_lock_q` [INFO] [stdout] --> src/execution/transaction.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | shared_lock_q: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `exclusive_lock_q` [INFO] [stdout] --> src/execution/transaction.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | exclusive_lock_q: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Shrinking` [INFO] [stdout] --> src/execution/transaction.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | Shrinking, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Committed` [INFO] [stdout] --> src/execution/transaction.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | Committed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Aborted` [INFO] [stdout] --> src/execution/transaction.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | Aborted, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Insert` [INFO] [stdout] --> src/execution/transaction.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | Insert, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Delete` [INFO] [stdout] --> src/execution/transaction.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | Delete, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Update` [INFO] [stdout] --> src/execution/transaction.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | Update, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rid` [INFO] [stdout] --> src/execution/transaction.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | rid: RecordId, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `record` [INFO] [stdout] --> src/execution/transaction.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | record: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `op` [INFO] [stdout] --> src/execution/transaction.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | op: WriteOp, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `relation` [INFO] [stdout] --> src/execution/transaction.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | relation: RelationGuard, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `meta` [INFO] [stdout] --> src/index/btree_index.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | meta: IndexMeta<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tree` [INFO] [stdout] --> src/index/btree_index.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | tree: BTreeMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `meta` [INFO] [stdout] --> src/index/hash_table_index.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | meta: IndexMeta<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `map` [INFO] [stdout] --> src/index/hash_table_index.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | map: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/index/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `table_name` [INFO] [stdout] --> src/index/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | table_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `schema` [INFO] [stdout] --> src/index/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | schema: &'a Schema, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `LogRecovery` [INFO] [stdout] --> src/log/recovery.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct LogRecovery { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `redo` [INFO] [stdout] --> src/log/recovery.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn redo() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `undo` [INFO] [stdout] --> src/log/recovery.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn undo() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `head_block_id` [INFO] [stdout] --> src/relation/heap.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | head_block_id: BlockIdT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 76 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/buffer/manager.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut list = self.free_list.lock().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/buffer/manager.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | let mut frame = self.buffer_pool[open_frame_id].write().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_record` [INFO] [stdout] --> src/block/relation_block.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | fn update_record(&mut self, record: Record) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `policy` [INFO] [stdout] --> src/buffer/manager.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | policy: ClockPolicy, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `meta` [INFO] [stdout] --> src/execution/executors/insert.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | meta: ExecutorMeta<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `node` [INFO] [stdout] --> src/execution/executors/insert.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | node: InsertPlanNode<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `transaction` [INFO] [stdout] --> src/execution/executors/mod.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | transaction: &'a Transaction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `system_catalog` [INFO] [stdout] --> src/execution/executors/mod.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | system_catalog: &'a SystemCatalog, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `buffer_manager` [INFO] [stdout] --> src/execution/executors/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | buffer_manager: &'a BufferManager, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `AggregationPlanNode` [INFO] [stdout] --> src/execution/plans/aggregation.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct AggregationPlanNode {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `relation_id` [INFO] [stdout] --> src/execution/plans/insert.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | relation_id: RelationIdT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `SequentialScanPlanNode` [INFO] [stdout] --> src/execution/plans/sequential_scan.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct SequentialScanPlanNode {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/execution/transaction.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | id: TransactionIdT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `state` [INFO] [stdout] --> src/execution/transaction.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | state: TransactionState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `prev_lsn` [INFO] [stdout] --> src/execution/transaction.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | prev_lsn: LsnT, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `write_record_q` [INFO] [stdout] --> src/execution/transaction.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | write_record_q: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `block_q` [INFO] [stdout] --> src/execution/transaction.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | block_q: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `delete_block_q` [INFO] [stdout] --> src/execution/transaction.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | delete_block_q: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `shared_lock_q` [INFO] [stdout] --> src/execution/transaction.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | shared_lock_q: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `exclusive_lock_q` [INFO] [stdout] --> src/execution/transaction.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | exclusive_lock_q: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Shrinking` [INFO] [stdout] --> src/execution/transaction.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | Shrinking, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Committed` [INFO] [stdout] --> src/execution/transaction.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | Committed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Aborted` [INFO] [stdout] --> src/execution/transaction.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | Aborted, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Insert` [INFO] [stdout] --> src/execution/transaction.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | Insert, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Delete` [INFO] [stdout] --> src/execution/transaction.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | Delete, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Update` [INFO] [stdout] --> src/execution/transaction.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | Update, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rid` [INFO] [stdout] --> src/execution/transaction.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | rid: RecordId, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `record` [INFO] [stdout] --> src/execution/transaction.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | record: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `op` [INFO] [stdout] --> src/execution/transaction.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | op: WriteOp, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `relation` [INFO] [stdout] --> src/execution/transaction.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | relation: RelationGuard, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `meta` [INFO] [stdout] --> src/index/btree_index.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | meta: IndexMeta<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tree` [INFO] [stdout] --> src/index/btree_index.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | tree: BTreeMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `meta` [INFO] [stdout] --> src/index/hash_table_index.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | meta: IndexMeta<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `map` [INFO] [stdout] --> src/index/hash_table_index.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | map: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/index/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `table_name` [INFO] [stdout] --> src/index/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | table_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `schema` [INFO] [stdout] --> src/index/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | schema: &'a Schema, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `LogRecovery` [INFO] [stdout] --> src/log/recovery.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct LogRecovery { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `redo` [INFO] [stdout] --> src/log/recovery.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn redo() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `undo` [INFO] [stdout] --> src/log/recovery.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn undo() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `head_block_id` [INFO] [stdout] --> src/relation/heap.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | head_block_id: BlockIdT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> tests/execution.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> tests/execution.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | / (vec![ [INFO] [stdout] 41 | | Attribute::new("id", DataType::Varchar, true, true, false), [INFO] [stdout] 42 | | Attribute::new("name", DataType::Varchar, false, false, false), [INFO] [stdout] 43 | | Attribute::new("school", DataType::Varchar, false, false, false), [INFO] [stdout] 44 | | Attribute::new("grade", DataType::TinyInt, false, false, false), [INFO] [stdout] 45 | | ]), [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 | vec![ [INFO] [stdout] 41 | Attribute::new("id", DataType::Varchar, true, true, false), [INFO] [stdout] 42 | Attribute::new("name", DataType::Varchar, false, false, false), [INFO] [stdout] 43 | Attribute::new("school", DataType::Varchar, false, false, false), [INFO] [stdout] 44 | Attribute::new("grade", DataType::TinyInt, false, false, false), [INFO] [stdout] 45 | ], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 77 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `txn_manager` [INFO] [stdout] --> tests/execution.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | txn_manager: TransactionManager, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.70s [INFO] running `Command { std: "docker" "inspect" "1bfb682a9979df138d3e26972ad33cd6c1964b7d8f2b5fa4b4f30976853d45df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1bfb682a9979df138d3e26972ad33cd6c1964b7d8f2b5fa4b4f30976853d45df", kill_on_drop: false }` [INFO] [stdout] 1bfb682a9979df138d3e26972ad33cd6c1964b7d8f2b5fa4b4f30976853d45df