[INFO] cloning repository https://github.com/oeb25/sql-fmt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/oeb25/sql-fmt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foeb25%2Fsql-fmt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foeb25%2Fsql-fmt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 051b2c866c417aaf7321f641c493263a2cf77db5 [INFO] checking oeb25/sql-fmt against master#22572d0994593197593e2a1b7b18d720a9a349a7 for pr-126452-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foeb25%2Fsql-fmt" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/oeb25/sql-fmt on toolchain 22572d0994593197593e2a1b7b18d720a9a349a7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+22572d0994593197593e2a1b7b18d720a9a349a7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/oeb25/sql-fmt [INFO] finished tweaking git repo https://github.com/oeb25/sql-fmt [INFO] tweaked toml for git repo https://github.com/oeb25/sql-fmt written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/oeb25/sql-fmt 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" "+22572d0994593197593e2a1b7b18d720a9a349a7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lazy_static v0.2.10 [INFO] [stderr] Downloaded coco v0.1.1 [INFO] [stderr] Downloaded pest v1.0.0-beta.16 [INFO] [stderr] Downloaded either v1.4.0 [INFO] [stderr] Downloaded pest_derive v1.0.0-beta.16 [INFO] [stderr] Downloaded syn v0.10.8 [INFO] [stderr] Downloaded rayon-core v1.3.0 [INFO] [stderr] Downloaded libc v0.2.33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+22572d0994593197593e2a1b7b18d720a9a349a7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 470c21cb29fa4d5126ffd9e34b7f0ee532ef7f41b76a9a4769dd4ee9a20576ce [INFO] running `Command { std: "docker" "start" "-a" "470c21cb29fa4d5126ffd9e34b7f0ee532ef7f41b76a9a4769dd4ee9a20576ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "470c21cb29fa4d5126ffd9e34b7f0ee532ef7f41b76a9a4769dd4ee9a20576ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "470c21cb29fa4d5126ffd9e34b7f0ee532ef7f41b76a9a4769dd4ee9a20576ce", kill_on_drop: false }` [INFO] [stdout] 470c21cb29fa4d5126ffd9e34b7f0ee532ef7f41b76a9a4769dd4ee9a20576ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+22572d0994593197593e2a1b7b18d720a9a349a7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd82231945767343ba3b9040dfa46d6953bd9d5cd1a2bc76c2e0493f256b5698 [INFO] running `Command { std: "docker" "start" "-a" "fd82231945767343ba3b9040dfa46d6953bd9d5cd1a2bc76c2e0493f256b5698", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking libc v0.2.33 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Compiling rayon-core v1.3.0 [INFO] [stderr] Checking either v1.4.0 [INFO] [stderr] Checking lazy_static v0.2.10 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling pest v1.0.0-beta.16 [INFO] [stderr] Checking coco v0.1.1 [INFO] [stderr] Compiling syn v0.10.8 [INFO] [stderr] Checking num_cpus v1.7.0 [INFO] [stderr] Checking rand v0.3.18 [INFO] [stderr] Compiling pest_derive v1.0.0-beta.16 [INFO] [stderr] Checking rayon v0.9.0 [INFO] [stderr] Checking sql-fmt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `RefMut` and `Ref` [INFO] [stdout] --> src/format.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cell::{Ref, RefCell, RefMut}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `w` [INFO] [stdout] --> src/format.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | macro_rules! w { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RefMut` and `Ref` [INFO] [stdout] --> src/format.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cell::{Ref, RefCell, RefMut}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `w` [INFO] [stdout] --> src/format.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | macro_rules! w { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `match_default_bindings` has been stable since 1.26.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(match_default_bindings)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `try_from` has been stable since 1.34.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(try_from)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `match_default_bindings` has been stable since 1.26.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(match_default_bindings)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `try_from` has been stable since 1.34.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(try_from)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/parser.rs:312:5 [INFO] [stdout] | [INFO] [stdout] 312 | Ok(match t.as_rule() { [INFO] [stdout] | _____^^_- [INFO] [stdout] | | | [INFO] [stdout] | | unreachable call [INFO] [stdout] 313 | | Rule::insert_conflict_action_update_item => unimplemented!(), // TODO [INFO] [stdout] 314 | | _ => unparseable!(t) [INFO] [stdout] 315 | | }) [INFO] [stdout] | |_____- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/parser.rs:312:5 [INFO] [stdout] | [INFO] [stdout] 312 | Ok(match t.as_rule() { [INFO] [stdout] | _____^^_- [INFO] [stdout] | | | [INFO] [stdout] | | unreachable call [INFO] [stdout] 313 | | Rule::insert_conflict_action_update_item => unimplemented!(), // TODO [INFO] [stdout] 314 | | _ => unparseable!(t) [INFO] [stdout] 315 | | }) [INFO] [stdout] | |_____- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:382:13 [INFO] [stdout] | [INFO] [stdout] 382 | let mut old_inp = &mut inp; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | let mut inp = t.into_inner(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser.rs:778:10 [INFO] [stdout] | [INFO] [stdout] 778 | let (t, limit) = match t { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:763:15 [INFO] [stdout] | [INFO] [stdout] 763 | let mut old_inp = &mut inp; [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/parser.rs:781:15 [INFO] [stdout] | [INFO] [stdout] 781 | let mut old_inp = &mut inp; [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/parser.rs:382:13 [INFO] [stdout] | [INFO] [stdout] 382 | let mut old_inp = &mut inp; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | let mut inp = t.into_inner(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser.rs:778:10 [INFO] [stdout] | [INFO] [stdout] 778 | let (t, limit) = match t { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:763:15 [INFO] [stdout] | [INFO] [stdout] 763 | let mut old_inp = &mut inp; [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/parser.rs:781:15 [INFO] [stdout] | [INFO] [stdout] 781 | let mut old_inp = &mut inp; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `align_table_types` is never read [INFO] [stdout] --> src/format.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Options { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | align_table_types: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Options` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `uppercase_keywords` and `lowercase_keywords` are never used [INFO] [stdout] --> src/format.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 42 | impl Context { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn uppercase_keywords(&self) -> Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn lowercase_keywords(&self) -> Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `inners` is never used [INFO] [stdout] --> src/format.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 128 | impl Context> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 129 | pub fn inners(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Full`, `Partial`, and `Simple` are never constructed [INFO] [stdout] --> src/ast.rs:64:3 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum ColumnConstraintReferencesMatch { [INFO] [stdout] | ------------------------------- variants in this enum [INFO] [stdout] 64 | Full, [INFO] [stdout] | ^^^^ [INFO] [stdout] 65 | Partial, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 66 | Simple, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ColumnConstraintReferencesMatch` 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: variant `AsDef` is never constructed [INFO] [stdout] --> src/ast.rs:115:3 [INFO] [stdout] | [INFO] [stdout] 114 | pub enum CreateFunctionBody { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] 115 | AsDef(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateFunctionBody` 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: variant `As` is never constructed [INFO] [stdout] --> src/ast.rs:223:3 [INFO] [stdout] | [INFO] [stdout] 219 | pub enum Operator { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 223 | As, [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: field `if_not_exsists` is never read [INFO] [stdout] --> src/ast.rs:253:7 [INFO] [stdout] | [INFO] [stdout] 251 | pub struct CreateTable { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 252 | pub name: TableIdent, [INFO] [stdout] 253 | pub if_not_exsists: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateTable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `or_replace` is never read [INFO] [stdout] --> src/ast.rs:290:7 [INFO] [stdout] | [INFO] [stdout] 288 | pub struct CreateFunction { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 289 | pub name: TableIdent, [INFO] [stdout] 290 | pub or_replace: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateFunction` 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: variant `Default` is never constructed [INFO] [stdout] --> src/ast.rs:322:3 [INFO] [stdout] | [INFO] [stdout] 321 | pub enum InsertValues { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 322 | Default, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InsertValues` 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: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `align_table_types` is never read [INFO] [stdout] --> src/format.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Options { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | align_table_types: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Options` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `uppercase_keywords` and `lowercase_keywords` are never used [INFO] [stdout] --> src/format.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 42 | impl Context { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn uppercase_keywords(&self) -> Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn lowercase_keywords(&self) -> Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `inners` is never used [INFO] [stdout] --> src/format.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 128 | impl Context> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 129 | pub fn inners(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Full`, `Partial`, and `Simple` are never constructed [INFO] [stdout] --> src/ast.rs:64:3 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum ColumnConstraintReferencesMatch { [INFO] [stdout] | ------------------------------- variants in this enum [INFO] [stdout] 64 | Full, [INFO] [stdout] | ^^^^ [INFO] [stdout] 65 | Partial, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 66 | Simple, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ColumnConstraintReferencesMatch` 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: variant `AsDef` is never constructed [INFO] [stdout] --> src/ast.rs:115:3 [INFO] [stdout] | [INFO] [stdout] 114 | pub enum CreateFunctionBody { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] 115 | AsDef(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateFunctionBody` 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: variant `As` is never constructed [INFO] [stdout] --> src/ast.rs:223:3 [INFO] [stdout] | [INFO] [stdout] 219 | pub enum Operator { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 223 | As, [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: field `if_not_exsists` is never read [INFO] [stdout] --> src/ast.rs:253:7 [INFO] [stdout] | [INFO] [stdout] 251 | pub struct CreateTable { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 252 | pub name: TableIdent, [INFO] [stdout] 253 | pub if_not_exsists: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateTable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `or_replace` is never read [INFO] [stdout] --> src/ast.rs:290:7 [INFO] [stdout] | [INFO] [stdout] 288 | pub struct CreateFunction { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 289 | pub name: TableIdent, [INFO] [stdout] 290 | pub or_replace: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateFunction` 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: variant `Default` is never constructed [INFO] [stdout] --> src/ast.rs:322:3 [INFO] [stdout] | [INFO] [stdout] 321 | pub enum InsertValues { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 322 | Default, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InsertValues` 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: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | / std::fs::File::open(name).map(|mut file| { [INFO] [stdout] 31 | | file.read_to_string(&mut d).unwrap(); [INFO] [stdout] 32 | | [INFO] [stdout] 33 | | let a = prettify(&d, None).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 36 | | debug_assert_eq!(a, prettify(&a, None).unwrap()); [INFO] [stdout] 37 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 30 | let _ = std::fs::File::open(name).map(|mut file| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | / std::fs::File::open(name).map(|mut file| { [INFO] [stdout] 31 | | file.read_to_string(&mut d).unwrap(); [INFO] [stdout] 32 | | [INFO] [stdout] 33 | | let a = prettify(&d, None).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 36 | | debug_assert_eq!(a, prettify(&a, None).unwrap()); [INFO] [stdout] 37 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 30 | let _ = std::fs::File::open(name).map(|mut file| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.67s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.10.8 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "fd82231945767343ba3b9040dfa46d6953bd9d5cd1a2bc76c2e0493f256b5698", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd82231945767343ba3b9040dfa46d6953bd9d5cd1a2bc76c2e0493f256b5698", kill_on_drop: false }` [INFO] [stdout] fd82231945767343ba3b9040dfa46d6953bd9d5cd1a2bc76c2e0493f256b5698 [INFO] checking oeb25/sql-fmt against try#6289438dbad80b1a0029c66dd3f6abf57c2c51be for pr-126452-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foeb25%2Fsql-fmt" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/oeb25/sql-fmt on toolchain 6289438dbad80b1a0029c66dd3f6abf57c2c51be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/oeb25/sql-fmt [INFO] finished tweaking git repo https://github.com/oeb25/sql-fmt [INFO] tweaked toml for git repo https://github.com/oeb25/sql-fmt written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/oeb25/sql-fmt 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" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d83b2eeabe4521e54227e24ac158db302047a8079ca2efb6af36f635aa8308bf [INFO] running `Command { std: "docker" "start" "-a" "d83b2eeabe4521e54227e24ac158db302047a8079ca2efb6af36f635aa8308bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d83b2eeabe4521e54227e24ac158db302047a8079ca2efb6af36f635aa8308bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d83b2eeabe4521e54227e24ac158db302047a8079ca2efb6af36f635aa8308bf", kill_on_drop: false }` [INFO] [stdout] d83b2eeabe4521e54227e24ac158db302047a8079ca2efb6af36f635aa8308bf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 782e1dc94556ce4bf2d4b254d5edba2feb885c094c0e29157a76e60dd41be245 [INFO] running `Command { std: "docker" "start" "-a" "782e1dc94556ce4bf2d4b254d5edba2feb885c094c0e29157a76e60dd41be245", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking libc v0.2.33 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Checking either v1.4.0 [INFO] [stderr] Compiling rayon-core v1.3.0 [INFO] [stderr] Checking lazy_static v0.2.10 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling pest v1.0.0-beta.16 [INFO] [stderr] Compiling syn v0.10.8 [INFO] [stderr] Checking coco v0.1.1 [INFO] [stderr] Checking rand v0.3.18 [INFO] [stderr] Checking num_cpus v1.7.0 [INFO] [stderr] Compiling pest_derive v1.0.0-beta.16 [INFO] [stderr] Checking rayon v0.9.0 [INFO] [stderr] Checking sql-fmt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `RefMut` and `Ref` [INFO] [stdout] --> src/format.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cell::{Ref, RefCell, RefMut}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `w` [INFO] [stdout] --> src/format.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | macro_rules! w { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RefMut` and `Ref` [INFO] [stdout] --> src/format.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cell::{Ref, RefCell, RefMut}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `w` [INFO] [stdout] --> src/format.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | macro_rules! w { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `match_default_bindings` has been stable since 1.26.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(match_default_bindings)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `try_from` has been stable since 1.34.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(try_from)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `match_default_bindings` has been stable since 1.26.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(match_default_bindings)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `try_from` has been stable since 1.34.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(try_from)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/parser.rs:312:5 [INFO] [stdout] | [INFO] [stdout] 312 | Ok(match t.as_rule() { [INFO] [stdout] | _____^^_- [INFO] [stdout] | | | [INFO] [stdout] | | unreachable call [INFO] [stdout] 313 | | Rule::insert_conflict_action_update_item => unimplemented!(), // TODO [INFO] [stdout] 314 | | _ => unparseable!(t) [INFO] [stdout] 315 | | }) [INFO] [stdout] | |_____- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/parser.rs:312:5 [INFO] [stdout] | [INFO] [stdout] 312 | Ok(match t.as_rule() { [INFO] [stdout] | _____^^_- [INFO] [stdout] | | | [INFO] [stdout] | | unreachable call [INFO] [stdout] 313 | | Rule::insert_conflict_action_update_item => unimplemented!(), // TODO [INFO] [stdout] 314 | | _ => unparseable!(t) [INFO] [stdout] 315 | | }) [INFO] [stdout] | |_____- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:382:13 [INFO] [stdout] | [INFO] [stdout] 382 | let mut old_inp = &mut inp; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | let mut inp = t.into_inner(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser.rs:778:10 [INFO] [stdout] | [INFO] [stdout] 778 | let (t, limit) = match t { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:763:15 [INFO] [stdout] | [INFO] [stdout] 763 | let mut old_inp = &mut inp; [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/parser.rs:781:15 [INFO] [stdout] | [INFO] [stdout] 781 | let mut old_inp = &mut inp; [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/parser.rs:382:13 [INFO] [stdout] | [INFO] [stdout] 382 | let mut old_inp = &mut inp; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | let mut inp = t.into_inner(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser.rs:778:10 [INFO] [stdout] | [INFO] [stdout] 778 | let (t, limit) = match t { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:763:15 [INFO] [stdout] | [INFO] [stdout] 763 | let mut old_inp = &mut inp; [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/parser.rs:781:15 [INFO] [stdout] | [INFO] [stdout] 781 | let mut old_inp = &mut inp; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `align_table_types` is never read [INFO] [stdout] --> src/format.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Options { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | align_table_types: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Options` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `uppercase_keywords` and `lowercase_keywords` are never used [INFO] [stdout] --> src/format.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 42 | impl Context { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn uppercase_keywords(&self) -> Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn lowercase_keywords(&self) -> Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `inners` is never used [INFO] [stdout] --> src/format.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 128 | impl Context> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 129 | pub fn inners(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Full`, `Partial`, and `Simple` are never constructed [INFO] [stdout] --> src/ast.rs:64:3 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum ColumnConstraintReferencesMatch { [INFO] [stdout] | ------------------------------- variants in this enum [INFO] [stdout] 64 | Full, [INFO] [stdout] | ^^^^ [INFO] [stdout] 65 | Partial, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 66 | Simple, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ColumnConstraintReferencesMatch` 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: variant `AsDef` is never constructed [INFO] [stdout] --> src/ast.rs:115:3 [INFO] [stdout] | [INFO] [stdout] 114 | pub enum CreateFunctionBody { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] 115 | AsDef(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateFunctionBody` 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: variant `As` is never constructed [INFO] [stdout] --> src/ast.rs:223:3 [INFO] [stdout] | [INFO] [stdout] 219 | pub enum Operator { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 223 | As, [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: field `if_not_exsists` is never read [INFO] [stdout] --> src/ast.rs:253:7 [INFO] [stdout] | [INFO] [stdout] 251 | pub struct CreateTable { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 252 | pub name: TableIdent, [INFO] [stdout] 253 | pub if_not_exsists: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateTable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `or_replace` is never read [INFO] [stdout] --> src/ast.rs:290:7 [INFO] [stdout] | [INFO] [stdout] 288 | pub struct CreateFunction { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 289 | pub name: TableIdent, [INFO] [stdout] 290 | pub or_replace: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateFunction` 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: variant `Default` is never constructed [INFO] [stdout] --> src/ast.rs:322:3 [INFO] [stdout] | [INFO] [stdout] 321 | pub enum InsertValues { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 322 | Default, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InsertValues` 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: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `align_table_types` is never read [INFO] [stdout] --> src/format.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Options { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | align_table_types: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Options` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `uppercase_keywords` and `lowercase_keywords` are never used [INFO] [stdout] --> src/format.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 42 | impl Context { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn uppercase_keywords(&self) -> Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn lowercase_keywords(&self) -> Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `inners` is never used [INFO] [stdout] --> src/format.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 128 | impl Context> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 129 | pub fn inners(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Full`, `Partial`, and `Simple` are never constructed [INFO] [stdout] --> src/ast.rs:64:3 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum ColumnConstraintReferencesMatch { [INFO] [stdout] | ------------------------------- variants in this enum [INFO] [stdout] 64 | Full, [INFO] [stdout] | ^^^^ [INFO] [stdout] 65 | Partial, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 66 | Simple, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ColumnConstraintReferencesMatch` 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: variant `AsDef` is never constructed [INFO] [stdout] --> src/ast.rs:115:3 [INFO] [stdout] | [INFO] [stdout] 114 | pub enum CreateFunctionBody { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] 115 | AsDef(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateFunctionBody` 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: variant `As` is never constructed [INFO] [stdout] --> src/ast.rs:223:3 [INFO] [stdout] | [INFO] [stdout] 219 | pub enum Operator { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 223 | As, [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: field `if_not_exsists` is never read [INFO] [stdout] --> src/ast.rs:253:7 [INFO] [stdout] | [INFO] [stdout] 251 | pub struct CreateTable { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 252 | pub name: TableIdent, [INFO] [stdout] 253 | pub if_not_exsists: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateTable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `or_replace` is never read [INFO] [stdout] --> src/ast.rs:290:7 [INFO] [stdout] | [INFO] [stdout] 288 | pub struct CreateFunction { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 289 | pub name: TableIdent, [INFO] [stdout] 290 | pub or_replace: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateFunction` 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: variant `Default` is never constructed [INFO] [stdout] --> src/ast.rs:322:3 [INFO] [stdout] | [INFO] [stdout] 321 | pub enum InsertValues { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 322 | Default, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InsertValues` 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: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | / std::fs::File::open(name).map(|mut file| { [INFO] [stdout] 31 | | file.read_to_string(&mut d).unwrap(); [INFO] [stdout] 32 | | [INFO] [stdout] 33 | | let a = prettify(&d, None).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 36 | | debug_assert_eq!(a, prettify(&a, None).unwrap()); [INFO] [stdout] 37 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 30 | let _ = std::fs::File::open(name).map(|mut file| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | / std::fs::File::open(name).map(|mut file| { [INFO] [stdout] 31 | | file.read_to_string(&mut d).unwrap(); [INFO] [stdout] 32 | | [INFO] [stdout] 33 | | let a = prettify(&d, None).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 36 | | debug_assert_eq!(a, prettify(&a, None).unwrap()); [INFO] [stdout] 37 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 30 | let _ = std::fs::File::open(name).map(|mut file| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.31s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.10.8 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "782e1dc94556ce4bf2d4b254d5edba2feb885c094c0e29157a76e60dd41be245", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "782e1dc94556ce4bf2d4b254d5edba2feb885c094c0e29157a76e60dd41be245", kill_on_drop: false }` [INFO] [stdout] 782e1dc94556ce4bf2d4b254d5edba2feb885c094c0e29157a76e60dd41be245