[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] building vagicc/diesel-demo against master#70591dc15db32941fe3595fdbf98e58d6975f95e for pr-127731 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvagicc%2Fdiesel-demo" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vagicc/diesel-demo on toolchain 70591dc15db32941fe3595fdbf98e58d6975f95e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+70591dc15db32941fe3595fdbf98e58d6975f95e" "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-4-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" "+70591dc15db32941fe3595fdbf98e58d6975f95e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ipnetwork v0.17.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+70591dc15db32941fe3595fdbf98e58d6975f95e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 37070891bc8c1edc74ae4270a0cb19a2990937fc5f6322170451d7c74ee43916 [INFO] running `Command { std: "docker" "start" "-a" "37070891bc8c1edc74ae4270a0cb19a2990937fc5f6322170451d7c74ee43916", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "37070891bc8c1edc74ae4270a0cb19a2990937fc5f6322170451d7c74ee43916", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37070891bc8c1edc74ae4270a0cb19a2990937fc5f6322170451d7c74ee43916", kill_on_drop: false }` [INFO] [stdout] 37070891bc8c1edc74ae4270a0cb19a2990937fc5f6322170451d7c74ee43916 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+70591dc15db32941fe3595fdbf98e58d6975f95e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c83aed7dbb51d05eeb2226143e26017c0d83c610362a741accb368bd5b8ae85f [INFO] running `Command { std: "docker" "start" "-a" "c83aed7dbb51d05eeb2226143e26017c0d83c610362a741accb368bd5b8ae85f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling autocfg v1.0.1 [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] Compiling log v0.4.14 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling futures-sink v0.3.15 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling serde_derive v1.0.144 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling tokio v1.6.0 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling serde v1.0.144 [INFO] [stderr] Compiling tinyvec v1.2.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling cpufeatures v0.1.4 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling tracing-core v0.1.18 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling serde_json v1.0.85 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling tracing v0.1.26 [INFO] [stderr] Compiling sha-1 v0.9.6 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling input_buffer v0.4.0 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling itoa v1.0.3 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.5 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling http-body v0.4.2 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling futures-io v0.3.15 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling httpdate v1.0.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling headers v0.3.4 [INFO] [stderr] Compiling uuid v0.6.5 [INFO] [stderr] Compiling r2d2 v0.8.9 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling multipart v0.17.1 [INFO] [stderr] Compiling futures v0.3.15 [INFO] [stderr] Compiling bigdecimal v0.1.2 [INFO] [stderr] Compiling tungstenite v0.12.0 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling 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] Compiling pin-project v1.0.7 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Compiling tokio-tungstenite v0.13.0 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling tokio-stream v0.1.6 [INFO] [stderr] Compiling h2 v0.3.3 [INFO] [stderr] Compiling ipnetwork v0.17.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling diesel v1.4.6 [INFO] [stderr] Compiling hyper v0.14.7 [INFO] [stderr] Compiling warp v0.3.1 [INFO] [stderr] Compiling 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 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::(&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> { [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>(special: S, named: Option<&str>, leg: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnimalForm` is never constructed [INFO] [stdout] --> src/models/animal_model.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | struct AnimalForm<'a> { [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::(&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: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 37.91s [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" "c83aed7dbb51d05eeb2226143e26017c0d83c610362a741accb368bd5b8ae85f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c83aed7dbb51d05eeb2226143e26017c0d83c610362a741accb368bd5b8ae85f", kill_on_drop: false }` [INFO] [stdout] c83aed7dbb51d05eeb2226143e26017c0d83c610362a741accb368bd5b8ae85f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+70591dc15db32941fe3595fdbf98e58d6975f95e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f688fdd5bd5d718a2987737aadbac706c097d43c16d592d3c172db902286a52 [INFO] running `Command { std: "docker" "start" "-a" "1f688fdd5bd5d718a2987737aadbac706c097d43c16d592d3c172db902286a52", kill_on_drop: false }` [INFO] [stderr] Compiling 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 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::(&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> { [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>(special: S, named: Option<&str>, leg: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnimalForm` is never constructed [INFO] [stdout] --> src/models/animal_model.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | struct AnimalForm<'a> { [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::(&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: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.30s [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" "1f688fdd5bd5d718a2987737aadbac706c097d43c16d592d3c172db902286a52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f688fdd5bd5d718a2987737aadbac706c097d43c16d592d3c172db902286a52", kill_on_drop: false }` [INFO] [stdout] 1f688fdd5bd5d718a2987737aadbac706c097d43c16d592d3c172db902286a52