[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 try#163937523761cc0def32f1ba9ed63fdf65ad3478 for pr-156749 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foeb25%2Fsql-fmt" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [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-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/oeb25/sql-fmt on toolchain 163937523761cc0def32f1ba9ed63fdf65ad3478 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+163937523761cc0def32f1ba9ed63fdf65ad3478" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+163937523761cc0def32f1ba9ed63fdf65ad3478" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] warning: `sql-fmt` (manifest) generated 1 warning [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3e793bdf10248eb2ddbd6b0faebed8155c11b4589982e2893733958d93e8d540" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 264e16eb4e6fa6ef052218a730da7ac540fbe6c39f56939480bca2d9a55cfb15 [INFO] running `Command { std: "docker" "start" "264e16eb4e6fa6ef052218a730da7ac540fbe6c39f56939480bca2d9a55cfb15", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "264e16eb4e6fa6ef052218a730da7ac540fbe6c39f56939480bca2d9a55cfb15" "/opt/rustwide/cargo-home/bin/cargo" "+163937523761cc0def32f1ba9ed63fdf65ad3478" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "264e16eb4e6fa6ef052218a730da7ac540fbe6c39f56939480bca2d9a55cfb15", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "264e16eb4e6fa6ef052218a730da7ac540fbe6c39f56939480bca2d9a55cfb15" "/opt/rustwide/cargo-home/bin/cargo" "+163937523761cc0def32f1ba9ed63fdf65ad3478" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] warning: `sql-fmt` (manifest) generated 1 warning [INFO] [stderr] Checking libc v0.2.33 [INFO] [stderr] Compiling rayon-core v1.3.0 [INFO] [stderr] Checking either v1.4.0 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Checking lazy_static v0.2.10 [INFO] [stderr] Compiling unicode-xid v0.0.4 [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] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(box_patterns)] [INFO] [stdout] | ^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: removed in CURRENT_RUSTC_VERSION [INFO] [stdout] = note: superseded by `deref_patterns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `box_patterns` have been removed [INFO] [stdout] --> src/format.rs:367:41 [INFO] [stdout] | [INFO] [stdout] 367 | Expression::Infix(Operator::AndLit, box (ref a, ref b)) => format!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(box_patterns)] [INFO] [stdout] | ^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: removed in CURRENT_RUSTC_VERSION [INFO] [stdout] = note: superseded by `deref_patterns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `box_patterns` have been removed [INFO] [stdout] --> src/format.rs:367:41 [INFO] [stdout] | [INFO] [stdout] 367 | Expression::Infix(Operator::AndLit, box (ref a, ref b)) => format!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `a` in this scope [INFO] [stdout] --> src/format.rs:369:18 [INFO] [stdout] | [INFO] [stdout] 369 | and_format(a, ctx), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] note: function `parser::a` exists but is inaccessible [INFO] [stdout] --> src/parser.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | fn a>>(a: I) -> Result, ParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 369 - and_format(a, ctx), [INFO] [stdout] 369 + and_format(c, ctx), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `b` in this scope [INFO] [stdout] --> src/format.rs:371:7 [INFO] [stdout] | [INFO] [stdout] 371 | b.format(ctx), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 371 - b.format(ctx), [INFO] [stdout] 371 + c.format(ctx), [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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] error[E0425]: cannot find value `a` in this scope [INFO] [stdout] --> src/format.rs:369:18 [INFO] [stdout] | [INFO] [stdout] 369 | and_format(a, ctx), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] note: function `parser::a` exists but is inaccessible [INFO] [stdout] --> src/parser.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | fn a>>(a: I) -> Result, ParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 369 - and_format(a, ctx), [INFO] [stdout] 369 + and_format(c, ctx), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `b` in this scope [INFO] [stdout] --> src/format.rs:371:7 [INFO] [stdout] | [INFO] [stdout] 371 | b.format(ctx), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 371 - b.format(ctx), [INFO] [stdout] 371 + c.format(ctx), [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: 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: 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0557. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sql-fmt` (lib test) due to 4 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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)]` (part of `#[warn(unused)]`) 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: 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: 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0557. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sql-fmt` (lib) due to 4 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "264e16eb4e6fa6ef052218a730da7ac540fbe6c39f56939480bca2d9a55cfb15", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "264e16eb4e6fa6ef052218a730da7ac540fbe6c39f56939480bca2d9a55cfb15", kill_on_drop: false }` [INFO] [stdout] 264e16eb4e6fa6ef052218a730da7ac540fbe6c39f56939480bca2d9a55cfb15