[INFO] fetching crate elif-orm 0.7.0... [INFO] checking elif-orm-0.7.0 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate elif-orm 0.7.0 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate elif-orm 0.7.0 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate elif-orm 0.7.0 [INFO] tweaked toml for crates.io crate elif-orm 0.7.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate elif-orm 0.7.0 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate elif-orm 0.7.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 42dae14cdda87a5da864fec8ecdcb7c340c35002026c1c21ebaf66314d851078 [INFO] running `Command { std: "docker" "start" "-a" "42dae14cdda87a5da864fec8ecdcb7c340c35002026c1c21ebaf66314d851078", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "42dae14cdda87a5da864fec8ecdcb7c340c35002026c1c21ebaf66314d851078", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42dae14cdda87a5da864fec8ecdcb7c340c35002026c1c21ebaf66314d851078", kill_on_drop: false }` [INFO] [stdout] 42dae14cdda87a5da864fec8ecdcb7c340c35002026c1c21ebaf66314d851078 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a62a87f686a04d3a4bb0afd6dcc7d662dba00ee94e350c263a7604a9ac5a0afd [INFO] running `Command { std: "docker" "start" "-a" "a62a87f686a04d3a4bb0afd6dcc7d662dba00ee94e350c263a7604a9ac5a0afd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling cc v1.2.33 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking tinyvec v1.9.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Checking unicode-ident v1.0.18 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Checking unicode-properties v0.1.3 [INFO] [stderr] Compiling bitflags v2.9.2 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Checking unicode-bidi v0.3.18 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling thiserror v2.0.15 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Checking stringprep v0.1.5 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking sha1_smol v1.0.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror-impl v2.0.15 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Checking ident_case v1.0.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking phf_shared v0.11.3 [INFO] [stderr] Checking postgres-protocol v0.6.8 [INFO] [stderr] Compiling service-builder-macro v0.3.0 [INFO] [stderr] Checking half v2.6.0 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking clap_builder v4.5.44 [INFO] [stderr] Checking service-builder v0.3.0 [INFO] [stderr] Checking postgres-types v0.2.9 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking clap v4.5.45 [INFO] [stderr] Checking elif-core v0.5.0 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking tokio-postgres v0.7.13 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking sqlparser v0.49.0 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking oorandom v11.1.5 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking elif-orm v0.7.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/query/builder.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/query/select.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::types::*` [INFO] [stdout] --> src/query/select.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/query/execution.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generation::*` [INFO] [stdout] --> src/sql/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use generation::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/relationships/metadata.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLock` [INFO] [stdout] --> src/relationships/registry.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::{Arc, RwLock}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ForeignKeyConfig` [INFO] [stdout] --> src/relationships/registry.rs:8:63 [INFO] [stdout] | [INFO] [stdout] 8 | use super::metadata::{RelationshipMetadata, RelationshipType, ForeignKeyConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/relationships/mod.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub use traits::*; [INFO] [stdout] | ^^^^^^^^^ the name `Relationship` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 45 | pub use types::*; [INFO] [stdout] | -------- but the name `Relationship` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `has_one::*` [INFO] [stdout] --> src/relationships/mod.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub use has_one::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `has_many::*` [INFO] [stdout] --> src/relationships/mod.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub use has_many::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `belongs_to::*` [INFO] [stdout] --> src/relationships/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub use belongs_to::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/relationships/mod.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub use loader::*; [INFO] [stdout] | ^^^^^^^^^ the name `RelationshipLoader` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 45 | pub use types::*; [INFO] [stdout] | -------- but the name `RelationshipLoader` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/relationships/mod.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub use metadata::*; [INFO] [stdout] | ^^^^^^^^^^^ the name `RelationshipConstraint` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 49 | pub use constraints::*; [INFO] [stdout] | -------------- but the name `RelationshipConstraint` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/loading/query_deduplicator.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OrmError` and `relationships::RelationshipType` [INFO] [stdout] --> src/loading/optimizer/analyzer.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | error::{OrmError, OrmResult}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | relationships::RelationshipType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `QueryNode` [INFO] [stdout] --> src/loading/optimizer/analyzer.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use super::plan::{QueryPlan, QueryNode, PlanStatistics}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/loading/optimizer/analyzer.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrmError` [INFO] [stdout] --> src/loading/eager_loader.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | error::{OrmError, OrmResult}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/migrations/manager.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/model/crud_operations.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arc` [INFO] [stdout] --> src/factory/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{Arc, RwLock}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/factory/fake_data.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | /// Thread-local random number generator [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::OnceLock` [INFO] [stdout] --> src/factory/fake_data.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::OnceLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/factory/relationships.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/factory/relationships.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/factory/seeder.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/factory/seeder.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | pub use query::*; [INFO] [stdout] | ^^^^^^^^ the name `types` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 72 | pub use relationships::*; [INFO] [stdout] | ---------------- but the name `types` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | pub use query::*; [INFO] [stdout] | ^^^^^^^^ the name `builder` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 72 | pub use relationships::*; [INFO] [stdout] | ---------------- but the name `builder` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | pub use database::*; [INFO] [stdout] | ^^^^^^^^^^^ the name `DatabasePool` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 74 | pub use backends::*; [INFO] [stdout] | ----------- but the name `DatabasePool` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `migration_runner::*` [INFO] [stdout] --> src/lib.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | pub use migration_runner::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | pub use relationships::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `traits` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 75 | pub use factory::*; [INFO] [stdout] | ---------- but the name `traits` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | pub use relationships::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `WithRelationships` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 75 | pub use factory::*; [INFO] [stdout] | ---------- but the name `WithRelationships` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | pub use relationships::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `RelationshipType` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 75 | pub use factory::*; [INFO] [stdout] | ---------- but the name `RelationshipType` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/query/builder.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/query/select.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::types::*` [INFO] [stdout] --> src/query/select.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/query/execution.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generation::*` [INFO] [stdout] --> src/sql/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use generation::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/relationships/metadata.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLock` [INFO] [stdout] --> src/relationships/registry.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::{Arc, RwLock}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ForeignKeyConfig` [INFO] [stdout] --> src/relationships/registry.rs:8:63 [INFO] [stdout] | [INFO] [stdout] 8 | use super::metadata::{RelationshipMetadata, RelationshipType, ForeignKeyConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModelError` [INFO] [stdout] --> src/relationships/type_safe_tests.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::error::{ModelError, ModelResult}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::hydration::*` [INFO] [stdout] --> src/relationships/type_safe_tests.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use super::hydration::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/relationships/mod.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub use traits::*; [INFO] [stdout] | ^^^^^^^^^ the name `Relationship` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 45 | pub use types::*; [INFO] [stdout] | -------- but the name `Relationship` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `has_one::*` [INFO] [stdout] --> src/relationships/mod.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub use has_one::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `has_many::*` [INFO] [stdout] --> src/relationships/mod.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub use has_many::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `belongs_to::*` [INFO] [stdout] --> src/relationships/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub use belongs_to::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/relationships/mod.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub use loader::*; [INFO] [stdout] | ^^^^^^^^^ the name `RelationshipLoader` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 45 | pub use types::*; [INFO] [stdout] | -------- but the name `RelationshipLoader` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/relationships/mod.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub use metadata::*; [INFO] [stdout] | ^^^^^^^^^^^ the name `RelationshipConstraint` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 49 | pub use constraints::*; [INFO] [stdout] | -------------- but the name `RelationshipConstraint` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/loading/query_deduplicator.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OrmError` and `relationships::RelationshipType` [INFO] [stdout] --> src/loading/optimizer/analyzer.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | error::{OrmError, OrmResult}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | relationships::RelationshipType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `QueryNode` [INFO] [stdout] --> src/loading/optimizer/analyzer.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use super::plan::{QueryPlan, QueryNode, PlanStatistics}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/loading/optimizer/analyzer.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrmError` [INFO] [stdout] --> src/loading/eager_loader.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | error::{OrmError, OrmResult}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/migrations/manager.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/model/crud_operations.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arc` [INFO] [stdout] --> src/factory/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{Arc, RwLock}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/factory/fake_data.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | /// Thread-local random number generator [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::OnceLock` [INFO] [stdout] --> src/factory/fake_data.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::OnceLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/factory/relationships.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/factory/relationships.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/factory/seeder.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/factory/seeder.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/factory/mod.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PrimaryKey` [INFO] [stdout] --> src/tests/mapping_tests.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{Model, ModelResult, ModelError, PrimaryKey, OrmResult}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/security_tests_minimal.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | pub use query::*; [INFO] [stdout] | ^^^^^^^^ the name `types` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 72 | pub use relationships::*; [INFO] [stdout] | ---------------- but the name `types` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | pub use query::*; [INFO] [stdout] | ^^^^^^^^ the name `builder` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 72 | pub use relationships::*; [INFO] [stdout] | ---------------- but the name `builder` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | pub use database::*; [INFO] [stdout] | ^^^^^^^^^^^ the name `DatabasePool` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 74 | pub use backends::*; [INFO] [stdout] | ----------- but the name `DatabasePool` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `migration_runner::*` [INFO] [stdout] --> src/lib.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | pub use migration_runner::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | pub use relationships::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `traits` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 75 | pub use factory::*; [INFO] [stdout] | ---------- but the name `traits` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | pub use relationships::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `WithRelationships` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 75 | pub use factory::*; [INFO] [stdout] | ---------- but the name `WithRelationships` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | pub use relationships::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `RelationshipType` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 75 | pub use factory::*; [INFO] [stdout] | ---------- but the name `RelationshipType` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/query/execution.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | mut self, [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root_table` [INFO] [stdout] --> src/loading/batch_loader/mod.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | root_table: &str, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_root_table` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `phase_index` [INFO] [stdout] --> src/loading/optimizer/executor.rs:119:14 [INFO] [stdout] | [INFO] [stdout] 119 | for (phase_index, phase) in plan.execution_phases.iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_phase_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handles` [INFO] [stdout] --> src/loading/optimizer/executor.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | let mut handles: Vec>)>> = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/loading/optimizer/executor.rs:356:9 [INFO] [stdout] | [INFO] [stdout] 356 | node: &QueryNode, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/loading/optimizer/executor.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut handles: Vec>)>> = Vec::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/loading/optimizer/executor.rs:290:9 [INFO] [stdout] | [INFO] [stdout] 290 | node: &QueryNode, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/query/execution.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | mut self, [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `migration_record` [INFO] [stdout] --> src/migrations/rollback.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let migration_record = applied_migrations.iter() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_migration_record` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root_table` [INFO] [stdout] --> src/loading/batch_loader/mod.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | root_table: &str, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_root_table` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_stats` [INFO] [stdout] --> src/database.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | let initial_stats = self.extended_stats(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_stats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `phase_index` [INFO] [stdout] --> src/loading/optimizer/executor.rs:119:14 [INFO] [stdout] | [INFO] [stdout] 119 | for (phase_index, phase) in plan.execution_phases.iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_phase_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handles` [INFO] [stdout] --> src/loading/optimizer/executor.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | let mut handles: Vec>)>> = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/loading/optimizer/executor.rs:356:9 [INFO] [stdout] | [INFO] [stdout] 356 | node: &QueryNode, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/loading/optimizer/executor.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut handles: Vec>)>> = Vec::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/loading/optimizer/executor.rs:290:9 [INFO] [stdout] | [INFO] [stdout] 290 | node: &QueryNode, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> src/factory/mod.rs:163:42 [INFO] [stdout] | [INFO] [stdout] 163 | pub async fn create(&self, pool: &sqlx::Pool) -> OrmResult [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `migration_record` [INFO] [stdout] --> src/migrations/rollback.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let migration_record = applied_migrations.iter() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_migration_record` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_stats` [INFO] [stdout] --> src/database.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | let initial_stats = self.extended_stats(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_stats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DatabaseBackend` [INFO] [stdout] --> src/database.rs:12:40 [INFO] [stdout] | [INFO] [stdout] 12 | DatabasePool as DatabasePoolTrait, DatabaseBackend, DatabaseBackendRegistry, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> src/factory/mod.rs:163:42 [INFO] [stdout] | [INFO] [stdout] 163 | pub async fn create(&self, pool: &sqlx::Pool) -> OrmResult [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `total_time` is never read [INFO] [stdout] --> src/loading/optimizer/analyzer.rs:153:17 [INFO] [stdout] | [INFO] [stdout] 153 | let mut total_time = 0u64; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/loading/eager_loader.rs:343:14 [INFO] [stdout] | [INFO] [stdout] 343 | for (i, root_id) in root_ids.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/model/core_trait.rs:80:26 [INFO] [stdout] | [INFO] [stdout] 80 | fn from_database_row(row: &dyn DatabaseRow) -> ModelResult [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/model/crud_operations.rs:219:28 [INFO] [stdout] | [INFO] [stdout] 219 | fn bind_json_value<'a>(mut query: sqlx::query::Query<'a, Postgres, sqlx::postgres::PgArguments>, value: &Value) -> ModelResult src/query/performance_optimized.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | static QUERY_TEMPLATE_CACHE: Lazy>> = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `metadata` is never read [INFO] [stdout] --> src/relationships/hydration.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct RelationshipHydrator [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 84 | metadata: RelationshipMetadata, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RelationshipHydrator` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `loader` is never read [INFO] [stdout] --> src/relationships/hydration.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 239 | pub struct HasOneHydrator [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 244 | loader: TypeSafeRelationshipLoader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `loader` is never read [INFO] [stdout] --> src/relationships/hydration.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 298 | pub struct HasManyHydrator [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 303 | loader: TypeSafeRelationshipLoader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `loader` is never read [INFO] [stdout] --> src/relationships/hydration.rs:362:9 [INFO] [stdout] | [INFO] [stdout] 357 | pub struct BelongsToHydrator [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 362 | loader: TypeSafeRelationshipLoader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `batch_loader` is never read [INFO] [stdout] --> src/loading/optimizer/executor.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct PlanExecutor { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 76 | /// Batch loader for executing queries [INFO] [stdout] 77 | batch_loader: BatchLoader, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `detailed_analysis` is never read [INFO] [stdout] --> src/loading/optimizer/analyzer.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct QueryOptimizer { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | detailed_analysis: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `query_deduplicator` is never read [INFO] [stdout] --> src/loading/eager_loader.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct OptimizedEagerLoader { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | query_deduplicator: QueryDeduplicator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/factory/states.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 262 | pub struct CustomState { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 263 | modifications: HashMap, [INFO] [stdout] 264 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CustomState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `count` is never read [INFO] [stdout] --> src/factory/relationships.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct HasManyFactory { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 52 | count: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HasManyFactory` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/relationships/has_many.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn iter(&self) -> std::slice::Iter { [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] 81 | pub fn iter(&self) -> std::slice::Iter<'_, Related> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/relationships/has_many.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn iter_mut(&mut self) -> std::slice::IterMut { [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] 86 | pub fn iter_mut(&mut self) -> std::slice::IterMut<'_, Related> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/migrations/rollback.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | async fn rollback_last_batch(&self) -> OrmResult; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 15 - async fn rollback_last_batch(&self) -> OrmResult; [INFO] [stdout] 15 + fn rollback_last_batch(&self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/migrations/rollback.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | async fn rollback_batch(&self, batch: i32) -> OrmResult; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 18 - async fn rollback_batch(&self, batch: i32) -> OrmResult; [INFO] [stdout] 18 + fn rollback_batch(&self, batch: i32) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/migrations/rollback.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | async fn rollback_migration(&self, migration_id: &str) -> OrmResult<()>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 21 - async fn rollback_migration(&self, migration_id: &str) -> OrmResult<()>; [INFO] [stdout] 21 + fn rollback_migration(&self, migration_id: &str) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/migrations/rollback.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | async fn rollback_all(&self) -> OrmResult; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 24 - async fn rollback_all(&self) -> OrmResult; [INFO] [stdout] 24 + fn rollback_all(&self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/migrations/rollback.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | async fn get_migrations_in_batch(&self, batch: i32) -> OrmResult>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 27 - async fn get_migrations_in_batch(&self, batch: i32) -> OrmResult>; [INFO] [stdout] 27 + fn get_migrations_in_batch(&self, batch: i32) -> impl std::future::Future>> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/crud_operations.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | async fn find(pool: &Pool, id: Self::PrimaryKey) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 18 ~ fn find(pool: &Pool, id: Self::PrimaryKey) -> impl std::future::Future>> + Send [INFO] [stdout] 19 | where [INFO] [stdout] 20 | Self: Sized, [INFO] [stdout] 21 ~ {async { [INFO] [stdout] 22 | let sql = format!( [INFO] [stdout] ... [INFO] [stdout] 40 | } [INFO] [stdout] 41 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/crud_operations.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | async fn find_or_fail(pool: &Pool, id: Self::PrimaryKey) -> ModelResult [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 44 ~ fn find_or_fail(pool: &Pool, id: Self::PrimaryKey) -> impl std::future::Future> + Send [INFO] [stdout] 45 | where [INFO] [stdout] 46 | Self: Sized, [INFO] [stdout] 47 ~ {async { [INFO] [stdout] 48 | Self::find(pool, id.clone()) [INFO] [stdout] 49 | .await? [INFO] [stdout] 50 | .ok_or_else(|| ModelError::NotFound(format!("{}({})", Self::table_name(), id))) [INFO] [stdout] 51 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/crud_operations.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | async fn create(pool: &Pool, mut model: Self) -> ModelResult [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 54 ~ fn create(pool: &Pool, mut model: Self) -> impl std::future::Future> + Send [INFO] [stdout] 55 | where [INFO] [stdout] 56 | Self: Sized, [INFO] [stdout] 57 ~ {async { [INFO] [stdout] 58 | // Set timestamps if enabled [INFO] [stdout] ... [INFO] [stdout] 104| Self::from_row(&row) [INFO] [stdout] 105~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/crud_operations.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | async fn update(&mut self, pool: &Pool) -> ModelResult<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 108 ~ fn update(&mut self, pool: &Pool) -> impl std::future::Future> + Send {async { [INFO] [stdout] 109 | if let Some(pk) = self.primary_key() { [INFO] [stdout] ... [INFO] [stdout] 178 | } [INFO] [stdout] 179 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/crud_operations.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 182 | async fn delete(self, pool: &Pool) -> ModelResult<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 182 ~ fn delete(self, pool: &Pool) -> impl std::future::Future> + Send {async { [INFO] [stdout] 183 | if let Some(pk) = self.primary_key() { [INFO] [stdout] ... [INFO] [stdout] 215 | } [INFO] [stdout] 216 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/query_methods.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | async fn all(pool: &Pool) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 32 ~ fn all(pool: &Pool) -> impl std::future::Future>> + Send [INFO] [stdout] 33 | where [INFO] [stdout] 34 | Self: Sized, [INFO] [stdout] 35 ~ {async { [INFO] [stdout] 36 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 52 | Ok(models) [INFO] [stdout] 53 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/query_methods.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | async fn count(pool: &Pool) -> ModelResult [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 56 ~ fn count(pool: &Pool) -> impl std::future::Future> + Send [INFO] [stdout] 57 | where [INFO] [stdout] 58 | Self: Sized, [INFO] [stdout] 59 ~ {async { [INFO] [stdout] 60 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 73 | Ok(count) [INFO] [stdout] 74 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/query_methods.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | async fn where_field(pool: &Pool, field: &str, value: V) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 77 ~ fn where_field(pool: &Pool, field: &str, value: V) -> impl std::future::Future>> + Send [INFO] [stdout] 78 | where [INFO] [stdout] ... [INFO] [stdout] 81 | for<'q> V: sqlx::Encode<'q, Postgres> + sqlx::Type, [INFO] [stdout] 82 ~ {async { [INFO] [stdout] 83 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 100| Ok(models) [INFO] [stdout] 101~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/query_methods.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | async fn first_where(pool: &Pool, field: &str, value: V) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 104 ~ fn first_where(pool: &Pool, field: &str, value: V) -> impl std::future::Future>> + Send [INFO] [stdout] 105 | where [INFO] [stdout] ... [INFO] [stdout] 108 | for<'q> V: sqlx::Encode<'q, Postgres> + sqlx::Type, [INFO] [stdout] 109 ~ {async { [INFO] [stdout] 110 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 128 | } [INFO] [stdout] 129 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/query_methods.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | async fn first(pool: &Pool) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 132 ~ fn first(pool: &Pool) -> impl std::future::Future>> + Send [INFO] [stdout] 133 | where [INFO] [stdout] 134 | Self: Sized, [INFO] [stdout] 135 ~ {async { [INFO] [stdout] 136 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 153 | } [INFO] [stdout] 154 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/query_methods.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | async fn last(pool: &Pool) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 157 ~ fn last(pool: &Pool) -> impl std::future::Future>> + Send [INFO] [stdout] 158 | where [INFO] [stdout] 159 | Self: Sized, [INFO] [stdout] 160 ~ {async { [INFO] [stdout] 161 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 180 | } [INFO] [stdout] 181 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/extensions.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | async fn refresh(&mut self, pool: &Pool) -> ModelResult<()> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 16 ~ fn refresh(&mut self, pool: &Pool) -> impl std::future::Future> + Send [INFO] [stdout] 17 | where [INFO] [stdout] 18 | Self: Sized, [INFO] [stdout] 19 ~ {async { [INFO] [stdout] 20 | if let Some(pk) = self.primary_key() { [INFO] [stdout] ... [INFO] [stdout] 29 | } [INFO] [stdout] 30 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/extensions.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | async fn exists(&self, pool: &Pool) -> ModelResult [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 33 ~ fn exists(&self, pool: &Pool) -> impl std::future::Future> + Send [INFO] [stdout] 34 | where [INFO] [stdout] 35 | Self: Sized, [INFO] [stdout] 36 ~ {async { [INFO] [stdout] 37 | if let Some(pk) = self.primary_key() { [INFO] [stdout] ... [INFO] [stdout] 42 | } [INFO] [stdout] 43 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/extensions.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | async fn save(&mut self, pool: &Pool) -> ModelResult<()> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 45 ~ fn save(&mut self, pool: &Pool) -> impl std::future::Future> + Send [INFO] [stdout] 46 | where [INFO] [stdout] 47 | Self: Sized + Clone, [INFO] [stdout] 48 ~ {async { [INFO] [stdout] 49 | if self.primary_key().is_some() && self.exists(pool).await? { [INFO] [stdout] ... [INFO] [stdout] 58 | } [INFO] [stdout] 59 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/abstraction.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | async fn find_abstracted(pool: &Arc, id: Self::PrimaryKey) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 17 ~ fn find_abstracted(pool: &Arc, id: Self::PrimaryKey) -> impl std::future::Future>> + Send [INFO] [stdout] 18 | where [INFO] [stdout] 19 | Self: Sized, [INFO] [stdout] 20 ~ {async { [INFO] [stdout] 21 | let sql = format!( [INFO] [stdout] ... [INFO] [stdout] 38 | } [INFO] [stdout] 39 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/abstraction.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | async fn all_abstracted(pool: &Arc) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 42 ~ fn all_abstracted(pool: &Arc) -> impl std::future::Future>> + Send [INFO] [stdout] 43 | where [INFO] [stdout] 44 | Self: Sized, [INFO] [stdout] 45 ~ {async { [INFO] [stdout] 46 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 63 | Ok(models) [INFO] [stdout] 64 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/abstraction.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | async fn count_abstracted(pool: &Arc) -> ModelResult [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 67 ~ fn count_abstracted(pool: &Arc) -> impl std::future::Future> + Send [INFO] [stdout] 68 | where [INFO] [stdout] 69 | Self: Sized, [INFO] [stdout] 70 ~ {async { [INFO] [stdout] 71 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 94 | } [INFO] [stdout] 95 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/abstraction.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | async fn create_abstracted(pool: &Arc, model: Self) -> ModelResult [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 98 ~ fn create_abstracted(pool: &Arc, model: Self) -> impl std::future::Future> + Send [INFO] [stdout] 99 | where [INFO] [stdout] 100| Self: Sized, [INFO] [stdout] 101~ {async { [INFO] [stdout] 102| let fields = model.to_fields(); [INFO] [stdout] ... [INFO] [stdout] 140| } [INFO] [stdout] 141~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/abstraction.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | async fn update_abstracted(&self, pool: &Arc) -> ModelResult<()> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 144 ~ fn update_abstracted(&self, pool: &Arc) -> impl std::future::Future> + Send [INFO] [stdout] 145 | where [INFO] [stdout] 146 | Self: Sized, [INFO] [stdout] 147 ~ {async { [INFO] [stdout] 148 | if let Some(pk) = self.primary_key() { [INFO] [stdout] ... [INFO] [stdout] 184 | } [INFO] [stdout] 185 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/abstraction.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | async fn delete_abstracted(self, pool: &Arc) -> ModelResult<()> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 188 ~ fn delete_abstracted(self, pool: &Arc) -> impl std::future::Future> + Send [INFO] [stdout] 189 | where [INFO] [stdout] 190 | Self: Sized, [INFO] [stdout] 191 ~ {async { [INFO] [stdout] 192 | if let Some(pk) = self.primary_key() { [INFO] [stdout] ... [INFO] [stdout] 210 | } [INFO] [stdout] 211 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ModelError` and `QueryBuilder` [INFO] [stdout] --> examples/advanced_queries.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use elif_orm::{QueryBuilder, Model, ModelError, ModelResult}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Pool` and `Postgres` [INFO] [stdout] --> examples/advanced_queries.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use sqlx::{Pool, Postgres, Row}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DatabaseBackend` [INFO] [stdout] --> src/database.rs:12:40 [INFO] [stdout] | [INFO] [stdout] 12 | DatabasePool as DatabasePoolTrait, DatabaseBackend, DatabaseBackendRegistry, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `elif_orm::relationships::eager_loader`, `elif_orm::relationships::lazy_loading`, `elif_orm::relationships::cache::RelationshipCache` [INFO] [stdout] --> benches/relationship_loading.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | eager_loader::EagerLoader, [INFO] [stdout] | ^^^^^^^^^^^^ could not find `eager_loader` in `relationships` [INFO] [stdout] 10 | lazy_loading::LazyRelationshipLoader, [INFO] [stdout] | ^^^^^^^^^^^^ could not find `lazy_loading` in `relationships` [INFO] [stdout] 11 | cache::RelationshipCache, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no `RelationshipCache` in `relationships::cache` [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] elif_orm::RelationshipCache [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `elif_orm::PrimaryKeyType`, `elif_orm::model::ModelCrud`, `elif_orm::model::ModelQuery` [INFO] [stdout] --> benches/query_performance.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | Model, PrimaryKey, PrimaryKeyType, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `PrimaryKeyType` in the root [INFO] [stdout] | help: a similar name exists in the module: `PrimaryKey` [INFO] [stdout] ... [INFO] [stdout] 10 | model::{ModelCrud, ModelQuery}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ no `ModelQuery` in `model` [INFO] [stdout] | | [INFO] [stdout] | no `ModelCrud` in `model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `DatabaseRow` in module `elif_orm::model` [INFO] [stdout] --> benches/query_performance.rs:44:44 [INFO] [stdout] | [INFO] [stdout] 44 | fn from_row(row: &dyn elif_orm::model::DatabaseRow) -> ModelResult { [INFO] [stdout] | ^^^^^^^^^^^ not found in `elif_orm::model` [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 5 + use elif_orm::DatabaseRow; [INFO] [stdout] | [INFO] [stdout] help: if you import `DatabaseRow`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 44 - fn from_row(row: &dyn elif_orm::model::DatabaseRow) -> ModelResult { [INFO] [stdout] 44 + fn from_row(row: &dyn DatabaseRow) -> ModelResult { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0404]: expected trait, found enum `PrimaryKey` [INFO] [stdout] --> benches/query_performance.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | impl PrimaryKey for BenchUser { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not a trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::runtime::Runtime` [INFO] [stdout] --> benches/query_performance.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use tokio::runtime::Runtime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `to_fields` has an incompatible type for trait [INFO] [stdout] --> benches/query_performance.rs:34:28 [INFO] [stdout] | [INFO] [stdout] 34 | fn to_fields(&self) -> ModelResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `HashMap`, found `Result, ...>` [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&BenchUser) -> HashMap<_, _>` [INFO] [stdout] found signature `fn(&BenchUser) -> Result, ModelError>` [INFO] [stdout] help: change the output type to match the trait [INFO] [stdout] | [INFO] [stdout] 34 - fn to_fields(&self) -> ModelResult> { [INFO] [stdout] 34 + fn to_fields(&self) -> HashMap { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0404, E0405, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stderr] error: could not compile `elif-orm` (bench "query_performance") due to 4 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no function or associated item named `builder` found for struct `RelationshipMetadata` in the current scope [INFO] [stdout] --> benches/relationship_loading.rs:47:27 [INFO] [stdout] | [INFO] [stdout] 47 | RelationshipMetadata::builder() [INFO] [stdout] | ^^^^^^^ function or associated item not found in `RelationshipMetadata` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `RelationshipMetadata` consider using one of the following associated functions: [INFO] [stdout] RelationshipMetadata::new [INFO] [stdout] RelationshipMetadata::new_with_pivot [INFO] [stdout] --> /opt/rustwide/workdir/src/relationships/metadata.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / pub fn new( [INFO] [stdout] 87 | | relationship_type: RelationshipType, [INFO] [stdout] 88 | | name: String, [INFO] [stdout] 89 | | related_table: String, [INFO] [stdout] 90 | | related_model: String, [INFO] [stdout] 91 | | foreign_key: ForeignKeyConfig, [INFO] [stdout] 92 | | ) -> Self { [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 110 | / pub fn new_with_pivot( [INFO] [stdout] 111 | | relationship_type: RelationshipType, [INFO] [stdout] 112 | | name: String, [INFO] [stdout] 113 | | related_table: String, [INFO] [stdout] ... | [INFO] [stdout] 116 | | pivot_config: PivotConfig, [INFO] [stdout] 117 | | ) -> Self { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of function [INFO] [stdout] --> benches/connection_pool.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 20 | async fn bench_concurrent_acquisition(pool: &DatabasePool, concurrent_tasks: usize, ops_per_task: usize) { [INFO] [stdout] | ---- - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `pool` is a reference that is only valid in the function body [INFO] [stdout] ... [INFO] [stdout] 23 | / tokio::spawn(async move { [INFO] [stdout] 24 | | for _ in 0..ops_per_task { [INFO] [stdout] 25 | | if let Ok(conn) = pool.acquire().await { [INFO] [stdout] 26 | | let _ = black_box(conn); [INFO] [stdout] ... | [INFO] [stdout] 31 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__________`pool` escapes the function body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `builder` found for struct `EagerLoadConfig` in the current scope [INFO] [stdout] --> benches/relationship_loading.rs:71:62 [INFO] [stdout] | [INFO] [stdout] 71 | let config = elif_orm::loading::EagerLoadConfig::builder() [INFO] [stdout] | ^^^^^^^ function or associated item not found in `EagerLoadConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> benches/relationship_loading.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 77 | let loader = OptimizedEagerLoader::new(config); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ------ unexpected argument [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/loading/eager_loader.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 77 - let loader = OptimizedEagerLoader::new(config); [INFO] [stdout] 77 + let loader = OptimizedEagerLoader::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `builder` found for struct `BatchConfig` in the current scope [INFO] [stdout] --> benches/relationship_loading.rs:94:47 [INFO] [stdout] | [INFO] [stdout] 94 | let config = BatchConfig::builder() [INFO] [stdout] | ^^^^^^^ function or associated item not found in `BatchConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> benches/relationship_loading.rs:100:34 [INFO] [stdout] | [INFO] [stdout] 100 | let loader = BatchLoader::new(config); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ------ unexpected argument [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/loading/batch_loader/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 100 - let loader = BatchLoader::new(config); [INFO] [stdout] 100 + let loader = BatchLoader::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `elif-orm` (bench "relationship_loading") due to 6 previous errors [INFO] [stdout] error[E0599]: no function or associated item named `builder` found for struct `DatabasePoolConfig` in the current scope [INFO] [stdout] --> benches/connection_pool.rs:51:50 [INFO] [stdout] | [INFO] [stdout] 51 | let config = PoolConfig::builder() [INFO] [stdout] | ^^^^^^^ function or associated item not found in `DatabasePoolConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `builder` found for struct `DatabasePoolConfig` in the current scope [INFO] [stdout] --> benches/connection_pool.rs:74:38 [INFO] [stdout] | [INFO] [stdout] 74 | let config = PoolConfig::builder() [INFO] [stdout] | ^^^^^^^ function or associated item not found in `DatabasePoolConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `builder` found for struct `DatabasePoolConfig` in the current scope [INFO] [stdout] --> benches/connection_pool.rs:84:38 [INFO] [stdout] | [INFO] [stdout] 84 | let config = PoolConfig::builder() [INFO] [stdout] | ^^^^^^^ function or associated item not found in `DatabasePoolConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0521, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0521`. [INFO] [stdout] [INFO] [stderr] error: could not compile `elif-orm` (bench "connection_pool") due to 4 previous errors [INFO] [stdout] warning: value assigned to `total_time` is never read [INFO] [stdout] --> src/loading/optimizer/analyzer.rs:153:17 [INFO] [stdout] | [INFO] [stdout] 153 | let mut total_time = 0u64; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/loading/eager_loader.rs:343:14 [INFO] [stdout] | [INFO] [stdout] 343 | for (i, root_id) in root_ids.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/model/core_trait.rs:80:26 [INFO] [stdout] | [INFO] [stdout] 80 | fn from_database_row(row: &dyn DatabaseRow) -> ModelResult [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/model/crud_operations.rs:219:28 [INFO] [stdout] | [INFO] [stdout] 219 | fn bind_json_value<'a>(mut query: sqlx::query::Query<'a, Postgres, sqlx::postgres::PgArguments>, value: &Value) -> ModelResult src/query/performance_optimized.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | static QUERY_TEMPLATE_CACHE: Lazy>> = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `metadata` is never read [INFO] [stdout] --> src/relationships/hydration.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct RelationshipHydrator [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 84 | metadata: RelationshipMetadata, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RelationshipHydrator` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `loader` is never read [INFO] [stdout] --> src/relationships/hydration.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 239 | pub struct HasOneHydrator [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 244 | loader: TypeSafeRelationshipLoader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `loader` is never read [INFO] [stdout] --> src/relationships/hydration.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 298 | pub struct HasManyHydrator [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 303 | loader: TypeSafeRelationshipLoader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `loader` is never read [INFO] [stdout] --> src/relationships/hydration.rs:362:9 [INFO] [stdout] | [INFO] [stdout] 357 | pub struct BelongsToHydrator [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 362 | loader: TypeSafeRelationshipLoader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TestPost` is never constructed [INFO] [stdout] --> src/relationships/inference.rs:500:12 [INFO] [stdout] | [INFO] [stdout] 500 | struct TestPost { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_call_count` is never used [INFO] [stdout] --> src/relationships/lazy_loading_tests.rs:52:18 [INFO] [stdout] | [INFO] [stdout] 41 | / impl MockLoader [INFO] [stdout] 42 | | where [INFO] [stdout] 43 | | T: Clone, [INFO] [stdout] | |_________________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | async fn get_call_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MockPgRow` is never constructed [INFO] [stdout] --> src/loading/batch_loader/tests.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct MockPgRow { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MockColumn` is never constructed [INFO] [stdout] --> src/loading/batch_loader/tests.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | struct MockColumn { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_column` are never used [INFO] [stdout] --> src/loading/batch_loader/tests.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl MockPgRow { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 42 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn add_column(&mut self, name: &str, value: serde_json::Value) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `batch_loader` is never read [INFO] [stdout] --> src/loading/optimizer/executor.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct PlanExecutor { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 76 | /// Batch loader for executing queries [INFO] [stdout] 77 | batch_loader: BatchLoader, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `detailed_analysis` is never read [INFO] [stdout] --> src/loading/optimizer/analyzer.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct QueryOptimizer { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | detailed_analysis: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `query_deduplicator` is never read [INFO] [stdout] --> src/loading/eager_loader.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct OptimizedEagerLoader { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | query_deduplicator: QueryDeduplicator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/factory/states.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 262 | pub struct CustomState { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 263 | modifications: HashMap, [INFO] [stdout] 264 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CustomState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `count` is never read [INFO] [stdout] --> src/factory/relationships.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct HasManyFactory { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 52 | count: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HasManyFactory` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/relationships/has_many.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn iter(&self) -> std::slice::Iter { [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] 81 | pub fn iter(&self) -> std::slice::Iter<'_, Related> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/relationships/has_many.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn iter_mut(&mut self) -> std::slice::IterMut { [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] 86 | pub fn iter_mut(&mut self) -> std::slice::IterMut<'_, Related> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/migrations/rollback.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | async fn rollback_last_batch(&self) -> OrmResult; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 15 - async fn rollback_last_batch(&self) -> OrmResult; [INFO] [stdout] 15 + fn rollback_last_batch(&self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/migrations/rollback.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | async fn rollback_batch(&self, batch: i32) -> OrmResult; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 18 - async fn rollback_batch(&self, batch: i32) -> OrmResult; [INFO] [stdout] 18 + fn rollback_batch(&self, batch: i32) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/migrations/rollback.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | async fn rollback_migration(&self, migration_id: &str) -> OrmResult<()>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 21 - async fn rollback_migration(&self, migration_id: &str) -> OrmResult<()>; [INFO] [stdout] 21 + fn rollback_migration(&self, migration_id: &str) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/migrations/rollback.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | async fn rollback_all(&self) -> OrmResult; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 24 - async fn rollback_all(&self) -> OrmResult; [INFO] [stdout] 24 + fn rollback_all(&self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/migrations/rollback.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | async fn get_migrations_in_batch(&self, batch: i32) -> OrmResult>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 27 - async fn get_migrations_in_batch(&self, batch: i32) -> OrmResult>; [INFO] [stdout] 27 + fn get_migrations_in_batch(&self, batch: i32) -> impl std::future::Future>> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/crud_operations.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | async fn find(pool: &Pool, id: Self::PrimaryKey) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 18 ~ fn find(pool: &Pool, id: Self::PrimaryKey) -> impl std::future::Future>> + Send [INFO] [stdout] 19 | where [INFO] [stdout] 20 | Self: Sized, [INFO] [stdout] 21 ~ {async { [INFO] [stdout] 22 | let sql = format!( [INFO] [stdout] ... [INFO] [stdout] 40 | } [INFO] [stdout] 41 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/crud_operations.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | async fn find_or_fail(pool: &Pool, id: Self::PrimaryKey) -> ModelResult [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 44 ~ fn find_or_fail(pool: &Pool, id: Self::PrimaryKey) -> impl std::future::Future> + Send [INFO] [stdout] 45 | where [INFO] [stdout] 46 | Self: Sized, [INFO] [stdout] 47 ~ {async { [INFO] [stdout] 48 | Self::find(pool, id.clone()) [INFO] [stdout] 49 | .await? [INFO] [stdout] 50 | .ok_or_else(|| ModelError::NotFound(format!("{}({})", Self::table_name(), id))) [INFO] [stdout] 51 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/crud_operations.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | async fn create(pool: &Pool, mut model: Self) -> ModelResult [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 54 ~ fn create(pool: &Pool, mut model: Self) -> impl std::future::Future> + Send [INFO] [stdout] 55 | where [INFO] [stdout] 56 | Self: Sized, [INFO] [stdout] 57 ~ {async { [INFO] [stdout] 58 | // Set timestamps if enabled [INFO] [stdout] ... [INFO] [stdout] 104| Self::from_row(&row) [INFO] [stdout] 105~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/crud_operations.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | async fn update(&mut self, pool: &Pool) -> ModelResult<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 108 ~ fn update(&mut self, pool: &Pool) -> impl std::future::Future> + Send {async { [INFO] [stdout] 109 | if let Some(pk) = self.primary_key() { [INFO] [stdout] ... [INFO] [stdout] 178 | } [INFO] [stdout] 179 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/crud_operations.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 182 | async fn delete(self, pool: &Pool) -> ModelResult<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 182 ~ fn delete(self, pool: &Pool) -> impl std::future::Future> + Send {async { [INFO] [stdout] 183 | if let Some(pk) = self.primary_key() { [INFO] [stdout] ... [INFO] [stdout] 215 | } [INFO] [stdout] 216 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/query_methods.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | async fn all(pool: &Pool) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 32 ~ fn all(pool: &Pool) -> impl std::future::Future>> + Send [INFO] [stdout] 33 | where [INFO] [stdout] 34 | Self: Sized, [INFO] [stdout] 35 ~ {async { [INFO] [stdout] 36 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 52 | Ok(models) [INFO] [stdout] 53 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/query_methods.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | async fn count(pool: &Pool) -> ModelResult [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 56 ~ fn count(pool: &Pool) -> impl std::future::Future> + Send [INFO] [stdout] 57 | where [INFO] [stdout] 58 | Self: Sized, [INFO] [stdout] 59 ~ {async { [INFO] [stdout] 60 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 73 | Ok(count) [INFO] [stdout] 74 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/query_methods.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | async fn where_field(pool: &Pool, field: &str, value: V) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 77 ~ fn where_field(pool: &Pool, field: &str, value: V) -> impl std::future::Future>> + Send [INFO] [stdout] 78 | where [INFO] [stdout] ... [INFO] [stdout] 81 | for<'q> V: sqlx::Encode<'q, Postgres> + sqlx::Type, [INFO] [stdout] 82 ~ {async { [INFO] [stdout] 83 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 100| Ok(models) [INFO] [stdout] 101~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/query_methods.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | async fn first_where(pool: &Pool, field: &str, value: V) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 104 ~ fn first_where(pool: &Pool, field: &str, value: V) -> impl std::future::Future>> + Send [INFO] [stdout] 105 | where [INFO] [stdout] ... [INFO] [stdout] 108 | for<'q> V: sqlx::Encode<'q, Postgres> + sqlx::Type, [INFO] [stdout] 109 ~ {async { [INFO] [stdout] 110 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 128 | } [INFO] [stdout] 129 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/query_methods.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | async fn first(pool: &Pool) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 132 ~ fn first(pool: &Pool) -> impl std::future::Future>> + Send [INFO] [stdout] 133 | where [INFO] [stdout] 134 | Self: Sized, [INFO] [stdout] 135 ~ {async { [INFO] [stdout] 136 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 153 | } [INFO] [stdout] 154 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/query_methods.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | async fn last(pool: &Pool) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 157 ~ fn last(pool: &Pool) -> impl std::future::Future>> + Send [INFO] [stdout] 158 | where [INFO] [stdout] 159 | Self: Sized, [INFO] [stdout] 160 ~ {async { [INFO] [stdout] 161 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 180 | } [INFO] [stdout] 181 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/extensions.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | async fn refresh(&mut self, pool: &Pool) -> ModelResult<()> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 16 ~ fn refresh(&mut self, pool: &Pool) -> impl std::future::Future> + Send [INFO] [stdout] 17 | where [INFO] [stdout] 18 | Self: Sized, [INFO] [stdout] 19 ~ {async { [INFO] [stdout] 20 | if let Some(pk) = self.primary_key() { [INFO] [stdout] ... [INFO] [stdout] 29 | } [INFO] [stdout] 30 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/extensions.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | async fn exists(&self, pool: &Pool) -> ModelResult [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 33 ~ fn exists(&self, pool: &Pool) -> impl std::future::Future> + Send [INFO] [stdout] 34 | where [INFO] [stdout] 35 | Self: Sized, [INFO] [stdout] 36 ~ {async { [INFO] [stdout] 37 | if let Some(pk) = self.primary_key() { [INFO] [stdout] ... [INFO] [stdout] 42 | } [INFO] [stdout] 43 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/extensions.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | async fn save(&mut self, pool: &Pool) -> ModelResult<()> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 45 ~ fn save(&mut self, pool: &Pool) -> impl std::future::Future> + Send [INFO] [stdout] 46 | where [INFO] [stdout] 47 | Self: Sized + Clone, [INFO] [stdout] 48 ~ {async { [INFO] [stdout] 49 | if self.primary_key().is_some() && self.exists(pool).await? { [INFO] [stdout] ... [INFO] [stdout] 58 | } [INFO] [stdout] 59 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/abstraction.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | async fn find_abstracted(pool: &Arc, id: Self::PrimaryKey) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 17 ~ fn find_abstracted(pool: &Arc, id: Self::PrimaryKey) -> impl std::future::Future>> + Send [INFO] [stdout] 18 | where [INFO] [stdout] 19 | Self: Sized, [INFO] [stdout] 20 ~ {async { [INFO] [stdout] 21 | let sql = format!( [INFO] [stdout] ... [INFO] [stdout] 38 | } [INFO] [stdout] 39 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/abstraction.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | async fn all_abstracted(pool: &Arc) -> ModelResult> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 42 ~ fn all_abstracted(pool: &Arc) -> impl std::future::Future>> + Send [INFO] [stdout] 43 | where [INFO] [stdout] 44 | Self: Sized, [INFO] [stdout] 45 ~ {async { [INFO] [stdout] 46 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 63 | Ok(models) [INFO] [stdout] 64 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/abstraction.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | async fn count_abstracted(pool: &Arc) -> ModelResult [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 67 ~ fn count_abstracted(pool: &Arc) -> impl std::future::Future> + Send [INFO] [stdout] 68 | where [INFO] [stdout] 69 | Self: Sized, [INFO] [stdout] 70 ~ {async { [INFO] [stdout] 71 | let sql = if Self::uses_soft_deletes() { [INFO] [stdout] ... [INFO] [stdout] 94 | } [INFO] [stdout] 95 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/abstraction.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | async fn create_abstracted(pool: &Arc, model: Self) -> ModelResult [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 98 ~ fn create_abstracted(pool: &Arc, model: Self) -> impl std::future::Future> + Send [INFO] [stdout] 99 | where [INFO] [stdout] 100| Self: Sized, [INFO] [stdout] 101~ {async { [INFO] [stdout] 102| let fields = model.to_fields(); [INFO] [stdout] ... [INFO] [stdout] 140| } [INFO] [stdout] 141~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/abstraction.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | async fn update_abstracted(&self, pool: &Arc) -> ModelResult<()> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 144 ~ fn update_abstracted(&self, pool: &Arc) -> impl std::future::Future> + Send [INFO] [stdout] 145 | where [INFO] [stdout] 146 | Self: Sized, [INFO] [stdout] 147 ~ {async { [INFO] [stdout] 148 | if let Some(pk) = self.primary_key() { [INFO] [stdout] ... [INFO] [stdout] 184 | } [INFO] [stdout] 185 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/model/abstraction.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | async fn delete_abstracted(self, pool: &Arc) -> ModelResult<()> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 188 ~ fn delete_abstracted(self, pool: &Arc) -> impl std::future::Future> + Send [INFO] [stdout] 189 | where [INFO] [stdout] 190 | Self: Sized, [INFO] [stdout] 191 ~ {async { [INFO] [stdout] 192 | if let Some(pk) = self.primary_key() { [INFO] [stdout] ... [INFO] [stdout] 210 | } [INFO] [stdout] 211 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a62a87f686a04d3a4bb0afd6dcc7d662dba00ee94e350c263a7604a9ac5a0afd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a62a87f686a04d3a4bb0afd6dcc7d662dba00ee94e350c263a7604a9ac5a0afd", kill_on_drop: false }` [INFO] [stdout] a62a87f686a04d3a4bb0afd6dcc7d662dba00ee94e350c263a7604a9ac5a0afd