[INFO] cloning repository https://github.com/motiio/lafmt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/motiio/lafmt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmotiio%2Flafmt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmotiio%2Flafmt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a076bdfcb21368ce2b6d1487bf5d6c1ab96ff3ad [INFO] checking motiio/lafmt against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmotiio%2Flafmt" "/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/motiio/lafmt [INFO] finished tweaking git repo https://github.com/motiio/lafmt [INFO] tweaked toml for git repo https://github.com/motiio/lafmt written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/motiio/lafmt on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/motiio/lafmt 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d9aff0598835ff950b329c42e1a97576e73a504be90dca6b409e6c6e0304cb1 [INFO] running `Command { std: "docker" "start" "-a" "5d9aff0598835ff950b329c42e1a97576e73a504be90dca6b409e6c6e0304cb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d9aff0598835ff950b329c42e1a97576e73a504be90dca6b409e6c6e0304cb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d9aff0598835ff950b329c42e1a97576e73a504be90dca6b409e6c6e0304cb1", kill_on_drop: false }` [INFO] [stdout] 5d9aff0598835ff950b329c42e1a97576e73a504be90dca6b409e6c6e0304cb1 [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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93b458f8b3001057f39d73849cdb3c30c4877961bca249610a6d950e19a89fd6 [INFO] running `Command { std: "docker" "start" "-a" "93b458f8b3001057f39d73849cdb3c30c4877961bca249610a6d950e19a89fd6", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Checking lafmt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::Statement` [INFO] [stdout] --> src/parser/statement/query.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::Statement; [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: `Column` [INFO] [stdout] --> src/parser/statement/query.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::{Column, Parser}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RangeInclusive` and `Range` [INFO] [stdout] --> src/parser/statement/query.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::{Range, RangeInclusive}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/parser/statement/query.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::tokenizer::{self, keyword::Keyword, Token}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parse_query_block` [INFO] [stdout] --> src/parser/statement/mod.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use query::{parse_query_block, parse_subquery, SubQuery}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Iterator` [INFO] [stdout] --> src/parser/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::iter::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RangeInclusive`, `RangeTo`, and `Range` [INFO] [stdout] --> src/parser/mod.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::{Range, RangeInclusive, RangeTo}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::SliceIndex` [INFO] [stdout] --> src/parser/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::slice::SliceIndex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alias` [INFO] [stdout] --> src/parser/statement/query.rs:331:48 [INFO] [stdout] | [INFO] [stdout] 331 | Some(Token::Identifier(alias)), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_alias` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/tokenizer/mod.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | if let Ok(identifier) = word.parse::() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `SelectItem` is more private than the item `Select::select_list` [INFO] [stdout] --> src/parser/statement/query.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub select_list: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `Select::select_list` is reachable at visibility `pub(in crate::parser::statement)` [INFO] [stdout] | [INFO] [stdout] note: but type `SelectItem` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/parser/statement/query.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 106 | struct SelectItem { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lafmt` (lib) due to 1 previous error; 31 warnings emitted [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser/expression/mod.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | SimpleExpression(SimpleExpression), [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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] 3 - SimpleExpression(SimpleExpression), [INFO] [stdout] 3 + SimpleExpression(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: fields `column`, `schema`, and `table` are never read [INFO] [stdout] --> src/parser/expression/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SimpleExpression { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 8 | pub column: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | pub schema: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | pub table: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimpleExpression` 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 `with`, `distinct`, `select_list`, and `from` are never read [INFO] [stdout] --> src/parser/statement/query.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct QueryBlock { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 16 | with: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | distinct: Distinc, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | select_list: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | // TODO: MUST BE NOT OPTION [INFO] [stdout] 20 | from: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryBlock` 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`, `aliases`, and `subquery` are never read [INFO] [stdout] --> src/parser/statement/query.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct With { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 26 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | aliases: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 28 | subquery: Box, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `With` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unique` is never constructed [INFO] [stdout] --> src/parser/statement/query.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | enum Distinc { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 33 | Distinct, [INFO] [stdout] 34 | Unique, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Distinc` 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 `TableReference` and `Join` are never constructed [INFO] [stdout] --> src/parser/statement/query.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | enum From { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 40 | TableReference(TableReference), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 41 | Join(Join), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `From` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `QueryTableExpression` is never constructed [INFO] [stdout] --> src/parser/statement/query.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | enum TableReference { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 46 | QueryTableExpression(QueryTableExpression), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TableReference` 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 `schema`, `table`, and `alias` are never read [INFO] [stdout] --> src/parser/statement/query.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | struct QueryTableExpression { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 51 | schema: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | table: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 53 | // db_link: Option>, [INFO] [stdout] 54 | alias: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryTableExpression` 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 `table_reference` and `join` are never read [INFO] [stdout] --> src/parser/statement/query.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | struct Join { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 59 | table_reference: TableReference, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 60 | join: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Join` 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 `InnerJoin` and `OuterJoin` are never constructed [INFO] [stdout] --> src/parser/statement/query.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | enum JoinClause { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 65 | InnerJoin(InnerJoin), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 66 | OuterJoin(OuterJoin), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JoinClause` 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 `inner_type` and `join_table` are never read [INFO] [stdout] --> src/parser/statement/query.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 70 | struct InnerJoin { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 71 | inner_type: InnerJoinType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 72 | join_table: TableReference, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InnerJoin` 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 `Inner`, `Cross`, and `Natural` are never constructed [INFO] [stdout] --> src/parser/statement/query.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 78 | enum InnerJoinType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 79 | Inner, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 80 | Cross, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 81 | Natural, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InnerJoinType` 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 `outer_type` and `join_table` are never read [INFO] [stdout] --> src/parser/statement/query.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 85 | struct OuterJoin { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 86 | outer_type: OuterJoinType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 87 | join_table: TableReference, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OuterJoin` 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 `Left`, `Right`, and `Full` are never constructed [INFO] [stdout] --> src/parser/statement/query.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 93 | enum OuterJoinType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 94 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 96 | Full, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OuterJoinType` 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 `Select` is never constructed [INFO] [stdout] --> src/parser/statement/query.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct Select { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `expression` and `alias` are never read [INFO] [stdout] --> src/parser/statement/query.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 106 | struct SelectItem { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 107 | expression: Expression, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 108 | alias: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SelectItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buf` and `iter_from` are never used [INFO] [stdout] --> src/tokenizer/string_buf.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl<'a> StringBuf<'a> { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 9 | pub fn buf(&self) -> &'a str { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn iter_from(&'a self, pos: usize) -> StringBufIterator { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/tokenizer/mod.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | if let Ok(identifier) = word.parse::() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tokenizer/string_buf.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn new(buf: &str) -> StringBuf { [INFO] [stdout] | ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 6 | pub fn new(buf: &str) -> StringBuf<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tokenizer/string_buf.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn iter(&self) -> StringBufIterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 12 | pub fn iter(&self) -> StringBufIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/tokenizer/string_buf.rs:18:47 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn iter_from(&'a self, pos: usize) -> StringBufIterator { [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 18 | pub fn iter_from(&'a self, pos: usize) -> StringBufIterator<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Statement` [INFO] [stdout] --> src/parser/statement/query.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::Statement; [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: `Column` [INFO] [stdout] --> src/parser/statement/query.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::{Column, Parser}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RangeInclusive` and `Range` [INFO] [stdout] --> src/parser/statement/query.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::{Range, RangeInclusive}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/parser/statement/query.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::tokenizer::{self, keyword::Keyword, Token}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parse_query_block` [INFO] [stdout] --> src/parser/statement/mod.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use query::{parse_query_block, parse_subquery, SubQuery}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Iterator` [INFO] [stdout] --> src/parser/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::iter::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RangeInclusive`, `RangeTo`, and `Range` [INFO] [stdout] --> src/parser/mod.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::{Range, RangeInclusive, RangeTo}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::SliceIndex` [INFO] [stdout] --> src/parser/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::slice::SliceIndex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alias` [INFO] [stdout] --> src/parser/statement/query.rs:331:48 [INFO] [stdout] | [INFO] [stdout] 331 | Some(Token::Identifier(alias)), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_alias` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/tokenizer/mod.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | if let Ok(identifier) = word.parse::() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `SelectItem` is more private than the item `Select::select_list` [INFO] [stdout] --> src/parser/statement/query.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub select_list: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `Select::select_list` is reachable at visibility `pub(in crate::parser::statement)` [INFO] [stdout] | [INFO] [stdout] note: but type `SelectItem` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/parser/statement/query.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 106 | struct SelectItem { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser/expression/mod.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | SimpleExpression(SimpleExpression), [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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] 3 - SimpleExpression(SimpleExpression), [INFO] [stdout] 3 + SimpleExpression(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `column`, `schema`, and `table` are never read [INFO] [stdout] --> src/parser/expression/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SimpleExpression { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 8 | pub column: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | pub schema: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | pub table: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimpleExpression` 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 `with`, `distinct`, `select_list`, and `from` are never read [INFO] [stdout] --> src/parser/statement/query.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct QueryBlock { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 16 | with: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | distinct: Distinc, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | select_list: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | // TODO: MUST BE NOT OPTION [INFO] [stdout] 20 | from: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryBlock` 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`, `aliases`, and `subquery` are never read [INFO] [stdout] --> src/parser/statement/query.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct With { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 26 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | aliases: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 28 | subquery: Box, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `With` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unique` is never constructed [INFO] [stdout] --> src/parser/statement/query.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | enum Distinc { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 33 | Distinct, [INFO] [stdout] 34 | Unique, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Distinc` 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 `TableReference` and `Join` are never constructed [INFO] [stdout] --> src/parser/statement/query.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | enum From { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 40 | TableReference(TableReference), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 41 | Join(Join), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `From` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `QueryTableExpression` is never constructed [INFO] [stdout] --> src/parser/statement/query.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | enum TableReference { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 46 | QueryTableExpression(QueryTableExpression), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TableReference` 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 `schema`, `table`, and `alias` are never read [INFO] [stdout] --> src/parser/statement/query.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | struct QueryTableExpression { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 51 | schema: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | table: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 53 | // db_link: Option>, [INFO] [stdout] 54 | alias: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryTableExpression` 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 `table_reference` and `join` are never read [INFO] [stdout] --> src/parser/statement/query.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | struct Join { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 59 | table_reference: TableReference, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 60 | join: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Join` 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 `InnerJoin` and `OuterJoin` are never constructed [INFO] [stdout] --> src/parser/statement/query.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | enum JoinClause { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 65 | InnerJoin(InnerJoin), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 66 | OuterJoin(OuterJoin), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JoinClause` 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 `inner_type` and `join_table` are never read [INFO] [stdout] --> src/parser/statement/query.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 70 | struct InnerJoin { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 71 | inner_type: InnerJoinType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 72 | join_table: TableReference, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InnerJoin` 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 `Inner`, `Cross`, and `Natural` are never constructed [INFO] [stdout] --> src/parser/statement/query.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 78 | enum InnerJoinType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 79 | Inner, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 80 | Cross, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 81 | Natural, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InnerJoinType` 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 `outer_type` and `join_table` are never read [INFO] [stdout] --> src/parser/statement/query.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 85 | struct OuterJoin { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 86 | outer_type: OuterJoinType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 87 | join_table: TableReference, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OuterJoin` 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 `Left`, `Right`, and `Full` are never constructed [INFO] [stdout] --> src/parser/statement/query.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 93 | enum OuterJoinType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 94 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 96 | Full, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OuterJoinType` 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 `Select` is never constructed [INFO] [stdout] --> src/parser/statement/query.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct Select { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `expression` and `alias` are never read [INFO] [stdout] --> src/parser/statement/query.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 106 | struct SelectItem { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 107 | expression: Expression, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 108 | alias: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SelectItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `buf` is never used [INFO] [stdout] --> src/tokenizer/string_buf.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl<'a> StringBuf<'a> { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 9 | pub fn buf(&self) -> &'a str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/tokenizer/mod.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | if let Ok(identifier) = word.parse::() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tokenizer/string_buf.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn new(buf: &str) -> StringBuf { [INFO] [stdout] | ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 6 | pub fn new(buf: &str) -> StringBuf<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tokenizer/string_buf.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn iter(&self) -> StringBufIterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 12 | pub fn iter(&self) -> StringBufIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/tokenizer/string_buf.rs:18:47 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn iter_from(&'a self, pos: usize) -> StringBufIterator { [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 18 | pub fn iter_from(&'a self, pos: usize) -> StringBufIterator<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lafmt` (lib test) due to 1 previous error; 31 warnings emitted [INFO] running `Command { std: "docker" "inspect" "93b458f8b3001057f39d73849cdb3c30c4877961bca249610a6d950e19a89fd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93b458f8b3001057f39d73849cdb3c30c4877961bca249610a6d950e19a89fd6", kill_on_drop: false }` [INFO] [stdout] 93b458f8b3001057f39d73849cdb3c30c4877961bca249610a6d950e19a89fd6