[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] d8f2be721043a3151086afcefdf71a200becf322 [INFO] checking shoyo/minuSQL against try#b2f80f6008cdafc35b4472bd46afa16cc6b0cd63 for pr-79470 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshoyo%2FminuSQL" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shoyo/minuSQL on toolchain b2f80f6008cdafc35b4472bd46afa16cc6b0cd63 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b2f80f6008cdafc35b4472bd46afa16cc6b0cd63" "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-12/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" "+b2f80f6008cdafc35b4472bd46afa16cc6b0cd63" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+b2f80f6008cdafc35b4472bd46afa16cc6b0cd63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bd16365df4b5a85d44b31d1c36b007b1264b695d576b92fabb0bc12d276c9006 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "bd16365df4b5a85d44b31d1c36b007b1264b695d576b92fabb0bc12d276c9006", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bd16365df4b5a85d44b31d1c36b007b1264b695d576b92fabb0bc12d276c9006", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd16365df4b5a85d44b31d1c36b007b1264b695d576b92fabb0bc12d276c9006", kill_on_drop: false }` [INFO] [stdout] bd16365df4b5a85d44b31d1c36b007b1264b695d576b92fabb0bc12d276c9006 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+b2f80f6008cdafc35b4472bd46afa16cc6b0cd63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2e26342a7ac15f09120bdb3dd1a65574f43372a1fe1b1f9c2ea7baa5b8744522 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "2e26342a7ac15f09120bdb3dd1a65574f43372a1fe1b1f9c2ea7baa5b8744522", kill_on_drop: false }` [INFO] [stderr] Checking jin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::execution::plans::BasePlanNode` [INFO] [stdout] --> src/execution/executors/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::execution::plans::BasePlanNode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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] [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: `crate::execution::plans::BasePlanNode` [INFO] [stdout] --> src/execution/executors/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::execution::plans::BasePlanNode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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] [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/table_block.rs:212:33 [INFO] [stdout] | [INFO] [stdout] 212 | 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:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | for i in 0..BUFFER_SIZE as usize {} [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:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | 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:123:36 [INFO] [stdout] | [INFO] [stdout] 123 | 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:128:35 [INFO] [stdout] | [INFO] [stdout] 128 | 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: `child_idx` [INFO] [stdout] --> src/execution/plans/insert.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | fn get_child(&self, child_idx: u32) -> &'a dyn BasePlanNode<'a> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_child_idx` [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:40:30 [INFO] [stdout] | [INFO] [stdout] 40 | 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:46:35 [INFO] [stdout] | [INFO] [stdout] 46 | 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:51:37 [INFO] [stdout] | [INFO] [stdout] 51 | 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:56:39 [INFO] [stdout] | [INFO] [stdout] 56 | 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:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | 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:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | 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/table_block.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | 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:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | policy: ClockPolicy, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `meta` [INFO] [stdout] --> src/execution/executors/insert.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | meta: ExecutorMeta<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `node` [INFO] [stdout] --> src/execution/executors/insert.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | node: InsertPlanNode<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `transaction` [INFO] [stdout] --> src/execution/executors/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | 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:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | 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:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | buffer_manager: &'a BufferManager, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `meta` [INFO] [stdout] --> src/execution/plans/insert.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | meta: PlanMeta<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `relation_id` [INFO] [stdout] --> src/execution/plans/insert.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | relation_id: RelationIdT, [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 variable: `record` [INFO] [stdout] --> src/block/table_block.rs:212:33 [INFO] [stdout] | [INFO] [stdout] 212 | 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:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | for i in 0..BUFFER_SIZE as usize {} [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:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | 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:123:36 [INFO] [stdout] | [INFO] [stdout] 123 | 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:128:35 [INFO] [stdout] | [INFO] [stdout] 128 | 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: `child_idx` [INFO] [stdout] --> src/execution/plans/insert.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | fn get_child(&self, child_idx: u32) -> &'a dyn BasePlanNode<'a> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_child_idx` [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:40:30 [INFO] [stdout] | [INFO] [stdout] 40 | 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:46:35 [INFO] [stdout] | [INFO] [stdout] 46 | 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:51:37 [INFO] [stdout] | [INFO] [stdout] 51 | 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:56:39 [INFO] [stdout] | [INFO] [stdout] 56 | 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:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | 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:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | 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: 77 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_record` [INFO] [stdout] --> src/block/table_block.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | 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:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | policy: ClockPolicy, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `meta` [INFO] [stdout] --> src/execution/executors/insert.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | meta: ExecutorMeta<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `node` [INFO] [stdout] --> src/execution/executors/insert.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | node: InsertPlanNode<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `transaction` [INFO] [stdout] --> src/execution/executors/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | 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:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | 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:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | buffer_manager: &'a BufferManager, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `meta` [INFO] [stdout] --> src/execution/plans/insert.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | meta: PlanMeta<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `relation_id` [INFO] [stdout] --> src/execution/plans/insert.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | relation_id: RelationIdT, [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: 77 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `jin::buffer::manager::BufferManager` [INFO] [stdout] --> tests/integration.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use jin::buffer::manager::BufferManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `jin::disk::manager::DiskManager` [INFO] [stdout] --> tests/integration.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use jin::disk::manager::DiskManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.91s [INFO] running `Command { std: "docker" "inspect" "2e26342a7ac15f09120bdb3dd1a65574f43372a1fe1b1f9c2ea7baa5b8744522", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e26342a7ac15f09120bdb3dd1a65574f43372a1fe1b1f9c2ea7baa5b8744522", kill_on_drop: false }` [INFO] [stdout] 2e26342a7ac15f09120bdb3dd1a65574f43372a1fe1b1f9c2ea7baa5b8744522