[INFO] cloning repository https://github.com/mirseo/MirseoDB [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mirseo/MirseoDB" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmirseo%2FMirseoDB", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmirseo%2FMirseoDB'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4164a6fbe6702f187484bd790581e88bdf440aec [INFO] checking mirseo/MirseoDB against try#0c70cfbec949d241375e31c5a42066be70c720fc for pr-149681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmirseo%2FMirseoDB" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mirseo/MirseoDB [INFO] finished tweaking git repo https://github.com/mirseo/MirseoDB [INFO] tweaked toml for git repo https://github.com/mirseo/MirseoDB written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mirseo/MirseoDB on toolchain 0c70cfbec949d241375e31c5a42066be70c720fc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0c70cfbec949d241375e31c5a42066be70c720fc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mirseo/MirseoDB 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" "+0c70cfbec949d241375e31c5a42066be70c720fc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0c70cfbec949d241375e31c5a42066be70c720fc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 780414e04cd313bdac471c41d09b1bb20e7154be5beb06e01d8f88a640e2e65f [INFO] running `Command { std: "docker" "start" "-a" "780414e04cd313bdac471c41d09b1bb20e7154be5beb06e01d8f88a640e2e65f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "780414e04cd313bdac471c41d09b1bb20e7154be5beb06e01d8f88a640e2e65f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "780414e04cd313bdac471c41d09b1bb20e7154be5beb06e01d8f88a640e2e65f", kill_on_drop: false }` [INFO] [stdout] 780414e04cd313bdac471c41d09b1bb20e7154be5beb06e01d8f88a640e2e65f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0c70cfbec949d241375e31c5a42066be70c720fc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0710bc0a8d17052eb0e5a83d00727ab9d68d7abad2229d61606a83ebbedd8620 [INFO] running `Command { std: "docker" "start" "-a" "0710bc0a8d17052eb0e5a83d00727ab9d68d7abad2229d61606a83ebbedd8620", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling serde_core v1.0.227 [INFO] [stderr] Compiling serde v1.0.227 [INFO] [stderr] Checking bitflags v2.9.4 [INFO] [stderr] Checking deranged v0.5.4 [INFO] [stderr] Checking time-core v0.1.6 [INFO] [stderr] Checking nix v0.30.1 [INFO] [stderr] Checking ctrlc v3.5.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Compiling serde_derive v1.0.227 [INFO] [stderr] Checking mirseodb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ChunkedTableScanner` [INFO] [stdout] --> src/engine.rs:1:46 [INFO] [stdout] | [INFO] [stdout] 1 | use super::bloom_filter::{ColumnBloomFilter, ChunkedTableScanner, ScanStatistics}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/engine.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ComparisonOperator` [INFO] [stdout] --> src/indexing.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | use super::core_types::{DatabaseError, SqlValue, ComparisonOperator, WhereClause}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SeekFrom` and `Seek` [INFO] [stdout] --> src/persistence.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{Read, Seek, SeekFrom, Write}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ChunkedTableScanner` [INFO] [stdout] --> src/engine.rs:1:46 [INFO] [stdout] | [INFO] [stdout] 1 | use super::bloom_filter::{ColumnBloomFilter, ChunkedTableScanner, ScanStatistics}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/engine.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ComparisonOperator` [INFO] [stdout] --> src/indexing.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | use super::core_types::{DatabaseError, SqlValue, ComparisonOperator, WhereClause}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SeekFrom` and `Seek` [INFO] [stdout] --> src/persistence.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{Read, Seek, SeekFrom, Write}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operation` [INFO] [stdout] --> src/auth.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | let operation = extract_sql_operation(&sql_upper); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operation` [INFO] [stdout] --> src/auth.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | let operation = extract_sql_operation(&sql_upper); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `optimization_hint` [INFO] [stdout] --> src/engine.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | optimization_hint, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try ignoring the field: `optimization_hint: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `database_name` [INFO] [stdout] --> src/engine.rs:241:42 [INFO] [stdout] | [INFO] [stdout] 241 | SqlStatement::DropDatabase { database_name } => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `database_name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `optimization_hint` [INFO] [stdout] --> src/engine.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | optimization_hint, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try ignoring the field: `optimization_hint: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `database_name` [INFO] [stdout] --> src/engine.rs:241:42 [INFO] [stdout] | [INFO] [stdout] 241 | SqlStatement::DropDatabase { database_name } => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `database_name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `results` is never read [INFO] [stdout] --> src/engine.rs:729:27 [INFO] [stdout] | [INFO] [stdout] 729 | let mut results = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `results` is never read [INFO] [stdout] --> src/engine.rs:729:27 [INFO] [stdout] | [INFO] [stdout] 729 | let mut results = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_email` [INFO] [stdout] --> src/server.rs:1342:16 [INFO] [stdout] | [INFO] [stdout] 1342 | email: request_email, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_email` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_email` [INFO] [stdout] --> src/server.rs:1342:16 [INFO] [stdout] | [INFO] [stdout] 1342 | email: request_email, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_email` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `DetectedDialect` is more private than the item `KeywordHashMatcher::detect_dialect_optimized` [INFO] [stdout] --> src/smart_parser.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn detect_dialect_optimized(&self, sql_upper: &str) -> (DetectedDialect, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `KeywordHashMatcher::detect_dialect_optimized` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `DetectedDialect` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/smart_parser.rs:1070:1 [INFO] [stdout] | [INFO] [stdout] 1070 | enum DetectedDialect { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_user` and `is_permission_manager` are never used [INFO] [stdout] --> src/auth.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl AuthConfig { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn add_user(&mut self, email: String, role: String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn is_permission_manager(&self, email: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_with_params`, `false_positive_probability`, `is_empty`, `clear`, `size`, and `element_count` are never used [INFO] [stdout] --> src/bloom_filter.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl BloomFilter { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn new_with_params(size: usize, hash_functions: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn false_positive_probability(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn element_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_column_stats` and `rebuild_for_column` are never used [INFO] [stdout] --> src/bloom_filter.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl ColumnBloomFilter { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn get_column_stats(&self) -> Vec<(String, f64, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn rebuild_for_column(&mut self, column: &str, values: &[&SqlValue]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `adaptive_chunk_size` is never used [INFO] [stdout] --> src/bloom_filter.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 182 | impl ChunkedTableScanner { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn adaptive_chunk_size(&self, total_rows: usize, available_memory_mb: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/bloom_filter.rs:321:9 [INFO] [stdout] | [INFO] [stdout] 320 | pub struct ScanStatistics { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 321 | pub total_rows_scanned: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 322 | pub rows_skipped_by_bloom: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 323 | pub chunks_processed: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 324 | pub early_termination_triggered: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 325 | pub scan_time_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 326 | pub bloom_filter_hits: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 327 | pub bloom_filter_misses: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScanStatistics` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `bloom_filter_effectiveness`, and `print_summary` are never used [INFO] [stdout] --> src/bloom_filter.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 330 | impl ScanStatistics { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 331 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 343 | pub fn bloom_filter_effectiveness(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | pub fn print_summary(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ComplexSelect`, `CreateCompositeIndex`, and `DropIndex` are never constructed [INFO] [stdout] --> src/core_types.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum SqlStatement { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 64 | ComplexSelect { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | CreateCompositeIndex { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | DropIndex { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SqlStatement` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `column` and `direction` are never read [INFO] [stdout] --> src/core_types.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct OrderBy { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 105 | pub column: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 106 | pub direction: SortDirection, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderBy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Asc` and `Desc` are never constructed [INFO] [stdout] --> src/core_types.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub enum SortDirection { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 111 | Asc, [INFO] [stdout] | ^^^ [INFO] [stdout] 112 | Desc, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SortDirection` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `conditions` and `logical_operators` are never read [INFO] [stdout] --> src/core_types.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct ComplexWhereClause { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 166 | pub conditions: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 167 | pub logical_operators: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ComplexWhereClause` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `DetectedDialect` is more private than the item `KeywordHashMatcher::detect_dialect_optimized` [INFO] [stdout] --> src/smart_parser.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn detect_dialect_optimized(&self, sql_upper: &str) -> (DetectedDialect, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `KeywordHashMatcher::detect_dialect_optimized` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `DetectedDialect` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/smart_parser.rs:1070:1 [INFO] [stdout] | [INFO] [stdout] 1070 | enum DetectedDialect { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/core_types.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 171 | pub enum WhereCondition { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 172 | Simple(WhereClause), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 173 | Nested(ComplexWhereClause), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 174 | In { column: String, values: Vec }, [INFO] [stdout] | ^^ [INFO] [stdout] 175 | Between { column: String, start: SqlValue, end: SqlValue }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 176 | Like { column: String, pattern: String }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 177 | IsNull { column: String }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 178 | IsNotNull { column: String }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WhereCondition` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `And`, `Or`, and `Not` are never constructed [INFO] [stdout] --> src/core_types.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 182 | pub enum LogicalOperator { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 183 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 184 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] 185 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogicalOperator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hint_type` and `index_names` are never read [INFO] [stdout] --> src/core_types.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 189 | pub struct IndexHint { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 190 | pub hint_type: IndexHintType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 191 | pub index_names: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexHint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Use`, `Force`, and `Ignore` are never constructed [INFO] [stdout] --> src/core_types.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 195 | pub enum IndexHintType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 196 | Use, [INFO] [stdout] | ^^^ [INFO] [stdout] 197 | Force, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 198 | Ignore, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexHintType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/core_types.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 202 | pub struct QueryOptimizationHint { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 203 | pub index_hints: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 204 | pub force_index_scan: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 205 | pub disable_optimization: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 206 | pub max_rows: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 207 | pub enable_bloom_filter: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 208 | pub chunk_size: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 209 | pub early_termination: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryOptimizationHint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/core_types.rs:241:5 [INFO] [stdout] | [INFO] [stdout] 232 | pub enum DatabaseError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 241 | PermissionDenied(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 242 | IndexNotFound(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 243 | InvalidCredentials(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 244 | TwoFactorAuthRequired(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 245 | NetworkError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 246 | HttpError(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 247 | InvalidSqlSyntax(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 248 | SqlInjectionDetected, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 249 | QueryTooComplex, [INFO] [stdout] 250 | InvalidIndexHint(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DatabaseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `query_cache`, and `scan_statistics` are never read [INFO] [stdout] --> src/engine.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Database { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 14 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | query_cache: HashMap>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | scan_statistics: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `select_with_indexes`, `project_columns`, `get_cached_columns`, `clear_query_cache`, `get_cache_stats`, and `index_key_to_sql_value` are never used [INFO] [stdout] --> src/engine.rs:497:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl Database { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 497 | fn select_with_indexes( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 598 | fn project_columns(&self, row: &Row, columns: &[String]) -> Row { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 680 | pub fn get_cached_columns(&self, table_name: &str) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 684 | pub fn clear_query_cache(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 688 | pub fn get_cache_stats(&self) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 806 | fn index_key_to_sql_value(&self, key: &IndexKey) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexHint` is never constructed [INFO] [stdout] --> src/indexing.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct IndexHint { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IndexHintType` is never used [INFO] [stdout] --> src/indexing.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum IndexHintType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryPlan` is never constructed [INFO] [stdout] --> src/indexing.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct QueryPlan { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ScanType` is never used [INFO] [stdout] --> src/indexing.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | pub enum ScanType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/indexing.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl OrderedFloat { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 68 | pub fn value(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `prefix_match` is never used [INFO] [stdout] --> src/indexing.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 111 | impl CompositeKey { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn prefix_match(&self, prefix: &[IndexKey]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `find_exact`, `find_prefix`, `find_range_composite`, `remove`, and `size` are never used [INFO] [stdout] --> src/indexing.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 129 | impl CompositeIndex { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 130 | pub fn new(name: String, column_names: Vec, is_unique: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn find_exact(&self, values: &[&SqlValue]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn find_prefix(&self, prefix_values: &[&SqlValue]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub fn find_range_composite( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn remove(&mut self, values: &[&SqlValue], row_id: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove`, `find_range`, `find_greater_than`, `find_less_than`, `get_all_keys`, and `size` are never used [INFO] [stdout] --> src/indexing.rs:254:12 [INFO] [stdout] | [INFO] [stdout] 222 | impl BTreeIndex { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn remove(&mut self, key: &SqlValue, row_id: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | pub fn find_range(&self, start: Option<&SqlValue>, end: Option<&SqlValue>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn find_greater_than(&self, key: &SqlValue) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn find_less_than(&self, key: &SqlValue) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn get_all_keys(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `query_optimizer` is never read [INFO] [stdout] --> src/indexing.rs:337:5 [INFO] [stdout] | [INFO] [stdout] 334 | pub struct IndexManager { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 337 | query_optimizer: QueryOptimizer, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index_usage_stats` and `cost_model` are never read [INFO] [stdout] --> src/indexing.rs:342:5 [INFO] [stdout] | [INFO] [stdout] 341 | pub struct QueryOptimizer { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 342 | index_usage_stats: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 343 | cost_model: CostModel, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryOptimizer` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `access_count`, `selectivity`, and `last_used` are never read [INFO] [stdout] --> src/indexing.rs:348:9 [INFO] [stdout] | [INFO] [stdout] 347 | pub struct IndexUsageStats { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 348 | pub access_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 349 | pub selectivity: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 350 | pub last_used: std::time::Instant, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexUsageStats` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index_scan_cost`, `table_scan_cost`, `composite_index_cost`, and `intersection_cost` are never read [INFO] [stdout] --> src/indexing.rs:355:9 [INFO] [stdout] | [INFO] [stdout] 354 | pub struct CostModel { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 355 | pub index_scan_cost: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 356 | pub table_scan_cost: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 357 | pub composite_index_cost: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 358 | pub intersection_cost: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CostModel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `analyze_where_clauses`, `calculate_index_cost`, and `update_index_stats` are never used [INFO] [stdout] --> src/indexing.rs:374:12 [INFO] [stdout] | [INFO] [stdout] 361 | impl QueryOptimizer { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 374 | pub fn analyze_where_clauses(&self, where_clauses: &[WhereClause]) -> QueryPlan { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 408 | fn calculate_index_cost(&self, stats: &IndexUsageStats, clause_count: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 416 | pub fn update_index_stats(&mut self, index_name: &str, selectivity: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/indexing.rs:456:12 [INFO] [stdout] | [INFO] [stdout] 431 | impl IndexManager { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 456 | pub fn drop_index(&mut self, name: &str) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 467 | pub fn get_index(&self, name: &str) -> Option<&BTreeIndex> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | pub fn get_index_mut(&mut self, name: &str) -> Option<&mut BTreeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 475 | pub fn get_indexes_for_column(&self, column_name: &str) -> Vec<&BTreeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 486 | pub fn get_primary_key_index_mut(&mut self) -> Option<&mut BTreeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 505 | pub fn remove_from_indexes( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 529 | pub fn update_indexes( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 572 | pub fn create_composite_index( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 587 | pub fn get_composite_index(&self, name: &str) -> Option<&CompositeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 591 | pub fn get_composite_index_mut(&mut self, name: &str) -> Option<&mut CompositeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 595 | pub fn find_best_composite_index(&self, column_names: &[String]) -> Option<&CompositeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 618 | pub fn find_best_index_for_query(&self, column_name: &str) -> Option<&BTreeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 648 | pub fn optimize_multi_column_query( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 674 | fn apply_index_hint(&self, hint: &IndexHint, where_clauses: &[WhereClause]) -> QueryPlan { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 698 | fn estimate_composite_selectivity(&self, _composite_idx: &CompositeIndex, where_clauses: &[WhereClause]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 723 | pub fn get_query_optimizer_stats(&self) -> &HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 727 | pub fn reset_optimizer_stats(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 731 | pub fn list_indexes(&self) -> Vec<&BTreeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 735 | pub fn list_composite_indexes(&self) -> Vec<&CompositeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 739 | pub fn list_all_indexes(&self) -> (Vec<&BTreeIndex>, Vec<&CompositeIndex>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SqlDialect` is never used [INFO] [stdout] --> src/legacy_parser.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum SqlDialect { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/legacy_parser.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_user` and `is_permission_manager` are never used [INFO] [stdout] --> src/auth.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl AuthConfig { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn add_user(&mut self, email: String, role: String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn is_permission_manager(&self, email: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/legacy_parser.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Parser { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 19 | pub fn new(dialect: SqlDialect) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn parse(&self, sql: &str) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn parse_create(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn parse_create_database(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn parse_create_table(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | fn parse_insert(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn parse_select(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn parse_update(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | fn parse_delete(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | fn parse_where_clause(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | fn parse_comparison_operator(&self, op: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | fn parse_data_type(&self, type_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | fn parse_mssql_type(&self, type_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 371 | fn parse_maria_type(&self, type_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 380 | fn parse_oracle_type(&self, type_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 388 | fn parse_value(&self, value_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_with_params`, `false_positive_probability`, `is_empty`, `clear`, `size`, and `element_count` are never used [INFO] [stdout] --> src/bloom_filter.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl BloomFilter { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn new_with_params(size: usize, hash_functions: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn false_positive_probability(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn element_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `headers` and `is_forward_mode` are never read [INFO] [stdout] --> src/routing.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct ForwardResponse { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 66 | pub status_code: u16, [INFO] [stdout] 67 | pub headers: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 68 | pub body: String, [INFO] [stdout] 69 | pub is_forward_mode: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_column_stats` and `rebuild_for_column` are never used [INFO] [stdout] --> src/bloom_filter.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl ColumnBloomFilter { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn get_column_stats(&self) -> Vec<(String, f64, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn rebuild_for_column(&mut self, column: &str, values: &[&SqlValue]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `adaptive_chunk_size` is never used [INFO] [stdout] --> src/bloom_filter.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 182 | impl ChunkedTableScanner { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn adaptive_chunk_size(&self, total_rows: usize, available_memory_mb: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_forward_mode`, and `add_header` are never used [INFO] [stdout] --> src/routing.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl ForwardResponse { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 73 | pub fn new(status_code: u16, body: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn with_forward_mode(mut self, is_forward: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn add_header(mut self, key: String, value: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `confidence_score`, `preprocessing_time_ns`, and `timestamp` are never read [INFO] [stdout] --> src/smart_parser.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct CachedDialectResult { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 24 | dialect: DetectedDialect, [INFO] [stdout] 25 | confidence_score: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | preprocessing_time_ns: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | timestamp: std::time::Instant, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CachedDialectResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CachedSQLAnalysis` is never constructed [INFO] [stdout] --> src/smart_parser.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct CachedSQLAnalysis { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/bloom_filter.rs:321:9 [INFO] [stdout] | [INFO] [stdout] 320 | pub struct ScanStatistics { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 321 | pub total_rows_scanned: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 322 | pub rows_skipped_by_bloom: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 323 | pub chunks_processed: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 324 | pub early_termination_triggered: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 325 | pub scan_time_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 326 | pub bloom_filter_hits: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 327 | pub bloom_filter_misses: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScanStatistics` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dialect_accuracy` is never read [INFO] [stdout] --> src/smart_parser.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct PerformanceMetrics { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 54 | dialect_accuracy: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PerformanceMetrics` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `bloom_filter_effectiveness`, and `print_summary` are never used [INFO] [stdout] --> src/bloom_filter.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 330 | impl ScanStatistics { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 331 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 343 | pub fn bloom_filter_effectiveness(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | pub fn print_summary(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hit_rate` is never used [INFO] [stdout] --> src/smart_parser.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl DialectCache { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn hit_rate(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hyperthinking_enabled` and `keyword_patterns` are never read [INFO] [stdout] --> src/smart_parser.rs:215:5 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct AnySQL { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 215 | hyperthinking_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 216 | keyword_patterns: KeywordPatterns, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnySQL` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ComplexSelect`, `CreateCompositeIndex`, and `DropIndex` are never constructed [INFO] [stdout] --> src/core_types.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum SqlStatement { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 64 | ComplexSelect { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | CreateCompositeIndex { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | DropIndex { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SqlStatement` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `column` and `direction` are never read [INFO] [stdout] --> src/core_types.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct OrderBy { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 105 | pub column: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 106 | pub direction: SortDirection, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderBy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mssql_keywords`, `mysql_keywords`, `oracle_keywords`, and `standard_keywords` are never read [INFO] [stdout] --> src/smart_parser.rs:224:5 [INFO] [stdout] | [INFO] [stdout] 223 | struct KeywordPatterns { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 224 | mssql_keywords: Vec<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 225 | mysql_keywords: Vec<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 226 | oracle_keywords: Vec<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 227 | standard_keywords: Vec<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeywordPatterns` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Asc` and `Desc` are never constructed [INFO] [stdout] --> src/core_types.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub enum SortDirection { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 111 | Asc, [INFO] [stdout] | ^^^ [INFO] [stdout] 112 | Desc, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SortDirection` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_performance_metrics`, `get_cache_hit_rate`, and `clear_cache` are never used [INFO] [stdout] --> src/smart_parser.rs:1022:12 [INFO] [stdout] | [INFO] [stdout] 299 | impl AnySQL { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1022 | pub fn get_performance_metrics(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1030 | pub fn get_cache_hit_rate(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1038 | pub fn clear_cache(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `conditions` and `logical_operators` are never read [INFO] [stdout] --> src/core_types.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct ComplexWhereClause { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 166 | pub conditions: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 167 | pub logical_operators: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ComplexWhereClause` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `original_sql` and `tokens` are never read [INFO] [stdout] --> src/smart_parser.rs:1052:5 [INFO] [stdout] | [INFO] [stdout] 1049 | struct SQLAnalysis { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 1052 | original_sql: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 1053 | tokens: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SQLAnalysis` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_user` is never used [INFO] [stdout] --> src/two_factor_auth.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl TwoFactorAuth { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn has_user(&self, user_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/core_types.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 171 | pub enum WhereCondition { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 172 | Simple(WhereClause), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 173 | Nested(ComplexWhereClause), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 174 | In { column: String, values: Vec }, [INFO] [stdout] | ^^ [INFO] [stdout] 175 | Between { column: String, start: SqlValue, end: SqlValue }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 176 | Like { column: String, pattern: String }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 177 | IsNull { column: String }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 178 | IsNotNull { column: String }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WhereCondition` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `And`, `Or`, and `Not` are never constructed [INFO] [stdout] --> src/core_types.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 182 | pub enum LogicalOperator { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 183 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 184 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] 185 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogicalOperator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hint_type` and `index_names` are never read [INFO] [stdout] --> src/core_types.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 189 | pub struct IndexHint { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 190 | pub hint_type: IndexHintType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 191 | pub index_names: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexHint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Use`, `Force`, and `Ignore` are never constructed [INFO] [stdout] --> src/core_types.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 195 | pub enum IndexHintType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 196 | Use, [INFO] [stdout] | ^^^ [INFO] [stdout] 197 | Force, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 198 | Ignore, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexHintType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/core_types.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 202 | pub struct QueryOptimizationHint { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 203 | pub index_hints: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 204 | pub force_index_scan: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 205 | pub disable_optimization: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 206 | pub max_rows: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 207 | pub enable_bloom_filter: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 208 | pub chunk_size: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 209 | pub early_termination: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryOptimizationHint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/core_types.rs:241:5 [INFO] [stdout] | [INFO] [stdout] 232 | pub enum DatabaseError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 241 | PermissionDenied(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 242 | IndexNotFound(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 243 | InvalidCredentials(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 244 | TwoFactorAuthRequired(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 245 | NetworkError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 246 | HttpError(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 247 | InvalidSqlSyntax(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 248 | SqlInjectionDetected, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 249 | QueryTooComplex, [INFO] [stdout] 250 | InvalidIndexHint(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DatabaseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `query_cache`, and `scan_statistics` are never read [INFO] [stdout] --> src/engine.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Database { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 14 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | query_cache: HashMap>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | scan_statistics: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `select_with_indexes`, `project_columns`, `get_cached_columns`, `clear_query_cache`, `get_cache_stats`, and `index_key_to_sql_value` are never used [INFO] [stdout] --> src/engine.rs:497:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl Database { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 497 | fn select_with_indexes( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 598 | fn project_columns(&self, row: &Row, columns: &[String]) -> Row { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 680 | pub fn get_cached_columns(&self, table_name: &str) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 684 | pub fn clear_query_cache(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 688 | pub fn get_cache_stats(&self) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 806 | fn index_key_to_sql_value(&self, key: &IndexKey) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexHint` is never constructed [INFO] [stdout] --> src/indexing.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct IndexHint { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IndexHintType` is never used [INFO] [stdout] --> src/indexing.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum IndexHintType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryPlan` is never constructed [INFO] [stdout] --> src/indexing.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct QueryPlan { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ScanType` is never used [INFO] [stdout] --> src/indexing.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | pub enum ScanType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/indexing.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl OrderedFloat { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 68 | pub fn value(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `prefix_match` is never used [INFO] [stdout] --> src/indexing.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 111 | impl CompositeKey { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn prefix_match(&self, prefix: &[IndexKey]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `find_exact`, `find_prefix`, `find_range_composite`, `remove`, and `size` are never used [INFO] [stdout] --> src/indexing.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 129 | impl CompositeIndex { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 130 | pub fn new(name: String, column_names: Vec, is_unique: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn find_exact(&self, values: &[&SqlValue]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn find_prefix(&self, prefix_values: &[&SqlValue]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub fn find_range_composite( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn remove(&mut self, values: &[&SqlValue], row_id: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove`, `find_range`, `find_greater_than`, `find_less_than`, `get_all_keys`, and `size` are never used [INFO] [stdout] --> src/indexing.rs:254:12 [INFO] [stdout] | [INFO] [stdout] 222 | impl BTreeIndex { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn remove(&mut self, key: &SqlValue, row_id: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | pub fn find_range(&self, start: Option<&SqlValue>, end: Option<&SqlValue>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn find_greater_than(&self, key: &SqlValue) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn find_less_than(&self, key: &SqlValue) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn get_all_keys(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `query_optimizer` is never read [INFO] [stdout] --> src/indexing.rs:337:5 [INFO] [stdout] | [INFO] [stdout] 334 | pub struct IndexManager { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 337 | query_optimizer: QueryOptimizer, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index_usage_stats` and `cost_model` are never read [INFO] [stdout] --> src/indexing.rs:342:5 [INFO] [stdout] | [INFO] [stdout] 341 | pub struct QueryOptimizer { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 342 | index_usage_stats: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 343 | cost_model: CostModel, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryOptimizer` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `access_count`, `selectivity`, and `last_used` are never read [INFO] [stdout] --> src/indexing.rs:348:9 [INFO] [stdout] | [INFO] [stdout] 347 | pub struct IndexUsageStats { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 348 | pub access_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 349 | pub selectivity: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 350 | pub last_used: std::time::Instant, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexUsageStats` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index_scan_cost`, `table_scan_cost`, `composite_index_cost`, and `intersection_cost` are never read [INFO] [stdout] --> src/indexing.rs:355:9 [INFO] [stdout] | [INFO] [stdout] 354 | pub struct CostModel { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 355 | pub index_scan_cost: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 356 | pub table_scan_cost: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 357 | pub composite_index_cost: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 358 | pub intersection_cost: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CostModel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `analyze_where_clauses`, `calculate_index_cost`, and `update_index_stats` are never used [INFO] [stdout] --> src/indexing.rs:374:12 [INFO] [stdout] | [INFO] [stdout] 361 | impl QueryOptimizer { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 374 | pub fn analyze_where_clauses(&self, where_clauses: &[WhereClause]) -> QueryPlan { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 408 | fn calculate_index_cost(&self, stats: &IndexUsageStats, clause_count: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 416 | pub fn update_index_stats(&mut self, index_name: &str, selectivity: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/indexing.rs:456:12 [INFO] [stdout] | [INFO] [stdout] 431 | impl IndexManager { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 456 | pub fn drop_index(&mut self, name: &str) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 467 | pub fn get_index(&self, name: &str) -> Option<&BTreeIndex> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | pub fn get_index_mut(&mut self, name: &str) -> Option<&mut BTreeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 475 | pub fn get_indexes_for_column(&self, column_name: &str) -> Vec<&BTreeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 486 | pub fn get_primary_key_index_mut(&mut self) -> Option<&mut BTreeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 505 | pub fn remove_from_indexes( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 529 | pub fn update_indexes( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 572 | pub fn create_composite_index( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 587 | pub fn get_composite_index(&self, name: &str) -> Option<&CompositeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 591 | pub fn get_composite_index_mut(&mut self, name: &str) -> Option<&mut CompositeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 595 | pub fn find_best_composite_index(&self, column_names: &[String]) -> Option<&CompositeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 618 | pub fn find_best_index_for_query(&self, column_name: &str) -> Option<&BTreeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 648 | pub fn optimize_multi_column_query( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 674 | fn apply_index_hint(&self, hint: &IndexHint, where_clauses: &[WhereClause]) -> QueryPlan { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 698 | fn estimate_composite_selectivity(&self, _composite_idx: &CompositeIndex, where_clauses: &[WhereClause]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 723 | pub fn get_query_optimizer_stats(&self) -> &HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 727 | pub fn reset_optimizer_stats(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 731 | pub fn list_indexes(&self) -> Vec<&BTreeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 735 | pub fn list_composite_indexes(&self) -> Vec<&CompositeIndex> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 739 | pub fn list_all_indexes(&self) -> (Vec<&BTreeIndex>, Vec<&CompositeIndex>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SqlDialect` is never used [INFO] [stdout] --> src/legacy_parser.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum SqlDialect { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/legacy_parser.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/legacy_parser.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Parser { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 19 | pub fn new(dialect: SqlDialect) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn parse(&self, sql: &str) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn parse_create(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn parse_create_database(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn parse_create_table(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | fn parse_insert(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn parse_select(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn parse_update(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | fn parse_delete(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | fn parse_where_clause(&self, tokens: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | fn parse_comparison_operator(&self, op: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | fn parse_data_type(&self, type_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | fn parse_mssql_type(&self, type_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 371 | fn parse_maria_type(&self, type_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 380 | fn parse_oracle_type(&self, type_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 388 | fn parse_value(&self, value_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `headers` and `is_forward_mode` are never read [INFO] [stdout] --> src/routing.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct ForwardResponse { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 66 | pub status_code: u16, [INFO] [stdout] 67 | pub headers: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 68 | pub body: String, [INFO] [stdout] 69 | pub is_forward_mode: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_forward_mode`, and `add_header` are never used [INFO] [stdout] --> src/routing.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl ForwardResponse { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 73 | pub fn new(status_code: u16, body: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn with_forward_mode(mut self, is_forward: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn add_header(mut self, key: String, value: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `confidence_score`, `preprocessing_time_ns`, and `timestamp` are never read [INFO] [stdout] --> src/smart_parser.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct CachedDialectResult { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 24 | dialect: DetectedDialect, [INFO] [stdout] 25 | confidence_score: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | preprocessing_time_ns: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | timestamp: std::time::Instant, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CachedDialectResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CachedSQLAnalysis` is never constructed [INFO] [stdout] --> src/smart_parser.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct CachedSQLAnalysis { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dialect_accuracy` is never read [INFO] [stdout] --> src/smart_parser.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct PerformanceMetrics { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 54 | dialect_accuracy: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PerformanceMetrics` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hit_rate` is never used [INFO] [stdout] --> src/smart_parser.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl DialectCache { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn hit_rate(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hyperthinking_enabled` and `keyword_patterns` are never read [INFO] [stdout] --> src/smart_parser.rs:215:5 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct AnySQL { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 215 | hyperthinking_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 216 | keyword_patterns: KeywordPatterns, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnySQL` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mssql_keywords`, `mysql_keywords`, `oracle_keywords`, and `standard_keywords` are never read [INFO] [stdout] --> src/smart_parser.rs:224:5 [INFO] [stdout] | [INFO] [stdout] 223 | struct KeywordPatterns { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 224 | mssql_keywords: Vec<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 225 | mysql_keywords: Vec<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 226 | oracle_keywords: Vec<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 227 | standard_keywords: Vec<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeywordPatterns` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_performance_metrics`, `get_cache_hit_rate`, and `clear_cache` are never used [INFO] [stdout] --> src/smart_parser.rs:1022:12 [INFO] [stdout] | [INFO] [stdout] 299 | impl AnySQL { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1022 | pub fn get_performance_metrics(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1030 | pub fn get_cache_hit_rate(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1038 | pub fn clear_cache(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `original_sql` and `tokens` are never read [INFO] [stdout] --> src/smart_parser.rs:1052:5 [INFO] [stdout] | [INFO] [stdout] 1049 | struct SQLAnalysis { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 1052 | original_sql: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 1053 | tokens: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SQLAnalysis` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_user` is never used [INFO] [stdout] --> src/two_factor_auth.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl TwoFactorAuth { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn has_user(&self, user_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.92s [INFO] running `Command { std: "docker" "inspect" "0710bc0a8d17052eb0e5a83d00727ab9d68d7abad2229d61606a83ebbedd8620", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0710bc0a8d17052eb0e5a83d00727ab9d68d7abad2229d61606a83ebbedd8620", kill_on_drop: false }` [INFO] [stdout] 0710bc0a8d17052eb0e5a83d00727ab9d68d7abad2229d61606a83ebbedd8620