[INFO] fetching crate diesel_cockroach 0.1.1... [INFO] testing diesel_cockroach-0.1.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate diesel_cockroach 0.1.1 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate diesel_cockroach 0.1.1 [INFO] finished tweaking crates.io crate diesel_cockroach 0.1.1 [INFO] tweaked toml for crates.io crate diesel_cockroach 0.1.1 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate diesel_cockroach 0.1.1 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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] Locking 18 packages to latest compatible versions [INFO] [stderr] Adding diesel v1.4.8 (available: v2.2.12) [INFO] [stderr] Adding pretty_assertions v0.6.1 (available: v1.4.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 79a456476a1ad48b31249421818ef6ef0b0369fac277ca410b0b46c5d0e076f7 [INFO] running `Command { std: "docker" "start" "-a" "79a456476a1ad48b31249421818ef6ef0b0369fac277ca410b0b46c5d0e076f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "79a456476a1ad48b31249421818ef6ef0b0369fac277ca410b0b46c5d0e076f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79a456476a1ad48b31249421818ef6ef0b0369fac277ca410b0b46c5d0e076f7", kill_on_drop: false }` [INFO] [stdout] 79a456476a1ad48b31249421818ef6ef0b0369fac277ca410b0b46c5d0e076f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] da995d2816a995bc96de07806bfd5b5db40a51c32080ec0f7f22249fc2c8bf86 [INFO] running `Command { std: "docker" "start" "-a" "da995d2816a995bc96de07806bfd5b5db40a51c32080ec0f7f22249fc2c8bf86", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling pq-sys v0.4.8 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling diesel v1.4.8 [INFO] [stderr] Compiling diesel_cockroach v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.28s [INFO] running `Command { std: "docker" "inspect" "da995d2816a995bc96de07806bfd5b5db40a51c32080ec0f7f22249fc2c8bf86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da995d2816a995bc96de07806bfd5b5db40a51c32080ec0f7f22249fc2c8bf86", kill_on_drop: false }` [INFO] [stdout] da995d2816a995bc96de07806bfd5b5db40a51c32080ec0f7f22249fc2c8bf86 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43e4bf35520093818620796060046b6ce19997c29d731a6f7dc5cea6a0d8a697 [INFO] running `Command { std: "docker" "start" "-a" "43e4bf35520093818620796060046b6ce19997c29d731a6f7dc5cea6a0d8a697", kill_on_drop: false }` [INFO] [stderr] Compiling difference v2.0.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling pretty_assertions v0.6.1 [INFO] [stderr] Compiling diesel_cockroach v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/upsert.rs:124:39 [INFO] [stdout] | [INFO] [stdout] 124 | #[derive(Debug, Clone, PartialEq, Insertable, Queryable)] [INFO] [stdout] | ^--------- [INFO] [stdout] | | [INFO] [stdout] | `Insertable` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_book` [INFO] [stdout] 125 | #[table_name = "books"] [INFO] [stdout] 126 | struct Book { [INFO] [stdout] | ---- `Book` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` 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 `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [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/upsert.rs:124:39 [INFO] [stdout] | [INFO] [stdout] 124 | #[derive(Debug, Clone, PartialEq, Insertable, Queryable)] [INFO] [stdout] | -^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Insertable` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_book` [INFO] [stdout] 125 | #[table_name = "books"] [INFO] [stdout] 126 | struct Book { [INFO] [stdout] | ---- `Book` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` 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: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [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/upsert.rs:124:39 [INFO] [stdout] | [INFO] [stdout] 124 | #[derive(Debug, Clone, PartialEq, Insertable, Queryable)] [INFO] [stdout] | ^--------- [INFO] [stdout] | | [INFO] [stdout] | `UndecoratedInsertRecord` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_book` [INFO] [stdout] 125 | #[table_name = "books"] [INFO] [stdout] 126 | struct Book { [INFO] [stdout] | ---- `Book` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` 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: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [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/upsert.rs:124:51 [INFO] [stdout] | [INFO] [stdout] 124 | #[derive(Debug, Clone, PartialEq, Insertable, Queryable)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Queryable` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_queryable_for_book` [INFO] [stdout] 125 | #[table_name = "books"] [INFO] [stdout] 126 | struct Book { [INFO] [stdout] | ---- `Book` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Queryable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Queryable` 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: this warning originates in the derive macro `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info) [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/upsert.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | / table! { [INFO] [stdout] 117 | | books (id) { [INFO] [stdout] 118 | | id -> Bytea, [INFO] [stdout] 119 | | title -> Text, [INFO] [stdout] ... | [INFO] [stdout] 122 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `table` is not local [INFO] [stdout] | |_____`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_table` [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: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [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/upsert.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | / table! { [INFO] [stdout] 117 | | books (id) { [INFO] [stdout] 118 | | id -> Bytea, [INFO] [stdout] | | -- `id` is not local [INFO] [stdout] 119 | | title -> Text, [INFO] [stdout] ... | [INFO] [stdout] 122 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_____`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_id` [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: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [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/upsert.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | / table! { [INFO] [stdout] 117 | | books (id) { [INFO] [stdout] 118 | | id -> Bytea, [INFO] [stdout] 119 | | title -> Text, [INFO] [stdout] | | ----- `title` is not local [INFO] [stdout] ... | [INFO] [stdout] 122 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_____`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_title` [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: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [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/upsert.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | / table! { [INFO] [stdout] 117 | | books (id) { [INFO] [stdout] 118 | | id -> Bytea, [INFO] [stdout] 119 | | title -> Text, [INFO] [stdout] 120 | | page_count -> Int8, [INFO] [stdout] | | ---------- `page_count` is not local [INFO] [stdout] 121 | | } [INFO] [stdout] 122 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_____`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_page_count` [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: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (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 1.03s [INFO] running `Command { std: "docker" "inspect" "43e4bf35520093818620796060046b6ce19997c29d731a6f7dc5cea6a0d8a697", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43e4bf35520093818620796060046b6ce19997c29d731a6f7dc5cea6a0d8a697", kill_on_drop: false }` [INFO] [stdout] 43e4bf35520093818620796060046b6ce19997c29d731a6f7dc5cea6a0d8a697 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f27f87bfca0a0761215898f93d90101ccc839f8dc38d526599edfef1c6d8ed18 [INFO] running `Command { std: "docker" "start" "-a" "f27f87bfca0a0761215898f93d90101ccc839f8dc38d526599edfef1c6d8ed18", kill_on_drop: false }` [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/upsert.rs:124:39 [INFO] [stderr] | [INFO] [stderr] 124 | #[derive(Debug, Clone, PartialEq, Insertable, Queryable)] [INFO] [stderr] | ^--------- [INFO] [stderr] | | [INFO] [stderr] | `Insertable` is not local [INFO] [stderr] | `table` is not local [INFO] [stderr] | move the `impl` block outside of this function `_impl_insertable_for_book` [INFO] [stderr] 125 | #[table_name = "books"] [INFO] [stderr] 126 | struct Book { [INFO] [stderr] | ---- `Book` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Insertable` 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 `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/upsert.rs:124:39 [INFO] [stderr] | [INFO] [stderr] 124 | #[derive(Debug, Clone, PartialEq, Insertable, Queryable)] [INFO] [stderr] | -^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | `Insertable` is not local [INFO] [stderr] | `table` is not local [INFO] [stderr] | move the `impl` block outside of this function `_impl_insertable_for_book` [INFO] [stderr] 125 | #[table_name = "books"] [INFO] [stderr] 126 | struct Book { [INFO] [stderr] | ---- `Book` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Insertable` 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: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/upsert.rs:124:39 [INFO] [stderr] | [INFO] [stderr] 124 | #[derive(Debug, Clone, PartialEq, Insertable, Queryable)] [INFO] [stderr] | ^--------- [INFO] [stderr] | | [INFO] [stderr] | `UndecoratedInsertRecord` is not local [INFO] [stderr] | `table` is not local [INFO] [stderr] | move the `impl` block outside of this function `_impl_insertable_for_book` [INFO] [stderr] 125 | #[table_name = "books"] [INFO] [stderr] 126 | struct Book { [INFO] [stderr] | ---- `Book` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Insertable` 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: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/upsert.rs:124:51 [INFO] [stderr] | [INFO] [stderr] 124 | #[derive(Debug, Clone, PartialEq, Insertable, Queryable)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Queryable` is not local [INFO] [stderr] | move the `impl` block outside of this function `_impl_queryable_for_book` [INFO] [stderr] 125 | #[table_name = "books"] [INFO] [stderr] 126 | struct Book { [INFO] [stderr] | ---- `Book` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Queryable` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Queryable` 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: this warning originates in the derive macro `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/upsert.rs:116:5 [INFO] [stderr] | [INFO] [stderr] 116 | / table! { [INFO] [stderr] 117 | | books (id) { [INFO] [stderr] 118 | | id -> Bytea, [INFO] [stderr] 119 | | title -> Text, [INFO] [stderr] ... | [INFO] [stderr] 122 | | } [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | | `table` is not local [INFO] [stderr] | |_____`QueryId` is not local [INFO] [stderr] | move the `impl` block outside of this function `_impl_query_id_for_table` [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: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/upsert.rs:116:5 [INFO] [stderr] | [INFO] [stderr] 116 | / table! { [INFO] [stderr] 117 | | books (id) { [INFO] [stderr] 118 | | id -> Bytea, [INFO] [stderr] | | -- `id` is not local [INFO] [stderr] 119 | | title -> Text, [INFO] [stderr] ... | [INFO] [stderr] 122 | | } [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | |_____`QueryId` is not local [INFO] [stderr] | move the `impl` block outside of this function `_impl_query_id_for_id` [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: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/upsert.rs:116:5 [INFO] [stderr] | [INFO] [stderr] 116 | / table! { [INFO] [stderr] 117 | | books (id) { [INFO] [stderr] 118 | | id -> Bytea, [INFO] [stderr] 119 | | title -> Text, [INFO] [stderr] | | ----- `title` is not local [INFO] [stderr] ... | [INFO] [stderr] 122 | | } [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | |_____`QueryId` is not local [INFO] [stderr] | move the `impl` block outside of this function `_impl_query_id_for_title` [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: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/upsert.rs:116:5 [INFO] [stderr] | [INFO] [stderr] 116 | / table! { [INFO] [stderr] 117 | | books (id) { [INFO] [stderr] 118 | | id -> Bytea, [INFO] [stderr] 119 | | title -> Text, [INFO] [stderr] 120 | | page_count -> Int8, [INFO] [stderr] | | ---------- `page_count` is not local [INFO] [stderr] 121 | | } [INFO] [stderr] 122 | | } [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | |_____`QueryId` is not local [INFO] [stderr] | move the `impl` block outside of this function `_impl_query_id_for_page_count` [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: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `diesel_cockroach` (lib test) generated 8 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/diesel_cockroach-bd54525e57af95cb) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test upsert::tests::empty ... ok [INFO] [stdout] test upsert::tests::many ... ok [INFO] [stdout] test upsert::tests::single ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests diesel_cockroach [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" "f27f87bfca0a0761215898f93d90101ccc839f8dc38d526599edfef1c6d8ed18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f27f87bfca0a0761215898f93d90101ccc839f8dc38d526599edfef1c6d8ed18", kill_on_drop: false }` [INFO] [stdout] f27f87bfca0a0761215898f93d90101ccc839f8dc38d526599edfef1c6d8ed18