[INFO] fetching crate diesel-helper 0.0.1... [INFO] testing diesel-helper-0.0.1 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate diesel-helper 0.0.1 into /workspace/builds/worker-4-tc2/source [INFO] removed /workspace/builds/worker-4-tc2/source/rust-toolchain [INFO] started tweaking crates.io crate diesel-helper 0.0.1 [INFO] finished tweaking crates.io crate diesel-helper 0.0.1 [INFO] tweaked toml for crates.io crate diesel-helper 0.0.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate diesel-helper 0.0.1 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 62 packages to latest compatible versions [INFO] [stderr] Adding diesel v1.4.8 (available: v2.3.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3644569988fbe16bd318e79a98b3a2fdadd5f7a2ad29c34d71dc793635fea98d [INFO] running `Command { std: "docker" "start" "-a" "3644569988fbe16bd318e79a98b3a2fdadd5f7a2ad29c34d71dc793635fea98d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3644569988fbe16bd318e79a98b3a2fdadd5f7a2ad29c34d71dc793635fea98d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3644569988fbe16bd318e79a98b3a2fdadd5f7a2ad29c34d71dc793635fea98d", kill_on_drop: false }` [INFO] [stdout] 3644569988fbe16bd318e79a98b3a2fdadd5f7a2ad29c34d71dc793635fea98d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 48da1e1d5f51197a971ae2c5c536abbce3bd054ab6293356c343692911fe422e [INFO] running `Command { std: "docker" "start" "-a" "48da1e1d5f51197a971ae2c5c536abbce3bd054ab6293356c343692911fe422e", kill_on_drop: false }` [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling pq-sys v0.4.8 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling diesel v1.4.8 [INFO] [stderr] Compiling diesel-helper v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/utils.rs:16:57 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn parse_utc_date_range(s: &str) -> Option<(chrono::Date, chrono::Date)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/utils.rs:16:84 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn parse_utc_date_range(s: &str) -> Option<(chrono::Date, chrono::Date)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stdout] --> src/utils.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | if let Ok(date1) = chrono::Utc.datetime_from_str(&format!("{} 00:00:00", vec[0]), FORMAT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stdout] --> src/utils.rs:8:44 [INFO] [stdout] | [INFO] [stdout] 8 | if let Ok(date2) = chrono::Utc.datetime_from_str(&format!("{} 23:59:59", vec[0]), FORMAT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stdout] --> src/utils.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | if let Ok(date1) = chrono::Utc.datetime_from_str(&format!("{} 00:00:00", vec[0]), FORMAT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stdout] --> src/utils.rs:21:44 [INFO] [stdout] | [INFO] [stdout] 21 | if let Ok(date2) = chrono::Utc.datetime_from_str(&format!("{} 00:00:00", vec[0]), FORMAT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/utils.rs:22:36 [INFO] [stdout] | [INFO] [stdout] 22 | return Some((date1.date(), date2.date())); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/utils.rs:22:50 [INFO] [stdout] | [INFO] [stdout] 22 | return Some((date1.date(), date2.date())); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/pagination.rs:35:30 [INFO] [stdout] | [INFO] [stdout] 35 | #[derive(Debug, Clone, Copy, QueryId)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_paginated` [INFO] [stdout] 36 | pub struct Paginated { [INFO] [stdout] | --------- `Paginated` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.69s [INFO] running `Command { std: "docker" "inspect" "48da1e1d5f51197a971ae2c5c536abbce3bd054ab6293356c343692911fe422e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48da1e1d5f51197a971ae2c5c536abbce3bd054ab6293356c343692911fe422e", kill_on_drop: false }` [INFO] [stdout] 48da1e1d5f51197a971ae2c5c536abbce3bd054ab6293356c343692911fe422e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 23c071a313b2afb7faf95c3bd6f5b8dfdf67911c9705479b044f3d2144ea1fd4 [INFO] running `Command { std: "docker" "start" "-a" "23c071a313b2afb7faf95c3bd6f5b8dfdf67911c9705479b044f3d2144ea1fd4", kill_on_drop: false }` [INFO] [stderr] Compiling diesel-helper v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/utils.rs:16:57 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn parse_utc_date_range(s: &str) -> Option<(chrono::Date, chrono::Date)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/utils.rs:16:84 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn parse_utc_date_range(s: &str) -> Option<(chrono::Date, chrono::Date)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stdout] --> src/utils.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | if let Ok(date1) = chrono::Utc.datetime_from_str(&format!("{} 00:00:00", vec[0]), FORMAT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stdout] --> src/utils.rs:8:44 [INFO] [stdout] | [INFO] [stdout] 8 | if let Ok(date2) = chrono::Utc.datetime_from_str(&format!("{} 23:59:59", vec[0]), FORMAT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stdout] --> src/utils.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | if let Ok(date1) = chrono::Utc.datetime_from_str(&format!("{} 00:00:00", vec[0]), FORMAT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stdout] --> src/utils.rs:21:44 [INFO] [stdout] | [INFO] [stdout] 21 | if let Ok(date2) = chrono::Utc.datetime_from_str(&format!("{} 00:00:00", vec[0]), FORMAT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/utils.rs:22:36 [INFO] [stdout] | [INFO] [stdout] 22 | return Some((date1.date(), date2.date())); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/utils.rs:22:50 [INFO] [stdout] | [INFO] [stdout] 22 | return Some((date1.date(), date2.date())); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/pagination.rs:35:30 [INFO] [stdout] | [INFO] [stdout] 35 | #[derive(Debug, Clone, Copy, QueryId)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_paginated` [INFO] [stdout] 36 | pub struct Paginated { [INFO] [stdout] | --------- `Paginated` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/utils.rs:16:57 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn parse_utc_date_range(s: &str) -> Option<(chrono::Date, chrono::Date)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/utils.rs:16:84 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn parse_utc_date_range(s: &str) -> Option<(chrono::Date, chrono::Date)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stdout] --> src/utils.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | if let Ok(date1) = chrono::Utc.datetime_from_str(&format!("{} 00:00:00", vec[0]), FORMAT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stdout] --> src/utils.rs:8:44 [INFO] [stdout] | [INFO] [stdout] 8 | if let Ok(date2) = chrono::Utc.datetime_from_str(&format!("{} 23:59:59", vec[0]), FORMAT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stdout] --> src/utils.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | if let Ok(date1) = chrono::Utc.datetime_from_str(&format!("{} 00:00:00", vec[0]), FORMAT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stdout] --> src/utils.rs:21:44 [INFO] [stdout] | [INFO] [stdout] 21 | if let Ok(date2) = chrono::Utc.datetime_from_str(&format!("{} 00:00:00", vec[0]), FORMAT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/utils.rs:22:36 [INFO] [stdout] | [INFO] [stdout] 22 | return Some((date1.date(), date2.date())); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/utils.rs:22:50 [INFO] [stdout] | [INFO] [stdout] 22 | return Some((date1.date(), date2.date())); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/pagination.rs:35:30 [INFO] [stdout] | [INFO] [stdout] 35 | #[derive(Debug, Clone, Copy, QueryId)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_paginated` [INFO] [stdout] 36 | pub struct Paginated { [INFO] [stdout] | --------- `Paginated` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.45s [INFO] running `Command { std: "docker" "inspect" "23c071a313b2afb7faf95c3bd6f5b8dfdf67911c9705479b044f3d2144ea1fd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23c071a313b2afb7faf95c3bd6f5b8dfdf67911c9705479b044f3d2144ea1fd4", kill_on_drop: false }` [INFO] [stdout] 23c071a313b2afb7faf95c3bd6f5b8dfdf67911c9705479b044f3d2144ea1fd4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 90537f8ceec60c488fb0ab629c3fd10a9c12ba32819544a7b716593bc52ce220 [INFO] running `Command { std: "docker" "start" "-a" "90537f8ceec60c488fb0ab629c3fd10a9c12ba32819544a7b716593bc52ce220", kill_on_drop: false }` [INFO] [stderr] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stderr] --> src/utils.rs:16:57 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn parse_utc_date_range(s: &str) -> Option<(chrono::Date, chrono::Date)> { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stderr] --> src/utils.rs:16:84 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn parse_utc_date_range(s: &str) -> Option<(chrono::Date, chrono::Date)> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stderr] --> src/utils.rs:7:40 [INFO] [stderr] | [INFO] [stderr] 7 | if let Ok(date1) = chrono::Utc.datetime_from_str(&format!("{} 00:00:00", vec[0]), FORMAT) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stderr] --> src/utils.rs:8:44 [INFO] [stderr] | [INFO] [stderr] 8 | if let Ok(date2) = chrono::Utc.datetime_from_str(&format!("{} 23:59:59", vec[0]), FORMAT) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stderr] --> src/utils.rs:20:40 [INFO] [stderr] | [INFO] [stderr] 20 | if let Ok(date1) = chrono::Utc.datetime_from_str(&format!("{} 00:00:00", vec[0]), FORMAT) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` or `NaiveDateTime::parse_from_str` with `and_utc()` or `and_local_timezone()` instead [INFO] [stderr] --> src/utils.rs:21:44 [INFO] [stderr] | [INFO] [stderr] 21 | if let Ok(date2) = chrono::Utc.datetime_from_str(&format!("{} 00:00:00", vec[0]), FORMAT) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stderr] --> src/utils.rs:22:36 [INFO] [stderr] | [INFO] [stderr] 22 | return Some((date1.date(), date2.date())); [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stderr] --> src/utils.rs:22:50 [INFO] [stderr] | [INFO] [stderr] 22 | return Some((date1.date(), date2.date())); [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/pagination.rs:35:30 [INFO] [stderr] | [INFO] [stderr] 35 | #[derive(Debug, Clone, Copy, QueryId)] [INFO] [stderr] | ^------ [INFO] [stderr] | | [INFO] [stderr] | `QueryId` is not local [INFO] [stderr] | move the `impl` block outside of this function `_impl_query_id_for_paginated` [INFO] [stderr] 36 | pub struct Paginated { [INFO] [stderr] | --------- `Paginated` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `QueryId` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `diesel-helper` (lib) generated 9 warnings [INFO] [stderr] warning: `diesel-helper` (lib test) generated 9 warnings (9 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/diesel_helper-d6277f6e38275d0f) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests diesel_helper [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "90537f8ceec60c488fb0ab629c3fd10a9c12ba32819544a7b716593bc52ce220", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90537f8ceec60c488fb0ab629c3fd10a9c12ba32819544a7b716593bc52ce220", kill_on_drop: false }` [INFO] [stdout] 90537f8ceec60c488fb0ab629c3fd10a9c12ba32819544a7b716593bc52ce220