[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] building oeb25/sql-fmt against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foeb25%2Fsql-fmt" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/oeb25/sql-fmt on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-1-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lazy_static v0.2.10 [INFO] [stderr] Downloaded syn v0.10.8 [INFO] [stderr] Downloaded pest v1.0.0-beta.16 [INFO] [stderr] Downloaded rayon v0.9.0 [INFO] [stderr] Downloaded pest_derive v1.0.0-beta.16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ae561e2638b2d4abc0ea5e3c2f7c091d990980e1595086bc40e89d66b029caf7 [INFO] running `Command { std: "docker" "start" "-a" "ae561e2638b2d4abc0ea5e3c2f7c091d990980e1595086bc40e89d66b029caf7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ae561e2638b2d4abc0ea5e3c2f7c091d990980e1595086bc40e89d66b029caf7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae561e2638b2d4abc0ea5e3c2f7c091d990980e1595086bc40e89d66b029caf7", kill_on_drop: false }` [INFO] [stdout] ae561e2638b2d4abc0ea5e3c2f7c091d990980e1595086bc40e89d66b029caf7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be70f7727fc3ef4b2b62df64075b8d93984fad6f75794fd166b0385d975ea9b1 [INFO] running `Command { std: "docker" "start" "-a" "be70f7727fc3ef4b2b62df64075b8d93984fad6f75794fd166b0385d975ea9b1", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.33 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling either v1.4.0 [INFO] [stderr] Compiling rayon-core v1.3.0 [INFO] [stderr] Compiling 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 coco v0.1.1 [INFO] [stderr] Compiling syn v0.10.8 [INFO] [stderr] Compiling rand v0.3.18 [INFO] [stderr] Compiling num_cpus v1.7.0 [INFO] [stderr] Compiling rayon v0.9.0 [INFO] [stderr] Compiling pest_derive v1.0.0-beta.16 [INFO] [stderr] Compiling 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: 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: 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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.22s [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" "be70f7727fc3ef4b2b62df64075b8d93984fad6f75794fd166b0385d975ea9b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be70f7727fc3ef4b2b62df64075b8d93984fad6f75794fd166b0385d975ea9b1", kill_on_drop: false }` [INFO] [stdout] be70f7727fc3ef4b2b62df64075b8d93984fad6f75794fd166b0385d975ea9b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6e53a4b29c20cfe6dc9f6d353fc48cc6652f30568b00973c7753a5bf6546145d [INFO] running `Command { std: "docker" "start" "-a" "6e53a4b29c20cfe6dc9f6d353fc48cc6652f30568b00973c7753a5bf6546145d", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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: 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: 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] [stderr] Compiling sql-fmt v0.1.0 (/opt/rustwide/workdir) [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: 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: 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: 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.66s [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" "6e53a4b29c20cfe6dc9f6d353fc48cc6652f30568b00973c7753a5bf6546145d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e53a4b29c20cfe6dc9f6d353fc48cc6652f30568b00973c7753a5bf6546145d", kill_on_drop: false }` [INFO] [stdout] 6e53a4b29c20cfe6dc9f6d353fc48cc6652f30568b00973c7753a5bf6546145d