[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] testing Jekahome/Async_Sqlx_example against try#8262275854dc0e5381c9d42d56257d94932c5a87 for pr-90799 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJekahome%2FAsync_Sqlx_example" "/workspace/builds/worker-113/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-113/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Jekahome/Async_Sqlx_example on toolchain 8262275854dc0e5381c9d42d56257d94932c5a87 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "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-113/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" "+8262275854dc0e5381c9d42d56257d94932c5a87" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded barrel v0.6.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-113/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-113/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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 522434c5b96779e8a0d40d2649d16ff318eb39eaf39ebe7cd6e05df7b9e8e275 [INFO] running `Command { std: "docker" "start" "-a" "522434c5b96779e8a0d40d2649d16ff318eb39eaf39ebe7cd6e05df7b9e8e275", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "522434c5b96779e8a0d40d2649d16ff318eb39eaf39ebe7cd6e05df7b9e8e275", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "522434c5b96779e8a0d40d2649d16ff318eb39eaf39ebe7cd6e05df7b9e8e275", kill_on_drop: false }` [INFO] [stdout] 522434c5b96779e8a0d40d2649d16ff318eb39eaf39ebe7cd6e05df7b9e8e275 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-113/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-113/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" "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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1aae98eda2961c36a00e01514460c7498442ec3998406aa56a749e1f6c35ecac [INFO] running `Command { std: "docker" "start" "-a" "1aae98eda2961c36a00e01514460c7498442ec3998406aa56a749e1f6c35ecac", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling cfg-if v1.0.0 [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 futures-core v0.3.17 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-io v0.3.17 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling cache-padded v1.1.1 [INFO] [stderr] Compiling pkg-config v0.3.20 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling cc v1.0.71 [INFO] [stderr] Compiling fastrand v1.5.0 [INFO] [stderr] Compiling event-listener v2.5.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling async-task v4.0.3 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling signal-hook v0.3.10 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling openssl v0.10.36 [INFO] [stderr] Compiling atomic-waker v1.0.0 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling futures-sink v0.3.17 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling serde_json v1.0.68 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Compiling minimal-lexical v0.1.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.14 [INFO] [stderr] Compiling whoami v1.1.5 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling crc-catalog v1.1.1 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling serde v0.8.23 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling anyhow v1.0.44 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling rust-ini v0.13.0 [INFO] [stderr] Compiling barrel v0.6.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling tinyvec v1.5.0 [INFO] [stderr] Compiling futures-macro v0.3.17 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Compiling tokio v1.12.0 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling async-mutex v1.4.0 [INFO] [stderr] Compiling async-lock v2.4.0 [INFO] [stderr] Compiling instant v0.1.11 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.7 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling nom v7.0.0 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling openssl-sys v0.9.67 [INFO] [stderr] Compiling crc v2.0.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling atoi v0.4.0 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling blocking v1.0.2 [INFO] [stderr] Compiling sqlformat v0.1.8 [INFO] [stderr] Compiling serde-hjson v0.9.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling dirs v3.0.2 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling futures-intrusive v0.4.0 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling sha2 v0.9.8 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling ctor v0.1.21 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling tokio-macros v1.5.0 [INFO] [stderr] Compiling polling v2.1.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling async-io v1.6.0 [INFO] [stderr] Compiling async-process v1.2.0 [INFO] [stderr] Compiling async-global-executor v2.0.2 [INFO] [stderr] Compiling async-std v1.10.0 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling futures-executor v0.3.17 [INFO] [stderr] Compiling futures v0.3.17 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling async-native-tls v0.3.3 [INFO] [stderr] Compiling sqlx-rt v0.5.9 [INFO] [stderr] Compiling sqlx-core v0.5.9 [INFO] [stderr] Compiling config v0.11.0 [INFO] [stderr] Compiling sqlx-macros v0.5.9 [INFO] [stderr] Compiling sqlx v0.5.9 [INFO] [stderr] Compiling 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: 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: 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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [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: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 50s [INFO] running `Command { std: "docker" "inspect" "1aae98eda2961c36a00e01514460c7498442ec3998406aa56a749e1f6c35ecac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1aae98eda2961c36a00e01514460c7498442ec3998406aa56a749e1f6c35ecac", kill_on_drop: false }` [INFO] [stdout] 1aae98eda2961c36a00e01514460c7498442ec3998406aa56a749e1f6c35ecac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-113/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-113/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" "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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81f063c48e94f082add1d8dc7e338ec05b74bee41ced115e9502f220bb2f631d [INFO] running `Command { std: "docker" "start" "-a" "81f063c48e94f082add1d8dc7e338ec05b74bee41ced115e9502f220bb2f631d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling 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: 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: 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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [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: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 7.76s [INFO] running `Command { std: "docker" "inspect" "81f063c48e94f082add1d8dc7e338ec05b74bee41ced115e9502f220bb2f631d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81f063c48e94f082add1d8dc7e338ec05b74bee41ced115e9502f220bb2f631d", kill_on_drop: false }` [INFO] [stdout] 81f063c48e94f082add1d8dc7e338ec05b74bee41ced115e9502f220bb2f631d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-113/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-113/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" "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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2e7f58a5e0647d741f3e4d163476d387afe4a01c753d060b8208e692b2c8077b [INFO] running `Command { std: "docker" "start" "-a" "2e7f58a5e0647d741f3e4d163476d387afe4a01c753d060b8208e692b2c8077b", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] [INFO] [stderr] warning: unused import: `sqlx::postgres::PgPoolOptions` [INFO] [stdout] running 0 tests [INFO] [stderr] --> src/main.rs:5:5 [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] 5 | use sqlx::postgres::PgPoolOptions; [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::postgres::PgConnectOptions` [INFO] [stderr] --> src/main.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use sqlx::postgres::PgConnectOptions; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::convert::TryFrom` [INFO] [stderr] --> src/main.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use std::convert::TryFrom; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `Executor` is imported redundantly [INFO] [stderr] --> src/main.rs:268:9 [INFO] [stderr] | [INFO] [stderr] 3 | use sqlx::Executor; [INFO] [stderr] | -------------- the item `Executor` is already imported here [INFO] [stderr] ... [INFO] [stderr] 268 | use sqlx::Executor;// trait impl for sqlx::pool::Pool or sqlx::pool::PoolConnection or sqlx::connection::Connection [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::Execute` [INFO] [stderr] --> src/main.rs:269:9 [INFO] [stderr] | [INFO] [stderr] 269 | use sqlx::Execute;// trait impl for &str or sqlx::query::Query [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `Statement` is imported redundantly [INFO] [stderr] --> src/main.rs:276:9 [INFO] [stderr] | [INFO] [stderr] 4 | use sqlx::Statement; [INFO] [stderr] | --------------- the item `Statement` is already imported here [INFO] [stderr] ... [INFO] [stderr] 276 | use sqlx::Statement; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Database`, `FromRow` [INFO] [stderr] --> src/main.rs:411:20 [INFO] [stderr] | [INFO] [stderr] 411 | use sqlx::{Row,FromRow,Database}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::database::HasValueRef` [INFO] [stderr] --> src/main.rs:415:9 [INFO] [stderr] | [INFO] [stderr] 415 | use sqlx::database::HasValueRef; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Display` [INFO] [stderr] --> src/main.rs:418:27 [INFO] [stderr] | [INFO] [stderr] 418 | use core::fmt::{Debug,Display}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:252:9 [INFO] [stderr] | [INFO] [stderr] 252 | let mut user:User = sqlx::query_as::<_, User>("SELECT id,name,created_at,'Two' as variant FROM todo WHERE id = $1::INT4") [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:262:10 [INFO] [stderr] | [INFO] [stderr] 262 | let mut id:Id = sqlx::query_as::<_, Id>("SELECT 1") [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:353:9 [INFO] [stderr] | [INFO] [stderr] 353 | let mut rows:Vec = sqlx::query("SELECT 'two' as variant FROM todo WHERE id > $1::INT4").bind(0).fetch_all(pool... [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:360:9 [INFO] [stderr] | [INFO] [stderr] 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] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::error::DatabaseError` [INFO] [stderr] --> src/main.rs:196:9 [INFO] [stderr] | [INFO] [stderr] 196 | use sqlx::error::DatabaseError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `todo_id` [INFO] [stderr] --> src/main.rs:293:10 [INFO] [stderr] | [INFO] [stderr] 293 | let (todo_id,): (i32,) = sqlx::query_as( [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_todo_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 20 | let mut pool:sqlx::Pool = sqlx::postgres::PgPoolOptions::new() [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused implementer of `futures::Future` that must be used [INFO] [stderr] --> src/main.rs:53:5 [INFO] [stderr] | [INFO] [stderr] 53 | pool.close(); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: futures do nothing unless you `.await` or poll them [INFO] [stderr] [INFO] [stderr] warning: unused `QueryAs` that must be used [INFO] [stderr] --> src/main.rs:307:5 [INFO] [stderr] | [INFO] [stderr] 307 | sqlx::query_as_with::("SELECT 'two' as variant FROM todo WHERE id = $1::INT4", arg ); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: query must be executed to affect database [INFO] [stderr] [INFO] [stderr] warning: `sqlx_example` (bin "main" test) generated 18 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.34s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/sqlx_example-b82105745599e4e9) [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/main-dc36627b1cf09f1b) [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/migrations-bd4960b3b520f407) [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/migrations_barrel-3cd3986318bdb7ef) [INFO] [stdout] [INFO] [stderr] Doc-tests sqlx_example [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2e7f58a5e0647d741f3e4d163476d387afe4a01c753d060b8208e692b2c8077b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e7f58a5e0647d741f3e4d163476d387afe4a01c753d060b8208e692b2c8077b", kill_on_drop: false }` [INFO] [stdout] 2e7f58a5e0647d741f3e4d163476d387afe4a01c753d060b8208e692b2c8077b