[INFO] fetching crate teo-sql-connector 0.3.8... [INFO] building teo-sql-connector-0.3.8 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] extracting crate teo-sql-connector 0.3.8 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate teo-sql-connector 0.3.8 [INFO] finished tweaking crates.io crate teo-sql-connector 0.3.8 [INFO] tweaked toml for crates.io crate teo-sql-connector 0.3.8 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate teo-sql-connector 0.3.8 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 419 packages to latest compatible versions [INFO] [stderr] Adding bigdecimal v0.3.1 (available: v0.4.8) [INFO] [stderr] Adding cuid v1.2.0 (available: v1.3.3) [INFO] [stderr] Adding itertools v0.13.0 (available: v0.14.0) [INFO] [stderr] Adding lazy_static v1.4.0 (available: v1.5.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded random-string v1.1.0 [INFO] [stderr] Downloaded snailquote v0.3.1 [INFO] [stderr] Downloaded teo-result v0.3.5 [INFO] [stderr] Downloaded cuid-util v0.1.1 [INFO] [stderr] Downloaded md5 v0.6.1 [INFO] [stderr] Downloaded frunk_proc_macros v0.1.4 [INFO] [stderr] Downloaded key-path v0.2.3 [INFO] [stderr] Downloaded pad v0.1.6 [INFO] [stderr] Downloaded metrics v0.18.1 [INFO] [stderr] Downloaded inflector-plus v0.11.7 [INFO] [stderr] Downloaded metrics-macros v0.5.1 [INFO] [stderr] Downloaded frunk_proc_macro_helpers v0.1.4 [INFO] [stderr] Downloaded postgres-native-tls v0.5.2 [INFO] [stderr] Downloaded priority-queue v1.4.0 [INFO] [stderr] Downloaded frunk_derives v0.4.4 [INFO] [stderr] Downloaded cuid v1.2.0 [INFO] [stderr] Downloaded lru v0.8.1 [INFO] [stderr] Downloaded mysql_async v0.31.3 [INFO] [stderr] Downloaded tiberius v0.11.8 [INFO] [stderr] Downloaded mysql_common v0.29.2 [INFO] [stderr] Downloaded cuid2 v0.1.4 [INFO] [stderr] Downloaded frunk_core v0.4.4 [INFO] [stderr] Downloaded frunk v0.4.4 [INFO] [stderr] Downloaded async-native-tls v0.4.0 [INFO] [stderr] Downloaded bcrypt v0.16.0 [INFO] [stderr] Downloaded deferred-box v0.1.4 [INFO] [stderr] Downloaded hashlink v0.7.0 [INFO] [stderr] Downloaded connection-string v0.2.0 [INFO] [stderr] Downloaded history-box v0.1.1 [INFO] [stderr] Downloaded rusqlite v0.25.4 [INFO] [stderr] Downloaded asynchronous-codec v0.6.2 [INFO] [stderr] Downloaded pretty-hex v0.3.0 [INFO] [stderr] Downloaded winauth v0.0.4 [INFO] [stderr] Downloaded array_tool v1.0.3 [INFO] [stderr] Downloaded teo-parser v0.3.0 [INFO] [stderr] Downloaded teo-runtime v0.3.8 [INFO] [stderr] Downloaded mobc-forked v0.7.4-alpha.4 [INFO] [stderr] Downloaded quaint-forked v0.1.3-alpha.8 [INFO] [stderr] Downloaded libsqlite3-sys v0.22.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 887ce85b22dc4f728795dd5fe24164fbfea0c4aa738b61518f50ae973b1aa4f9 [INFO] running `Command { std: "docker" "start" "-a" "887ce85b22dc4f728795dd5fe24164fbfea0c4aa738b61518f50ae973b1aa4f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "887ce85b22dc4f728795dd5fe24164fbfea0c4aa738b61518f50ae973b1aa4f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "887ce85b22dc4f728795dd5fe24164fbfea0c4aa738b61518f50ae973b1aa4f9", kill_on_drop: false }` [INFO] [stdout] 887ce85b22dc4f728795dd5fe24164fbfea0c4aa738b61518f50ae973b1aa4f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e0be8e8ba1b4c5146325fddb66ddbd64ede49eb9042f91ed86156db387cb712 [INFO] running `Command { std: "docker" "start" "-a" "0e0be8e8ba1b4c5146325fddb66ddbd64ede49eb9042f91ed86156db387cb712", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling lexical-util v0.8.5 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling libloading v0.8.9 [INFO] [stderr] Compiling bindgen v0.59.2 [INFO] [stderr] Compiling frunk_core v0.4.4 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling bigdecimal v0.3.1 [INFO] [stderr] Compiling lexical-write-integer v0.8.5 [INFO] [stderr] Compiling lexical-parse-integer v0.8.6 [INFO] [stderr] Compiling libz-sys v1.1.22 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling lexical-parse-float v0.8.5 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling pest v2.8.2 [INFO] [stderr] Compiling lexical-write-float v0.8.5 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling enum-ordinalize-derive v4.3.1 [INFO] [stderr] Compiling subprocess v0.2.9 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling rust_decimal v1.38.0 [INFO] [stderr] Compiling phf_shared v0.13.1 [INFO] [stderr] Compiling frunk_proc_macro_helpers v0.1.4 [INFO] [stderr] Compiling enum-ordinalize v4.3.0 [INFO] [stderr] Compiling postgres-protocol v0.6.9 [INFO] [stderr] Compiling lexical-core v0.8.5 [INFO] [stderr] Compiling frunk_derives v0.4.4 [INFO] [stderr] Compiling frunk_proc_macros v0.1.4 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling serde_with v1.14.0 [INFO] [stderr] Compiling pest_meta v2.8.2 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling serde_bytes v0.11.19 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling libsqlite3-sys v0.22.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling priority-queue v1.4.0 [INFO] [stderr] Compiling metrics v0.18.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling postgres-types v0.2.10 [INFO] [stderr] Compiling bson v2.15.0 [INFO] [stderr] Compiling pest_generator v2.8.2 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling lexical v6.1.1 [INFO] [stderr] Compiling phf v0.13.1 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling frunk v0.4.4 [INFO] [stderr] Compiling metrics-macros v0.5.1 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling enumflags2_derive v0.7.12 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling saturating v0.1.0 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling enumflags2 v0.7.12 [INFO] [stderr] Compiling tokio-postgres v0.7.14 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling teo-result v0.3.5 [INFO] [stderr] Compiling mysql_common v0.29.2 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling snailquote v0.3.1 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Compiling crossbeam v0.8.4 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling pest_derive v2.8.2 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling async-native-tls v0.4.0 [INFO] [stderr] Compiling educe v0.6.0 [INFO] [stderr] Compiling lru v0.8.1 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling twox-hash v1.6.3 [INFO] [stderr] Compiling asynchronous-codec v0.6.2 [INFO] [stderr] Compiling pem v3.0.5 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling path-clean v1.0.1 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling pretty-hex v0.3.0 [INFO] [stderr] Compiling connection-string v0.2.0 [INFO] [stderr] Compiling cuid-util v0.1.1 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling array_tool v1.0.3 [INFO] [stderr] Compiling random-string v1.1.0 [INFO] [stderr] Compiling tiberius v0.11.8 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling cuid2 v0.1.4 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling bcrypt v0.16.0 [INFO] [stderr] Compiling teo-parser v0.3.0 [INFO] [stderr] Compiling mysql_async v0.31.3 [INFO] [stderr] Compiling pad v0.1.6 [INFO] [stderr] Compiling mobc-forked v0.7.4-alpha.4 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling postgres-native-tls v0.5.2 [INFO] [stderr] Compiling cuid v1.2.0 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling rusqlite v0.25.4 [INFO] [stderr] Compiling educe v0.5.11 [INFO] [stderr] Compiling inflector-plus v0.11.7 [INFO] [stderr] Compiling tokio-util v0.6.10 [INFO] [stderr] Compiling async-recursion v1.1.1 [INFO] [stderr] Compiling path-dedot v3.1.1 [INFO] [stderr] Compiling deferred-box v0.1.4 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling key-path v0.2.3 [INFO] [stderr] Compiling history-box v0.1.1 [INFO] [stderr] Compiling path-absolutize v3.1.1 [INFO] [stderr] Compiling quaint-forked v0.1.3-alpha.8 [INFO] [stderr] Compiling teo-runtime v0.3.8 [INFO] [stderr] Compiling teo-sql-connector v0.3.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `teo_runtime::connection::connection::Connection` [INFO] [stdout] --> src/connector/transaction.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use teo_runtime::connection::connection::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `teo_runtime::connection::connection::Connection` [INFO] [stdout] --> src/migration/migrate.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use teo_runtime::connection::connection::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `quaint_forked::pooled::PooledConnection` [INFO] [stdout] --> src/schema/column/decoder.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use quaint_forked::pooled::PooledConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::backtrace::Backtrace` [INFO] [stdout] --> src/execution/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::backtrace::Backtrace; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `teo_runtime::request` [INFO] [stdout] --> src/execution/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use teo_runtime::request; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pconn` [INFO] [stdout] --> src/migration/migrate.rs:151:97 [INFO] [stdout] | [INFO] [stdout] 151 | pub(crate) async fn migrate(dialect: SQLDialect, conn: &dyn Queryable, models: Vec<&Model>, pconn: &dyn Transaction) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pconn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/migration/migrate.rs:475:13 [INFO] [stdout] | [INFO] [stdout] 475 | let mut results: Vec = indices.into_iter().collect(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:392:17 [INFO] [stdout] | [INFO] [stdout] 392 | map.remove("take"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:393:17 [INFO] [stdout] | [INFO] [stdout] 393 | map.remove("skip"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:394:17 [INFO] [stdout] | [INFO] [stdout] 394 | map.remove("pageSize"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | map.remove("pageNumber"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:406:17 [INFO] [stdout] | [INFO] [stdout] 406 | map.remove("take"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:407:17 [INFO] [stdout] | [INFO] [stdout] 407 | map.remove("skip"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:408:17 [INFO] [stdout] | [INFO] [stdout] 408 | map.remove("pageSize"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:409:17 [INFO] [stdout] | [INFO] [stdout] 409 | map.remove("pageNumber"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:410:17 [INFO] [stdout] | [INFO] [stdout] 410 | map.remove("distinct"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/connector/transaction.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dry_run` [INFO] [stdout] --> src/connector/transaction.rs:215:50 [INFO] [stdout] | [INFO] [stdout] 215 | async fn migrate(&self, models: Vec<&Model>, dry_run: bool, reset_database: bool, silent: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dry_run` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reset_database` [INFO] [stdout] --> src/connector/transaction.rs:215:65 [INFO] [stdout] | [INFO] [stdout] 215 | async fn migrate(&self, models: Vec<&Model>, dry_run: bool, reset_database: bool, silent: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reset_database` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `silent` [INFO] [stdout] --> src/connector/transaction.rs:215:87 [INFO] [stdout] | [INFO] [stdout] 215 | async fn migrate(&self, models: Vec<&Model>, dry_run: bool, reset_database: bool, silent: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_silent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ignore_select_and_include` [INFO] [stdout] --> src/connector/transaction.rs:267:64 [INFO] [stdout] | [INFO] [stdout] 267 | ...: &Value, ignore_select_and_include: bool, action: Action, transaction_ctx: transaction::Ctx, request: Option, path: KeyPath)... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ignore_select_and_include` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ignore_select_and_include` [INFO] [stdout] --> src/connector/transaction.rs:276:62 [INFO] [stdout] | [INFO] [stdout] 276 | ...: &Value, ignore_select_and_include: bool, action: Action, transaction_ctx: transaction::Ctx, request: Option, path: KeyPath)... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ignore_select_and_include` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> src/connector/transaction.rs:300:25 [INFO] [stdout] | [INFO] [stdout] 300 | async fn sql(&self, model: &Model, sql: &str, transaction_ctx: transaction::Ctx) -> Result> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transaction_ctx` [INFO] [stdout] --> src/connector/transaction.rs:300:51 [INFO] [stdout] | [INFO] [stdout] 300 | async fn sql(&self, model: &Model, sql: &str, transaction_ctx: transaction::Ctx) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/connector/connection.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tran` is never used [INFO] [stdout] --> src/connector/transaction.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 59 | impl SQLTransaction { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | fn tran(&self) -> Option<&Arc> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `show` is never used [INFO] [stdout] --> src/stmts/mod.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 25 | impl SQL { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub(crate) fn show() -> SQLShowStatement { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `index` and `unique_index` are never used [INFO] [stdout] --> src/stmts/create/mod.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl SQLCreateStatement { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub(crate) fn index(&self, index: impl Into) -> SQLCreateIndexStatement { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub(crate) fn unique_index(&self, index: impl Into) -> SQLCreateIndexStatement { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `columns` is never used [INFO] [stdout] --> src/stmts/create/table.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 15 | impl SQLCreateTableStatement { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn columns(&mut self, defs: Vec) -> &mut Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLCreateIndexOnStatement` is never constructed [INFO] [stdout] --> src/stmts/create/index.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) struct SQLCreateIndexOnStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `column` and `columns` are never used [INFO] [stdout] --> src/stmts/create/index.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl SQLCreateIndexOnStatement { [INFO] [stdout] | ------------------------------ methods in this implementation [INFO] [stdout] 14 | pub(crate) fn column(&mut self, column: Item) -> &mut Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub(crate) fn columns(&mut self, columns: Vec) -> &mut Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLCreateIndexStatement` is never constructed [INFO] [stdout] --> src/stmts/create/index.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | pub(crate) struct SQLCreateIndexStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `on` is never used [INFO] [stdout] --> src/stmts/create/index.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl SQLCreateIndexStatement { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] 41 | pub fn on(&self, table: impl Into) -> SQLCreateIndexOnStatement { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `table` and `index` are never used [INFO] [stdout] --> src/stmts/drop/mod.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl SQLDropStatement { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub(crate) fn table(&self, table: impl Into) -> SQLDropTableStatement { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub(crate) fn index(&self, index: impl Into) -> SQLDropIndexStatement { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLDropTableStatement` is never constructed [INFO] [stdout] --> src/stmts/drop/table.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct SQLDropTableStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `if_exists` is never used [INFO] [stdout] --> src/stmts/drop/table.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl SQLDropTableStatement { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 10 | pub fn if_exists(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLDropIndexOnStatement` is never constructed [INFO] [stdout] --> src/stmts/drop/index.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct SQLDropIndexOnStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLDropIndexStatement` is never constructed [INFO] [stdout] --> src/stmts/drop/index.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) struct SQLDropIndexStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `on` is never used [INFO] [stdout] --> src/stmts/drop/index.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl SQLDropIndexStatement { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 22 | pub fn on(&self, table: impl Into) -> SQLDropIndexOnStatement { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/stmts/insert_into/mod.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> SQLInsertIntoStatement<'a> { [INFO] [stdout] | ----------------------------------- method in this implementation [INFO] [stdout] 11 | pub(crate) fn value(&mut self, pair: (&'a str, &'a str)) -> &mut Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLShowStatement` is never constructed [INFO] [stdout] --> src/stmts/show/mod.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) struct SQLShowStatement { } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `tables` and `index_from` are never used [INFO] [stdout] --> src/stmts/show/mod.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 9 | impl SQLShowStatement { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 10 | pub(crate) fn tables(&self) -> SQLShowTablesStatement { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub(crate) fn index_from(&self, table: impl Into) -> SQLShowIndexFromStatement { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLShowTablesStatement` is never constructed [INFO] [stdout] --> src/stmts/show/tables.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct SQLShowTablesStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `like` is never used [INFO] [stdout] --> src/stmts/show/tables.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 8 | impl SQLShowTablesStatement { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 9 | pub(crate) fn like(&mut self, name: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLShowIndexFromStatement` is never constructed [INFO] [stdout] --> src/stmts/show/index_from.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct SQLShowIndexFromStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `null`, `auto_increment`, and `primary_key` are never used [INFO] [stdout] --> src/schema/column/mod.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 18 | impl SQLColumn { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub(crate) fn null(&self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub(crate) fn auto_increment(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub(crate) fn primary_key(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `psql_is_unique` is never used [INFO] [stdout] --> src/schema/column/decoder.rs:215:14 [INFO] [stdout] | [INFO] [stdout] 60 | impl ColumnDecoder { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 215 | async fn psql_is_unique(conn: &dyn Queryable, table_name: &str, column_name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mssql_type_to_database_type` is never used [INFO] [stdout] --> src/schema/type/decoder.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn mssql_type_to_database_type(r#type: &str) -> DatabaseType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `float64_type` and `int64_type` are never used [INFO] [stdout] --> src/schema/dialect.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 14 | impl SQLDialect { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub(crate) fn float64_type(&self) -> DatabaseType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub(crate) fn int64_type(&self) -> DatabaseType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TypeOrNull` is never used [INFO] [stdout] --> src/schema/value/encode.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait TypeOrNull { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/stmts/mod.rs:50:38 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn insert_into(table: &str) -> SQLInsertIntoStatement { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn insert_into(table: &str) -> SQLInsertIntoStatement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/stmts/mod.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn update(table: &str) -> SQLUpdateStatement { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn update(table: &str) -> SQLUpdateStatement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/stmts/mod.rs:58:37 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn delete_from(from: &str) -> SQLDeleteFromStatement { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn delete_from(from: &str) -> SQLDeleteFromStatement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&SQLColumn` instead of cloning the inner type [INFO] [stdout] --> src/migration/migrate.rs:219:51 [INFO] [stdout] | [INFO] [stdout] 219 | ... let mut c = column.clone().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&SQLColumn` instead of cloning the inner type [INFO] [stdout] --> src/migration/migrate.rs:228:95 [INFO] [stdout] | [INFO] [stdout] 228 | ... let alter = SQL::alter_table(table_name).modify(new_column.clone().clone()).to_string(dialect); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/schema/column/decoder.rs:30:67 [INFO] [stdout] | [INFO] [stdout] 30 | pub(crate) fn get_field(&'a self, model: &'a Model) -> Option<&Field> { [INFO] [stdout] | -- -- ^^^^^^ the same lifetime is elided here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 30 | pub(crate) fn get_field(&'a self, model: &'a Model) -> Option<&'a Field> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/execution/mod.rs:388:44 [INFO] [stdout] | [INFO] [stdout] 388 | fn without_paging_and_skip_take(value: &Value) -> Cow { [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 388 | fn without_paging_and_skip_take(value: &Value) -> Cow<'_, Value> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/execution/mod.rs:402:53 [INFO] [stdout] | [INFO] [stdout] 402 | fn without_paging_and_skip_take_distinct(value: &Value) -> Cow { [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 402 | fn without_paging_and_skip_take_distinct(value: &Value) -> Cow<'_, Value> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/exts/index.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | fn sql_name(&self, table_name: &str, dialect: SQLDialect) -> Cow; [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 11 | fn sql_name(&self, table_name: &str, dialect: SQLDialect) -> Cow<'_, str>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/exts/index.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | fn sql_name(&self, table_name: &str, dialect: SQLDialect) -> Cow { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 36 | fn sql_name(&self, table_name: &str, dialect: SQLDialect) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 11s [INFO] running `Command { std: "docker" "inspect" "0e0be8e8ba1b4c5146325fddb66ddbd64ede49eb9042f91ed86156db387cb712", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e0be8e8ba1b4c5146325fddb66ddbd64ede49eb9042f91ed86156db387cb712", kill_on_drop: false }` [INFO] [stdout] 0e0be8e8ba1b4c5146325fddb66ddbd64ede49eb9042f91ed86156db387cb712 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dee9aa3bbdec789d319432331cdbe86ff93f95926d632210f35591a9c1471b46 [INFO] running `Command { std: "docker" "start" "-a" "dee9aa3bbdec789d319432331cdbe86ff93f95926d632210f35591a9c1471b46", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `teo_runtime::connection::connection::Connection` [INFO] [stdout] --> src/connector/transaction.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use teo_runtime::connection::connection::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `teo_runtime::connection::connection::Connection` [INFO] [stdout] --> src/migration/migrate.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use teo_runtime::connection::connection::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `quaint_forked::pooled::PooledConnection` [INFO] [stdout] --> src/schema/column/decoder.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use quaint_forked::pooled::PooledConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::backtrace::Backtrace` [INFO] [stdout] --> src/execution/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::backtrace::Backtrace; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `teo_runtime::request` [INFO] [stdout] --> src/execution/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use teo_runtime::request; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pconn` [INFO] [stdout] --> src/migration/migrate.rs:151:97 [INFO] [stdout] | [INFO] [stdout] 151 | pub(crate) async fn migrate(dialect: SQLDialect, conn: &dyn Queryable, models: Vec<&Model>, pconn: &dyn Transaction) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pconn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/migration/migrate.rs:475:13 [INFO] [stdout] | [INFO] [stdout] 475 | let mut results: Vec = indices.into_iter().collect(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:392:17 [INFO] [stdout] | [INFO] [stdout] 392 | map.remove("take"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:393:17 [INFO] [stdout] | [INFO] [stdout] 393 | map.remove("skip"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:394:17 [INFO] [stdout] | [INFO] [stdout] 394 | map.remove("pageSize"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | map.remove("pageNumber"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:406:17 [INFO] [stdout] | [INFO] [stdout] 406 | map.remove("take"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:407:17 [INFO] [stdout] | [INFO] [stdout] 407 | map.remove("skip"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:408:17 [INFO] [stdout] | [INFO] [stdout] 408 | map.remove("pageSize"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:409:17 [INFO] [stdout] | [INFO] [stdout] 409 | map.remove("pageNumber"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:410:17 [INFO] [stdout] | [INFO] [stdout] 410 | map.remove("distinct"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/connector/transaction.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dry_run` [INFO] [stdout] --> src/connector/transaction.rs:215:50 [INFO] [stdout] | [INFO] [stdout] 215 | async fn migrate(&self, models: Vec<&Model>, dry_run: bool, reset_database: bool, silent: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dry_run` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reset_database` [INFO] [stdout] --> src/connector/transaction.rs:215:65 [INFO] [stdout] | [INFO] [stdout] 215 | async fn migrate(&self, models: Vec<&Model>, dry_run: bool, reset_database: bool, silent: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reset_database` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `silent` [INFO] [stdout] --> src/connector/transaction.rs:215:87 [INFO] [stdout] | [INFO] [stdout] 215 | async fn migrate(&self, models: Vec<&Model>, dry_run: bool, reset_database: bool, silent: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_silent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ignore_select_and_include` [INFO] [stdout] --> src/connector/transaction.rs:267:64 [INFO] [stdout] | [INFO] [stdout] 267 | ...: &Value, ignore_select_and_include: bool, action: Action, transaction_ctx: transaction::Ctx, request: Option, path: KeyPath)... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ignore_select_and_include` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ignore_select_and_include` [INFO] [stdout] --> src/connector/transaction.rs:276:62 [INFO] [stdout] | [INFO] [stdout] 276 | ...: &Value, ignore_select_and_include: bool, action: Action, transaction_ctx: transaction::Ctx, request: Option, path: KeyPath)... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ignore_select_and_include` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> src/connector/transaction.rs:300:25 [INFO] [stdout] | [INFO] [stdout] 300 | async fn sql(&self, model: &Model, sql: &str, transaction_ctx: transaction::Ctx) -> Result> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transaction_ctx` [INFO] [stdout] --> src/connector/transaction.rs:300:51 [INFO] [stdout] | [INFO] [stdout] 300 | async fn sql(&self, model: &Model, sql: &str, transaction_ctx: transaction::Ctx) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/connector/connection.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tran` is never used [INFO] [stdout] --> src/connector/transaction.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 59 | impl SQLTransaction { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | fn tran(&self) -> Option<&Arc> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `show` is never used [INFO] [stdout] --> src/stmts/mod.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 25 | impl SQL { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub(crate) fn show() -> SQLShowStatement { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `index` and `unique_index` are never used [INFO] [stdout] --> src/stmts/create/mod.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl SQLCreateStatement { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub(crate) fn index(&self, index: impl Into) -> SQLCreateIndexStatement { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub(crate) fn unique_index(&self, index: impl Into) -> SQLCreateIndexStatement { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `columns` is never used [INFO] [stdout] --> src/stmts/create/table.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 15 | impl SQLCreateTableStatement { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn columns(&mut self, defs: Vec) -> &mut Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLCreateIndexOnStatement` is never constructed [INFO] [stdout] --> src/stmts/create/index.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) struct SQLCreateIndexOnStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `column` and `columns` are never used [INFO] [stdout] --> src/stmts/create/index.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl SQLCreateIndexOnStatement { [INFO] [stdout] | ------------------------------ methods in this implementation [INFO] [stdout] 14 | pub(crate) fn column(&mut self, column: Item) -> &mut Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub(crate) fn columns(&mut self, columns: Vec) -> &mut Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLCreateIndexStatement` is never constructed [INFO] [stdout] --> src/stmts/create/index.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | pub(crate) struct SQLCreateIndexStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `on` is never used [INFO] [stdout] --> src/stmts/create/index.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl SQLCreateIndexStatement { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] 41 | pub fn on(&self, table: impl Into) -> SQLCreateIndexOnStatement { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `table` and `index` are never used [INFO] [stdout] --> src/stmts/drop/mod.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl SQLDropStatement { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub(crate) fn table(&self, table: impl Into) -> SQLDropTableStatement { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub(crate) fn index(&self, index: impl Into) -> SQLDropIndexStatement { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLDropTableStatement` is never constructed [INFO] [stdout] --> src/stmts/drop/table.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct SQLDropTableStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `if_exists` is never used [INFO] [stdout] --> src/stmts/drop/table.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl SQLDropTableStatement { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 10 | pub fn if_exists(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLDropIndexOnStatement` is never constructed [INFO] [stdout] --> src/stmts/drop/index.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct SQLDropIndexOnStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLDropIndexStatement` is never constructed [INFO] [stdout] --> src/stmts/drop/index.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) struct SQLDropIndexStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `on` is never used [INFO] [stdout] --> src/stmts/drop/index.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl SQLDropIndexStatement { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 22 | pub fn on(&self, table: impl Into) -> SQLDropIndexOnStatement { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/stmts/insert_into/mod.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> SQLInsertIntoStatement<'a> { [INFO] [stdout] | ----------------------------------- method in this implementation [INFO] [stdout] 11 | pub(crate) fn value(&mut self, pair: (&'a str, &'a str)) -> &mut Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLShowStatement` is never constructed [INFO] [stdout] --> src/stmts/show/mod.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) struct SQLShowStatement { } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `tables` and `index_from` are never used [INFO] [stdout] --> src/stmts/show/mod.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 9 | impl SQLShowStatement { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 10 | pub(crate) fn tables(&self) -> SQLShowTablesStatement { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub(crate) fn index_from(&self, table: impl Into) -> SQLShowIndexFromStatement { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLShowTablesStatement` is never constructed [INFO] [stdout] --> src/stmts/show/tables.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct SQLShowTablesStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `like` is never used [INFO] [stdout] --> src/stmts/show/tables.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 8 | impl SQLShowTablesStatement { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 9 | pub(crate) fn like(&mut self, name: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLShowIndexFromStatement` is never constructed [INFO] [stdout] --> src/stmts/show/index_from.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct SQLShowIndexFromStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `null`, `auto_increment`, and `primary_key` are never used [INFO] [stdout] --> src/schema/column/mod.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 18 | impl SQLColumn { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub(crate) fn null(&self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub(crate) fn auto_increment(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub(crate) fn primary_key(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `psql_is_unique` is never used [INFO] [stdout] --> src/schema/column/decoder.rs:215:14 [INFO] [stdout] | [INFO] [stdout] 60 | impl ColumnDecoder { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 215 | async fn psql_is_unique(conn: &dyn Queryable, table_name: &str, column_name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mssql_type_to_database_type` is never used [INFO] [stdout] --> src/schema/type/decoder.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn mssql_type_to_database_type(r#type: &str) -> DatabaseType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `float64_type` and `int64_type` are never used [INFO] [stdout] --> src/schema/dialect.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 14 | impl SQLDialect { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub(crate) fn float64_type(&self) -> DatabaseType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub(crate) fn int64_type(&self) -> DatabaseType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TypeOrNull` is never used [INFO] [stdout] --> src/schema/value/encode.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait TypeOrNull { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/stmts/mod.rs:50:38 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn insert_into(table: &str) -> SQLInsertIntoStatement { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn insert_into(table: &str) -> SQLInsertIntoStatement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/stmts/mod.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn update(table: &str) -> SQLUpdateStatement { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn update(table: &str) -> SQLUpdateStatement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/stmts/mod.rs:58:37 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn delete_from(from: &str) -> SQLDeleteFromStatement { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn delete_from(from: &str) -> SQLDeleteFromStatement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&SQLColumn` instead of cloning the inner type [INFO] [stdout] --> src/migration/migrate.rs:219:51 [INFO] [stdout] | [INFO] [stdout] 219 | ... let mut c = column.clone().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&SQLColumn` instead of cloning the inner type [INFO] [stdout] --> src/migration/migrate.rs:228:95 [INFO] [stdout] | [INFO] [stdout] 228 | ... let alter = SQL::alter_table(table_name).modify(new_column.clone().clone()).to_string(dialect); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/schema/column/decoder.rs:30:67 [INFO] [stdout] | [INFO] [stdout] 30 | pub(crate) fn get_field(&'a self, model: &'a Model) -> Option<&Field> { [INFO] [stdout] | -- -- ^^^^^^ the same lifetime is elided here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 30 | pub(crate) fn get_field(&'a self, model: &'a Model) -> Option<&'a Field> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/execution/mod.rs:388:44 [INFO] [stdout] | [INFO] [stdout] 388 | fn without_paging_and_skip_take(value: &Value) -> Cow { [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 388 | fn without_paging_and_skip_take(value: &Value) -> Cow<'_, Value> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/execution/mod.rs:402:53 [INFO] [stdout] | [INFO] [stdout] 402 | fn without_paging_and_skip_take_distinct(value: &Value) -> Cow { [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 402 | fn without_paging_and_skip_take_distinct(value: &Value) -> Cow<'_, Value> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/exts/index.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | fn sql_name(&self, table_name: &str, dialect: SQLDialect) -> Cow; [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 11 | fn sql_name(&self, table_name: &str, dialect: SQLDialect) -> Cow<'_, str>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling teo-sql-connector v0.3.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/exts/index.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | fn sql_name(&self, table_name: &str, dialect: SQLDialect) -> Cow { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 36 | fn sql_name(&self, table_name: &str, dialect: SQLDialect) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `teo_runtime::connection::connection::Connection` [INFO] [stdout] --> src/connector/transaction.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use teo_runtime::connection::connection::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `teo_runtime::connection::connection::Connection` [INFO] [stdout] --> src/migration/migrate.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use teo_runtime::connection::connection::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `quaint_forked::pooled::PooledConnection` [INFO] [stdout] --> src/schema/column/decoder.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use quaint_forked::pooled::PooledConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::backtrace::Backtrace` [INFO] [stdout] --> src/execution/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::backtrace::Backtrace; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `teo_runtime::request` [INFO] [stdout] --> src/execution/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use teo_runtime::request; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pconn` [INFO] [stdout] --> src/migration/migrate.rs:151:97 [INFO] [stdout] | [INFO] [stdout] 151 | pub(crate) async fn migrate(dialect: SQLDialect, conn: &dyn Queryable, models: Vec<&Model>, pconn: &dyn Transaction) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pconn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/migration/migrate.rs:475:13 [INFO] [stdout] | [INFO] [stdout] 475 | let mut results: Vec = indices.into_iter().collect(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:392:17 [INFO] [stdout] | [INFO] [stdout] 392 | map.remove("take"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:393:17 [INFO] [stdout] | [INFO] [stdout] 393 | map.remove("skip"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:394:17 [INFO] [stdout] | [INFO] [stdout] 394 | map.remove("pageSize"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | map.remove("pageNumber"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:406:17 [INFO] [stdout] | [INFO] [stdout] 406 | map.remove("take"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:407:17 [INFO] [stdout] | [INFO] [stdout] 407 | map.remove("skip"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:408:17 [INFO] [stdout] | [INFO] [stdout] 408 | map.remove("pageSize"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:409:17 [INFO] [stdout] | [INFO] [stdout] 409 | map.remove("pageNumber"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `indexmap::IndexMap::::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior. [INFO] [stdout] --> src/execution/mod.rs:410:17 [INFO] [stdout] | [INFO] [stdout] 410 | map.remove("distinct"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/connector/transaction.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dry_run` [INFO] [stdout] --> src/connector/transaction.rs:215:50 [INFO] [stdout] | [INFO] [stdout] 215 | async fn migrate(&self, models: Vec<&Model>, dry_run: bool, reset_database: bool, silent: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dry_run` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reset_database` [INFO] [stdout] --> src/connector/transaction.rs:215:65 [INFO] [stdout] | [INFO] [stdout] 215 | async fn migrate(&self, models: Vec<&Model>, dry_run: bool, reset_database: bool, silent: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reset_database` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `silent` [INFO] [stdout] --> src/connector/transaction.rs:215:87 [INFO] [stdout] | [INFO] [stdout] 215 | async fn migrate(&self, models: Vec<&Model>, dry_run: bool, reset_database: bool, silent: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_silent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ignore_select_and_include` [INFO] [stdout] --> src/connector/transaction.rs:267:64 [INFO] [stdout] | [INFO] [stdout] 267 | ...: &Value, ignore_select_and_include: bool, action: Action, transaction_ctx: transaction::Ctx, request: Option, path: KeyPath)... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ignore_select_and_include` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ignore_select_and_include` [INFO] [stdout] --> src/connector/transaction.rs:276:62 [INFO] [stdout] | [INFO] [stdout] 276 | ...: &Value, ignore_select_and_include: bool, action: Action, transaction_ctx: transaction::Ctx, request: Option, path: KeyPath)... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ignore_select_and_include` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> src/connector/transaction.rs:300:25 [INFO] [stdout] | [INFO] [stdout] 300 | async fn sql(&self, model: &Model, sql: &str, transaction_ctx: transaction::Ctx) -> Result> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transaction_ctx` [INFO] [stdout] --> src/connector/transaction.rs:300:51 [INFO] [stdout] | [INFO] [stdout] 300 | async fn sql(&self, model: &Model, sql: &str, transaction_ctx: transaction::Ctx) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/connector/connection.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tran` is never used [INFO] [stdout] --> src/connector/transaction.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 59 | impl SQLTransaction { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | fn tran(&self) -> Option<&Arc> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `show` is never used [INFO] [stdout] --> src/stmts/mod.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 25 | impl SQL { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub(crate) fn show() -> SQLShowStatement { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `index` and `unique_index` are never used [INFO] [stdout] --> src/stmts/create/mod.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl SQLCreateStatement { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub(crate) fn index(&self, index: impl Into) -> SQLCreateIndexStatement { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub(crate) fn unique_index(&self, index: impl Into) -> SQLCreateIndexStatement { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `columns` is never used [INFO] [stdout] --> src/stmts/create/table.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 15 | impl SQLCreateTableStatement { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn columns(&mut self, defs: Vec) -> &mut Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLCreateIndexOnStatement` is never constructed [INFO] [stdout] --> src/stmts/create/index.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) struct SQLCreateIndexOnStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `column` and `columns` are never used [INFO] [stdout] --> src/stmts/create/index.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl SQLCreateIndexOnStatement { [INFO] [stdout] | ------------------------------ methods in this implementation [INFO] [stdout] 14 | pub(crate) fn column(&mut self, column: Item) -> &mut Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub(crate) fn columns(&mut self, columns: Vec) -> &mut Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLCreateIndexStatement` is never constructed [INFO] [stdout] --> src/stmts/create/index.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | pub(crate) struct SQLCreateIndexStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `on` is never used [INFO] [stdout] --> src/stmts/create/index.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl SQLCreateIndexStatement { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] 41 | pub fn on(&self, table: impl Into) -> SQLCreateIndexOnStatement { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `table` and `index` are never used [INFO] [stdout] --> src/stmts/drop/mod.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl SQLDropStatement { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub(crate) fn table(&self, table: impl Into) -> SQLDropTableStatement { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub(crate) fn index(&self, index: impl Into) -> SQLDropIndexStatement { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLDropTableStatement` is never constructed [INFO] [stdout] --> src/stmts/drop/table.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct SQLDropTableStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `if_exists` is never used [INFO] [stdout] --> src/stmts/drop/table.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl SQLDropTableStatement { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 10 | pub fn if_exists(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLDropIndexOnStatement` is never constructed [INFO] [stdout] --> src/stmts/drop/index.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct SQLDropIndexOnStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLDropIndexStatement` is never constructed [INFO] [stdout] --> src/stmts/drop/index.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) struct SQLDropIndexStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `on` is never used [INFO] [stdout] --> src/stmts/drop/index.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl SQLDropIndexStatement { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 22 | pub fn on(&self, table: impl Into) -> SQLDropIndexOnStatement { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/stmts/insert_into/mod.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> SQLInsertIntoStatement<'a> { [INFO] [stdout] | ----------------------------------- method in this implementation [INFO] [stdout] 11 | pub(crate) fn value(&mut self, pair: (&'a str, &'a str)) -> &mut Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLShowStatement` is never constructed [INFO] [stdout] --> src/stmts/show/mod.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) struct SQLShowStatement { } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `tables` and `index_from` are never used [INFO] [stdout] --> src/stmts/show/mod.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 9 | impl SQLShowStatement { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 10 | pub(crate) fn tables(&self) -> SQLShowTablesStatement { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub(crate) fn index_from(&self, table: impl Into) -> SQLShowIndexFromStatement { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLShowTablesStatement` is never constructed [INFO] [stdout] --> src/stmts/show/tables.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct SQLShowTablesStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `like` is never used [INFO] [stdout] --> src/stmts/show/tables.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 8 | impl SQLShowTablesStatement { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 9 | pub(crate) fn like(&mut self, name: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLShowIndexFromStatement` is never constructed [INFO] [stdout] --> src/stmts/show/index_from.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct SQLShowIndexFromStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `null`, `auto_increment`, and `primary_key` are never used [INFO] [stdout] --> src/schema/column/mod.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 18 | impl SQLColumn { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub(crate) fn null(&self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub(crate) fn auto_increment(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub(crate) fn primary_key(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `psql_is_unique` is never used [INFO] [stdout] --> src/schema/column/decoder.rs:215:14 [INFO] [stdout] | [INFO] [stdout] 60 | impl ColumnDecoder { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 215 | async fn psql_is_unique(conn: &dyn Queryable, table_name: &str, column_name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mssql_type_to_database_type` is never used [INFO] [stdout] --> src/schema/type/decoder.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn mssql_type_to_database_type(r#type: &str) -> DatabaseType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `float64_type` and `int64_type` are never used [INFO] [stdout] --> src/schema/dialect.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 14 | impl SQLDialect { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub(crate) fn float64_type(&self) -> DatabaseType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub(crate) fn int64_type(&self) -> DatabaseType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TypeOrNull` is never used [INFO] [stdout] --> src/schema/value/encode.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait TypeOrNull { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/stmts/mod.rs:50:38 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn insert_into(table: &str) -> SQLInsertIntoStatement { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn insert_into(table: &str) -> SQLInsertIntoStatement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/stmts/mod.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn update(table: &str) -> SQLUpdateStatement { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn update(table: &str) -> SQLUpdateStatement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/stmts/mod.rs:58:37 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn delete_from(from: &str) -> SQLDeleteFromStatement { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn delete_from(from: &str) -> SQLDeleteFromStatement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&SQLColumn` instead of cloning the inner type [INFO] [stdout] --> src/migration/migrate.rs:219:51 [INFO] [stdout] | [INFO] [stdout] 219 | ... let mut c = column.clone().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&SQLColumn` instead of cloning the inner type [INFO] [stdout] --> src/migration/migrate.rs:228:95 [INFO] [stdout] | [INFO] [stdout] 228 | ... let alter = SQL::alter_table(table_name).modify(new_column.clone().clone()).to_string(dialect); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/schema/column/decoder.rs:30:67 [INFO] [stdout] | [INFO] [stdout] 30 | pub(crate) fn get_field(&'a self, model: &'a Model) -> Option<&Field> { [INFO] [stdout] | -- -- ^^^^^^ the same lifetime is elided here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 30 | pub(crate) fn get_field(&'a self, model: &'a Model) -> Option<&'a Field> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/execution/mod.rs:388:44 [INFO] [stdout] | [INFO] [stdout] 388 | fn without_paging_and_skip_take(value: &Value) -> Cow { [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 388 | fn without_paging_and_skip_take(value: &Value) -> Cow<'_, Value> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/execution/mod.rs:402:53 [INFO] [stdout] | [INFO] [stdout] 402 | fn without_paging_and_skip_take_distinct(value: &Value) -> Cow { [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 402 | fn without_paging_and_skip_take_distinct(value: &Value) -> Cow<'_, Value> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/exts/index.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | fn sql_name(&self, table_name: &str, dialect: SQLDialect) -> Cow; [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 11 | fn sql_name(&self, table_name: &str, dialect: SQLDialect) -> Cow<'_, str>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/exts/index.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | fn sql_name(&self, table_name: &str, dialect: SQLDialect) -> Cow { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 36 | fn sql_name(&self, table_name: &str, dialect: SQLDialect) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.26s [INFO] running `Command { std: "docker" "inspect" "dee9aa3bbdec789d319432331cdbe86ff93f95926d632210f35591a9c1471b46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dee9aa3bbdec789d319432331cdbe86ff93f95926d632210f35591a9c1471b46", kill_on_drop: false }` [INFO] [stdout] dee9aa3bbdec789d319432331cdbe86ff93f95926d632210f35591a9c1471b46