[INFO] fetching crate restq 0.6.1... [INFO] checking restq-0.6.1 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] extracting crate restq 0.6.1 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate restq 0.6.1 on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate restq 0.6.1 [INFO] finished tweaking crates.io crate restq 0.6.1 [INFO] tweaked toml for crates.io crate restq 0.6.1 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 53 packages [INFO] [stderr] Adding base64 v0.13.1 (latest: v0.22.0) [INFO] [stderr] Adding uuid v0.8.2 (latest: v1.8.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.0+wasi-0.2.0) [INFO] [stderr] Adding windows-core v0.52.0 (latest: v0.55.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sql-ast v0.7.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5023cf1b2a8f29299c995e2baa2b3b596364b16df6fcc33a45a1da5600c5939b [INFO] running `Command { std: "docker" "start" "-a" "5023cf1b2a8f29299c995e2baa2b3b596364b16df6fcc33a45a1da5600c5939b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5023cf1b2a8f29299c995e2baa2b3b596364b16df6fcc33a45a1da5600c5939b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5023cf1b2a8f29299c995e2baa2b3b596364b16df6fcc33a45a1da5600c5939b", kill_on_drop: false }` [INFO] [stdout] 5023cf1b2a8f29299c995e2baa2b3b596364b16df6fcc33a45a1da5600c5939b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 25dc08e132ced3ad3b10e6f3dfd90051906dae8f545d7d7ee8252d163a1a72bb [INFO] running `Command { std: "docker" "start" "-a" "25dc08e132ced3ad3b10e6f3dfd90051906dae8f545d7d7ee8252d163a1a72bb", kill_on_drop: false }` [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking sql-ast v0.7.5 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Checking chrono v0.4.37 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking bstr v1.9.1 [INFO] [stderr] Checking thiserror v1.0.58 [INFO] [stderr] Checking pom v3.4.0 [INFO] [stderr] Checking restq v0.6.1 (/opt/rustwide/workdir) [INFO] [stdout] error: the item `Foreign` is imported redundantly [INFO] [stdout] --> src/ast/ddl/ddl_parser.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 3 | use super::*; [INFO] [stdout] | -------- the item `Foreign` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | ddl::Foreign, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unused_imports)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `tag` is imported redundantly [INFO] [stdout] --> src/ast/dml/dml_parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | tag, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pom::parser::*, [INFO] [stdout] | -------------- the item `tag` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `Foreign` is imported redundantly [INFO] [stdout] --> src/ast/ddl/ddl_parser.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 3 | use super::*; [INFO] [stdout] | -------- the item `Foreign` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | ddl::Foreign, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unused_imports)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `tag` is imported redundantly [INFO] [stdout] --> src/ast/dml/dml_parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | tag, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pom::parser::*, [INFO] [stdout] | -------------- the item `tag` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `BinaryOperation` is imported redundantly [INFO] [stdout] --> src/ast/dml.rs:394:9 [INFO] [stdout] | [INFO] [stdout] 392 | use super::*; [INFO] [stdout] | -------- the item `BinaryOperation` is already imported here [INFO] [stdout] 393 | use crate::ast::{ [INFO] [stdout] 394 | expr::BinaryOperation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `Operator` is imported redundantly [INFO] [stdout] --> src/ast/dml.rs:396:9 [INFO] [stdout] | [INFO] [stdout] 392 | use super::*; [INFO] [stdout] | -------- the item `Operator` is already imported here [INFO] [stdout] ... [INFO] [stdout] 396 | Operator, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `Foreign` is imported redundantly [INFO] [stdout] --> src/ast/parser/tests.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Foreign` is already imported here [INFO] [stdout] ... [INFO] [stdout] 8 | Foreign, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `TableDef` is imported redundantly [INFO] [stdout] --> src/ast/parser/tests.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `TableDef` is already imported here [INFO] [stdout] ... [INFO] [stdout] 9 | TableDef, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `ColumnName` is imported redundantly [INFO] [stdout] --> src/ast/parser/tests.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `ColumnName` is already imported here [INFO] [stdout] ... [INFO] [stdout] 11 | ColumnName, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `TableName` is imported redundantly [INFO] [stdout] --> src/ast/parser/tests.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `TableName` is already imported here [INFO] [stdout] ... [INFO] [stdout] 12 | TableName, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated associated function `chrono::NaiveTime::from_hms_milli`: use `from_hms_milli_opt()` instead [INFO] [stdout] --> src/data_value.rs:105:43 [INFO] [stdout] | [INFO] [stdout] 105 | NaiveDateTime::new(nd, NaiveTime::from_hms_milli(0, 0, 0, 0)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(deprecated)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/data_value.rs:536:60 [INFO] [stdout] | [INFO] [stdout] 536 | ... let local = DateTime::::from_utc( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/data_value.rs:538:46 [INFO] [stdout] | [INFO] [stdout] 538 | ... FixedOffset::east(0), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/data_value.rs:548:56 [INFO] [stdout] | [INFO] [stdout] 548 | ... let utc = DateTime::::from_utc(ts, Utc); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated associated function `chrono::NaiveTime::from_hms_milli`: use `from_hms_milli_opt()` instead [INFO] [stdout] --> src/data_value.rs:105:43 [INFO] [stdout] | [INFO] [stdout] 105 | NaiveDateTime::new(nd, NaiveTime::from_hms_milli(0, 0, 0, 0)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(deprecated)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/data_value.rs:536:60 [INFO] [stdout] | [INFO] [stdout] 536 | ... let local = DateTime::::from_utc( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead [INFO] [stdout] --> src/data_value.rs:538:46 [INFO] [stdout] | [INFO] [stdout] 538 | ... FixedOffset::east(0), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/data_value.rs:548:56 [INFO] [stdout] | [INFO] [stdout] 548 | ... let utc = DateTime::::from_utc(ts, Utc); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/data_value.rs:631:37 [INFO] [stdout] | [INFO] [stdout] 631 | let naive_date = NaiveDate::from_ymd(2006, 2, 14); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated associated function `chrono::NaiveTime::from_hms_milli`: use `from_hms_milli_opt()` instead [INFO] [stdout] --> src/data_value.rs:632:37 [INFO] [stdout] | [INFO] [stdout] 632 | let naive_time = NaiveTime::from_hms_milli(0, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/data_value.rs:641:37 [INFO] [stdout] | [INFO] [stdout] 641 | let naive_date = NaiveDate::from_ymd(2006, 2, 15); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated associated function `chrono::NaiveTime::from_hms_milli`: use `from_hms_milli_opt()` instead [INFO] [stdout] --> src/data_value.rs:642:37 [INFO] [stdout] | [INFO] [stdout] 642 | let naive_time = NaiveTime::from_hms_milli(9, 34, 33, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/ast/table.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 154 | for next in iter.next() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(for_loops_over_fallibles)]` implied by `#[deny(warnings)]` [INFO] [stdout] help: to iterate over `iter` remove the call to `next` [INFO] [stdout] | [INFO] [stdout] 154 | for next in iter.by_ref() { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 154 | if let Some(next) = iter.next() { [INFO] [stdout] | ~~~~~~~~~~~~ ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `restq` (lib) due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/ast/table.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 154 | for next in iter.next() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(for_loops_over_fallibles)]` implied by `#[deny(warnings)]` [INFO] [stdout] help: to iterate over `iter` remove the call to `next` [INFO] [stdout] | [INFO] [stdout] 154 | for next in iter.by_ref() { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 154 | if let Some(next) = iter.next() { [INFO] [stdout] | ~~~~~~~~~~~~ ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `restq` (lib test) due to 18 previous errors [INFO] running `Command { std: "docker" "inspect" "25dc08e132ced3ad3b10e6f3dfd90051906dae8f545d7d7ee8252d163a1a72bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25dc08e132ced3ad3b10e6f3dfd90051906dae8f545d7d7ee8252d163a1a72bb", kill_on_drop: false }` [INFO] [stdout] 25dc08e132ced3ad3b10e6f3dfd90051906dae8f545d7d7ee8252d163a1a72bb