[INFO] cloning repository https://github.com/Curt-White/sql-lint [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Curt-White/sql-lint" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCurt-White%2Fsql-lint", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCurt-White%2Fsql-lint'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6649bc299c855655827d1a3c9bff59fe7f591197 [INFO] checking Curt-White/sql-lint/6649bc299c855655827d1a3c9bff59fe7f591197 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCurt-White%2Fsql-lint" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Curt-White/sql-lint on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Curt-White/sql-lint [INFO] finished tweaking git repo https://github.com/Curt-White/sql-lint [INFO] tweaked toml for git repo https://github.com/Curt-White/sql-lint written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Curt-White/sql-lint 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded phf v0.9.0 [INFO] [stderr] Downloaded phf_generator v0.9.0 [INFO] [stderr] Downloaded siphasher v0.3.6 [INFO] [stderr] Downloaded phf_shared v0.9.0 [INFO] [stderr] Downloaded phf_macros v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 51346eff561003edf1b9bc3e80347d9225fae0fc616a6995c0dccd2aee99b903 [INFO] running `Command { std: "docker" "start" "-a" "51346eff561003edf1b9bc3e80347d9225fae0fc616a6995c0dccd2aee99b903", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "51346eff561003edf1b9bc3e80347d9225fae0fc616a6995c0dccd2aee99b903", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51346eff561003edf1b9bc3e80347d9225fae0fc616a6995c0dccd2aee99b903", kill_on_drop: false }` [INFO] [stdout] 51346eff561003edf1b9bc3e80347d9225fae0fc616a6995c0dccd2aee99b903 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6d20bc56970f22aefef6e6f500248183f81857f329db2fdd78a217c5c084ed78 [INFO] running `Command { std: "docker" "start" "-a" "6d20bc56970f22aefef6e6f500248183f81857f329db2fdd78a217c5c084ed78", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling siphasher v0.3.6 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking strum v0.21.0 [INFO] [stderr] Compiling phf_shared v0.9.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling phf_generator v0.9.0 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling phf_macros v0.9.0 [INFO] [stderr] Compiling strum_macros v0.21.1 [INFO] [stderr] Checking phf v0.9.0 [INFO] [stderr] Checking scratch-dbt-parser v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `op_stack` [INFO] [stdout] --> src/parser.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let op_stack: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_op_stack` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr_stack` [INFO] [stdout] --> src/parser.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let expr_stack: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expr_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lexer.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | InvalidToken(String), [INFO] [stdout] | ------------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LexerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 19 | InvalidToken(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Safe` is never constructed [INFO] [stdout] --> src/lexer.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum KeywordType { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 29 | Safe, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeywordType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line` and `column` are never read [INFO] [stdout] --> src/lexer.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 39 | pub line: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 40 | pub column: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lexer.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 92 | impl<'a> LexerContext<'a> { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 93 | pub fn new(content: &str) -> LexerContext { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ParserError` is never used [INFO] [stdout] --> src/parser.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum ParserError { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `throw_invalid_token_err` is never used [INFO] [stdout] --> src/parser.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl ParserError { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 16 | pub fn throw_invalid_token_err(expected_sequence: &str, line: usize, col: usize, found: T) -> ParserError [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParserContext` is never constructed [INFO] [stdout] --> src/parser.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ParserContext { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `peek`, and `next` are never used [INFO] [stdout] --> src/parser.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl ParserContext { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 32 | pub fn new(mut tokens: Vec) -> ParserContext { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn peek(&self, skip_whitespace: bool) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn next(&mut self, skip_whitespace: bool) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_expression`, `parse_as`, `parse_select_column`, `parse_select`, `parse_from`, and `parse_operation` are never used [INFO] [stdout] --> src/parser.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl ParserContext { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 68 | pub fn parse_expression(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn parse_as(&mut self) -> Result<(String, String), ParserError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn parse_select_column(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn parse_select(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn parse_from(&mut self) -> Result, ParserError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn parse_operation(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/ast.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Operator { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 4 | // Arithmetic Ops [INFO] [stdout] 5 | UnaryPlus, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | UnaryMinus, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | Substract, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | Multiply, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | Subtract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | Equal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | NotEqual, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | GreaterThan, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | LessThan, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | FieldAccess, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operator` 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: enum `QuoteType` is never used [INFO] [stdout] --> src/ast.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum QuoteType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QuoteType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StringAST` is never constructed [INFO] [stdout] --> src/ast.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct StringAST { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StringAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntAST` is never constructed [INFO] [stdout] --> src/ast.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct IntAST { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IntAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FloatAST` is never constructed [INFO] [stdout] --> src/ast.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct FloatAST { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FloatAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LiteralAST` is never used [INFO] [stdout] --> src/ast.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | pub enum LiteralAST { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LiteralAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SQLType` is never used [INFO] [stdout] --> src/ast.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | pub enum SQLType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SQLType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ColumnAST` is never constructed [INFO] [stdout] --> src/ast.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct ColumnAST { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ColumnAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FunctionSourceAST` is never used [INFO] [stdout] --> src/ast.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum FunctionSourceAST { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionSourceAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionCallAST` is never constructed [INFO] [stdout] --> src/ast.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct FunctionCallAST { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionCallAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PathAST` is never constructed [INFO] [stdout] --> src/ast.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct PathAST { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PathAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SourceAST` is never used [INFO] [stdout] --> src/ast.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | pub enum SourceAST { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SourceAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SelectAST` is never constructed [INFO] [stdout] --> src/ast.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct SelectAST { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SelectAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FromAST` is never constructed [INFO] [stdout] --> src/ast.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct FromAST { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FromAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExpressionType` is never used [INFO] [stdout] --> src/ast.rs:108:10 [INFO] [stdout] | [INFO] [stdout] 108 | pub enum ExpressionType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExpressionType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExpressionAST` is never constructed [INFO] [stdout] --> src/ast.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct ExpressionAST { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExpressionAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OperationAST` is never used [INFO] [stdout] --> src/ast.rs:124:10 [INFO] [stdout] | [INFO] [stdout] 124 | pub enum OperationAST { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OperationAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op_stack` [INFO] [stdout] --> src/parser.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let op_stack: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_op_stack` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr_stack` [INFO] [stdout] --> src/parser.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let expr_stack: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expr_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tokens` [INFO] [stdout] --> src/parser.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | let tokens = lex_string("a = 1 + 2 AND b = 1.0").unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lexer.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | InvalidToken(String), [INFO] [stdout] | ------------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LexerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 19 | InvalidToken(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Safe` is never constructed [INFO] [stdout] --> src/lexer.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum KeywordType { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 29 | Safe, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeywordType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | InvalidToken(String), [INFO] [stdout] | ------------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 11 | InvalidToken(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | OutOfTokens(String), [INFO] [stdout] | ----------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 12 | OutOfTokens(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errors` is never read [INFO] [stdout] --> src/parser.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ParserContext { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 27 | pub tokens: Vec, [INFO] [stdout] 28 | pub errors: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/ast.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Operator { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 4 | // Arithmetic Ops [INFO] [stdout] 5 | UnaryPlus, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | UnaryMinus, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | Substract, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | Multiply, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | Subtract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | Equal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | NotEqual, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | GreaterThan, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | LessThan, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | FieldAccess, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operator` 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 `Single` and `Double` are never constructed [INFO] [stdout] --> src/ast.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum QuoteType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 24 | Single, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | Double [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QuoteType` 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 `value` and `quote_type` are never read [INFO] [stdout] --> src/ast.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct StringAST { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 30 | pub value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 31 | pub quote_type: QuoteType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StringAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/ast.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct IntAST { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 36 | pub value: i64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IntAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/ast.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct FloatAST { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 41 | pub value: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FloatAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `String`, `Float`, and `Integer` are never constructed [INFO] [stdout] --> src/ast.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub enum LiteralAST { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 46 | String(StringAST), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 47 | Float(FloatAST), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 48 | Integer(IntAST), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LiteralAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `String`, `Float`, and `Integer` are never constructed [INFO] [stdout] --> src/ast.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub enum SQLType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 53 | String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 54 | Float, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 55 | Integer, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SQLType` 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 `expression`, `as_kw`, and `alias` are never read [INFO] [stdout] --> src/ast.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct ColumnAST { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 61 | pub expression: ExpressionAST, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 62 | pub as_kw: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 63 | pub alias: Option [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ColumnAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Name` and `Path` are never constructed [INFO] [stdout] --> src/ast.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum FunctionSourceAST { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 68 | Name(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] 69 | Path(PathAST) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionSourceAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionCallAST` is never constructed [INFO] [stdout] --> src/ast.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct FunctionCallAST { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionCallAST` 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 `is_quoted`, `project`, `dataset`, and `table` are never read [INFO] [stdout] --> src/ast.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct PathAST { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 81 | pub is_quoted: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 82 | pub project: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 83 | pub dataset: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 84 | pub table: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PathAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | Name(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SourceAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 89 | Name(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Path` and `SubQuery` are never constructed [INFO] [stdout] --> src/ast.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub enum SourceAST { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 89 | Name(String), [INFO] [stdout] 90 | Path(PathAST), [INFO] [stdout] | ^^^^ [INFO] [stdout] 91 | SubQuery(Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SourceAST` 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 `select_kw`, `columns`, and `from` are never read [INFO] [stdout] --> src/ast.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct SelectAST { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 96 | pub select_kw: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 97 | pub columns: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 98 | pub from: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SelectAST` 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 `from_kw` and `source` are never read [INFO] [stdout] --> src/ast.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct FromAST { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 103 | pub from_kw: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 104 | pub source: SourceAST, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FromAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:111:16 [INFO] [stdout] | [INFO] [stdout] 111 | Identifier(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ExpressionType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 111 | Identifier(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Function`, `SubQuery`, `Literal`, `BinaryOperation`, and `UnaryOperation` are never constructed [INFO] [stdout] --> src/ast.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 108 | pub enum ExpressionType { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 109 | Function(FunctionSourceAST), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 110 | SubQuery(Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 111 | Identifier(String), [INFO] [stdout] 112 | Literal(LiteralAST), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 113 | BinaryOperation(Box, Operator, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 114 | UnaryOperation(Operator, Box) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExpressionType` 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 `expression` and `return_type` are never read [INFO] [stdout] --> src/ast.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct ExpressionAST { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 119 | pub expression: ExpressionType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 120 | pub return_type: SQLType [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExpressionAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | Select(SelectAST), [INFO] [stdout] | ------ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `OperationAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 125 | Select(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.81s [INFO] running `Command { std: "docker" "inspect" "6d20bc56970f22aefef6e6f500248183f81857f329db2fdd78a217c5c084ed78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d20bc56970f22aefef6e6f500248183f81857f329db2fdd78a217c5c084ed78", kill_on_drop: false }` [INFO] [stdout] 6d20bc56970f22aefef6e6f500248183f81857f329db2fdd78a217c5c084ed78