[INFO] cloning repository https://github.com/Jekahome/Async_Sqlx_example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Jekahome/Async_Sqlx_example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJekahome%2FAsync_Sqlx_example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJekahome%2FAsync_Sqlx_example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fb4a2dd3437621e10f361df6ac246a2277c2ae93 [INFO] checking Jekahome/Async_Sqlx_example against master#2d3a85b4f8ba7e2554f4d4fee126bc2ac6ee2af4 for pr-84385 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJekahome%2FAsync_Sqlx_example" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Jekahome/Async_Sqlx_example on toolchain 2d3a85b4f8ba7e2554f4d4fee126bc2ac6ee2af4 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+2d3a85b4f8ba7e2554f4d4fee126bc2ac6ee2af4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Jekahome/Async_Sqlx_example [INFO] finished tweaking git repo https://github.com/Jekahome/Async_Sqlx_example [INFO] tweaked toml for git repo https://github.com/Jekahome/Async_Sqlx_example written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/Jekahome/Async_Sqlx_example already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+2d3a85b4f8ba7e2554f4d4fee126bc2ac6ee2af4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-macros v1.5.0 [INFO] [stderr] Downloaded barrel v0.6.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+2d3a85b4f8ba7e2554f4d4fee126bc2ac6ee2af4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 00305c72b626ccb3d3c59f11d46e73312aa9e6b7d673a2793f66df180ae61932 [INFO] running `Command { std: "docker" "start" "-a" "00305c72b626ccb3d3c59f11d46e73312aa9e6b7d673a2793f66df180ae61932", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00305c72b626ccb3d3c59f11d46e73312aa9e6b7d673a2793f66df180ae61932", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00305c72b626ccb3d3c59f11d46e73312aa9e6b7d673a2793f66df180ae61932", kill_on_drop: false }` [INFO] [stdout] 00305c72b626ccb3d3c59f11d46e73312aa9e6b7d673a2793f66df180ae61932 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+2d3a85b4f8ba7e2554f4d4fee126bc2ac6ee2af4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] af58026712efb6a5bb79cf2cd51ec6f0579ab6ae448618f7b5a3d5a4ea0b8dd3 [INFO] running `Command { std: "docker" "start" "-a" "af58026712efb6a5bb79cf2cd51ec6f0579ab6ae448618f7b5a3d5a4ea0b8dd3", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.30 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.80 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.7 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling pkg-config v0.3.20 [INFO] [stderr] Compiling cc v1.0.71 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling signal-hook v0.3.10 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Checking futures-io v0.3.17 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling cache-padded v1.1.1 [INFO] [stderr] Compiling openssl v0.10.36 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling fastrand v1.5.0 [INFO] [stderr] Compiling event-listener v2.5.1 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling openssl-sys v0.9.67 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling futures-macro v0.3.17 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling tinyvec v1.5.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling nom v7.0.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling async-task v4.0.3 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling serde_json v1.0.68 [INFO] [stderr] Compiling atomic-waker v1.0.0 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling blocking v1.0.2 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling async-mutex v1.4.0 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Compiling ctor v0.1.21 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling whoami v1.1.5 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Checking polling v2.1.0 [INFO] [stderr] Checking async-io v1.6.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling async-lock v2.4.0 [INFO] [stderr] Compiling async-global-executor v2.0.2 [INFO] [stderr] Compiling async-process v1.2.0 [INFO] [stderr] Checking instant v0.1.11 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Compiling openssl-probe v0.1.4 [INFO] [stderr] Checking futures-sink v0.3.17 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling async-std v1.10.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.14 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling minimal-lexical v0.1.4 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling async-native-tls v0.3.3 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling crc-catalog v1.1.1 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling crc v2.0.0 [INFO] [stderr] Compiling sqlformat v0.1.8 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling dirs v3.0.2 [INFO] [stderr] Compiling sqlx-rt v0.5.9 [INFO] [stderr] Compiling futures-intrusive v0.4.0 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling sha2 v0.9.8 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Compiling atoi v0.4.0 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling sqlx-core v0.5.9 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Compiling tokio v1.12.0 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Compiling anyhow v1.0.44 [INFO] [stderr] Checking serde v0.8.23 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking futures-executor v0.3.17 [INFO] [stderr] Checking mio v0.7.13 [INFO] [stderr] Compiling tokio-macros v1.5.0 [INFO] [stderr] Checking rust-ini v0.13.0 [INFO] [stderr] Checking futures v0.3.17 [INFO] [stderr] Checking barrel v0.6.5 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking serde-hjson v0.9.1 [INFO] [stderr] Checking config v0.11.0 [INFO] [stderr] Compiling sqlx-macros v0.5.9 [INFO] [stderr] Checking sqlx v0.5.9 [INFO] [stderr] Checking sqlx_example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sqlx::postgres::PgPoolOptions` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::postgres::PgPoolOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::postgres::PgConnectOptions` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sqlx::postgres::PgConnectOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Executor` is imported redundantly [INFO] [stdout] --> src/main.rs:268:9 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::Executor; [INFO] [stdout] | -------------- the item `Executor` is already imported here [INFO] [stdout] ... [INFO] [stdout] 268 | use sqlx::Executor;// trait impl for sqlx::pool::Pool or sqlx::pool::PoolConnection or sqlx::connection::Connection [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Execute` [INFO] [stdout] --> src/main.rs:269:9 [INFO] [stdout] | [INFO] [stdout] 269 | use sqlx::Execute;// trait impl for &str or sqlx::query::Query [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Statement` is imported redundantly [INFO] [stdout] --> src/main.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Statement; [INFO] [stdout] | --------------- the item `Statement` is already imported here [INFO] [stdout] ... [INFO] [stdout] 276 | use sqlx::Statement; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Database`, `FromRow` [INFO] [stdout] --> src/main.rs:411:20 [INFO] [stdout] | [INFO] [stdout] 411 | use sqlx::{Row,FromRow,Database}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::database::HasValueRef` [INFO] [stdout] --> src/main.rs:415:9 [INFO] [stdout] | [INFO] [stdout] 415 | use sqlx::database::HasValueRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/main.rs:418:27 [INFO] [stdout] | [INFO] [stdout] 418 | use core::fmt::{Debug,Display}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::postgres::PgPoolOptions` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::postgres::PgPoolOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::postgres::PgConnectOptions` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sqlx::postgres::PgConnectOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Executor` is imported redundantly [INFO] [stdout] --> src/main.rs:268:9 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::Executor; [INFO] [stdout] | -------------- the item `Executor` is already imported here [INFO] [stdout] ... [INFO] [stdout] 268 | use sqlx::Executor;// trait impl for sqlx::pool::Pool or sqlx::pool::PoolConnection or sqlx::connection::Connection [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Execute` [INFO] [stdout] --> src/main.rs:269:9 [INFO] [stdout] | [INFO] [stdout] 269 | use sqlx::Execute;// trait impl for &str or sqlx::query::Query [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Statement` is imported redundantly [INFO] [stdout] --> src/main.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Statement; [INFO] [stdout] | --------------- the item `Statement` is already imported here [INFO] [stdout] ... [INFO] [stdout] 276 | use sqlx::Statement; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Database`, `FromRow` [INFO] [stdout] --> src/main.rs:411:20 [INFO] [stdout] | [INFO] [stdout] 411 | use sqlx::{Row,FromRow,Database}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::database::HasValueRef` [INFO] [stdout] --> src/main.rs:415:9 [INFO] [stdout] | [INFO] [stdout] 415 | use sqlx::database::HasValueRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/main.rs:418:27 [INFO] [stdout] | [INFO] [stdout] 418 | use core::fmt::{Debug,Display}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 252 | let mut user:User = sqlx::query_as::<_, User>("SELECT id,name,created_at,'Two' as variant FROM todo WHERE id = $1::INT4") [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:262:10 [INFO] [stdout] | [INFO] [stdout] 262 | let mut id:Id = sqlx::query_as::<_, Id>("SELECT 1") [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | let mut rows:Vec = sqlx::query("SELECT 'two' as variant FROM todo WHERE id > $1::INT4").bind(0).fetch_all(pool... [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360 | let mut row:sqlx::postgres::PgRow = sqlx::query("SELECT 'two' as variant FROM todo WHERE id = $1::INT4").bind(Id(1)).fetch_one(pool).... [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::error::DatabaseError` [INFO] [stdout] --> src/main.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | use sqlx::error::DatabaseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `todo_id` [INFO] [stdout] --> src/main.rs:293:10 [INFO] [stdout] | [INFO] [stdout] 293 | let (todo_id,): (i32,) = sqlx::query_as( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_todo_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut pool:sqlx::Pool = sqlx::postgres::PgPoolOptions::new() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/main.rs:454:9 [INFO] [stdout] | [INFO] [stdout] 454 | fn default() -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 455 | let utc: DateTime = Utc::now().with_timezone(&Local); [INFO] [stdout] 456 | User{created_at:utc,variant:Variant::One, ..Default::default()} [INFO] [stdout] | ------------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/main.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | pool.close(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `QueryAs` that must be used [INFO] [stdout] --> src/main.rs:307:5 [INFO] [stdout] | [INFO] [stdout] 307 | sqlx::query_as_with::("SELECT 'two' as variant FROM todo WHERE id = $1::INT4", arg ); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: query must be executed to affect database [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 252 | let mut user:User = sqlx::query_as::<_, User>("SELECT id,name,created_at,'Two' as variant FROM todo WHERE id = $1::INT4") [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:262:10 [INFO] [stdout] | [INFO] [stdout] 262 | let mut id:Id = sqlx::query_as::<_, Id>("SELECT 1") [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | let mut rows:Vec = sqlx::query("SELECT 'two' as variant FROM todo WHERE id > $1::INT4").bind(0).fetch_all(pool... [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360 | let mut row:sqlx::postgres::PgRow = sqlx::query("SELECT 'two' as variant FROM todo WHERE id = $1::INT4").bind(Id(1)).fetch_one(pool).... [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::error::DatabaseError` [INFO] [stdout] --> src/main.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | use sqlx::error::DatabaseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `todo_id` [INFO] [stdout] --> src/main.rs:293:10 [INFO] [stdout] | [INFO] [stdout] 293 | let (todo_id,): (i32,) = sqlx::query_as( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_todo_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut pool:sqlx::Pool = sqlx::postgres::PgPoolOptions::new() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/main.rs:454:9 [INFO] [stdout] | [INFO] [stdout] 454 | fn default() -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 455 | let utc: DateTime = Utc::now().with_timezone(&Local); [INFO] [stdout] 456 | User{created_at:utc,variant:Variant::One, ..Default::default()} [INFO] [stdout] | ------------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/main.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | pool.close(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `QueryAs` that must be used [INFO] [stdout] --> src/main.rs:307:5 [INFO] [stdout] | [INFO] [stdout] 307 | sqlx::query_as_with::("SELECT 'two' as variant FROM todo WHERE id = $1::INT4", arg ); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: query must be executed to affect database [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 48.67s [INFO] running `Command { std: "docker" "inspect" "af58026712efb6a5bb79cf2cd51ec6f0579ab6ae448618f7b5a3d5a4ea0b8dd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af58026712efb6a5bb79cf2cd51ec6f0579ab6ae448618f7b5a3d5a4ea0b8dd3", kill_on_drop: false }` [INFO] [stdout] af58026712efb6a5bb79cf2cd51ec6f0579ab6ae448618f7b5a3d5a4ea0b8dd3