[INFO] cloning repository https://github.com/d-mv/rust-api
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/d-mv/rust-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fd-mv%2Frust-api", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fd-mv%2Frust-api'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0aa1e8be38d1be125516b72e578230544edc65f7
[INFO] checking d-mv/rust-api against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fd-mv%2Frust-api" "/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/d-mv/rust-api on toolchain 5518eaa946291f00471af8b254b2a1715f234882
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/d-mv/rust-api
[INFO] finished tweaking git repo https://github.com/d-mv/rust-api
[INFO] tweaked toml for git repo https://github.com/d-mv/rust-api written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/d-mv/rust-api 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" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded vcpkg v0.2.7
[INFO] [stderr]   Downloaded diesel v1.4.3
[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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 87220a6519285d3d7c1c8c900ee3973219a97b070dada4d44af791b42342c675
[INFO] running `Command { std: "docker" "start" "-a" "87220a6519285d3d7c1c8c900ee3973219a97b070dada4d44af791b42342c675", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "87220a6519285d3d7c1c8c900ee3973219a97b070dada4d44af791b42342c675", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "87220a6519285d3d7c1c8c900ee3973219a97b070dada4d44af791b42342c675", kill_on_drop: false }`
[INFO] [stdout] 87220a6519285d3d7c1c8c900ee3973219a97b070dada4d44af791b42342c675
[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" "-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" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] de609136a39aba5a6ba863a4d97417b8f1b7744de9141c279232f29bc0fdaaf5
[INFO] running `Command { std: "docker" "start" "-a" "de609136a39aba5a6ba863a4d97417b8f1b7744de9141c279232f29bc0fdaaf5", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v1.0.8
[INFO] [stderr]    Compiling pq-sys v0.4.6
[INFO] [stderr]    Compiling byteorder v1.3.2
[INFO] [stderr]    Compiling diesel_derives v1.4.1
[INFO] [stderr]     Checking diesel v1.4.3
[INFO] [stderr]     Checking api v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused `#[macro_use]` import
[INFO] [stdout]  --> src/main.rs:3:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[macro_use]
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `#[macro_use]` import
[INFO] [stdout]  --> src/main.rs:3:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[macro_use]
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `show`, `all`, `update_by_id`, `delete_by_id`, and `all_by_author` are never used
[INFO] [stdout]   --> src/models.rs:26:10
[INFO] [stdout]    |
[INFO] [stdout] 25 | impl Book {
[INFO] [stdout]    | --------- associated functions in this implementation
[INFO] [stdout] 26 |   pub fn show(id: i32, conn: &PgConnection) -> Vec<Book> {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |   pub fn all(conn: &PgConnection) -> Vec<Book> {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |   pub fn update_by_id(id: i32, conn: &PgConnection, book: NewBook) -> bool {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 59 |   pub fn delete_by_id(id: i32, conn: &PgConnection) -> bool {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 66 |   pub fn all_by_author(author: String, conn: &PgConnection) -> Vec<Book> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `show`, `all`, `update_by_id`, `delete_by_id`, and `all_by_author` are never used
[INFO] [stdout]   --> src/models.rs:26:10
[INFO] [stdout]    |
[INFO] [stdout] 25 | impl Book {
[INFO] [stdout]    | --------- associated functions in this implementation
[INFO] [stdout] 26 |   pub fn show(id: i32, conn: &PgConnection) -> Vec<Book> {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |   pub fn all(conn: &PgConnection) -> Vec<Book> {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |   pub fn update_by_id(id: i32, conn: &PgConnection, book: NewBook) -> bool {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 59 |   pub fn delete_by_id(id: i32, conn: &PgConnection) -> bool {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 66 |   pub fn all_by_author(author: String, conn: &PgConnection) -> Vec<Book> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 17.07s
[INFO] running `Command { std: "docker" "inspect" "de609136a39aba5a6ba863a4d97417b8f1b7744de9141c279232f29bc0fdaaf5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "de609136a39aba5a6ba863a4d97417b8f1b7744de9141c279232f29bc0fdaaf5", kill_on_drop: false }`
[INFO] [stdout] de609136a39aba5a6ba863a4d97417b8f1b7744de9141c279232f29bc0fdaaf5
[INFO] checking d-mv/rust-api against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fd-mv%2Frust-api" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/d-mv/rust-api on toolchain 7622c0f807a4e13c4db886a1681bf343795692df
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/d-mv/rust-api
[INFO] finished tweaking git repo https://github.com/d-mv/rust-api
[INFO] tweaked toml for git repo https://github.com/d-mv/rust-api written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/d-mv/rust-api 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" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 95f7bd8abd570b5f539ab0a2901d83fc56fb554645c6cd498b4ba02d952ebd42
[INFO] running `Command { std: "docker" "start" "-a" "95f7bd8abd570b5f539ab0a2901d83fc56fb554645c6cd498b4ba02d952ebd42", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "95f7bd8abd570b5f539ab0a2901d83fc56fb554645c6cd498b4ba02d952ebd42", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "95f7bd8abd570b5f539ab0a2901d83fc56fb554645c6cd498b4ba02d952ebd42", kill_on_drop: false }`
[INFO] [stdout] 95f7bd8abd570b5f539ab0a2901d83fc56fb554645c6cd498b4ba02d952ebd42
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dnon_local_definitions" "-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" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4355905ab2c80d2925ae47c476aa53d84110c67b9ffed14ae4db3071a3461e7b
[INFO] running `Command { std: "docker" "start" "-a" "4355905ab2c80d2925ae47c476aa53d84110c67b9ffed14ae4db3071a3461e7b", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v1.0.8
[INFO] [stderr]    Compiling byteorder v1.3.2
[INFO] [stderr]    Compiling pq-sys v0.4.6
[INFO] [stderr]    Compiling diesel_derives v1.4.1
[INFO] [stderr]     Checking diesel v1.4.3
[INFO] [stderr]     Checking api v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused `#[macro_use]` import
[INFO] [stdout]  --> src/main.rs:3:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[macro_use]
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `#[macro_use]` import
[INFO] [stdout]  --> src/main.rs:3:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[macro_use]
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `show`, `all`, `update_by_id`, `delete_by_id`, and `all_by_author` are never used
[INFO] [stdout]   --> src/models.rs:26:10
[INFO] [stdout]    |
[INFO] [stdout] 25 | impl Book {
[INFO] [stdout]    | --------- associated functions in this implementation
[INFO] [stdout] 26 |   pub fn show(id: i32, conn: &PgConnection) -> Vec<Book> {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |   pub fn all(conn: &PgConnection) -> Vec<Book> {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |   pub fn update_by_id(id: i32, conn: &PgConnection, book: NewBook) -> bool {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 59 |   pub fn delete_by_id(id: i32, conn: &PgConnection) -> bool {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 66 |   pub fn all_by_author(author: String, conn: &PgConnection) -> Vec<Book> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/models.rs:9:10
[INFO] [stdout]   |
[INFO] [stdout] 9 | #[derive(Queryable)]
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_queryable_for_book`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: requested on the command line with `-D non-local-definitions`
[INFO] [stdout]   = note: this error originates in the derive macro `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/models.rs:17:10
[INFO] [stdout]    |
[INFO] [stdout] 17 | #[derive(Insertable)]
[INFO] [stdout]    |          ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_insertable_for_newbook`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/schema.rs:2:1
[INFO] [stdout]   |
[INFO] [stdout] 2 | / table! {
[INFO] [stdout] 3 | |     books (id) {
[INFO] [stdout] 4 | |         id -> Int4,
[INFO] [stdout] 5 | |         title -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 8 | |     }
[INFO] [stdout] 9 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_table`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error 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] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/schema.rs:2:1
[INFO] [stdout]   |
[INFO] [stdout] 2 | / table! {
[INFO] [stdout] 3 | |     books (id) {
[INFO] [stdout] 4 | |         id -> Int4,
[INFO] [stdout] 5 | |         title -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 8 | |     }
[INFO] [stdout] 9 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_id`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error 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] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/schema.rs:2:1
[INFO] [stdout]   |
[INFO] [stdout] 2 | / table! {
[INFO] [stdout] 3 | |     books (id) {
[INFO] [stdout] 4 | |         id -> Int4,
[INFO] [stdout] 5 | |         title -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 8 | |     }
[INFO] [stdout] 9 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_title`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error 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] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/schema.rs:2:1
[INFO] [stdout]   |
[INFO] [stdout] 2 | / table! {
[INFO] [stdout] 3 | |     books (id) {
[INFO] [stdout] 4 | |         id -> Int4,
[INFO] [stdout] 5 | |         title -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 8 | |     }
[INFO] [stdout] 9 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_author`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error 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] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/schema.rs:2:1
[INFO] [stdout]   |
[INFO] [stdout] 2 | / table! {
[INFO] [stdout] 3 | |     books (id) {
[INFO] [stdout] 4 | |         id -> Int4,
[INFO] [stdout] 5 | |         title -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 8 | |     }
[INFO] [stdout] 9 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_published`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error 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: associated functions `show`, `all`, `update_by_id`, `delete_by_id`, and `all_by_author` are never used
[INFO] [stdout]   --> src/models.rs:26:10
[INFO] [stdout]    |
[INFO] [stdout] 25 | impl Book {
[INFO] [stdout]    | --------- associated functions in this implementation
[INFO] [stdout] 26 |   pub fn show(id: i32, conn: &PgConnection) -> Vec<Book> {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |   pub fn all(conn: &PgConnection) -> Vec<Book> {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |   pub fn update_by_id(id: i32, conn: &PgConnection, book: NewBook) -> bool {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 59 |   pub fn delete_by_id(id: i32, conn: &PgConnection) -> bool {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 66 |   pub fn all_by_author(author: String, conn: &PgConnection) -> Vec<Book> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/models.rs:9:10
[INFO] [stdout]   |
[INFO] [stdout] 9 | #[derive(Queryable)]
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_queryable_for_book`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: requested on the command line with `-D non-local-definitions`
[INFO] [stdout]   = note: this error originates in the derive macro `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/models.rs:17:10
[INFO] [stdout]    |
[INFO] [stdout] 17 | #[derive(Insertable)]
[INFO] [stdout]    |          ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_insertable_for_newbook`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/schema.rs:2:1
[INFO] [stdout]   |
[INFO] [stdout] 2 | / table! {
[INFO] [stdout] 3 | |     books (id) {
[INFO] [stdout] 4 | |         id -> Int4,
[INFO] [stdout] 5 | |         title -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 8 | |     }
[INFO] [stdout] 9 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_table`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error 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] error: aborting due to 7 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/schema.rs:2:1
[INFO] [stdout]   |
[INFO] [stdout] 2 | / table! {
[INFO] [stdout] 3 | |     books (id) {
[INFO] [stdout] 4 | |         id -> Int4,
[INFO] [stdout] 5 | |         title -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 8 | |     }
[INFO] [stdout] 9 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_id`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error 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] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/schema.rs:2:1
[INFO] [stdout]   |
[INFO] [stdout] 2 | / table! {
[INFO] [stdout] 3 | |     books (id) {
[INFO] [stdout] 4 | |         id -> Int4,
[INFO] [stdout] 5 | |         title -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 8 | |     }
[INFO] [stdout] 9 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_title`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error 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] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/schema.rs:2:1
[INFO] [stdout]   |
[INFO] [stdout] 2 | / table! {
[INFO] [stdout] 3 | |     books (id) {
[INFO] [stdout] 4 | |         id -> Int4,
[INFO] [stdout] 5 | |         title -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 8 | |     }
[INFO] [stdout] 9 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_author`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error 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] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/schema.rs:2:1
[INFO] [stdout]   |
[INFO] [stdout] 2 | / table! {
[INFO] [stdout] 3 | |     books (id) {
[INFO] [stdout] 4 | |         id -> Int4,
[INFO] [stdout] 5 | |         title -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 8 | |     }
[INFO] [stdout] 9 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_published`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error 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] error: aborting due to 7 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `api` (bin "api") due to 8 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `api` (bin "api" test) due to 8 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "4355905ab2c80d2925ae47c476aa53d84110c67b9ffed14ae4db3071a3461e7b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4355905ab2c80d2925ae47c476aa53d84110c67b9ffed14ae4db3071a3461e7b", kill_on_drop: false }`
[INFO] [stdout] 4355905ab2c80d2925ae47c476aa53d84110c67b9ffed14ae4db3071a3461e7b
