[INFO] cloning repository https://github.com/vagicc/diesel-demo
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vagicc/diesel-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvagicc%2Fdiesel-demo", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvagicc%2Fdiesel-demo'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 916da67be52e98f6b1ca963e22bddcdaa495e3d0
[INFO] checking vagicc/diesel-demo against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvagicc%2Fdiesel-demo" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/vagicc/diesel-demo 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/vagicc/diesel-demo
[INFO] finished tweaking git repo https://github.com/vagicc/diesel-demo
[INFO] tweaked toml for git repo https://github.com/vagicc/diesel-demo written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/vagicc/diesel-demo 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 serde_json v1.0.85
[INFO] [stderr]   Downloaded bigdecimal v0.1.2
[INFO] [stderr]   Downloaded vcpkg v0.2.12
[INFO] [stderr]   Downloaded hyper v0.14.7
[INFO] [stderr]   Downloaded serde v1.0.144
[INFO] [stderr]   Downloaded serde_derive v1.0.144
[INFO] [stderr]   Downloaded httpdate v1.0.0
[INFO] [stderr]   Downloaded tokio v1.6.0
[INFO] [stderr]   Downloaded js-sys v0.3.51
[INFO] [stderr]   Downloaded tokio-stream v0.1.6
[INFO] [stderr]   Downloaded redox_syscall v0.2.8
[INFO] [stderr]   Downloaded ipnetwork v0.17.0
[INFO] [stderr]   Downloaded web-sys v0.3.51
[INFO] [stderr]   Downloaded tokio-macros v1.2.0
[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" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 7f81bff901ac416eabf289e2d7c109ba6b0366d2069debe6cdc6c31b097699a3
[INFO] running `Command { std: "docker" "start" "-a" "7f81bff901ac416eabf289e2d7c109ba6b0366d2069debe6cdc6c31b097699a3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7f81bff901ac416eabf289e2d7c109ba6b0366d2069debe6cdc6c31b097699a3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7f81bff901ac416eabf289e2d7c109ba6b0366d2069debe6cdc6c31b097699a3", kill_on_drop: false }`
[INFO] [stdout] 7f81bff901ac416eabf289e2d7c109ba6b0366d2069debe6cdc6c31b097699a3
[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" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] fb25e41862bd534c81f1cd84893883927b4c0599a882a389b070a8fce3a91f08
[INFO] running `Command { std: "docker" "start" "-a" "fb25e41862bd534c81f1cd84893883927b4c0599a882a389b070a8fce3a91f08", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.94
[INFO] [stderr]    Compiling proc-macro2 v1.0.43
[INFO] [stderr]    Compiling unicode-ident v1.0.3
[INFO] [stderr]    Compiling syn v1.0.99
[INFO] [stderr]     Checking bytes v1.0.1
[INFO] [stderr]    Compiling memchr v2.4.0
[INFO] [stderr]     Checking lock_api v0.4.4
[INFO] [stderr]    Compiling futures-core v0.3.15
[INFO] [stderr]    Compiling tokio v1.6.0
[INFO] [stderr]    Compiling serde_derive v1.0.144
[INFO] [stderr]     Checking futures-sink v0.3.15
[INFO] [stderr]    Compiling cc v1.0.67
[INFO] [stderr]    Compiling futures-task v0.3.15
[INFO] [stderr]     Checking http v0.2.4
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling futures-util v0.3.15
[INFO] [stderr]    Compiling httparse v1.4.1
[INFO] [stderr]    Compiling serde v1.0.144
[INFO] [stderr]    Compiling quote v1.0.9
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]     Checking untrusted v0.7.1
[INFO] [stderr]     Checking slab v0.4.3
[INFO] [stderr]     Checking parking_lot_core v0.8.3
[INFO] [stderr]     Checking getrandom v0.2.2
[INFO] [stderr]     Checking mio v0.7.11
[INFO] [stderr]     Checking num_cpus v1.13.0
[INFO] [stderr]     Checking signal-hook-registry v1.3.0
[INFO] [stderr]     Checking parking_lot v0.11.1
[INFO] [stderr]     Checking rand_core v0.6.2
[INFO] [stderr]    Compiling ring v0.16.20
[INFO] [stderr]     Checking getrandom v0.1.16
[INFO] [stderr]     Checking rand_chacha v0.3.0
[INFO] [stderr]    Compiling futures-channel v0.3.15
[INFO] [stderr]     Checking cpufeatures v0.1.4
[INFO] [stderr]     Checking tracing-core v0.1.18
[INFO] [stderr]     Checking sha-1 v0.9.6
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking rand v0.8.3
[INFO] [stderr]     Checking idna v0.2.3
[INFO] [stderr]     Checking time v0.1.43
[INFO] [stderr]    Compiling num-bigint v0.2.6
[INFO] [stderr]    Compiling serde_json v1.0.85
[INFO] [stderr]     Checking tracing v0.1.26
[INFO] [stderr]     Checking url v2.2.2
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking input_buffer v0.4.0
[INFO] [stderr]     Checking itoa v1.0.3
[INFO] [stderr]    Compiling pq-sys v0.4.6
[INFO] [stderr]     Checking utf-8 v0.7.6
[INFO] [stderr]     Checking tempfile v3.2.0
[INFO] [stderr]     Checking buf_redux v0.8.4
[INFO] [stderr]     Checking tungstenite v0.12.0
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking http-body v0.4.2
[INFO] [stderr]     Checking headers-core v0.2.0
[INFO] [stderr]     Checking scheduled-thread-pool v0.2.5
[INFO] [stderr]     Checking socket2 v0.4.0
[INFO] [stderr]     Checking twoway v0.1.8
[INFO] [stderr]     Checking futures-io v0.3.15
[INFO] [stderr]     Checking httpdate v1.0.0
[INFO] [stderr]     Checking uuid v0.6.5
[INFO] [stderr]     Checking r2d2 v0.8.9
[INFO] [stderr]     Checking headers v0.3.4
[INFO] [stderr]     Checking chrono v0.4.19
[INFO] [stderr]     Checking dotenv v0.15.0
[INFO] [stderr]     Checking futures v0.3.15
[INFO] [stderr]     Checking multipart v0.17.1
[INFO] [stderr]     Checking bigdecimal v0.1.2
[INFO] [stderr]     Checking sct v0.6.1
[INFO] [stderr]     Checking webpki v0.21.4
[INFO] [stderr]     Checking rustls v0.19.1
[INFO] [stderr]    Compiling tokio-macros v1.2.0
[INFO] [stderr]    Compiling pin-project-internal v1.0.7
[INFO] [stderr]    Compiling diesel_derives v1.4.1
[INFO] [stderr]     Checking pin-project v1.0.7
[INFO] [stderr]     Checking tokio-util v0.6.7
[INFO] [stderr]     Checking tokio-stream v0.1.6
[INFO] [stderr]     Checking tokio-tungstenite v0.13.0
[INFO] [stderr]     Checking tokio-rustls v0.22.0
[INFO] [stderr]     Checking h2 v0.3.3
[INFO] [stderr]     Checking serde_urlencoded v0.7.0
[INFO] [stderr]     Checking ipnetwork v0.17.0
[INFO] [stderr]     Checking diesel v1.4.6
[INFO] [stderr]     Checking hyper v0.14.7
[INFO] [stderr]     Checking warp v0.3.1
[INFO] [stderr]     Checking diesel-demo v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `diesel::QueryDsl`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use diesel::QueryDsl;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::schema::animals`
[INFO] [stdout]  --> src/handlers/animal_handler.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::schema::animals;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `posts` is imported redundantly
[INFO] [stdout]    --> src/models/user_model.rs:431:9
[INFO] [stdout]     |
[INFO] [stdout] 3   | use crate::schema::{posts, users};
[INFO] [stdout]     |                     ----- the item `posts` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 431 |     use crate::schema::posts;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `user_model` is imported redundantly
[INFO] [stdout]   --> src/filters.rs:15:17
[INFO] [stdout]    |
[INFO] [stdout] 3  | use crate::models::user_model;
[INFO] [stdout]    |     ------------------------- the item `user_model` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 15 |             use crate::models::user_model;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `user_model` is imported redundantly
[INFO] [stdout]   --> src/filters.rs:24:17
[INFO] [stdout]    |
[INFO] [stdout] 3  | use crate::models::user_model;
[INFO] [stdout]    |     ------------------------- the item `user_model` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 24 |             use crate::models::user_model;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `user_model` is imported redundantly
[INFO] [stdout]   --> src/filters.rs:33:17
[INFO] [stdout]    |
[INFO] [stdout] 3  | use crate::models::user_model;
[INFO] [stdout]    |     ------------------------- the item `user_model` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 33 |             use crate::models::user_model;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `diesel::QueryDsl`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use diesel::QueryDsl;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::schema::animals`
[INFO] [stdout]  --> src/handlers/animal_handler.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::schema::animals;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `posts` is imported redundantly
[INFO] [stdout]    --> src/models/user_model.rs:431:9
[INFO] [stdout]     |
[INFO] [stdout] 3   | use crate::schema::{posts, users};
[INFO] [stdout]     |                     ----- the item `posts` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 431 |     use crate::schema::posts;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `user_model` is imported redundantly
[INFO] [stdout]   --> src/filters.rs:15:17
[INFO] [stdout]    |
[INFO] [stdout] 3  | use crate::models::user_model;
[INFO] [stdout]    |     ------------------------- the item `user_model` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 15 |             use crate::models::user_model;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `user_model` is imported redundantly
[INFO] [stdout]   --> src/filters.rs:24:17
[INFO] [stdout]    |
[INFO] [stdout] 3  | use crate::models::user_model;
[INFO] [stdout]    |     ------------------------- the item `user_model` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 24 |             use crate::models::user_model;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `user_model` is imported redundantly
[INFO] [stdout]   --> src/filters.rs:33:17
[INFO] [stdout]    |
[INFO] [stdout] 3  | use crate::models::user_model;
[INFO] [stdout]    |     ------------------------- the item `user_model` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 33 |             use crate::models::user_model;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> src/handlers/animal_handler.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let result = diesel::insert_into(animals)
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> src/handlers/animal_handler.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let result = diesel::insert_into(animals)
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> src/models/user_model.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 44 |     let result = diesel::insert_into(users)
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> src/models/user_model.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let result = connection.execute("DELETE FROM posts"); //删除表posts数据
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `postID`
[INFO] [stdout]   --> src/models/user_model.rs:84:9
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let postID = posts::table.select(posts::id).first::<i32>(&connection);
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_postID`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection`
[INFO] [stdout]   --> src/models/animal_model.rs:70:9
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let connection = db::establish_connection();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `form`
[INFO] [stdout]   --> src/models/animal_model.rs:71:9
[INFO] [stdout]    |
[INFO] [stdout] 71 |     let form = AnimalForm {
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_form`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `changed_data`
[INFO] [stdout]   --> src/models/animal_model.rs:93:9
[INFO] [stdout]    |
[INFO] [stdout] 93 |     let changed_data = diesel::update(animals.find(3))
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_changed_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `pg_pool` is never used
[INFO] [stdout]  --> src/db.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn pg_pool() -> Pool<ConnectionManager<PgConnection>> {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/models/user_model.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl User {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 13 |     fn new(uid: i32, uname: &str) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/models/user_model.rs:28:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | impl Post {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 28 |     fn new(pid: i32, userid: i32, ptitle: &str) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `DB` is never used
[INFO] [stdout]    --> src/models/user_model.rs:361:10
[INFO] [stdout]     |
[INFO] [stdout] 361 |     type DB = diesel::pg::Pg;
[INFO] [stdout]     |          ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/models/animal_model.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Animal {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 14 |     fn new<S: Into<String>>(special: S, named: Option<&str>, leg: i32) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run_test` is never used
[INFO] [stdout]   --> src/models/animal_model.rs:69:8
[INFO] [stdout]    |
[INFO] [stdout] 69 | pub fn run_test() {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `postID` should have a snake case name
[INFO] [stdout]   --> src/models/user_model.rs:84:9
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let postID = posts::table.select(posts::id).first::<i32>(&connection);
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `post_id`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 20 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> src/models/user_model.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 44 |     let result = diesel::insert_into(users)
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> src/models/user_model.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let result = connection.execute("DELETE FROM posts"); //删除表posts数据
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `postID`
[INFO] [stdout]   --> src/models/user_model.rs:84:9
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let postID = posts::table.select(posts::id).first::<i32>(&connection);
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_postID`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection`
[INFO] [stdout]   --> src/models/animal_model.rs:70:9
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let connection = db::establish_connection();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `form`
[INFO] [stdout]   --> src/models/animal_model.rs:71:9
[INFO] [stdout]    |
[INFO] [stdout] 71 |     let form = AnimalForm {
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_form`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `changed_data`
[INFO] [stdout]   --> src/models/animal_model.rs:93:9
[INFO] [stdout]    |
[INFO] [stdout] 93 |     let changed_data = diesel::update(animals.find(3))
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_changed_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `pg_pool` is never used
[INFO] [stdout]  --> src/db.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn pg_pool() -> Pool<ConnectionManager<PgConnection>> {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/models/user_model.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl User {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 13 |     fn new(uid: i32, uname: &str) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/models/user_model.rs:28:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | impl Post {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 28 |     fn new(pid: i32, userid: i32, ptitle: &str) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `DB` is never used
[INFO] [stdout]    --> src/models/user_model.rs:361:10
[INFO] [stdout]     |
[INFO] [stdout] 361 |     type DB = diesel::pg::Pg;
[INFO] [stdout]     |          ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/models/animal_model.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Animal {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 14 |     fn new<S: Into<String>>(special: S, named: Option<&str>, leg: i32) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run_test` is never used
[INFO] [stdout]   --> src/models/animal_model.rs:69:8
[INFO] [stdout]    |
[INFO] [stdout] 69 | pub fn run_test() {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `postID` should have a snake case name
[INFO] [stdout]   --> src/models/user_model.rs:84:9
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let postID = posts::table.select(posts::id).first::<i32>(&connection);
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `post_id`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 20 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 1m 10s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.17.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] running `Command { std: "docker" "inspect" "fb25e41862bd534c81f1cd84893883927b4c0599a882a389b070a8fce3a91f08", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fb25e41862bd534c81f1cd84893883927b4c0599a882a389b070a8fce3a91f08", kill_on_drop: false }`
[INFO] [stdout] fb25e41862bd534c81f1cd84893883927b4c0599a882a389b070a8fce3a91f08
[INFO] checking vagicc/diesel-demo 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%2Fvagicc%2Fdiesel-demo" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/vagicc/diesel-demo 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/vagicc/diesel-demo
[INFO] finished tweaking git repo https://github.com/vagicc/diesel-demo
[INFO] tweaked toml for git repo https://github.com/vagicc/diesel-demo written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/vagicc/diesel-demo 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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 7bf54769a22808971d6727fefccbf0d081a37917734b20ad2b2df2bd8fd1186e
[INFO] running `Command { std: "docker" "start" "-a" "7bf54769a22808971d6727fefccbf0d081a37917734b20ad2b2df2bd8fd1186e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7bf54769a22808971d6727fefccbf0d081a37917734b20ad2b2df2bd8fd1186e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7bf54769a22808971d6727fefccbf0d081a37917734b20ad2b2df2bd8fd1186e", kill_on_drop: false }`
[INFO] [stdout] 7bf54769a22808971d6727fefccbf0d081a37917734b20ad2b2df2bd8fd1186e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 22c2ee6a6d401aa731e0556ea3316fbfe7525b70f3202a3cda9f18faca3cf7da
[INFO] running `Command { std: "docker" "start" "-a" "22c2ee6a6d401aa731e0556ea3316fbfe7525b70f3202a3cda9f18faca3cf7da", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.94
[INFO] [stderr]    Compiling proc-macro2 v1.0.43
[INFO] [stderr]    Compiling unicode-ident v1.0.3
[INFO] [stderr]    Compiling syn v1.0.99
[INFO] [stderr]     Checking bytes v1.0.1
[INFO] [stderr]    Compiling memchr v2.4.0
[INFO] [stderr]     Checking lock_api v0.4.4
[INFO] [stderr]    Compiling futures-core v0.3.15
[INFO] [stderr]    Compiling tokio v1.6.0
[INFO] [stderr]     Checking futures-sink v0.3.15
[INFO] [stderr]    Compiling cc v1.0.67
[INFO] [stderr]    Compiling serde_derive v1.0.144
[INFO] [stderr]     Checking http v0.2.4
[INFO] [stderr]    Compiling futures-task v0.3.15
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling futures-util v0.3.15
[INFO] [stderr]    Compiling httparse v1.4.1
[INFO] [stderr]    Compiling serde v1.0.144
[INFO] [stderr]    Compiling quote v1.0.9
[INFO] [stderr]     Checking parking_lot_core v0.8.3
[INFO] [stderr]     Checking getrandom v0.2.2
[INFO] [stderr]     Checking signal-hook-registry v1.3.0
[INFO] [stderr]     Checking num_cpus v1.13.0
[INFO] [stderr]     Checking mio v0.7.11
[INFO] [stderr]     Checking rand_core v0.6.2
[INFO] [stderr]     Checking parking_lot v0.11.1
[INFO] [stderr]     Checking rand_chacha v0.3.0
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]     Checking untrusted v0.7.1
[INFO] [stderr]     Checking slab v0.4.3
[INFO] [stderr]    Compiling ring v0.16.20
[INFO] [stderr]     Checking rand v0.8.3
[INFO] [stderr]     Checking getrandom v0.1.16
[INFO] [stderr]    Compiling futures-channel v0.3.15
[INFO] [stderr]     Checking cpufeatures v0.1.4
[INFO] [stderr]     Checking sha-1 v0.9.6
[INFO] [stderr]     Checking tracing-core v0.1.18
[INFO] [stderr]     Checking idna v0.2.3
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking time v0.1.43
[INFO] [stderr]    Compiling num-bigint v0.2.6
[INFO] [stderr]    Compiling serde_json v1.0.85
[INFO] [stderr]     Checking tracing v0.1.26
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking url v2.2.2
[INFO] [stderr]     Checking input_buffer v0.4.0
[INFO] [stderr]    Compiling pq-sys v0.4.6
[INFO] [stderr]     Checking utf-8 v0.7.6
[INFO] [stderr]     Checking itoa v1.0.3
[INFO] [stderr]     Checking buf_redux v0.8.4
[INFO] [stderr]     Checking tempfile v3.2.0
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking headers-core v0.2.0
[INFO] [stderr]     Checking http-body v0.4.2
[INFO] [stderr]     Checking tungstenite v0.12.0
[INFO] [stderr]     Checking scheduled-thread-pool v0.2.5
[INFO] [stderr]     Checking socket2 v0.4.0
[INFO] [stderr]     Checking twoway v0.1.8
[INFO] [stderr]     Checking futures-io v0.3.15
[INFO] [stderr]     Checking httpdate v1.0.0
[INFO] [stderr]     Checking uuid v0.6.5
[INFO] [stderr]     Checking r2d2 v0.8.9
[INFO] [stderr]     Checking headers v0.3.4
[INFO] [stderr]     Checking chrono v0.4.19
[INFO] [stderr]     Checking dotenv v0.15.0
[INFO] [stderr]     Checking multipart v0.17.1
[INFO] [stderr]     Checking futures v0.3.15
[INFO] [stderr]     Checking bigdecimal v0.1.2
[INFO] [stderr]     Checking sct v0.6.1
[INFO] [stderr]     Checking webpki v0.21.4
[INFO] [stderr]     Checking rustls v0.19.1
[INFO] [stderr]    Compiling tokio-macros v1.2.0
[INFO] [stderr]    Compiling pin-project-internal v1.0.7
[INFO] [stderr]    Compiling diesel_derives v1.4.1
[INFO] [stderr]     Checking pin-project v1.0.7
[INFO] [stderr]     Checking tokio-util v0.6.7
[INFO] [stderr]     Checking tokio-rustls v0.22.0
[INFO] [stderr]     Checking tokio-stream v0.1.6
[INFO] [stderr]     Checking tokio-tungstenite v0.13.0
[INFO] [stderr]     Checking h2 v0.3.3
[INFO] [stderr]     Checking serde_urlencoded v0.7.0
[INFO] [stderr]     Checking ipnetwork v0.17.0
[INFO] [stderr]     Checking hyper v0.14.7
[INFO] [stderr]     Checking diesel v1.4.6
[INFO] [stderr]     Checking warp v0.3.1
[INFO] [stderr]     Checking diesel-demo v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `diesel::QueryDsl`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use diesel::QueryDsl;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::schema::animals`
[INFO] [stdout]  --> src/handlers/animal_handler.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::schema::animals;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `diesel::QueryDsl`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use diesel::QueryDsl;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::schema::animals`
[INFO] [stdout]  --> src/handlers/animal_handler.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::schema::animals;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `posts` is imported redundantly
[INFO] [stdout]    --> src/models/user_model.rs:431:9
[INFO] [stdout]     |
[INFO] [stdout] 3   | use crate::schema::{posts, users};
[INFO] [stdout]     |                     ----- the item `posts` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 431 |     use crate::schema::posts;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `user_model` is imported redundantly
[INFO] [stdout]   --> src/filters.rs:15:17
[INFO] [stdout]    |
[INFO] [stdout] 3  | use crate::models::user_model;
[INFO] [stdout]    |     ------------------------- the item `user_model` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 15 |             use crate::models::user_model;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `user_model` is imported redundantly
[INFO] [stdout]   --> src/filters.rs:24:17
[INFO] [stdout]    |
[INFO] [stdout] 3  | use crate::models::user_model;
[INFO] [stdout]    |     ------------------------- the item `user_model` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 24 |             use crate::models::user_model;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `user_model` is imported redundantly
[INFO] [stdout]   --> src/filters.rs:33:17
[INFO] [stdout]    |
[INFO] [stdout] 3  | use crate::models::user_model;
[INFO] [stdout]    |     ------------------------- the item `user_model` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 33 |             use crate::models::user_model;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `posts` is imported redundantly
[INFO] [stdout]    --> src/models/user_model.rs:431:9
[INFO] [stdout]     |
[INFO] [stdout] 3   | use crate::schema::{posts, users};
[INFO] [stdout]     |                     ----- the item `posts` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 431 |     use crate::schema::posts;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `user_model` is imported redundantly
[INFO] [stdout]   --> src/filters.rs:15:17
[INFO] [stdout]    |
[INFO] [stdout] 3  | use crate::models::user_model;
[INFO] [stdout]    |     ------------------------- the item `user_model` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 15 |             use crate::models::user_model;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `user_model` is imported redundantly
[INFO] [stdout]   --> src/filters.rs:24:17
[INFO] [stdout]    |
[INFO] [stdout] 3  | use crate::models::user_model;
[INFO] [stdout]    |     ------------------------- the item `user_model` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 24 |             use crate::models::user_model;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `user_model` is imported redundantly
[INFO] [stdout]   --> src/filters.rs:33:17
[INFO] [stdout]    |
[INFO] [stdout] 3  | use crate::models::user_model;
[INFO] [stdout]    |     ------------------------- the item `user_model` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 33 |             use crate::models::user_model;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> src/handlers/animal_handler.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let result = diesel::insert_into(animals)
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> src/handlers/animal_handler.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let result = diesel::insert_into(animals)
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> src/models/user_model.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 44 |     let result = diesel::insert_into(users)
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> src/models/user_model.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let result = connection.execute("DELETE FROM posts"); //删除表posts数据
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `postID`
[INFO] [stdout]   --> src/models/user_model.rs:84:9
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let postID = posts::table.select(posts::id).first::<i32>(&connection);
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_postID`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection`
[INFO] [stdout]   --> src/models/animal_model.rs:70:9
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let connection = db::establish_connection();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `form`
[INFO] [stdout]   --> src/models/animal_model.rs:71:9
[INFO] [stdout]    |
[INFO] [stdout] 71 |     let form = AnimalForm {
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_form`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `changed_data`
[INFO] [stdout]   --> src/models/animal_model.rs:93:9
[INFO] [stdout]    |
[INFO] [stdout] 93 |     let changed_data = diesel::update(animals.find(3))
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_changed_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `pg_pool` is never used
[INFO] [stdout]  --> src/db.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn pg_pool() -> Pool<ConnectionManager<PgConnection>> {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/models/user_model.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl User {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 13 |     fn new(uid: i32, uname: &str) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/models/user_model.rs:28:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | impl Post {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 28 |     fn new(pid: i32, userid: i32, ptitle: &str) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `DB` is never used
[INFO] [stdout]    --> src/models/user_model.rs:361:10
[INFO] [stdout]     |
[INFO] [stdout] 361 |     type DB = diesel::pg::Pg;
[INFO] [stdout]     |          ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/models/animal_model.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Animal {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 14 |     fn new<S: Into<String>>(special: S, named: Option<&str>, leg: i32) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run_test` is never used
[INFO] [stdout]   --> src/models/animal_model.rs:69:8
[INFO] [stdout]    |
[INFO] [stdout] 69 | pub fn run_test() {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/models/user_model.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, Queryable, PartialEq, Eq)]
[INFO] [stdout]   |                 ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_queryable_for_user`
[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/user_model.rs:21:17
[INFO] [stdout]    |
[INFO] [stdout] 21 | #[derive(Debug, Queryable, PartialEq, Eq)]
[INFO] [stdout]    |                 ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_queryable_for_post`
[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 `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `postID` should have a snake case name
[INFO] [stdout]   --> src/models/user_model.rs:84:9
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let postID = posts::table.select(posts::id).first::<i32>(&connection);
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `post_id`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` 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/animal_model.rs:6:17
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[derive(Debug, Queryable, PartialEq)]
[INFO] [stdout]   |                 ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_queryable_for_animal`
[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 `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/animal_model.rs:54:10
[INFO] [stdout]    |
[INFO] [stdout] 54 | #[derive(Queryable, Debug, PartialEq)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_queryable_for_animalquery`
[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 `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/animal_model.rs:62:10
[INFO] [stdout]    |
[INFO] [stdout] 62 | #[derive(AsChangeset, Identifiable)]
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_as_changeset_for_animalform`
[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 `AsChangeset` (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/animal_model.rs:62:23
[INFO] [stdout]    |
[INFO] [stdout] 62 | #[derive(AsChangeset, Identifiable)]
[INFO] [stdout]    |                       ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_identifiable_for_animalform`
[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 `Identifiable` (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/animal_model.rs:78:10
[INFO] [stdout]    |
[INFO] [stdout] 78 | #[derive(AsChangeset)]
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_as_changeset_for_updateanimal`
[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 `AsChangeset` (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:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | / table! {
[INFO] [stdout] 2 | |     animals (id) {
[INFO] [stdout] 3 | |         id -> Int4,
[INFO] [stdout] 4 | |         species -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 7 | |     }
[INFO] [stdout] 8 | | }
[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:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | / table! {
[INFO] [stdout] 2 | |     animals (id) {
[INFO] [stdout] 3 | |         id -> Int4,
[INFO] [stdout] 4 | |         species -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 7 | |     }
[INFO] [stdout] 8 | | }
[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:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | / table! {
[INFO] [stdout] 2 | |     animals (id) {
[INFO] [stdout] 3 | |         id -> Int4,
[INFO] [stdout] 4 | |         species -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 7 | |     }
[INFO] [stdout] 8 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_species`
[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:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | / table! {
[INFO] [stdout] 2 | |     animals (id) {
[INFO] [stdout] 3 | |         id -> Int4,
[INFO] [stdout] 4 | |         species -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 7 | |     }
[INFO] [stdout] 8 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_legs`
[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:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | / table! {
[INFO] [stdout] 2 | |     animals (id) {
[INFO] [stdout] 3 | |         id -> Int4,
[INFO] [stdout] 4 | |         species -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 7 | |     }
[INFO] [stdout] 8 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_name`
[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:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | / table! {
[INFO] [stdout] 11 | |     comments (id) {
[INFO] [stdout] 12 | |         id -> Int4,
[INFO] [stdout] 13 | |         post_id -> Int4,
[INFO] [stdout] 14 | |         body -> Varchar,
[INFO] [stdout] 15 | |     }
[INFO] [stdout] 16 | | }
[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:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | / table! {
[INFO] [stdout] 11 | |     comments (id) {
[INFO] [stdout] 12 | |         id -> Int4,
[INFO] [stdout] 13 | |         post_id -> Int4,
[INFO] [stdout] 14 | |         body -> Varchar,
[INFO] [stdout] 15 | |     }
[INFO] [stdout] 16 | | }
[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:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | / table! {
[INFO] [stdout] 11 | |     comments (id) {
[INFO] [stdout] 12 | |         id -> Int4,
[INFO] [stdout] 13 | |         post_id -> Int4,
[INFO] [stdout] 14 | |         body -> Varchar,
[INFO] [stdout] 15 | |     }
[INFO] [stdout] 16 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_query_id_for_post_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:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | / table! {
[INFO] [stdout] 11 | |     comments (id) {
[INFO] [stdout] 12 | |         id -> Int4,
[INFO] [stdout] 13 | |         post_id -> Int4,
[INFO] [stdout] 14 | |         body -> Varchar,
[INFO] [stdout] 15 | |     }
[INFO] [stdout] 16 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_query_id_for_body`
[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:18:1
[INFO] [stdout]    |
[INFO] [stdout] 18 | / table! {
[INFO] [stdout] 19 | |     posts (id) {
[INFO] [stdout] 20 | |         id -> Int4,
[INFO] [stdout] 21 | |         user_id -> Int4,
[INFO] [stdout] 22 | |         title -> Varchar,
[INFO] [stdout] 23 | |     }
[INFO] [stdout] 24 | | }
[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:18:1
[INFO] [stdout]    |
[INFO] [stdout] 18 | / table! {
[INFO] [stdout] 19 | |     posts (id) {
[INFO] [stdout] 20 | |         id -> Int4,
[INFO] [stdout] 21 | |         user_id -> Int4,
[INFO] [stdout] 22 | |         title -> Varchar,
[INFO] [stdout] 23 | |     }
[INFO] [stdout] 24 | | }
[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:18:1
[INFO] [stdout]    |
[INFO] [stdout] 18 | / table! {
[INFO] [stdout] 19 | |     posts (id) {
[INFO] [stdout] 20 | |         id -> Int4,
[INFO] [stdout] 21 | |         user_id -> Int4,
[INFO] [stdout] 22 | |         title -> Varchar,
[INFO] [stdout] 23 | |     }
[INFO] [stdout] 24 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_query_id_for_user_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:18:1
[INFO] [stdout]    |
[INFO] [stdout] 18 | / table! {
[INFO] [stdout] 19 | |     posts (id) {
[INFO] [stdout] 20 | |         id -> Int4,
[INFO] [stdout] 21 | |         user_id -> Int4,
[INFO] [stdout] 22 | |         title -> Varchar,
[INFO] [stdout] 23 | |     }
[INFO] [stdout] 24 | | }
[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:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | / table! {
[INFO] [stdout] 27 | |     users (id) {
[INFO] [stdout] 28 | |         id -> Int4,
[INFO] [stdout] 29 | |         name -> Varchar,
[INFO] [stdout] 30 | |     }
[INFO] [stdout] 31 | | }
[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:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | / table! {
[INFO] [stdout] 27 | |     users (id) {
[INFO] [stdout] 28 | |         id -> Int4,
[INFO] [stdout] 29 | |         name -> Varchar,
[INFO] [stdout] 30 | |     }
[INFO] [stdout] 31 | | }
[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:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | / table! {
[INFO] [stdout] 27 | |     users (id) {
[INFO] [stdout] 28 | |         id -> Int4,
[INFO] [stdout] 29 | |         name -> Varchar,
[INFO] [stdout] 30 | |     }
[INFO] [stdout] 31 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_query_id_for_name`
[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 23 previous errors; 20 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `diesel-demo` (bin "diesel-demo") due to 24 previous errors; 20 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> src/models/user_model.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 44 |     let result = diesel::insert_into(users)
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> src/models/user_model.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let result = connection.execute("DELETE FROM posts"); //删除表posts数据
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `postID`
[INFO] [stdout]   --> src/models/user_model.rs:84:9
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let postID = posts::table.select(posts::id).first::<i32>(&connection);
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_postID`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection`
[INFO] [stdout]   --> src/models/animal_model.rs:70:9
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let connection = db::establish_connection();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `form`
[INFO] [stdout]   --> src/models/animal_model.rs:71:9
[INFO] [stdout]    |
[INFO] [stdout] 71 |     let form = AnimalForm {
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_form`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `changed_data`
[INFO] [stdout]   --> src/models/animal_model.rs:93:9
[INFO] [stdout]    |
[INFO] [stdout] 93 |     let changed_data = diesel::update(animals.find(3))
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_changed_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `pg_pool` is never used
[INFO] [stdout]  --> src/db.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn pg_pool() -> Pool<ConnectionManager<PgConnection>> {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/models/user_model.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl User {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 13 |     fn new(uid: i32, uname: &str) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/models/user_model.rs:28:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | impl Post {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 28 |     fn new(pid: i32, userid: i32, ptitle: &str) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `DB` is never used
[INFO] [stdout]    --> src/models/user_model.rs:361:10
[INFO] [stdout]     |
[INFO] [stdout] 361 |     type DB = diesel::pg::Pg;
[INFO] [stdout]     |          ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/models/animal_model.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Animal {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 14 |     fn new<S: Into<String>>(special: S, named: Option<&str>, leg: i32) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run_test` is never used
[INFO] [stdout]   --> src/models/animal_model.rs:69:8
[INFO] [stdout]    |
[INFO] [stdout] 69 | pub fn run_test() {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/models/user_model.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, Queryable, PartialEq, Eq)]
[INFO] [stdout]   |                 ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_queryable_for_user`
[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/user_model.rs:21:17
[INFO] [stdout]    |
[INFO] [stdout] 21 | #[derive(Debug, Queryable, PartialEq, Eq)]
[INFO] [stdout]    |                 ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_queryable_for_post`
[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 `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `postID` should have a snake case name
[INFO] [stdout]   --> src/models/user_model.rs:84:9
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let postID = posts::table.select(posts::id).first::<i32>(&connection);
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `post_id`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` 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/animal_model.rs:6:17
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[derive(Debug, Queryable, PartialEq)]
[INFO] [stdout]   |                 ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_queryable_for_animal`
[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 `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/animal_model.rs:54:10
[INFO] [stdout]    |
[INFO] [stdout] 54 | #[derive(Queryable, Debug, PartialEq)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_queryable_for_animalquery`
[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 `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/animal_model.rs:62:10
[INFO] [stdout]    |
[INFO] [stdout] 62 | #[derive(AsChangeset, Identifiable)]
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_as_changeset_for_animalform`
[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 `AsChangeset` (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/animal_model.rs:62:23
[INFO] [stdout]    |
[INFO] [stdout] 62 | #[derive(AsChangeset, Identifiable)]
[INFO] [stdout]    |                       ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_identifiable_for_animalform`
[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 `Identifiable` (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/animal_model.rs:78:10
[INFO] [stdout]    |
[INFO] [stdout] 78 | #[derive(AsChangeset)]
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_as_changeset_for_updateanimal`
[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 `AsChangeset` (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:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | / table! {
[INFO] [stdout] 2 | |     animals (id) {
[INFO] [stdout] 3 | |         id -> Int4,
[INFO] [stdout] 4 | |         species -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 7 | |     }
[INFO] [stdout] 8 | | }
[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:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | / table! {
[INFO] [stdout] 2 | |     animals (id) {
[INFO] [stdout] 3 | |         id -> Int4,
[INFO] [stdout] 4 | |         species -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 7 | |     }
[INFO] [stdout] 8 | | }
[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:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | / table! {
[INFO] [stdout] 2 | |     animals (id) {
[INFO] [stdout] 3 | |         id -> Int4,
[INFO] [stdout] 4 | |         species -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 7 | |     }
[INFO] [stdout] 8 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_species`
[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:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | / table! {
[INFO] [stdout] 2 | |     animals (id) {
[INFO] [stdout] 3 | |         id -> Int4,
[INFO] [stdout] 4 | |         species -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 7 | |     }
[INFO] [stdout] 8 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_legs`
[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:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | / table! {
[INFO] [stdout] 2 | |     animals (id) {
[INFO] [stdout] 3 | |         id -> Int4,
[INFO] [stdout] 4 | |         species -> Varchar,
[INFO] [stdout] ... |
[INFO] [stdout] 7 | |     }
[INFO] [stdout] 8 | | }
[INFO] [stdout]   | |_^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current function `_impl_query_id_for_name`
[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:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | / table! {
[INFO] [stdout] 11 | |     comments (id) {
[INFO] [stdout] 12 | |         id -> Int4,
[INFO] [stdout] 13 | |         post_id -> Int4,
[INFO] [stdout] 14 | |         body -> Varchar,
[INFO] [stdout] 15 | |     }
[INFO] [stdout] 16 | | }
[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:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | / table! {
[INFO] [stdout] 11 | |     comments (id) {
[INFO] [stdout] 12 | |         id -> Int4,
[INFO] [stdout] 13 | |         post_id -> Int4,
[INFO] [stdout] 14 | |         body -> Varchar,
[INFO] [stdout] 15 | |     }
[INFO] [stdout] 16 | | }
[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:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | / table! {
[INFO] [stdout] 11 | |     comments (id) {
[INFO] [stdout] 12 | |         id -> Int4,
[INFO] [stdout] 13 | |         post_id -> Int4,
[INFO] [stdout] 14 | |         body -> Varchar,
[INFO] [stdout] 15 | |     }
[INFO] [stdout] 16 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_query_id_for_post_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:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | / table! {
[INFO] [stdout] 11 | |     comments (id) {
[INFO] [stdout] 12 | |         id -> Int4,
[INFO] [stdout] 13 | |         post_id -> Int4,
[INFO] [stdout] 14 | |         body -> Varchar,
[INFO] [stdout] 15 | |     }
[INFO] [stdout] 16 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_query_id_for_body`
[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:18:1
[INFO] [stdout]    |
[INFO] [stdout] 18 | / table! {
[INFO] [stdout] 19 | |     posts (id) {
[INFO] [stdout] 20 | |         id -> Int4,
[INFO] [stdout] 21 | |         user_id -> Int4,
[INFO] [stdout] 22 | |         title -> Varchar,
[INFO] [stdout] 23 | |     }
[INFO] [stdout] 24 | | }
[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:18:1
[INFO] [stdout]    |
[INFO] [stdout] 18 | / table! {
[INFO] [stdout] 19 | |     posts (id) {
[INFO] [stdout] 20 | |         id -> Int4,
[INFO] [stdout] 21 | |         user_id -> Int4,
[INFO] [stdout] 22 | |         title -> Varchar,
[INFO] [stdout] 23 | |     }
[INFO] [stdout] 24 | | }
[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:18:1
[INFO] [stdout]    |
[INFO] [stdout] 18 | / table! {
[INFO] [stdout] 19 | |     posts (id) {
[INFO] [stdout] 20 | |         id -> Int4,
[INFO] [stdout] 21 | |         user_id -> Int4,
[INFO] [stdout] 22 | |         title -> Varchar,
[INFO] [stdout] 23 | |     }
[INFO] [stdout] 24 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_query_id_for_user_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:18:1
[INFO] [stdout]    |
[INFO] [stdout] 18 | / table! {
[INFO] [stdout] 19 | |     posts (id) {
[INFO] [stdout] 20 | |         id -> Int4,
[INFO] [stdout] 21 | |         user_id -> Int4,
[INFO] [stdout] 22 | |         title -> Varchar,
[INFO] [stdout] 23 | |     }
[INFO] [stdout] 24 | | }
[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:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | / table! {
[INFO] [stdout] 27 | |     users (id) {
[INFO] [stdout] 28 | |         id -> Int4,
[INFO] [stdout] 29 | |         name -> Varchar,
[INFO] [stdout] 30 | |     }
[INFO] [stdout] 31 | | }
[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:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | / table! {
[INFO] [stdout] 27 | |     users (id) {
[INFO] [stdout] 28 | |         id -> Int4,
[INFO] [stdout] 29 | |         name -> Varchar,
[INFO] [stdout] 30 | |     }
[INFO] [stdout] 31 | | }
[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:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | / table! {
[INFO] [stdout] 27 | |     users (id) {
[INFO] [stdout] 28 | |         id -> Int4,
[INFO] [stdout] 29 | |         name -> Varchar,
[INFO] [stdout] 30 | |     }
[INFO] [stdout] 31 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current function `_impl_query_id_for_name`
[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 23 previous errors; 20 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `diesel-demo` (bin "diesel-demo" test) due to 24 previous errors; 20 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "22c2ee6a6d401aa731e0556ea3316fbfe7525b70f3202a3cda9f18faca3cf7da", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "22c2ee6a6d401aa731e0556ea3316fbfe7525b70f3202a3cda9f18faca3cf7da", kill_on_drop: false }`
[INFO] [stdout] 22c2ee6a6d401aa731e0556ea3316fbfe7525b70f3202a3cda9f18faca3cf7da
