[INFO] cloning repository https://github.com/aravindh-e6x/ferrousql [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aravindh-e6x/ferrousql" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faravindh-e6x%2Fferrousql", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faravindh-e6x%2Fferrousql'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8e3e0221b09028eba5aa2475d68cacd42541780b [INFO] building aravindh-e6x/ferrousql against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faravindh-e6x%2Fferrousql" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/aravindh-e6x/ferrousql [INFO] finished tweaking git repo https://github.com/aravindh-e6x/ferrousql [INFO] tweaked toml for git repo https://github.com/aravindh-e6x/ferrousql written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/aravindh-e6x/ferrousql on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/aravindh-e6x/ferrousql 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded integer-encoding v3.0.4 [INFO] [stderr] Downloaded sqlparser v0.45.0 [INFO] [stderr] Downloaded twox-hash v2.1.1 [INFO] [stderr] Downloaded seq-macro v0.3.6 [INFO] [stderr] Downloaded arrow-string v50.0.0 [INFO] [stderr] Downloaded arrow-ord v50.0.0 [INFO] [stderr] Downloaded arrow-json v50.0.0 [INFO] [stderr] Downloaded arrow-arith v50.0.0 [INFO] [stderr] Downloaded arrow-csv v50.0.0 [INFO] [stderr] Downloaded arrow-row v50.0.0 [INFO] [stderr] Downloaded arrow v50.0.0 [INFO] [stderr] Downloaded arrow-ipc v50.0.0 [INFO] [stderr] Downloaded indicatif v0.17.11 [INFO] [stderr] Downloaded console v0.15.11 [INFO] [stderr] Downloaded arrow-buffer v50.0.0 [INFO] [stderr] Downloaded arrow-cast v50.0.0 [INFO] [stderr] Downloaded parquet v50.0.0 [INFO] [stderr] Downloaded arrow-data v50.0.0 [INFO] [stderr] Downloaded arrow-array v50.0.0 [INFO] [stderr] Downloaded thrift v0.17.0 [INFO] [stderr] Downloaded flatbuffers v23.5.26 [INFO] [stderr] Downloaded arrow-select v50.0.0 [INFO] [stderr] Downloaded snap v1.1.1 [INFO] [stderr] Downloaded arrow-schema v50.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c5fa34507549b351b9b69c015e1c5a7ad2d8d8c2e30ad1f904e4a856a6eea944 [INFO] running `Command { std: "docker" "start" "-a" "c5fa34507549b351b9b69c015e1c5a7ad2d8d8c2e30ad1f904e4a856a6eea944", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c5fa34507549b351b9b69c015e1c5a7ad2d8d8c2e30ad1f904e4a856a6eea944", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5fa34507549b351b9b69c015e1c5a7ad2d8d8c2e30ad1f904e4a856a6eea944", kill_on_drop: false }` [INFO] [stdout] c5fa34507549b351b9b69c015e1c5a7ad2d8d8c2e30ad1f904e4a856a6eea944 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ccacf2d296204eb5c478fa42630d2cd5bd720f027609f7da6fa1698af21fec6 [INFO] running `Command { std: "docker" "start" "-a" "1ccacf2d296204eb5c478fa42630d2cd5bd720f027609f7da6fa1698af21fec6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling arrow-schema v50.0.0 [INFO] [stderr] Compiling lexical-util v0.8.5 [INFO] [stderr] Compiling flatbuffers v23.5.26 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling csv-core v0.1.12 [INFO] [stderr] Compiling lexical-write-integer v0.8.5 [INFO] [stderr] Compiling lexical-parse-integer v0.8.6 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling lexical-write-float v0.8.5 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Compiling snap v1.1.1 [INFO] [stderr] Compiling lexical-parse-float v0.8.5 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Compiling lexical-core v0.8.5 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling ordered-float v2.10.1 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling integer-encoding v3.0.4 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling twox-hash v2.1.1 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling unicode-width v0.2.1 [INFO] [stderr] Compiling arrow-buffer v50.0.0 [INFO] [stderr] Compiling clap_builder v4.5.44 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling lz4_flex v0.11.5 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling arrow-data v50.0.0 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling thrift v0.17.0 [INFO] [stderr] Compiling brotli v3.5.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hdrhistogram v7.5.4 [INFO] [stderr] Compiling twox-hash v1.6.3 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling seq-macro v0.3.6 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling number_prefix v0.4.0 [INFO] [stderr] Compiling indicatif v0.17.11 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling sqlparser v0.45.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling clap v4.5.45 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling csv v1.3.1 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling arrow-array v50.0.0 [INFO] [stderr] Compiling arrow-select v50.0.0 [INFO] [stderr] Compiling arrow-arith v50.0.0 [INFO] [stderr] Compiling arrow-row v50.0.0 [INFO] [stderr] Compiling arrow-cast v50.0.0 [INFO] [stderr] Compiling arrow-ord v50.0.0 [INFO] [stderr] Compiling arrow-string v50.0.0 [INFO] [stderr] Compiling arrow-ipc v50.0.0 [INFO] [stderr] Compiling arrow-json v50.0.0 [INFO] [stderr] Compiling arrow-csv v50.0.0 [INFO] [stderr] Compiling parquet v50.0.0 [INFO] [stderr] Compiling arrow v50.0.0 [INFO] [stderr] Compiling ferrousql v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ObjectName` [INFO] [stdout] --> src/rules.rs:1:92 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlparser::ast::{Statement, Query, SetExpr, Select, Expr, TableFactor, BinaryOperator, ObjectName}; [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 imports: `FerrousSqlError` and `Result` [INFO] [stdout] --> src/rules.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::error::{FerrousSqlError, Result}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rule` [INFO] [stdout] --> src/rule_loader.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::rules::{RuleSet, Rule}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RuleViolation` [INFO] [stdout] --> src/custom_rules.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::rules::{RuleEngine, Rule, RuleViolation, Severity}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::Result` [INFO] [stdout] --> src/custom_rules.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::error::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Extension` and `Query` [INFO] [stdout] --> src/api/handlers.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | extract::{Path, Query, State}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | Extension, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Severity` [INFO] [stdout] --> src/api/models.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::rules::{RuleViolation, Severity}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/api/models.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `condition` [INFO] [stdout] --> src/rules.rs:788:68 [INFO] [stdout] | [INFO] [stdout] 788 | ...: &Statement, name: &str, condition: &CustomCondition, severity: &Severity, message: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_condition` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `violation` [INFO] [stdout] --> src/rules.rs:841:25 [INFO] [stdout] | [INFO] [stdout] 841 | if let Some(violation) = self.check_rule(statement, rule) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_violation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rule_loader.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut name = String::from("Merged Ruleset"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rule_loader.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let mut description = String::from("Combined rules from multiple sources"); [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/main.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | let mut engine = if !rules.is_empty() { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 28s [INFO] running `Command { std: "docker" "inspect" "1ccacf2d296204eb5c478fa42630d2cd5bd720f027609f7da6fa1698af21fec6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ccacf2d296204eb5c478fa42630d2cd5bd720f027609f7da6fa1698af21fec6", kill_on_drop: false }` [INFO] [stdout] 1ccacf2d296204eb5c478fa42630d2cd5bd720f027609f7da6fa1698af21fec6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f8be907bdbacd30bfc74026bfa23557572834220c80fb96183ef2f76550b5a7b [INFO] running `Command { std: "docker" "start" "-a" "f8be907bdbacd30bfc74026bfa23557572834220c80fb96183ef2f76550b5a7b", kill_on_drop: false }` [INFO] [stderr] Compiling ferrousql v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ObjectName` [INFO] [stdout] --> src/rules.rs:1:92 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlparser::ast::{Statement, Query, SetExpr, Select, Expr, TableFactor, BinaryOperator, ObjectName}; [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 imports: `FerrousSqlError` and `Result` [INFO] [stdout] --> src/rules.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::error::{FerrousSqlError, Result}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rule` [INFO] [stdout] --> src/rule_loader.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::rules::{RuleSet, Rule}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RuleViolation` [INFO] [stdout] --> src/custom_rules.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::rules::{RuleEngine, Rule, RuleViolation, Severity}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::Result` [INFO] [stdout] --> src/custom_rules.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::error::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Extension` and `Query` [INFO] [stdout] --> src/api/handlers.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | extract::{Path, Query, State}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | Extension, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Severity` [INFO] [stdout] --> src/api/models.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::rules::{RuleViolation, Severity}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/api/models.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `condition` [INFO] [stdout] --> src/rules.rs:788:68 [INFO] [stdout] | [INFO] [stdout] 788 | ...: &Statement, name: &str, condition: &CustomCondition, severity: &Severity, message: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_condition` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `violation` [INFO] [stdout] --> src/rules.rs:841:25 [INFO] [stdout] | [INFO] [stdout] 841 | if let Some(violation) = self.check_rule(statement, rule) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_violation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rule_loader.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut name = String::from("Merged Ruleset"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rule_loader.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let mut description = String::from("Combined rules from multiple sources"); [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/main.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | let mut engine = if !rules.is_empty() { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ObjectName` [INFO] [stdout] --> src/rules.rs:1:92 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlparser::ast::{Statement, Query, SetExpr, Select, Expr, TableFactor, BinaryOperator, ObjectName}; [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 imports: `FerrousSqlError` and `Result` [INFO] [stdout] --> src/rules.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::error::{FerrousSqlError, Result}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rule` [INFO] [stdout] --> src/rule_loader.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::rules::{RuleSet, Rule}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RuleViolation` [INFO] [stdout] --> src/custom_rules.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::rules::{RuleEngine, Rule, RuleViolation, Severity}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::Result` [INFO] [stdout] --> src/custom_rules.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::error::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Extension` and `Query` [INFO] [stdout] --> src/api/handlers.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | extract::{Path, Query, State}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | Extension, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Severity` [INFO] [stdout] --> src/api/models.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::rules::{RuleViolation, Severity}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/api/models.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `condition` [INFO] [stdout] --> src/rules.rs:788:68 [INFO] [stdout] | [INFO] [stdout] 788 | ...: &Statement, name: &str, condition: &CustomCondition, severity: &Severity, message: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_condition` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `violation` [INFO] [stdout] --> src/rules.rs:841:25 [INFO] [stdout] | [INFO] [stdout] 841 | if let Some(violation) = self.check_rule(statement, rule) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_violation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rule_loader.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut name = String::from("Merged Ruleset"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rule_loader.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let mut description = String::from("Combined rules from multiple sources"); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 11.80s [INFO] running `Command { std: "docker" "inspect" "f8be907bdbacd30bfc74026bfa23557572834220c80fb96183ef2f76550b5a7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8be907bdbacd30bfc74026bfa23557572834220c80fb96183ef2f76550b5a7b", kill_on_drop: false }` [INFO] [stdout] f8be907bdbacd30bfc74026bfa23557572834220c80fb96183ef2f76550b5a7b