[INFO] cloning repository https://github.com/vagicc/xueyigou [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vagicc/xueyigou" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvagicc%2Fxueyigou", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvagicc%2Fxueyigou'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dbb1cb970c3d3af1de8acfdbd3e27f11b8c12bd1 [INFO] testing vagicc/xueyigou/dbb1cb970c3d3af1de8acfdbd3e27f11b8c12bd1 against try#c066bf6804adc55193b71afdff6a56922f4a8689+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_in_2025-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvagicc%2Fxueyigou" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vagicc/xueyigou [INFO] finished tweaking git repo https://github.com/vagicc/xueyigou [INFO] tweaked toml for git repo https://github.com/vagicc/xueyigou written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vagicc/xueyigou on toolchain c066bf6804adc55193b71afdff6a56922f4a8689 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vagicc/xueyigou 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" "+c066bf6804adc55193b71afdff6a56922f4a8689" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cpufeatures v0.1.1 [INFO] [stderr] Downloaded blowfish v0.7.0 [INFO] [stderr] Downloaded bcrypt v0.9.0 [INFO] [stderr] Downloaded handlebars v3.5.5 [INFO] [stderr] Downloaded tokio-stream v0.1.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 05140ccf3bcd94625ac9dcd320cdc372b404c08bb1a1f25cd198ae50c6f9a8d7 [INFO] running `Command { std: "docker" "start" "-a" "05140ccf3bcd94625ac9dcd320cdc372b404c08bb1a1f25cd198ae50c6f9a8d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "05140ccf3bcd94625ac9dcd320cdc372b404c08bb1a1f25cd198ae50c6f9a8d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05140ccf3bcd94625ac9dcd320cdc372b404c08bb1a1f25cd198ae50c6f9a8d7", kill_on_drop: false }` [INFO] [stdout] 05140ccf3bcd94625ac9dcd320cdc372b404c08bb1a1f25cd198ae50c6f9a8d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] a352edf73dc6c39758b89415cb9a0cd594635c7a8e64e0f78e58999d630a2cdc [INFO] running `Command { std: "docker" "start" "-a" "a352edf73dc6c39758b89415cb9a0cd594635c7a8e64e0f78e58999d630a2cdc", 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.26 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling futures-sink v0.3.15 [INFO] [stderr] Compiling futures-task v0.3.15 [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 base64 v0.13.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling tinyvec v1.2.0 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling tokio v1.5.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling cpufeatures v0.1.1 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling tracing-core v0.1.18 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Compiling sha-1 v0.9.6 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling tracing v0.1.26 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling input_buffer v0.4.0 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling http-body v0.4.2 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.5 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling httpdate v1.0.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling futures-io v0.3.15 [INFO] [stderr] Compiling uuid v0.6.5 [INFO] [stderr] Compiling futures v0.3.15 [INFO] [stderr] Compiling r2d2 v0.8.9 [INFO] [stderr] Compiling headers v0.3.4 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling blowfish v0.7.0 [INFO] [stderr] Compiling quick-error v2.0.1 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling bcrypt v0.9.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling multipart v0.17.1 [INFO] [stderr] Compiling tungstenite v0.12.0 [INFO] [stderr] Compiling bigdecimal v0.1.2 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling tokio-macros v1.1.0 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling pin-project v1.0.7 [INFO] [stderr] Compiling tokio-util v0.6.6 [INFO] [stderr] Compiling tokio-stream v0.1.5 [INFO] [stderr] Compiling tokio-tungstenite v0.13.0 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling h2 v0.3.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling ipnetwork v0.17.0 [INFO] [stderr] Compiling handlebars v3.5.5 [INFO] [stderr] Compiling diesel v1.4.6 [INFO] [stderr] Compiling hyper v0.14.7 [INFO] [stderr] Compiling warp v0.3.1 [INFO] [stderr] Compiling xueyigou v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `handlebars::to_json` [INFO] [stdout] --> src/handlers/login_handler.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use handlebars::to_json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TemplateFileError` [INFO] [stdout] --> src/models/register_model.rs:2:39 [INFO] [stdout] | [INFO] [stdout] 2 | use handlebars::{to_json, Handlebars, TemplateFileError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DEFAULT_COST` and `hash_with_salt` [INFO] [stdout] --> src/models/user_model.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use bcrypt::{hash_with_salt, verify, DEFAULT_COST}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::session::Session` [INFO] [stdout] --> src/routes/home_route.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::session::Session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `filters::BoxedFilter` [INFO] [stdout] --> src/routes/home_route.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use warp::{filters::BoxedFilter, Filter}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/routes/link_route.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::session::Session` [INFO] [stdout] --> src/routes/login_route.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::session::Session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `filters::BoxedFilter` [INFO] [stdout] --> src/routes/login_route.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use warp::{filters::BoxedFilter, Filter}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude` [INFO] [stdout] --> src/session.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::prelude; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handlers/login_handler.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut data = Map::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `html` is never read [INFO] [stdout] --> src/handlers/signup_handler.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut html = "处理注册表单".to_string(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/session.rs:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | .map_err(|e| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `role`, and `status` are never read [INFO] [stdout] --> src/models/admin_model.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Admin { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 7 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub role: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | pub status: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Admin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `LinkId` is never used [INFO] [stdout] --> src/models/link_model.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub type LinkId = i32; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `title`, `url`, and `added` are never read [INFO] [stdout] --> src/models/link_model.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Link { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 21 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 22 | pub title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 23 | pub url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 24 | pub added: NaiveDateTime, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Link` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `add_link`, `get_links`, and `rm_links` are never used [INFO] [stdout] --> src/models/link_model.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Link { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 28 | pub fn add_link(new_link: AddLink, conn: &PgPooledConnection) -> QueryResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_links(conn: &PgPooledConnection) -> QueryResult> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn rm_links(id: LinkId, conn: &PgPooledConnection) -> QueryResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_html` is never used [INFO] [stdout] --> src/models/register_model.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn register_html() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_template` is never used [INFO] [stdout] --> src/models/register_model.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn register_template(name: &str, mut data: Map) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Team` is never constructed [INFO] [stdout] --> src/models/register_model.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Team { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TYPES` is never used [INFO] [stdout] --> src/models/register_model.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | static TYPES: &'static str = "serde_json"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_data` is never used [INFO] [stdout] --> src/models/register_model.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn make_data() -> Map { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `username`, and `realname` are never read [INFO] [stdout] --> src/models/user_model.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | pub realname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `authenticate` is never used [INFO] [stdout] --> src/models/user_model.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl User { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 17 | /* 身份认证 */ [INFO] [stdout] 18 | pub fn authenticate(db: &PgPooledConnection, user: &str, passwd: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `user` are never read [INFO] [stdout] --> src/session.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Session { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 17 | db: PgPooledConnection, [INFO] [stdout] 18 | id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 19 | user: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `authenticate`, `clear`, and `user` are never used [INFO] [stdout] --> src/session.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Session { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn authenticate(&mut self, username: &str, passwd: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn user(&self) -> Option<&User> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_key` is never used [INFO] [stdout] --> src/session.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn random_key(len: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `insertID` should have a snake case name [INFO] [stdout] --> src/handlers/signup_handler.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | let insertID = User::insert_user(form, session.db()); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `insert_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models/admin_model.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Queryable)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Queryable` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_queryable_for_admin` [INFO] [stdout] 6 | pub struct Admin { [INFO] [stdout] | ----- `Admin` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Queryable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Queryable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models/link_model.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug, Serialize, Deserialize, Insertable)] [INFO] [stdout] | ^--------- [INFO] [stdout] | | [INFO] [stdout] | `Insertable` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_addlink` [INFO] [stdout] 13 | #[table_name = "linksnap"] [INFO] [stdout] 14 | pub struct AddLink { [INFO] [stdout] | ------- `AddLink` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models/link_model.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug, Serialize, Deserialize, Insertable)] [INFO] [stdout] | -^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Insertable` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_addlink` [INFO] [stdout] 13 | #[table_name = "linksnap"] [INFO] [stdout] 14 | pub struct AddLink { [INFO] [stdout] | ------- `AddLink` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models/link_model.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug, Serialize, Deserialize, Insertable)] [INFO] [stdout] | ^--------- [INFO] [stdout] | | [INFO] [stdout] | `UndecoratedInsertRecord` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_addlink` [INFO] [stdout] 13 | #[table_name = "linksnap"] [INFO] [stdout] 14 | pub struct AddLink { [INFO] [stdout] | ------- `AddLink` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models/link_model.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Queryable, Debug)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Queryable` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_queryable_for_link` [INFO] [stdout] 20 | pub struct Link { [INFO] [stdout] | ---- `Link` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Queryable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Queryable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `insertID` should have a snake case name [INFO] [stdout] --> src/models/link_model.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let insertID=diesel::insert_into(linksnap) [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `insert_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models/user_model.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug, Queryable)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Queryable` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_queryable_for_user` [INFO] [stdout] 10 | pub struct User { [INFO] [stdout] | ---- `User` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Queryable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Queryable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `insertID` should have a snake case name [INFO] [stdout] --> src/models/user_model.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let insertID = diesel::insert_into(users) [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `insert_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | admins (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | username -> Varchar, [INFO] [stdout] ... | [INFO] [stdout] 14 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `table` is not local [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_table` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | admins (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] | | -- `id` is not local [INFO] [stdout] 4 | | username -> Varchar, [INFO] [stdout] ... | [INFO] [stdout] 14 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_id` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | admins (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | username -> Varchar, [INFO] [stdout] | | -------- `username` is not local [INFO] [stdout] ... | [INFO] [stdout] 14 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_username` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | admins (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | username -> Varchar, [INFO] [stdout] 5 | | password -> Varchar, [INFO] [stdout] | | -------- `password` is not local [INFO] [stdout] ... | [INFO] [stdout] 14 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_password` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | admins (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | username -> Varchar, [INFO] [stdout] 5 | | password -> Varchar, [INFO] [stdout] 6 | | salt -> Bpchar, [INFO] [stdout] | | ---- `salt` is not local [INFO] [stdout] ... | [INFO] [stdout] 14 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_salt` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | admins (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | username -> Varchar, [INFO] [stdout] ... | [INFO] [stdout] 7 | | email -> Nullable, [INFO] [stdout] | | ----- `email` is not local [INFO] [stdout] ... | [INFO] [stdout] 14 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_email` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | admins (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | username -> Varchar, [INFO] [stdout] ... | [INFO] [stdout] 8 | | mobile -> Nullable, [INFO] [stdout] | | ------ `mobile` is not local [INFO] [stdout] ... | [INFO] [stdout] 14 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_mobile` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | admins (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | username -> Varchar, [INFO] [stdout] ... | [INFO] [stdout] 9 | | role -> Nullable, [INFO] [stdout] | | ---- `role` is not local [INFO] [stdout] ... | [INFO] [stdout] 14 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_role` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | admins (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | username -> Varchar, [INFO] [stdout] ... | [INFO] [stdout] 10 | | status -> Nullable, [INFO] [stdout] | | ------ `status` is not local [INFO] [stdout] ... | [INFO] [stdout] 14 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_status` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | admins (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | username -> Varchar, [INFO] [stdout] ... | [INFO] [stdout] 11 | | create_time -> Nullable, [INFO] [stdout] | | ----------- `create_time` is not local [INFO] [stdout] ... | [INFO] [stdout] 14 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_create_time` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | admins (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | username -> Varchar, [INFO] [stdout] ... | [INFO] [stdout] 12 | | last_login -> Nullable, [INFO] [stdout] | | ---------- `last_login` is not local [INFO] [stdout] 13 | | } [INFO] [stdout] 14 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_last_login` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / table! { [INFO] [stdout] 17 | | linksnap (id) { [INFO] [stdout] 18 | | id -> Int4, [INFO] [stdout] 19 | | title -> Varchar, [INFO] [stdout] ... | [INFO] [stdout] 23 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `table` is not local [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_table` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / table! { [INFO] [stdout] 17 | | linksnap (id) { [INFO] [stdout] 18 | | id -> Int4, [INFO] [stdout] | | -- `id` is not local [INFO] [stdout] 19 | | title -> Varchar, [INFO] [stdout] ... | [INFO] [stdout] 23 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_id` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / table! { [INFO] [stdout] 17 | | linksnap (id) { [INFO] [stdout] 18 | | id -> Int4, [INFO] [stdout] 19 | | title -> Varchar, [INFO] [stdout] | | ----- `title` is not local [INFO] [stdout] ... | [INFO] [stdout] 23 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_title` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / table! { [INFO] [stdout] 17 | | linksnap (id) { [INFO] [stdout] 18 | | id -> Int4, [INFO] [stdout] 19 | | title -> Varchar, [INFO] [stdout] 20 | | url -> Text, [INFO] [stdout] | | --- `url` is not local [INFO] [stdout] ... | [INFO] [stdout] 23 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_url` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / table! { [INFO] [stdout] 17 | | linksnap (id) { [INFO] [stdout] 18 | | id -> Int4, [INFO] [stdout] 19 | | title -> Varchar, [INFO] [stdout] 20 | | url -> Text, [INFO] [stdout] 21 | | added -> Timestamp, [INFO] [stdout] | | ----- `added` is not local [INFO] [stdout] 22 | | } [INFO] [stdout] 23 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_added` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / table! { [INFO] [stdout] 26 | | sessions (id) { [INFO] [stdout] 27 | | id -> Int4, [INFO] [stdout] 28 | | cookie -> Varchar, [INFO] [stdout] ... | [INFO] [stdout] 31 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `table` is not local [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_table` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / table! { [INFO] [stdout] 26 | | sessions (id) { [INFO] [stdout] 27 | | id -> Int4, [INFO] [stdout] | | -- `id` is not local [INFO] [stdout] 28 | | cookie -> Varchar, [INFO] [stdout] ... | [INFO] [stdout] 31 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_id` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / table! { [INFO] [stdout] 26 | | sessions (id) { [INFO] [stdout] 27 | | id -> Int4, [INFO] [stdout] 28 | | cookie -> Varchar, [INFO] [stdout] | | ------ `cookie` is not local [INFO] [stdout] ... | [INFO] [stdout] 31 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_cookie` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / table! { [INFO] [stdout] 26 | | sessions (id) { [INFO] [stdout] 27 | | id -> Int4, [INFO] [stdout] 28 | | cookie -> Varchar, [INFO] [stdout] 29 | | user_id -> Int4, [INFO] [stdout] | | ------- `user_id` is not local [INFO] [stdout] 30 | | } [INFO] [stdout] 31 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_user_id` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / table! { [INFO] [stdout] 34 | | users (id) { [INFO] [stdout] 35 | | id -> Int4, [INFO] [stdout] 36 | | email -> Nullable, [INFO] [stdout] ... | [INFO] [stdout] 45 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `table` is not local [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_table` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / table! { [INFO] [stdout] 34 | | users (id) { [INFO] [stdout] 35 | | id -> Int4, [INFO] [stdout] | | -- `id` is not local [INFO] [stdout] 36 | | email -> Nullable, [INFO] [stdout] ... | [INFO] [stdout] 45 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_id` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / table! { [INFO] [stdout] 34 | | users (id) { [INFO] [stdout] 35 | | id -> Int4, [INFO] [stdout] 36 | | email -> Nullable, [INFO] [stdout] | | ----- `email` is not local [INFO] [stdout] ... | [INFO] [stdout] 45 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_email` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / table! { [INFO] [stdout] 34 | | users (id) { [INFO] [stdout] 35 | | id -> Int4, [INFO] [stdout] 36 | | email -> Nullable, [INFO] [stdout] 37 | | mobile -> Nullable, [INFO] [stdout] | | ------ `mobile` is not local [INFO] [stdout] ... | [INFO] [stdout] 45 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_mobile` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / table! { [INFO] [stdout] 34 | | users (id) { [INFO] [stdout] 35 | | id -> Int4, [INFO] [stdout] 36 | | email -> Nullable, [INFO] [stdout] 37 | | mobile -> Nullable, [INFO] [stdout] 38 | | username -> Varchar, [INFO] [stdout] | | -------- `username` is not local [INFO] [stdout] ... | [INFO] [stdout] 45 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_username` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / table! { [INFO] [stdout] 34 | | users (id) { [INFO] [stdout] 35 | | id -> Int4, [INFO] [stdout] 36 | | email -> Nullable, [INFO] [stdout] ... | [INFO] [stdout] 39 | | realname -> Varchar, [INFO] [stdout] | | -------- `realname` is not local [INFO] [stdout] ... | [INFO] [stdout] 45 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_realname` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / table! { [INFO] [stdout] 34 | | users (id) { [INFO] [stdout] 35 | | id -> Int4, [INFO] [stdout] 36 | | email -> Nullable, [INFO] [stdout] ... | [INFO] [stdout] 40 | | password -> Varchar, [INFO] [stdout] | | -------- `password` is not local [INFO] [stdout] ... | [INFO] [stdout] 45 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_password` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / table! { [INFO] [stdout] 34 | | users (id) { [INFO] [stdout] 35 | | id -> Int4, [INFO] [stdout] 36 | | email -> Nullable, [INFO] [stdout] ... | [INFO] [stdout] 41 | | salt -> Nullable, [INFO] [stdout] | | ---- `salt` is not local [INFO] [stdout] ... | [INFO] [stdout] 45 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_salt` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / table! { [INFO] [stdout] 34 | | users (id) { [INFO] [stdout] 35 | | id -> Int4, [INFO] [stdout] 36 | | email -> Nullable, [INFO] [stdout] ... | [INFO] [stdout] 42 | | create_time -> Nullable, [INFO] [stdout] | | ----------- `create_time` is not local [INFO] [stdout] ... | [INFO] [stdout] 45 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_create_time` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / table! { [INFO] [stdout] 34 | | users (id) { [INFO] [stdout] 35 | | id -> Int4, [INFO] [stdout] 36 | | email -> Nullable, [INFO] [stdout] ... | [INFO] [stdout] 43 | | last_login -> Nullable, [INFO] [stdout] | | ---------- `last_login` is not local [INFO] [stdout] 44 | | } [INFO] [stdout] 45 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_last_login` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustcaQDNRA/symbols.o" "<17 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libbcrypt-7e34ee543536a296.rlib,libblowfish-3839aeb3f6dc5663.rlib,libcipher-a40c5a515b8af62d.rlib,libhandlebars-e9722658b36bb20d.rlib,libpest-80731a695d4ad35d.rlib,libucd_trie-13451e140af838e0.rlib,libquick_error-bd2a7215cf93a039.rlib,libwarp-8782cc420b76f74c.rlib,libtokio_rustls-6ef5fe573dc5836b.rlib,librustls-ef64322dd6b98498.rlib,libsct-9ea3266c54c99bf5.rlib,libwebpki-e694ea3b1c668e9a.rlib,libring-92ea4c1612f6b57d.rlib,libspin-727e07ee1a68c4a1.rlib,libuntrusted-ac99e7922c585a09.rlib,libtokio_stream-2f416789cd28d973.rlib,libscoped_tls-c773acb8a8b535a4.rlib,libtokio_tungstenite-2c7217b48c13cdd9.rlib,libtungstenite-fa47f60816e67ef1.rlib,libutf8-f59a957f78b3215a.rlib,libinput_buffer-12462397cc8b00ae.rlib,liburl-3e4bb9d31985a66c.rlib,libidna-36f93fe1c95d3e63.rlib,libunicode_normalization-8179c059019c0ed4.rlib,libtinyvec-f85e4e0caa5b9d82.rlib,libtinyvec_macros-c54c30cfa88e68f0.rlib,libunicode_bidi-fba63ab404db077b.rlib,libmultipart-283188400fe71b11.rlib,libtwoway-a15a2147952ab3df.rlib,libbuf_redux-4dc31d3d95c0027b.rlib,libsafemem-415ebfa147efdd91.rlib,libquick_error-022321fe562bcedb.rlib,libtempfile-37159616a68e6201.rlib,librand-3ffc37da138bd9fc.rlib,librand_chacha-22fab3f0a5224659.rlib,librand_core-f15f93f857b81b8a.rlib,libgetrandom-64ee75073cd41be2.rlib,libremove_dir_all-4e221c62d36b2749.rlib,librand-955e8635cebd6ee0.rlib,librand_chacha-1bf4ca9c86876df8.rlib,libppv_lite86-5a92c3ab26105205.rlib,librand_core-dc86f13ac269a011.rlib,libgetrandom-cd3b30de9c0c92a7.rlib,libmime_guess-1532b93350c9970b.rlib,libunicase-6460775036904752.rlib,libserde_urlencoded-60ebeabca53b1349.rlib,libform_urlencoded-c7ca260acdafb077.rlib,libpercent_encoding-3f452dc5e318e927.rlib,libmatches-d7125afe50072f5c.rlib,libheaders-000bb3a820b59b7a.rlib,libsha1-1d0d6382bb58c056.rlib,libopaque_debug-bfd86111b0908dde.rlib,libcpufeatures-46123d073788600a.rlib,libblock_buffer-bb73cade331d8c0a.rlib,libdigest-392b0119d713202e.rlib,libgeneric_array-b8f324177b2c2b8f.rlib,libtypenum-b0ea879750aa85fb.rlib,libmime-2517c84452183460.rlib,libheaders_core-3971c241d40504c1.rlib,libbase64-1447dfff012d42f8.rlib,libhyper-a671c97f6fb5b305.rlib,libwant-6557201d18a06969.rlib,libtry_lock-d956e9fcf0af499a.rlib,libsocket2-5467588e127f3632.rlib,libh2-11cbef3cf6542b1f.rlib,libindexmap-8b71b58fbaa3a2a2.rlib,libhashbrown-aed633c8184090a0.rlib,libtokio_util-874e7980bf3d2027.rlib,libhttparse-e67995ed73b42558.rlib,libtower_service-a4da4ae722e0ce46.rlib,libhttp_body-b3044e58fcbc4592.rlib,libtokio-e21d4f4844f4fa10.rlib,libsignal_hook_registry-1cfc2137a0014dcd.rlib,libnum_cpus-7d9b79468643db10.rlib,libmemchr-957e86e3927603bf.rlib,libonce_cell-a3308e77ab1abc42.rlib,libmio-256508db99cc89a4.rlib,libhttpdate-341d6a1dbe4c846b.rlib,libhttp-f8332ffec2c8f9a1.rlib,libbytes-f5f6908afbf67346.rlib,libfnv-81596130b397d5c3.rlib,libtracing-071409eb1adee4a0.rlib,libtracing_core-472fa602705753d0.rlib,liblazy_static-4b136fc9bfbd2c4b.rlib,libpin_project-f7b9d5b5a9aa3f8c.rlib,libfutures-647e1b9b62062d84.rlib,libfutures_channel-fe283e239388698e.rlib,libfutures_util-ae9026581d0aad17.rlib,libslab-77a18d92df1fb8de.rlib,libpin_project_lite-4390088538166d84.rlib,libfutures_sink-a45f562d8650455c.rlib,libfutures_task-745d6cc0eb00d6e5.rlib,libpin_utils-b08f1197f0cdae19.rlib,libfutures_core-891d760f6cde94e5.rlib,libdotenv-071ec522f34dd5ab.rlib,libdiesel-3874f659cd8663ca.rlib,libpq_sys-7f4adc86067b7b07.rlib}.rlib" "-lpq" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libuuid-9a116854677853f1.rlib,libcfg_if-2d17986ae484e939.rlib,libbigdecimal-04f5e61cbdbbcd9c.rlib,libnum_bigint-c8f11905f9488d1c.rlib,libipnetwork-3fdbc2796d239e64.rlib,libserde_json-f0555037b4942cf1.rlib,libryu-af883cd9b444a782.rlib,libitoa-99e7082793cfaa64.rlib,libchrono-aed4133888c6ce6a.rlib,libserde-268921796e892316.rlib,libnum_integer-03aef02c008bead9.rlib,libnum_traits-e187c9543899d750.rlib,libtime-79682b533f0afea6.rlib,libr2d2-46a86b5b51a864a2.rlib,libscheduled_thread_pool-e9fc89b6a554af4f.rlib,libparking_lot-3f7fda0ef03b9843.rlib,libparking_lot_core-3c40a3d805896796.rlib,liblibc-c091619168bee0d3.rlib,libsmallvec-a0b9fe2bb61c7c93.rlib,liblock_api-8a3a9ae637979500.rlib,libscopeguard-73056285f12cb829.rlib,libinstant-96e83b871cb6a3bd.rlib,liblog-2fa663e3959e676f.rlib,libcfg_if-66d55f6b302e88c8.rlib,libbyteorder-c7092f68299ac016.rlib,libbitflags-561a4f1321538a32.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libcfg_if-*,liblibc-*}.rlib" "-lc" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/tmp/rustcaQDNRA/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/ring-6a3f48397fccfb06/out" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/xueyigou-f2c4cda1159ca175" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/rustup-home/toolchains/c066bf6804adc55193b71afdff6a56922f4a8689/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-6552f92f1a5eadae.rlib(std-6552f92f1a5eadae.std.be2f757747cc7d91-cgu.0.rcgu.o): in function `>::try_from::{{closure}}': [INFO] [stdout] /rustc/c066bf6804adc55193b71afdff6a56922f4a8689/library/std/src/sys/net/connection/socket.rs:319:(.text._ZN117_$LT$std..sys..net..connection..socket..LookupHost$u20$as$u20$core..convert..TryFrom$LT$$LP$$RF$str$C$u16$RP$$GT$$GT$8try_from28_$u7b$$u7b$closure$u7d$$u7d$17ha96ad957ab4f1dbbE+0x57): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking [INFO] [stdout] /usr/bin/ld: /opt/rustwide/rustup-home/toolchains/c066bf6804adc55193b71afdff6a56922f4a8689/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-6552f92f1a5eadae.rlib(std-6552f92f1a5eadae.std.be2f757747cc7d91-cgu.0.rcgu.o): in function `std::sys::pal::unix::os::home_dir::fallback': [INFO] [stdout] /rustc/c066bf6804adc55193b71afdff6a56922f4a8689/library/std/src/sys/pal/unix/os.rs:671:(.text._ZN3std3env8home_dir17h91cddb07408e8c5bE+0xc5): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking [INFO] [stdout] /usr/bin/ld: /tmp/ccBUpBYC.ltrans0.ltrans.o: relocation R_X86_64_32S against `.bss' can not be used when making a PIE object; recompile with -fPIE [INFO] [stdout] /usr/bin/ld: failed to set dynamic section sizes: bad value [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] /usr/bin/ld: /opt/rustwide/rustup-home/toolchains/c066bf6804adc55193b71afdff6a56922f4a8689/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-6552f92f1a5eadae.rlib(std-6552f92f1a5eadae.std.be2f757747cc7d91-cgu.0.rcgu.o): note: the message above does not take linker garbage collection into account [INFO] [stdout] /usr/bin/ld: /opt/rustwide/rustup-home/toolchains/c066bf6804adc55193b71afdff6a56922f4a8689/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-6552f92f1a5eadae.rlib(std-6552f92f1a5eadae.std.be2f757747cc7d91-cgu.0.rcgu.o): note: the message above does not take linker garbage collection into account [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `xueyigou` (bin "xueyigou") due to 1 previous error; 65 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a352edf73dc6c39758b89415cb9a0cd594635c7a8e64e0f78e58999d630a2cdc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a352edf73dc6c39758b89415cb9a0cd594635c7a8e64e0f78e58999d630a2cdc", kill_on_drop: false }` [INFO] [stdout] a352edf73dc6c39758b89415cb9a0cd594635c7a8e64e0f78e58999d630a2cdc