[INFO] cloning repository https://github.com/owolabioromidayo/yugodb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/owolabioromidayo/yugodb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fowolabioromidayo%2Fyugodb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fowolabioromidayo%2Fyugodb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 82ac45d52008d16eab3d6a874d6da99fb0d9eb61 [INFO] checking owolabioromidayo/yugodb against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fowolabioromidayo%2Fyugodb" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/owolabioromidayo/yugodb on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/owolabioromidayo/yugodb [INFO] finished tweaking git repo https://github.com/owolabioromidayo/yugodb [INFO] tweaked toml for git repo https://github.com/owolabioromidayo/yugodb written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/owolabioromidayo/yugodb already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rust_decimal_macros v1.34.2 [INFO] [stderr] Downloaded ryu v1.0.17 [INFO] [stderr] Downloaded syn_derive v0.1.8 [INFO] [stderr] Downloaded either v1.12.0 [INFO] [stderr] Downloaded serde_bytes v0.11.14 [INFO] [stderr] Downloaded proc-macro-crate v3.1.0 [INFO] [stderr] Downloaded zerocopy-derive v0.7.32 [INFO] [stderr] Downloaded getrandom v0.2.14 [INFO] [stderr] Downloaded borsh-derive v1.5.0 [INFO] [stderr] Downloaded borsh v1.5.0 [INFO] [stderr] Downloaded bson v2.10.0 [INFO] [stderr] Downloaded zerocopy v0.7.32 [INFO] [stderr] Downloaded rust_decimal v1.35.0 [INFO] [stderr] Downloaded toml_edit v0.21.1 [INFO] [stderr] Downloaded uuid v1.8.0 [INFO] [stderr] Downloaded serde_derive v1.0.198 [INFO] [stderr] Downloaded serde v1.0.198 [INFO] [stderr] Downloaded serde_json v1.0.116 [INFO] [stderr] Downloaded autocfg v1.2.0 [INFO] [stderr] Downloaded l v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d2a504d5fbf11641416e03ac5368b90c9f2792a13703cdb546f7836ead6ddd5e [INFO] running `Command { std: "docker" "start" "-a" "d2a504d5fbf11641416e03ac5368b90c9f2792a13703cdb546f7836ead6ddd5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d2a504d5fbf11641416e03ac5368b90c9f2792a13703cdb546f7836ead6ddd5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2a504d5fbf11641416e03ac5368b90c9f2792a13703cdb546f7836ead6ddd5e", kill_on_drop: false }` [INFO] [stdout] d2a504d5fbf11641416e03ac5368b90c9f2792a13703cdb546f7836ead6ddd5e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] db9e978d965806d7a292371b4700008a7a3fe9b0a864d02100d107db8b983112 [INFO] running `Command { std: "docker" "start" "-a" "db9e978d965806d7a292371b4700008a7a3fe9b0a864d02100d107db8b983112", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling serde v1.0.198 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Compiling rust_decimal v1.35.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Checking either v1.12.0 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking l v0.1.0 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling rust_decimal_macros v1.34.2 [INFO] [stderr] Compiling serde_derive v1.0.198 [INFO] [stderr] Checking serde_bytes v0.11.14 [INFO] [stderr] Checking uuid v1.8.0 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking bson v2.10.0 [INFO] [stderr] Checking yugodb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DerefMut` and `Deref` [INFO] [stdout] --> src/pager.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | use std::ops::{Deref, DerefMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/btree.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::error::{Error, Result}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::borrow` [INFO] [stdout] --> src/table.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::borrow; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/table.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::*` [INFO] [stdout] --> src/table.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::*` [INFO] [stdout] --> src/table.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::btree::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bson` and `bson` [INFO] [stdout] --> src/table.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | use bson::{bson, Bson}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/database.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/database.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pager::Pager` [INFO] [stdout] --> src/database.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::pager::Pager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal_macros::dec` [INFO] [stdout] --> src/record.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rust_decimal_macros::dec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bson` and `bson` [INFO] [stdout] --> src/record.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use bson::{bson, Bson}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/lang/tokenizer.rs:278:15 [INFO] [stdout] | [INFO] [stdout] 278 | while (true) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 278 - while (true) { [INFO] [stdout] 278 + while true { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/lang/tokenizer.rs:278:9 [INFO] [stdout] | [INFO] [stdout] 278 | while (true) { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::tokenizer::*` [INFO] [stdout] --> src/lang/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::lang::tokenizer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal_macros::dec` [INFO] [stdout] --> src/lang/parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rust_decimal_macros::dec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lang/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/lang/ast.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/lang/ast.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lang/ast.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::tokenizer::*` [INFO] [stdout] --> src/lang/ast.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::lang::tokenizer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::parser::*` [INFO] [stdout] --> src/lang/ast.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::lang::parser::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/lang/ast.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::typechecker::*` [INFO] [stdout] --> src/lang/ast.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::lang::typechecker::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/ast.rs:149:20 [INFO] [stdout] | [INFO] [stdout] 149 | if (expr.methods.len() > 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 149 - if (expr.methods.len() > 1) { [INFO] [stdout] 149 + if expr.methods.len() > 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/ast.rs:169:49 [INFO] [stdout] | [INFO] [stdout] 169 | data : NodeData::Source((Source{source: Expr::DataCall((*expr).clone()) })), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 169 - data : NodeData::Source((Source{source: Expr::DataCall((*expr).clone()) })), [INFO] [stdout] 169 + data : NodeData::Source(Source{source: Expr::DataCall((*expr).clone()) }), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/ast.rs:187:47 [INFO] [stdout] | [INFO] [stdout] 187 | data : NodeData::Join((Join{dataexpr: (*expr).clone() })), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 187 - data : NodeData::Join((Join{dataexpr: (*expr).clone() })), [INFO] [stdout] 187 + data : NodeData::Join(Join{dataexpr: (*expr).clone() }), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/ast.rs:259:61 [INFO] [stdout] | [INFO] [stdout] 259 | ... data : NodeData::Projection((Projection{expr: x})), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 259 - data : NodeData::Projection((Projection{expr: x})), [INFO] [stdout] 259 + data : NodeData::Projection(Projection{expr: x}), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::database::Database` [INFO] [stdout] --> src/lang/typechecker.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::database::Database; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/lang/typechecker.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::types::*` [INFO] [stdout] --> src/lang/typechecker.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::lang::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lang/typechecker.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lang/interpreter.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/interpreter.rs:733:55 [INFO] [stdout] | [INFO] [stdout] 733 | ... return Err(Error::Unknown(("not a dbms call".to_string()))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 733 - return Err(Error::Unknown(("not a dbms call".to_string()))); [INFO] [stdout] 733 + return Err(Error::Unknown("not a dbms call".to_string())); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/interpreter.rs:742:41 [INFO] [stdout] | [INFO] [stdout] 742 | ... ("unresolvable argument error".to_string()), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 742 - ("unresolvable argument error".to_string()), [INFO] [stdout] 742 + "unresolvable argument error".to_string(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/interpreter.rs:1172:44 [INFO] [stdout] | [INFO] [stdout] 1172 | ... if (x.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1172 - if (x.len() == 0) { [INFO] [stdout] 1172 + if x.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/interpreter.rs:1183:44 [INFO] [stdout] | [INFO] [stdout] 1183 | ... if (x.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1183 - if (x.len() == 0) { [INFO] [stdout] 1183 + if x.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/interpreter.rs:1194:44 [INFO] [stdout] | [INFO] [stdout] 1194 | ... if (x.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1194 - if (x.len() == 0) { [INFO] [stdout] 1194 + if x.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/record_iterator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/record_iterator.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pager::*` [INFO] [stdout] --> src/record_iterator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::pager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::table::*` [INFO] [stdout] --> src/record_iterator.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::table::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::*` [INFO] [stdout] --> src/record_iterator.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/record_iterator.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | if (self.progress >= predicate.limit.unwrap() - predicate.offset.unwrap()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 146 - if (self.progress >= predicate.limit.unwrap() - predicate.offset.unwrap()) { [INFO] [stdout] 146 + if self.progress >= predicate.limit.unwrap() - predicate.offset.unwrap() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::record::*` [INFO] [stdout] --> src/schema.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::record::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::*` [INFO] [stdout] --> src/dbms.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::btree::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut` and `Deref` [INFO] [stdout] --> src/pager.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | use std::ops::{Deref, DerefMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/dbms.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::ast::*` [INFO] [stdout] --> src/dbms.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::lang::ast::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/btree.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::error::{Error, Result}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::interpreter::*` [INFO] [stdout] --> src/dbms.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::lang::interpreter::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::parser::*` [INFO] [stdout] --> src/dbms.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::lang::parser::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::borrow` [INFO] [stdout] --> src/table.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::borrow; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::tokenizer::*` [INFO] [stdout] --> src/dbms.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::lang::tokenizer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/table.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::types::*` [INFO] [stdout] --> src/dbms.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::lang::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::*` [INFO] [stdout] --> src/table.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pager::*` [INFO] [stdout] --> src/dbms.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::pager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::record::*` [INFO] [stdout] --> src/dbms.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::record::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::*` [INFO] [stdout] --> src/table.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::btree::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::*` [INFO] [stdout] --> src/dbms.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::schema::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bson` and `bson` [INFO] [stdout] --> src/table.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | use bson::{bson, Bson}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/database.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/database.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pager::Pager` [INFO] [stdout] --> src/database.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::pager::Pager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bson` and `bson` [INFO] [stdout] --> src/record.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use bson::{bson, Bson}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/lang/tokenizer.rs:278:15 [INFO] [stdout] | [INFO] [stdout] 278 | while (true) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 278 - while (true) { [INFO] [stdout] 278 + while true { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/lang/tokenizer.rs:278:9 [INFO] [stdout] | [INFO] [stdout] 278 | while (true) { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal_macros::dec` [INFO] [stdout] --> src/lang/parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rust_decimal_macros::dec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lang/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/lang/ast.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/lang/ast.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lang/ast.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/lang/ast.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::typechecker::*` [INFO] [stdout] --> src/lang/ast.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::lang::typechecker::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/ast.rs:149:20 [INFO] [stdout] | [INFO] [stdout] 149 | if (expr.methods.len() > 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 149 - if (expr.methods.len() > 1) { [INFO] [stdout] 149 + if expr.methods.len() > 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/ast.rs:169:49 [INFO] [stdout] | [INFO] [stdout] 169 | data : NodeData::Source((Source{source: Expr::DataCall((*expr).clone()) })), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 169 - data : NodeData::Source((Source{source: Expr::DataCall((*expr).clone()) })), [INFO] [stdout] 169 + data : NodeData::Source(Source{source: Expr::DataCall((*expr).clone()) }), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/ast.rs:187:47 [INFO] [stdout] | [INFO] [stdout] 187 | data : NodeData::Join((Join{dataexpr: (*expr).clone() })), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 187 - data : NodeData::Join((Join{dataexpr: (*expr).clone() })), [INFO] [stdout] 187 + data : NodeData::Join(Join{dataexpr: (*expr).clone() }), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/ast.rs:259:61 [INFO] [stdout] | [INFO] [stdout] 259 | ... data : NodeData::Projection((Projection{expr: x})), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 259 - data : NodeData::Projection((Projection{expr: x})), [INFO] [stdout] 259 + data : NodeData::Projection(Projection{expr: x}), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::database::Database` [INFO] [stdout] --> src/lang/typechecker.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::database::Database; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/lang/typechecker.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::types::*` [INFO] [stdout] --> src/lang/typechecker.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::lang::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lang/typechecker.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lang/interpreter.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/interpreter.rs:733:55 [INFO] [stdout] | [INFO] [stdout] 733 | ... return Err(Error::Unknown(("not a dbms call".to_string()))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 733 - return Err(Error::Unknown(("not a dbms call".to_string()))); [INFO] [stdout] 733 + return Err(Error::Unknown("not a dbms call".to_string())); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/interpreter.rs:742:41 [INFO] [stdout] | [INFO] [stdout] 742 | ... ("unresolvable argument error".to_string()), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 742 - ("unresolvable argument error".to_string()), [INFO] [stdout] 742 + "unresolvable argument error".to_string(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/interpreter.rs:1172:44 [INFO] [stdout] | [INFO] [stdout] 1172 | ... if (x.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1172 - if (x.len() == 0) { [INFO] [stdout] 1172 + if x.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/interpreter.rs:1183:44 [INFO] [stdout] | [INFO] [stdout] 1183 | ... if (x.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1183 - if (x.len() == 0) { [INFO] [stdout] 1183 + if x.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/interpreter.rs:1194:44 [INFO] [stdout] | [INFO] [stdout] 1194 | ... if (x.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1194 - if (x.len() == 0) { [INFO] [stdout] 1194 + if x.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/record_iterator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/record_iterator.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pager::*` [INFO] [stdout] --> src/record_iterator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::pager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::table::*` [INFO] [stdout] --> src/record_iterator.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::table::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::*` [INFO] [stdout] --> src/record_iterator.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/record_iterator.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | if (self.progress >= predicate.limit.unwrap() - predicate.offset.unwrap()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 146 - if (self.progress >= predicate.limit.unwrap() - predicate.offset.unwrap()) { [INFO] [stdout] 146 + if self.progress >= predicate.limit.unwrap() - predicate.offset.unwrap() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::record::*` [INFO] [stdout] --> src/schema.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::record::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::*` [INFO] [stdout] --> src/dbms.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::btree::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/dbms.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::ast::*` [INFO] [stdout] --> src/dbms.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::lang::ast::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::interpreter::*` [INFO] [stdout] --> src/dbms.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::lang::interpreter::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::parser::*` [INFO] [stdout] --> src/dbms.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::lang::parser::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::tokenizer::*` [INFO] [stdout] --> src/dbms.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::lang::tokenizer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::types::*` [INFO] [stdout] --> src/dbms.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::lang::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pager::*` [INFO] [stdout] --> src/dbms.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::pager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::record::*` [INFO] [stdout] --> src/dbms.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::record::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::*` [INFO] [stdout] --> src/dbms.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::schema::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/lang/interpreter.rs:969:37 [INFO] [stdout] | [INFO] [stdout] 939 | / ... match &table._type { [INFO] [stdout] 940 | | ... TableType::Document => { [INFO] [stdout] 941 | | ... match parse_json_to_document_record(record_str.as_str()) [INFO] [stdout] 942 | | ... { [INFO] [stdout] ... | [INFO] [stdout] 966 | | ... } [INFO] [stdout] 967 | | ... } [INFO] [stdout] | |_______________________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 968 | ... [INFO] [stdout] 969 | ... Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/table.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/table.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/table.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/lang/interpreter.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree` [INFO] [stdout] --> src/lang/interpreter.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::btree::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/lang/interpreter.rs:969:37 [INFO] [stdout] | [INFO] [stdout] 939 | / ... match &table._type { [INFO] [stdout] 940 | | ... TableType::Document => { [INFO] [stdout] 941 | | ... match parse_json_to_document_record(record_str.as_str()) [INFO] [stdout] 942 | | ... { [INFO] [stdout] ... | [INFO] [stdout] 966 | | ... } [INFO] [stdout] 967 | | ... } [INFO] [stdout] | |_______________________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 968 | ... [INFO] [stdout] 969 | ... Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/lang/interpreter.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/table.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/table.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/table.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree` [INFO] [stdout] --> src/lang/interpreter.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::btree::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/error.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | Ok(_) => unreachable!("Infallible can never be constructed"), [INFO] [stdout] | ^^^^^ matches no values because `Infallible` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/btree.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | for i in 0..32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/btree.rs:246:14 [INFO] [stdout] | [INFO] [stdout] 246 | for (id, k) in self.children.iter().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/error.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | Ok(_) => unreachable!("Infallible can never be constructed"), [INFO] [stdout] | ^^^^^ matches no values because `Infallible` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/table.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | let mut curr_page = pager.get_page_or_force(self.curr_page_id)?; [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: unused variable: `pager` [INFO] [stdout] --> src/table.rs:208:33 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn insert_document_rows(pager: &Pager, rows: Vec) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rows` [INFO] [stdout] --> src/table.rs:208:48 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn insert_document_rows(pager: &Pager, rows: Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/table.rs:217:19 [INFO] [stdout] | [INFO] [stdout] 217 | if let Ok(mut pager) = Rc::clone(&self.pager).try_borrow_mut() { [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/table.rs:258:19 [INFO] [stdout] | [INFO] [stdout] 258 | if let Ok(mut pager) = Rc::clone(&self.pager).try_borrow_mut() { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/btree.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | for i in 0..32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/btree.rs:246:14 [INFO] [stdout] | [INFO] [stdout] 246 | for (id, k) in self.children.iter().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/table.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | let mut curr_page = pager.get_page_or_force(self.curr_page_id)?; [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: unused variable: `pager` [INFO] [stdout] --> src/table.rs:208:33 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn insert_document_rows(pager: &Pager, rows: Vec) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rows` [INFO] [stdout] --> src/table.rs:208:48 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn insert_document_rows(pager: &Pager, rows: Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/table.rs:217:19 [INFO] [stdout] | [INFO] [stdout] 217 | if let Ok(mut pager) = Rc::clone(&self.pager).try_borrow_mut() { [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/table.rs:258:19 [INFO] [stdout] | [INFO] [stdout] 258 | if let Ok(mut pager) = Rc::clone(&self.pager).try_borrow_mut() { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/record.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | if let a = self.fields.get(key).unwrap() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/record.rs:92:38 [INFO] [stdout] | [INFO] [stdout] 92 | DocumentValue::Array(x) => None, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/record.rs:93:39 [INFO] [stdout] | [INFO] [stdout] 93 | DocumentValue::Object(x) => None, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nullable` [INFO] [stdout] --> src/record.rs:266:25 [INFO] [stdout] | [INFO] [stdout] 266 | let (dtype, nullable) = schema.get(name).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nullable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/record.rs:431:21 [INFO] [stdout] | [INFO] [stdout] 431 | Err(x) => return Ok(Self { records }), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/record.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | if let a = self.fields.get(key).unwrap() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/record.rs:92:38 [INFO] [stdout] | [INFO] [stdout] 92 | DocumentValue::Array(x) => None, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/record.rs:93:39 [INFO] [stdout] | [INFO] [stdout] 93 | DocumentValue::Object(x) => None, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:498:17 [INFO] [stdout] | [INFO] [stdout] 498 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:505:17 [INFO] [stdout] | [INFO] [stdout] 505 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nullable` [INFO] [stdout] --> src/record.rs:266:25 [INFO] [stdout] | [INFO] [stdout] 266 | let (dtype, nullable) = schema.get(name).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nullable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/record.rs:591:29 [INFO] [stdout] | [INFO] [stdout] 591 | pub fn get_value(&self, key: &str) -> &RelationalValue { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/record.rs:597:24 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn deserialize(bytes: &[u8], schema: &RelationalSchema) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `schema` [INFO] [stdout] --> src/record.rs:597:38 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn deserialize(bytes: &[u8], schema: &RelationalSchema) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `schema` [INFO] [stdout] --> src/record.rs:601:29 [INFO] [stdout] | [INFO] [stdout] 601 | pub fn serialize(&self, schema: &RelationalSchema) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/record.rs:431:21 [INFO] [stdout] | [INFO] [stdout] 431 | Err(x) => return Ok(Self { records }), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `methods` [INFO] [stdout] --> src/lang/tokenizer.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let methods = vec![ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_methods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:498:17 [INFO] [stdout] | [INFO] [stdout] 498 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:505:17 [INFO] [stdout] | [INFO] [stdout] 505 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/record.rs:591:29 [INFO] [stdout] | [INFO] [stdout] 591 | pub fn get_value(&self, key: &str) -> &RelationalValue { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/record.rs:597:24 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn deserialize(bytes: &[u8], schema: &RelationalSchema) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `schema` [INFO] [stdout] --> src/record.rs:597:38 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn deserialize(bytes: &[u8], schema: &RelationalSchema) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `schema` [INFO] [stdout] --> src/record.rs:601:29 [INFO] [stdout] | [INFO] [stdout] 601 | pub fn serialize(&self, schema: &RelationalSchema) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `serialized` [INFO] [stdout] --> src/record.rs:970:13 [INFO] [stdout] | [INFO] [stdout] 970 | let serialized = record.serialize(&schema); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_serialized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `methods` [INFO] [stdout] --> src/lang/tokenizer.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let methods = vec![ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_methods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_node` [INFO] [stdout] --> src/lang/ast.rs:178:21 [INFO] [stdout] | [INFO] [stdout] 178 | let left_node: Option = self.generate_from_expr(expr.left.as_ref()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right_node` [INFO] [stdout] --> src/lang/ast.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | let right_node= self.generate_from_expr(expr.right.as_ref()); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_right_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lang/interpreter.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | Expr::Attribute(y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lang/interpreter.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut right = self.evaluate_lower(&expr.right)?; [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/lang/interpreter.rs:258:13 [INFO] [stdout] | [INFO] [stdout] 258 | let mut right = self.evaluate_lower(&expr.right)?; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lang/interpreter.rs:301:28 [INFO] [stdout] | [INFO] [stdout] 301 | fn visit_assign(&self, expr: &Assign) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lang/interpreter.rs:308:30 [INFO] [stdout] | [INFO] [stdout] 308 | fn visit_variable(&self, expr: &Variable) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `db_name` is never read [INFO] [stdout] --> src/lang/interpreter.rs:367:17 [INFO] [stdout] | [INFO] [stdout] 367 | let mut db_name = String::new(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `table_name` is never read [INFO] [stdout] --> src/lang/interpreter.rs:368:17 [INFO] [stdout] | [INFO] [stdout] 368 | let mut table_name = String::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tok` [INFO] [stdout] --> src/lang/interpreter.rs:386:13 [INFO] [stdout] | [INFO] [stdout] 386 | tok => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> src/lang/parser.rs:871:13 [INFO] [stdout] | [INFO] [stdout] 871 | let expected = DocumentRecord { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lang/interpreter.rs:397:25 [INFO] [stdout] | [INFO] [stdout] 397 | let mut pred = self.generate_predicate(&expr.methods, &expr.arguments)?; [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/lang/interpreter.rs:399:25 [INFO] [stdout] | [INFO] [stdout] 399 | let mut k_static = Box::leak(Box::new(k.clone())); [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/lang/interpreter.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | let mut pred = Box::leak(Box::new( [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/lang/interpreter.rs:427:13 [INFO] [stdout] | [INFO] [stdout] 427 | let mut y = RefCell::new(RecordIterator::new(DEFAULT_CHUNK_SIZE, db_name, table_name)); [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/lang/interpreter.rs:430:13 [INFO] [stdout] | [INFO] [stdout] 430 | let mut y_static = Box::leak(Box::new(y)); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lang/interpreter.rs:529:58 [INFO] [stdout] | [INFO] [stdout] 529 | ... (Records::RelationalRows(x), Records::DocumentRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lang/interpreter.rs:529:84 [INFO] [stdout] | [INFO] [stdout] 529 | ... (Records::RelationalRows(x), Records::DocumentRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lang/interpreter.rs:533:58 [INFO] [stdout] | [INFO] [stdout] 533 | ... (Records::RelationalRows(x), Records::RelationalRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lang/interpreter.rs:533:86 [INFO] [stdout] | [INFO] [stdout] 533 | ... (Records::RelationalRows(x), Records::RelationalRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lang/interpreter.rs:563:36 [INFO] [stdout] | [INFO] [stdout] 563 | fn visit_print_stmt(&mut self, stmt: &PrintStmt) -> () { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lang/interpreter.rs:575:34 [INFO] [stdout] | [INFO] [stdout] 575 | fn visit_var_stmt(&mut self, stmt: &VarStmt) -> () { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/lang/interpreter.rs:740:37 [INFO] [stdout] | [INFO] [stdout] 740 | ... Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tok` [INFO] [stdout] --> src/lang/interpreter.rs:983:21 [INFO] [stdout] | [INFO] [stdout] 983 | tok => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_node` [INFO] [stdout] --> src/lang/ast.rs:178:21 [INFO] [stdout] | [INFO] [stdout] 178 | let left_node: Option = self.generate_from_expr(expr.left.as_ref()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right_node` [INFO] [stdout] --> src/lang/ast.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | let right_node= self.generate_from_expr(expr.right.as_ref()); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_right_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lang/interpreter.rs:796:41 [INFO] [stdout] | [INFO] [stdout] 796 | ... let mut db = match dbms.databases.get_mut(db_name) { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lang/interpreter.rs:1059:25 [INFO] [stdout] | [INFO] [stdout] 1059 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/lang/interpreter.rs:1059:25 [INFO] [stdout] | [INFO] [stdout] 1044 | NodeData::Source(x) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1047 | NodeData::Join(x) => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1051 | NodeData::Projection(x) => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1056 | NodeData::Variable(x) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1059 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lang/interpreter.rs:1056:44 [INFO] [stdout] | [INFO] [stdout] 1056 | NodeData::Variable(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lang/interpreter.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | Expr::Attribute(y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/record_iterator.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut n = RecordIterator { [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/lang/interpreter.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut right = self.evaluate_lower(&expr.right)?; [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/lang/interpreter.rs:258:13 [INFO] [stdout] | [INFO] [stdout] 258 | let mut right = self.evaluate_lower(&expr.right)?; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lang/interpreter.rs:301:28 [INFO] [stdout] | [INFO] [stdout] 301 | fn visit_assign(&self, expr: &Assign) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lang/interpreter.rs:308:30 [INFO] [stdout] | [INFO] [stdout] 308 | fn visit_variable(&self, expr: &Variable) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `db_name` is never read [INFO] [stdout] --> src/lang/interpreter.rs:367:17 [INFO] [stdout] | [INFO] [stdout] 367 | let mut db_name = String::new(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `table_name` is never read [INFO] [stdout] --> src/lang/interpreter.rs:368:17 [INFO] [stdout] | [INFO] [stdout] 368 | let mut table_name = String::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tok` [INFO] [stdout] --> src/lang/interpreter.rs:386:13 [INFO] [stdout] | [INFO] [stdout] 386 | tok => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `taken` is never read [INFO] [stdout] --> src/pager.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct Page { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 51 | taken: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Page` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pager.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 114 | impl FileInfo { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 115 | fn new() -> FileInfo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `delete_page` is never used [INFO] [stdout] --> src/pager.rs:316:8 [INFO] [stdout] | [INFO] [stdout] 124 | impl Pager { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 316 | fn delete_page(&mut self, page: Page) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_page` is never used [INFO] [stdout] --> src/pager.rs:393:8 [INFO] [stdout] | [INFO] [stdout] 384 | impl PageCache { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 393 | fn has_page(&mut self, page_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FromResidual` is never used [INFO] [stdout] --> src/error.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | trait FromResidual { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `next_node` is never read [INFO] [stdout] --> src/btree.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct BPTreeLeafNode { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 44 | values: HashMap, [INFO] [stdout] 45 | next_node: Option>>, // LList [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BPTreeLeafNode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_token` is never used [INFO] [stdout] --> src/lang/ast.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl JoinType{ [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 28 | fn from_token(token: &Token) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `eval` is never read [INFO] [stdout] --> src/lang/interpreter.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct PredicateClosure { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 93 | // what happens if its only one record, we create another func, this seems brittle [INFO] [stdout] 94 | eval: Box bool>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lang/interpreter.rs:397:25 [INFO] [stdout] | [INFO] [stdout] 397 | let mut pred = self.generate_predicate(&expr.methods, &expr.arguments)?; [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/lang/interpreter.rs:399:25 [INFO] [stdout] | [INFO] [stdout] 399 | let mut k_static = Box::leak(Box::new(k.clone())); [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/lang/interpreter.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | let mut pred = Box::leak(Box::new( [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/lang/interpreter.rs:427:13 [INFO] [stdout] | [INFO] [stdout] 427 | let mut y = RefCell::new(RecordIterator::new(DEFAULT_CHUNK_SIZE, db_name, table_name)); [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/lang/interpreter.rs:430:13 [INFO] [stdout] | [INFO] [stdout] 430 | let mut y_static = Box::leak(Box::new(y)); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lang/interpreter.rs:529:58 [INFO] [stdout] | [INFO] [stdout] 529 | ... (Records::RelationalRows(x), Records::DocumentRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lang/interpreter.rs:529:84 [INFO] [stdout] | [INFO] [stdout] 529 | ... (Records::RelationalRows(x), Records::DocumentRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lang/interpreter.rs:533:58 [INFO] [stdout] | [INFO] [stdout] 533 | ... (Records::RelationalRows(x), Records::RelationalRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lang/interpreter.rs:533:86 [INFO] [stdout] | [INFO] [stdout] 533 | ... (Records::RelationalRows(x), Records::RelationalRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lang/interpreter.rs:563:36 [INFO] [stdout] | [INFO] [stdout] 563 | fn visit_print_stmt(&mut self, stmt: &PrintStmt) -> () { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lang/interpreter.rs:575:34 [INFO] [stdout] | [INFO] [stdout] 575 | fn visit_var_stmt(&mut self, stmt: &VarStmt) -> () { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/lang/interpreter.rs:740:37 [INFO] [stdout] | [INFO] [stdout] 740 | ... Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tok` [INFO] [stdout] --> src/lang/interpreter.rs:983:21 [INFO] [stdout] | [INFO] [stdout] 983 | tok => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lang/interpreter.rs:796:41 [INFO] [stdout] | [INFO] [stdout] 796 | ... let mut db = match dbms.databases.get_mut(db_name) { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lang/interpreter.rs:1059:25 [INFO] [stdout] | [INFO] [stdout] 1059 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/lang/interpreter.rs:1059:25 [INFO] [stdout] | [INFO] [stdout] 1044 | NodeData::Source(x) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1047 | NodeData::Join(x) => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1051 | NodeData::Projection(x) => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1056 | NodeData::Variable(x) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1059 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lang/interpreter.rs:1056:44 [INFO] [stdout] | [INFO] [stdout] 1056 | NodeData::Variable(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/record_iterator.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut n = RecordIterator { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 120 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `taken` is never read [INFO] [stdout] --> src/pager.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct Page { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 51 | taken: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Page` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pager.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 114 | impl FileInfo { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 115 | fn new() -> FileInfo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_page` is never used [INFO] [stdout] --> src/pager.rs:393:8 [INFO] [stdout] | [INFO] [stdout] 384 | impl PageCache { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 393 | fn has_page(&mut self, page_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FromResidual` is never used [INFO] [stdout] --> src/error.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | trait FromResidual { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `next_node` is never read [INFO] [stdout] --> src/btree.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct BPTreeLeafNode { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 44 | values: HashMap, [INFO] [stdout] 45 | next_node: Option>>, // LList [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BPTreeLeafNode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_token` is never used [INFO] [stdout] --> src/lang/ast.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl JoinType{ [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 28 | fn from_token(token: &Token) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `eval` is never read [INFO] [stdout] --> src/lang/interpreter.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct PredicateClosure { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 93 | // what happens if its only one record, we create another func, this seems brittle [INFO] [stdout] 94 | eval: Box bool>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 117 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::lang::parser` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use yugodb::lang::parser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::lang::tokenizer` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use yugodb::lang::tokenizer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rust_decimal::Decimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal_macros::dec` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use rust_decimal_macros::dec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::lang::parser` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use yugodb::lang::parser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::lang::tokenizer` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use yugodb::lang::tokenizer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::btree::*` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use yugodb::btree::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rust_decimal::Decimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::database::*` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use yugodb::database::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal_macros::dec` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use rust_decimal_macros::dec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::lang::ast::*` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use yugodb::lang::ast::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::lang::types::*` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use yugodb::lang::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::pager::*` [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use yugodb::pager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::schema::*` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use yugodb::schema::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::table::*` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use yugodb::table::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::btree::*` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use yugodb::btree::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::types::RelationalType` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use yugodb::types::RelationalType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::database::*` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use yugodb::database::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::lang::ast::*` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use yugodb::lang::ast::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::lang::types::*` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use yugodb::lang::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::pager::*` [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use yugodb::pager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::schema::*` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use yugodb::schema::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::table::*` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use yugodb::table::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yugodb::types::RelationalType` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use yugodb::types::RelationalType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_query` is never used [INFO] [stdout] --> src/main.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn handle_query(query_str: String, dbms: &mut DBMS) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | handle_query(seq2.to_string().repeat(1000), &mut dbms); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 130 | let _ = handle_query(seq2.to_string().repeat(1000), &mut dbms); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.18s [INFO] running `Command { std: "docker" "inspect" "db9e978d965806d7a292371b4700008a7a3fe9b0a864d02100d107db8b983112", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db9e978d965806d7a292371b4700008a7a3fe9b0a864d02100d107db8b983112", kill_on_drop: false }` [INFO] [stdout] db9e978d965806d7a292371b4700008a7a3fe9b0a864d02100d107db8b983112 [INFO] checking owolabioromidayo/yugodb against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fowolabioromidayo%2Fyugodb" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/owolabioromidayo/yugodb on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/owolabioromidayo/yugodb [INFO] finished tweaking git repo https://github.com/owolabioromidayo/yugodb [INFO] tweaked toml for git repo https://github.com/owolabioromidayo/yugodb written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/owolabioromidayo/yugodb already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fe6365686228d61eed6859b4a644f9f26b8bf006c3fb20c0ec358b9f7f7ea4eb [INFO] running `Command { std: "docker" "start" "-a" "fe6365686228d61eed6859b4a644f9f26b8bf006c3fb20c0ec358b9f7f7ea4eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fe6365686228d61eed6859b4a644f9f26b8bf006c3fb20c0ec358b9f7f7ea4eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe6365686228d61eed6859b4a644f9f26b8bf006c3fb20c0ec358b9f7f7ea4eb", kill_on_drop: false }` [INFO] [stdout] fe6365686228d61eed6859b4a644f9f26b8bf006c3fb20c0ec358b9f7f7ea4eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ab038ee09ae0a8e369ce102ff37784c40463619ad436475f4aba1a433ee471a0 [INFO] running `Command { std: "docker" "start" "-a" "ab038ee09ae0a8e369ce102ff37784c40463619ad436475f4aba1a433ee471a0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling serde v1.0.198 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling rust_decimal v1.35.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking either v1.12.0 [INFO] [stderr] Checking l v0.1.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling rust_decimal_macros v1.34.2 [INFO] [stderr] Compiling serde_derive v1.0.198 [INFO] [stderr] Checking serde_bytes v0.11.14 [INFO] [stderr] Checking uuid v1.8.0 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking bson v2.10.0 [INFO] [stderr] Checking yugodb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DerefMut` and `Deref` [INFO] [stdout] --> src/pager.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | use std::ops::{Deref, DerefMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/btree.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::error::{Error, Result}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::borrow` [INFO] [stdout] --> src/table.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::borrow; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/table.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::*` [INFO] [stdout] --> src/table.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::*` [INFO] [stdout] --> src/table.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::btree::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bson` and `bson` [INFO] [stdout] --> src/table.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | use bson::{bson, Bson}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/database.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/database.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pager::Pager` [INFO] [stdout] --> src/database.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::pager::Pager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal_macros::dec` [INFO] [stdout] --> src/record.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rust_decimal_macros::dec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bson` and `bson` [INFO] [stdout] --> src/record.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use bson::{bson, Bson}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/lang/tokenizer.rs:278:15 [INFO] [stdout] | [INFO] [stdout] 278 | while (true) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 278 - while (true) { [INFO] [stdout] 278 + while true { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/lang/tokenizer.rs:278:9 [INFO] [stdout] | [INFO] [stdout] 278 | while (true) { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::tokenizer::*` [INFO] [stdout] --> src/lang/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::lang::tokenizer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal_macros::dec` [INFO] [stdout] --> src/lang/parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rust_decimal_macros::dec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lang/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/lang/ast.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/lang/ast.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lang/ast.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::tokenizer::*` [INFO] [stdout] --> src/lang/ast.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::lang::tokenizer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::parser::*` [INFO] [stdout] --> src/lang/ast.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::lang::parser::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/lang/ast.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::typechecker::*` [INFO] [stdout] --> src/lang/ast.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::lang::typechecker::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/ast.rs:149:20 [INFO] [stdout] | [INFO] [stdout] 149 | if (expr.methods.len() > 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 149 - if (expr.methods.len() > 1) { [INFO] [stdout] 149 + if expr.methods.len() > 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/ast.rs:169:49 [INFO] [stdout] | [INFO] [stdout] 169 | data : NodeData::Source((Source{source: Expr::DataCall((*expr).clone()) })), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 169 - data : NodeData::Source((Source{source: Expr::DataCall((*expr).clone()) })), [INFO] [stdout] 169 + data : NodeData::Source(Source{source: Expr::DataCall((*expr).clone()) }), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/ast.rs:187:47 [INFO] [stdout] | [INFO] [stdout] 187 | data : NodeData::Join((Join{dataexpr: (*expr).clone() })), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 187 - data : NodeData::Join((Join{dataexpr: (*expr).clone() })), [INFO] [stdout] 187 + data : NodeData::Join(Join{dataexpr: (*expr).clone() }), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/ast.rs:259:61 [INFO] [stdout] | [INFO] [stdout] 259 | ... data : NodeData::Projection((Projection{expr: x})), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 259 - data : NodeData::Projection((Projection{expr: x})), [INFO] [stdout] 259 + data : NodeData::Projection(Projection{expr: x}), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::database::Database` [INFO] [stdout] --> src/lang/typechecker.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::database::Database; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/lang/typechecker.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::types::*` [INFO] [stdout] --> src/lang/typechecker.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::lang::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lang/typechecker.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lang/interpreter.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/interpreter.rs:733:55 [INFO] [stdout] | [INFO] [stdout] 733 | ... return Err(Error::Unknown(("not a dbms call".to_string()))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 733 - return Err(Error::Unknown(("not a dbms call".to_string()))); [INFO] [stdout] 733 + return Err(Error::Unknown("not a dbms call".to_string())); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/interpreter.rs:742:41 [INFO] [stdout] | [INFO] [stdout] 742 | ... ("unresolvable argument error".to_string()), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 742 - ("unresolvable argument error".to_string()), [INFO] [stdout] 742 + "unresolvable argument error".to_string(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/interpreter.rs:1172:44 [INFO] [stdout] | [INFO] [stdout] 1172 | ... if (x.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1172 - if (x.len() == 0) { [INFO] [stdout] 1172 + if x.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/interpreter.rs:1183:44 [INFO] [stdout] | [INFO] [stdout] 1183 | ... if (x.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1183 - if (x.len() == 0) { [INFO] [stdout] 1183 + if x.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/interpreter.rs:1194:44 [INFO] [stdout] | [INFO] [stdout] 1194 | ... if (x.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1194 - if (x.len() == 0) { [INFO] [stdout] 1194 + if x.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/record_iterator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/record_iterator.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pager::*` [INFO] [stdout] --> src/record_iterator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::pager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::table::*` [INFO] [stdout] --> src/record_iterator.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::table::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::*` [INFO] [stdout] --> src/record_iterator.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/record_iterator.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | if (self.progress >= predicate.limit.unwrap() - predicate.offset.unwrap()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 146 - if (self.progress >= predicate.limit.unwrap() - predicate.offset.unwrap()) { [INFO] [stdout] 146 + if self.progress >= predicate.limit.unwrap() - predicate.offset.unwrap() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::record::*` [INFO] [stdout] --> src/schema.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::record::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::*` [INFO] [stdout] --> src/dbms.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::btree::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/dbms.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::ast::*` [INFO] [stdout] --> src/dbms.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::lang::ast::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::interpreter::*` [INFO] [stdout] --> src/dbms.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::lang::interpreter::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::parser::*` [INFO] [stdout] --> src/dbms.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::lang::parser::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::tokenizer::*` [INFO] [stdout] --> src/dbms.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::lang::tokenizer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::types::*` [INFO] [stdout] --> src/dbms.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::lang::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pager::*` [INFO] [stdout] --> src/dbms.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::pager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::record::*` [INFO] [stdout] --> src/dbms.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::record::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::*` [INFO] [stdout] --> src/dbms.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::schema::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut` and `Deref` [INFO] [stdout] --> src/pager.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | use std::ops::{Deref, DerefMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/btree.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::error::{Error, Result}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::borrow` [INFO] [stdout] --> src/table.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::borrow; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/table.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::*` [INFO] [stdout] --> src/table.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::*` [INFO] [stdout] --> src/table.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::btree::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bson` and `bson` [INFO] [stdout] --> src/table.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | use bson::{bson, Bson}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/database.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/database.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pager::Pager` [INFO] [stdout] --> src/database.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::pager::Pager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bson` and `bson` [INFO] [stdout] --> src/record.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use bson::{bson, Bson}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/lang/tokenizer.rs:278:15 [INFO] [stdout] | [INFO] [stdout] 278 | while (true) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 278 - while (true) { [INFO] [stdout] 278 + while true { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/lang/tokenizer.rs:278:9 [INFO] [stdout] | [INFO] [stdout] 278 | while (true) { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal_macros::dec` [INFO] [stdout] --> src/lang/parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rust_decimal_macros::dec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lang/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/lang/ast.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/lang/ast.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lang/ast.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/lang/ast.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::typechecker::*` [INFO] [stdout] --> src/lang/ast.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::lang::typechecker::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/ast.rs:149:20 [INFO] [stdout] | [INFO] [stdout] 149 | if (expr.methods.len() > 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 149 - if (expr.methods.len() > 1) { [INFO] [stdout] 149 + if expr.methods.len() > 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/ast.rs:169:49 [INFO] [stdout] | [INFO] [stdout] 169 | data : NodeData::Source((Source{source: Expr::DataCall((*expr).clone()) })), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 169 - data : NodeData::Source((Source{source: Expr::DataCall((*expr).clone()) })), [INFO] [stdout] 169 + data : NodeData::Source(Source{source: Expr::DataCall((*expr).clone()) }), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/ast.rs:187:47 [INFO] [stdout] | [INFO] [stdout] 187 | data : NodeData::Join((Join{dataexpr: (*expr).clone() })), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 187 - data : NodeData::Join((Join{dataexpr: (*expr).clone() })), [INFO] [stdout] 187 + data : NodeData::Join(Join{dataexpr: (*expr).clone() }), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/ast.rs:259:61 [INFO] [stdout] | [INFO] [stdout] 259 | ... data : NodeData::Projection((Projection{expr: x})), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 259 - data : NodeData::Projection((Projection{expr: x})), [INFO] [stdout] 259 + data : NodeData::Projection(Projection{expr: x}), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::database::Database` [INFO] [stdout] --> src/lang/typechecker.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::database::Database; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/lang/typechecker.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::types::*` [INFO] [stdout] --> src/lang/typechecker.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::lang::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lang/typechecker.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lang/interpreter.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/interpreter.rs:733:55 [INFO] [stdout] | [INFO] [stdout] 733 | ... return Err(Error::Unknown(("not a dbms call".to_string()))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 733 - return Err(Error::Unknown(("not a dbms call".to_string()))); [INFO] [stdout] 733 + return Err(Error::Unknown("not a dbms call".to_string())); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lang/interpreter.rs:742:41 [INFO] [stdout] | [INFO] [stdout] 742 | ... ("unresolvable argument error".to_string()), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 742 - ("unresolvable argument error".to_string()), [INFO] [stdout] 742 + "unresolvable argument error".to_string(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/interpreter.rs:1172:44 [INFO] [stdout] | [INFO] [stdout] 1172 | ... if (x.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1172 - if (x.len() == 0) { [INFO] [stdout] 1172 + if x.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/interpreter.rs:1183:44 [INFO] [stdout] | [INFO] [stdout] 1183 | ... if (x.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1183 - if (x.len() == 0) { [INFO] [stdout] 1183 + if x.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lang/interpreter.rs:1194:44 [INFO] [stdout] | [INFO] [stdout] 1194 | ... if (x.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1194 - if (x.len() == 0) { [INFO] [stdout] 1194 + if x.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/record_iterator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/record_iterator.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pager::*` [INFO] [stdout] --> src/record_iterator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::pager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::table::*` [INFO] [stdout] --> src/record_iterator.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::table::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::*` [INFO] [stdout] --> src/record_iterator.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/record_iterator.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | if (self.progress >= predicate.limit.unwrap() - predicate.offset.unwrap()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 146 - if (self.progress >= predicate.limit.unwrap() - predicate.offset.unwrap()) { [INFO] [stdout] 146 + if self.progress >= predicate.limit.unwrap() - predicate.offset.unwrap() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::record::*` [INFO] [stdout] --> src/schema.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::record::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree::*` [INFO] [stdout] --> src/dbms.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::btree::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::*` [INFO] [stdout] --> src/dbms.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::error::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::ast::*` [INFO] [stdout] --> src/dbms.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::lang::ast::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::interpreter::*` [INFO] [stdout] --> src/dbms.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::lang::interpreter::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::parser::*` [INFO] [stdout] --> src/dbms.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::lang::parser::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::tokenizer::*` [INFO] [stdout] --> src/dbms.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::lang::tokenizer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lang::types::*` [INFO] [stdout] --> src/dbms.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::lang::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pager::*` [INFO] [stdout] --> src/dbms.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::pager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::record::*` [INFO] [stdout] --> src/dbms.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::record::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::*` [INFO] [stdout] --> src/dbms.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::schema::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/lang/interpreter.rs:969:37 [INFO] [stdout] | [INFO] [stdout] 939 | / ... match &table._type { [INFO] [stdout] 940 | | ... TableType::Document => { [INFO] [stdout] 941 | | ... match parse_json_to_document_record(record_str.as_str()) [INFO] [stdout] 942 | | ... { [INFO] [stdout] ... | [INFO] [stdout] 966 | | ... } [INFO] [stdout] 967 | | ... } [INFO] [stdout] | |_______________________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 968 | ... [INFO] [stdout] 969 | ... Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/table.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/table.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/table.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/lang/interpreter.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree` [INFO] [stdout] --> src/lang/interpreter.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::btree::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/error.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | Ok(_) => unreachable!("Infallible can never be constructed"), [INFO] [stdout] | ^^^^^ matches no values because `Infallible` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/lang/interpreter.rs:969:37 [INFO] [stdout] | [INFO] [stdout] 939 | / ... match &table._type { [INFO] [stdout] 940 | | ... TableType::Document => { [INFO] [stdout] 941 | | ... match parse_json_to_document_record(record_str.as_str()) [INFO] [stdout] 942 | | ... { [INFO] [stdout] ... | [INFO] [stdout] 966 | | ... } [INFO] [stdout] 967 | | ... } [INFO] [stdout] | |_______________________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 968 | ... [INFO] [stdout] 969 | ... Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/btree.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | for i in 0..32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/btree.rs:246:14 [INFO] [stdout] | [INFO] [stdout] 246 | for (id, k) in self.children.iter().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/lang/interpreter.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/table.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/table.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/table.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::btree` [INFO] [stdout] --> src/lang/interpreter.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::btree::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/table.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | let mut curr_page = pager.get_page_or_force(self.curr_page_id)?; [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: unused variable: `pager` [INFO] [stdout] --> src/table.rs:208:33 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn insert_document_rows(pager: &Pager, rows: Vec) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rows` [INFO] [stdout] --> src/table.rs:208:48 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn insert_document_rows(pager: &Pager, rows: Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/table.rs:217:19 [INFO] [stdout] | [INFO] [stdout] 217 | if let Ok(mut pager) = Rc::clone(&self.pager).try_borrow_mut() { [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/table.rs:258:19 [INFO] [stdout] | [INFO] [stdout] 258 | if let Ok(mut pager) = Rc::clone(&self.pager).try_borrow_mut() { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/error.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | Ok(_) => unreachable!("Infallible can never be constructed"), [INFO] [stdout] | ^^^^^ matches no values because `Infallible` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/record.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | if let a = self.fields.get(key).unwrap() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/record.rs:92:38 [INFO] [stdout] | [INFO] [stdout] 92 | DocumentValue::Array(x) => None, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/record.rs:93:39 [INFO] [stdout] | [INFO] [stdout] 93 | DocumentValue::Object(x) => None, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/btree.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | for i in 0..32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nullable` [INFO] [stdout] --> src/record.rs:266:25 [INFO] [stdout] | [INFO] [stdout] 266 | let (dtype, nullable) = schema.get(name).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nullable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/btree.rs:246:14 [INFO] [stdout] | [INFO] [stdout] 246 | for (id, k) in self.children.iter().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/record.rs:431:21 [INFO] [stdout] | [INFO] [stdout] 431 | Err(x) => return Ok(Self { records }), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/table.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | let mut curr_page = pager.get_page_or_force(self.curr_page_id)?; [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: unused variable: `pager` [INFO] [stdout] --> src/table.rs:208:33 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn insert_document_rows(pager: &Pager, rows: Vec) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rows` [INFO] [stdout] --> src/table.rs:208:48 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn insert_document_rows(pager: &Pager, rows: Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/table.rs:217:19 [INFO] [stdout] | [INFO] [stdout] 217 | if let Ok(mut pager) = Rc::clone(&self.pager).try_borrow_mut() { [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/table.rs:258:19 [INFO] [stdout] | [INFO] [stdout] 258 | if let Ok(mut pager) = Rc::clone(&self.pager).try_borrow_mut() { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:498:17 [INFO] [stdout] | [INFO] [stdout] 498 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:505:17 [INFO] [stdout] | [INFO] [stdout] 505 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/record.rs:591:29 [INFO] [stdout] | [INFO] [stdout] 591 | pub fn get_value(&self, key: &str) -> &RelationalValue { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/record.rs:597:24 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn deserialize(bytes: &[u8], schema: &RelationalSchema) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `schema` [INFO] [stdout] --> src/record.rs:597:38 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn deserialize(bytes: &[u8], schema: &RelationalSchema) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `schema` [INFO] [stdout] --> src/record.rs:601:29 [INFO] [stdout] | [INFO] [stdout] 601 | pub fn serialize(&self, schema: &RelationalSchema) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `methods` [INFO] [stdout] --> src/lang/tokenizer.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let methods = vec![ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_methods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/record.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | if let a = self.fields.get(key).unwrap() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/record.rs:92:38 [INFO] [stdout] | [INFO] [stdout] 92 | DocumentValue::Array(x) => None, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/record.rs:93:39 [INFO] [stdout] | [INFO] [stdout] 93 | DocumentValue::Object(x) => None, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nullable` [INFO] [stdout] --> src/record.rs:266:25 [INFO] [stdout] | [INFO] [stdout] 266 | let (dtype, nullable) = schema.get(name).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nullable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/record.rs:431:21 [INFO] [stdout] | [INFO] [stdout] 431 | Err(x) => return Ok(Self { records }), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:498:17 [INFO] [stdout] | [INFO] [stdout] 498 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/record.rs:505:17 [INFO] [stdout] | [INFO] [stdout] 505 | Err(err) => return Err(Error::SerializationError), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/record.rs:591:29 [INFO] [stdout] | [INFO] [stdout] 591 | pub fn get_value(&self, key: &str) -> &RelationalValue { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/record.rs:597:24 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn deserialize(bytes: &[u8], schema: &RelationalSchema) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `schema` [INFO] [stdout] --> src/record.rs:597:38 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn deserialize(bytes: &[u8], schema: &RelationalSchema) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `schema` [INFO] [stdout] --> src/record.rs:601:29 [INFO] [stdout] | [INFO] [stdout] 601 | pub fn serialize(&self, schema: &RelationalSchema) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_node` [INFO] [stdout] --> src/lang/ast.rs:178:21 [INFO] [stdout] | [INFO] [stdout] 178 | let left_node: Option = self.generate_from_expr(expr.left.as_ref()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right_node` [INFO] [stdout] --> src/lang/ast.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | let right_node= self.generate_from_expr(expr.right.as_ref()); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_right_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lang/interpreter.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | Expr::Attribute(y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lang/interpreter.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut right = self.evaluate_lower(&expr.right)?; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `serialized` [INFO] [stdout] --> src/record.rs:970:13 [INFO] [stdout] | [INFO] [stdout] 970 | let serialized = record.serialize(&schema); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_serialized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lang/interpreter.rs:258:13 [INFO] [stdout] | [INFO] [stdout] 258 | let mut right = self.evaluate_lower(&expr.right)?; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lang/interpreter.rs:301:28 [INFO] [stdout] | [INFO] [stdout] 301 | fn visit_assign(&self, expr: &Assign) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lang/interpreter.rs:308:30 [INFO] [stdout] | [INFO] [stdout] 308 | fn visit_variable(&self, expr: &Variable) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `db_name` is never read [INFO] [stdout] --> src/lang/interpreter.rs:367:17 [INFO] [stdout] | [INFO] [stdout] 367 | let mut db_name = String::new(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `table_name` is never read [INFO] [stdout] --> src/lang/interpreter.rs:368:17 [INFO] [stdout] | [INFO] [stdout] 368 | let mut table_name = String::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tok` [INFO] [stdout] --> src/lang/interpreter.rs:386:13 [INFO] [stdout] | [INFO] [stdout] 386 | tok => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lang/interpreter.rs:397:25 [INFO] [stdout] | [INFO] [stdout] 397 | let mut pred = self.generate_predicate(&expr.methods, &expr.arguments)?; [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/lang/interpreter.rs:399:25 [INFO] [stdout] | [INFO] [stdout] 399 | let mut k_static = Box::leak(Box::new(k.clone())); [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/lang/interpreter.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | let mut pred = Box::leak(Box::new( [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/lang/interpreter.rs:427:13 [INFO] [stdout] | [INFO] [stdout] 427 | let mut y = RefCell::new(RecordIterator::new(DEFAULT_CHUNK_SIZE, db_name, table_name)); [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/lang/interpreter.rs:430:13 [INFO] [stdout] | [INFO] [stdout] 430 | let mut y_static = Box::leak(Box::new(y)); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lang/interpreter.rs:529:58 [INFO] [stdout] | [INFO] [stdout] 529 | ... (Records::RelationalRows(x), Records::DocumentRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lang/interpreter.rs:529:84 [INFO] [stdout] | [INFO] [stdout] 529 | ... (Records::RelationalRows(x), Records::DocumentRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lang/interpreter.rs:533:58 [INFO] [stdout] | [INFO] [stdout] 533 | ... (Records::RelationalRows(x), Records::RelationalRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lang/interpreter.rs:533:86 [INFO] [stdout] | [INFO] [stdout] 533 | ... (Records::RelationalRows(x), Records::RelationalRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `methods` [INFO] [stdout] --> src/lang/tokenizer.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let methods = vec![ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_methods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lang/interpreter.rs:563:36 [INFO] [stdout] | [INFO] [stdout] 563 | fn visit_print_stmt(&mut self, stmt: &PrintStmt) -> () { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lang/interpreter.rs:575:34 [INFO] [stdout] | [INFO] [stdout] 575 | fn visit_var_stmt(&mut self, stmt: &VarStmt) -> () { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/lang/interpreter.rs:740:37 [INFO] [stdout] | [INFO] [stdout] 740 | ... Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tok` [INFO] [stdout] --> src/lang/interpreter.rs:983:21 [INFO] [stdout] | [INFO] [stdout] 983 | tok => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lang/interpreter.rs:796:41 [INFO] [stdout] | [INFO] [stdout] 796 | ... let mut db = match dbms.databases.get_mut(db_name) { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lang/interpreter.rs:1059:25 [INFO] [stdout] | [INFO] [stdout] 1059 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/lang/interpreter.rs:1059:25 [INFO] [stdout] | [INFO] [stdout] 1044 | NodeData::Source(x) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1047 | NodeData::Join(x) => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1051 | NodeData::Projection(x) => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1056 | NodeData::Variable(x) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1059 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lang/interpreter.rs:1056:44 [INFO] [stdout] | [INFO] [stdout] 1056 | NodeData::Variable(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/record_iterator.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut n = RecordIterator { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> src/lang/parser.rs:871:13 [INFO] [stdout] | [INFO] [stdout] 871 | let expected = DocumentRecord { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `taken` is never read [INFO] [stdout] --> src/pager.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct Page { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 51 | taken: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Page` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pager.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 114 | impl FileInfo { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 115 | fn new() -> FileInfo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `delete_page` is never used [INFO] [stdout] --> src/pager.rs:316:8 [INFO] [stdout] | [INFO] [stdout] 124 | impl Pager { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 316 | fn delete_page(&mut self, page: Page) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_page` is never used [INFO] [stdout] --> src/pager.rs:393:8 [INFO] [stdout] | [INFO] [stdout] 384 | impl PageCache { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 393 | fn has_page(&mut self, page_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FromResidual` is never used [INFO] [stdout] --> src/error.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | trait FromResidual { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `next_node` is never read [INFO] [stdout] --> src/btree.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct BPTreeLeafNode { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 44 | values: HashMap, [INFO] [stdout] 45 | next_node: Option>>, // LList [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BPTreeLeafNode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_token` is never used [INFO] [stdout] --> src/lang/ast.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl JoinType{ [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 28 | fn from_token(token: &Token) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `eval` is never read [INFO] [stdout] --> src/lang/interpreter.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct PredicateClosure { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 93 | // what happens if its only one record, we create another func, this seems brittle [INFO] [stdout] 94 | eval: Box bool>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lang/parser.rs:228:19 [INFO] [stdout] | [INFO] [stdout] 219 | let initializer = if self.match_token(TokenType::Equal) { [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 228 | Stmt::Var(VarStmt { name, initializer }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lang/parser.rs:235:26 [INFO] [stdout] | [INFO] [stdout] 232 | let left = self.data_expr(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 235 | Stmt::Expression(ExprStmt { expression: left }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lang/interpreter.rs:432:12 [INFO] [stdout] | [INFO] [stdout] 432 | Ok(IterClosure { [INFO] [stdout] | ____________^ [INFO] [stdout] 433 | | get_next_chunk: Rc::new(|dbms, hpred| { [INFO] [stdout] 434 | | ((*y_static).borrow_mut()).get_next_chunk(dbms, &pred.add_ret(&hpred)) [INFO] [stdout] 435 | | }), [INFO] [stdout] 436 | | pred: pred.clone(), [INFO] [stdout] 437 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lang/interpreter.rs:592:24 [INFO] [stdout] | [INFO] [stdout] 589 | pub fn new(stmts: Vec) -> Self { [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 592 | variables: HashMap::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_node` [INFO] [stdout] --> src/lang/ast.rs:178:21 [INFO] [stdout] | [INFO] [stdout] 178 | let left_node: Option = self.generate_from_expr(expr.left.as_ref()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right_node` [INFO] [stdout] --> src/lang/ast.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | let right_node= self.generate_from_expr(expr.right.as_ref()); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_right_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lang/interpreter.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | Expr::Attribute(y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 120 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lang/interpreter.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut right = self.evaluate_lower(&expr.right)?; [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/lang/interpreter.rs:258:13 [INFO] [stdout] | [INFO] [stdout] 258 | let mut right = self.evaluate_lower(&expr.right)?; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lang/interpreter.rs:301:28 [INFO] [stdout] | [INFO] [stdout] 301 | fn visit_assign(&self, expr: &Assign) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lang/interpreter.rs:308:30 [INFO] [stdout] | [INFO] [stdout] 308 | fn visit_variable(&self, expr: &Variable) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `db_name` is never read [INFO] [stdout] --> src/lang/interpreter.rs:367:17 [INFO] [stdout] | [INFO] [stdout] 367 | let mut db_name = String::new(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `table_name` is never read [INFO] [stdout] --> src/lang/interpreter.rs:368:17 [INFO] [stdout] | [INFO] [stdout] 368 | let mut table_name = String::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tok` [INFO] [stdout] --> src/lang/interpreter.rs:386:13 [INFO] [stdout] | [INFO] [stdout] 386 | tok => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lang/interpreter.rs:397:25 [INFO] [stdout] | [INFO] [stdout] 397 | let mut pred = self.generate_predicate(&expr.methods, &expr.arguments)?; [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/lang/interpreter.rs:399:25 [INFO] [stdout] | [INFO] [stdout] 399 | let mut k_static = Box::leak(Box::new(k.clone())); [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/lang/interpreter.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | let mut pred = Box::leak(Box::new( [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/lang/interpreter.rs:427:13 [INFO] [stdout] | [INFO] [stdout] 427 | let mut y = RefCell::new(RecordIterator::new(DEFAULT_CHUNK_SIZE, db_name, table_name)); [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/lang/interpreter.rs:430:13 [INFO] [stdout] | [INFO] [stdout] 430 | let mut y_static = Box::leak(Box::new(y)); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lang/interpreter.rs:529:58 [INFO] [stdout] | [INFO] [stdout] 529 | ... (Records::RelationalRows(x), Records::DocumentRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lang/interpreter.rs:529:84 [INFO] [stdout] | [INFO] [stdout] 529 | ... (Records::RelationalRows(x), Records::DocumentRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lang/interpreter.rs:533:58 [INFO] [stdout] | [INFO] [stdout] 533 | ... (Records::RelationalRows(x), Records::RelationalRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lang/interpreter.rs:533:86 [INFO] [stdout] | [INFO] [stdout] 533 | ... (Records::RelationalRows(x), Records::RelationalRows(y)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `yugodb` (lib) due to 5 previous errors; 120 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lang/interpreter.rs:563:36 [INFO] [stdout] | [INFO] [stdout] 563 | fn visit_print_stmt(&mut self, stmt: &PrintStmt) -> () { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lang/interpreter.rs:575:34 [INFO] [stdout] | [INFO] [stdout] 575 | fn visit_var_stmt(&mut self, stmt: &VarStmt) -> () { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/lang/interpreter.rs:740:37 [INFO] [stdout] | [INFO] [stdout] 740 | ... Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tok` [INFO] [stdout] --> src/lang/interpreter.rs:983:21 [INFO] [stdout] | [INFO] [stdout] 983 | tok => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lang/interpreter.rs:796:41 [INFO] [stdout] | [INFO] [stdout] 796 | ... let mut db = match dbms.databases.get_mut(db_name) { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lang/interpreter.rs:1059:25 [INFO] [stdout] | [INFO] [stdout] 1059 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/lang/interpreter.rs:1059:25 [INFO] [stdout] | [INFO] [stdout] 1044 | NodeData::Source(x) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1047 | NodeData::Join(x) => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1051 | NodeData::Projection(x) => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1056 | NodeData::Variable(x) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1059 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lang/interpreter.rs:1056:44 [INFO] [stdout] | [INFO] [stdout] 1056 | NodeData::Variable(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/record_iterator.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut n = RecordIterator { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `taken` is never read [INFO] [stdout] --> src/pager.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct Page { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 51 | taken: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Page` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pager.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 114 | impl FileInfo { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 115 | fn new() -> FileInfo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_page` is never used [INFO] [stdout] --> src/pager.rs:393:8 [INFO] [stdout] | [INFO] [stdout] 384 | impl PageCache { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 393 | fn has_page(&mut self, page_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FromResidual` is never used [INFO] [stdout] --> src/error.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | trait FromResidual { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `next_node` is never read [INFO] [stdout] --> src/btree.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct BPTreeLeafNode { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 44 | values: HashMap, [INFO] [stdout] 45 | next_node: Option>>, // LList [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BPTreeLeafNode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_token` is never used [INFO] [stdout] --> src/lang/ast.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl JoinType{ [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 28 | fn from_token(token: &Token) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `eval` is never read [INFO] [stdout] --> src/lang/interpreter.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct PredicateClosure { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 93 | // what happens if its only one record, we create another func, this seems brittle [INFO] [stdout] 94 | eval: Box bool>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lang/parser.rs:228:19 [INFO] [stdout] | [INFO] [stdout] 219 | let initializer = if self.match_token(TokenType::Equal) { [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 228 | Stmt::Var(VarStmt { name, initializer }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lang/parser.rs:235:26 [INFO] [stdout] | [INFO] [stdout] 232 | let left = self.data_expr(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 235 | Stmt::Expression(ExprStmt { expression: left }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lang/interpreter.rs:432:12 [INFO] [stdout] | [INFO] [stdout] 432 | Ok(IterClosure { [INFO] [stdout] | ____________^ [INFO] [stdout] 433 | | get_next_chunk: Rc::new(|dbms, hpred| { [INFO] [stdout] 434 | | ((*y_static).borrow_mut()).get_next_chunk(dbms, &pred.add_ret(&hpred)) [INFO] [stdout] 435 | | }), [INFO] [stdout] 436 | | pred: pred.clone(), [INFO] [stdout] 437 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lang/interpreter.rs:592:24 [INFO] [stdout] | [INFO] [stdout] 589 | pub fn new(stmts: Vec) -> Self { [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 592 | variables: HashMap::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 117 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `yugodb` (lib test) due to 5 previous errors; 117 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ab038ee09ae0a8e369ce102ff37784c40463619ad436475f4aba1a433ee471a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab038ee09ae0a8e369ce102ff37784c40463619ad436475f4aba1a433ee471a0", kill_on_drop: false }` [INFO] [stdout] ab038ee09ae0a8e369ce102ff37784c40463619ad436475f4aba1a433ee471a0