[INFO] cloning repository https://github.com/j03-dev/rust-alchemy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/j03-dev/rust-alchemy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fj03-dev%2Frust-alchemy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fj03-dev%2Frust-alchemy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9112d64e46dc51b02b58b33049de7e506435c55a [INFO] testing j03-dev/rust-alchemy against master#0d162b25edd5bf0dba9a22e83b614f1113e90474 for pr-150681-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fj03-dev%2Frust-alchemy" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/j03-dev/rust-alchemy [INFO] finished tweaking git repo https://github.com/j03-dev/rust-alchemy [INFO] tweaked toml for git repo https://github.com/j03-dev/rust-alchemy written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/j03-dev/rust-alchemy on toolchain 0d162b25edd5bf0dba9a22e83b614f1113e90474 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/j03-dev/rust-alchemy 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" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded crc v3.4.0 [INFO] [stderr] Downloaded if_chain v1.0.3 [INFO] [stderr] Downloaded cmake v0.1.56 [INFO] [stderr] Downloaded sqlformat v0.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 21ff00f6b38d5f989951793a29acbaf9af25e1d55c86a242e244b2d120915739 [INFO] running `Command { std: "docker" "start" "-a" "21ff00f6b38d5f989951793a29acbaf9af25e1d55c86a242e244b2d120915739", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21ff00f6b38d5f989951793a29acbaf9af25e1d55c86a242e244b2d120915739", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21ff00f6b38d5f989951793a29acbaf9af25e1d55c86a242e244b2d120915739", kill_on_drop: false }` [INFO] [stdout] 21ff00f6b38d5f989951793a29acbaf9af25e1d55c86a242e244b2d120915739 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62ed8bef33ab26e0281beb3fdba7ab8eaacf61fbb0c8a5e3a16d49638a91536e [INFO] running `Command { std: "docker" "start" "-a" "62ed8bef33ab26e0281beb3fdba7ab8eaacf61fbb0c8a5e3a16d49638a91536e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling libc v0.2.178 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling find-msvc-tools v0.1.5 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling cc v1.2.49 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling rustls-pki-types v1.13.1 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling indexmap v2.12.1 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling rustls v0.23.35 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling webpki-roots v1.0.4 [INFO] [stderr] Compiling tracing-core v0.1.35 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling signal-hook-registry v1.4.7 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling if_chain v1.0.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling deluxe-core v0.5.0 [INFO] [stderr] Compiling rustls-webpki v0.103.8 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling sqlformat v0.5.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling tracing v0.1.43 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling deluxe-macros v0.5.0 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling deluxe v0.5.0 [INFO] [stderr] Compiling rusql-alchemy-derive v0.5.7 (/opt/rustwide/workdir/rusql-alchemy-derive) [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling sqlx-sqlite v0.8.6 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Compiling sqlx v0.8.6 [INFO] [stderr] Compiling rusql-alchemy v0.5.7 (/opt/rustwide/workdir/rusql-alchemy) [INFO] [stderr] Compiling tests v0.5.7 (/opt/rustwide/workdir/tests) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 57s [INFO] running `Command { std: "docker" "inspect" "62ed8bef33ab26e0281beb3fdba7ab8eaacf61fbb0c8a5e3a16d49638a91536e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62ed8bef33ab26e0281beb3fdba7ab8eaacf61fbb0c8a5e3a16d49638a91536e", kill_on_drop: false }` [INFO] [stdout] 62ed8bef33ab26e0281beb3fdba7ab8eaacf61fbb0c8a5e3a16d49638a91536e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 837ea201d603a5313c1ba95a0f9f15700c3ad1c83d2917596ac3eeee1744bde7 [INFO] running `Command { std: "docker" "start" "-a" "837ea201d603a5313c1ba95a0f9f15700c3ad1c83d2917596ac3eeee1744bde7", kill_on_drop: false }` [INFO] [stderr] Compiling rusql-alchemy-derive v0.5.7 (/opt/rustwide/workdir/rusql-alchemy-derive) [INFO] [stderr] Compiling rusql-alchemy v0.5.7 (/opt/rustwide/workdir/rusql-alchemy) [INFO] [stderr] Compiling tests v0.5.7 (/opt/rustwide/workdir/tests) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.64s [INFO] running `Command { std: "docker" "inspect" "837ea201d603a5313c1ba95a0f9f15700c3ad1c83d2917596ac3eeee1744bde7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "837ea201d603a5313c1ba95a0f9f15700c3ad1c83d2917596ac3eeee1744bde7", kill_on_drop: false }` [INFO] [stdout] 837ea201d603a5313c1ba95a0f9f15700c3ad1c83d2917596ac3eeee1744bde7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d6962d407575e0c71296d6c93422588c3e7733b929cad8c3b5908a4439c3af32 [INFO] running `Command { std: "docker" "start" "-a" "d6962d407575e0c71296d6c93422588c3e7733b929cad8c3b5908a4439c3af32", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rusql_alchemy-1433f0626c73daf3) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rusql_alchemy_derive-27359f2eb49a1e4c) [INFO] [stdout] [INFO] [stderr] Running unittests tests.rs (/opt/rustwide/target/debug/deps/tests-9e56397783d13e42) [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test test_join ... ok [INFO] [stdout] test test_main ... ok [INFO] [stderr] Doc-tests rusql_alchemy [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test rusql-alchemy/src/db/model.rs - db::model::Model::delete (line 229) ... FAILED [INFO] [stdout] test rusql-alchemy/src/db/model.rs - db::model::Model::migrate (line 28) ... FAILED [INFO] [stdout] test rusql-alchemy/src/db/model.rs - db::model::Model::all (line 247) ... FAILED [INFO] [stdout] test rusql-alchemy/src/db/model.rs - db::model::Model::create (line 98) ... FAILED [INFO] [stdout] test rusql-alchemy/src/db/model.rs - db::model::Model::get (line 364) ... FAILED [INFO] [stdout] test rusql-alchemy/src/lib.rs - Database::migrate (line 139) ... FAILED [INFO] [stdout] test rusql-alchemy/src/db/model.rs - db::model::Vec::delete (line 463) ... FAILED [INFO] [stdout] test rusql-alchemy/src/db/model.rs - db::model::Model::save (line 72) ... FAILED [INFO] [stdout] test rusql-alchemy/src/db/model.rs - db::model::Model::count (line 412) ... FAILED [INFO] [stdout] test rusql-alchemy/src/db/model.rs - db::model::Model::set (line 173) ... FAILED [INFO] [stdout] test rusql-alchemy/src/db/model.rs - db::model::Model::filter (line 294) ... FAILED [INFO] [stdout] test rusql-alchemy/src/macros.rs - macros::kwargs (line 8) ... FAILED [INFO] [stdout] test rusql-alchemy/src/db/model.rs - db::model::Model::update (line 148) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- rusql-alchemy/src/db/model.rs - db::model::Model::delete (line 229) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `user` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:230:15 [INFO] [stdout] | [INFO] [stdout] 230 | let success = user.delete(&conn).await; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:230:28 [INFO] [stdout] | [INFO] [stdout] 230 | let success = user.delete(&conn).await; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:230:34 [INFO] [stdout] | [INFO] [stdout] 229 | fn main() { #[allow(non_snake_case)] fn _doctest_main_rusql_alchemy_src_db_model_rs_229_0() { [INFO] [stdout] | ------------------------------------------------------ this is not `async` [INFO] [stdout] 230 | let success = user.delete(&conn).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- rusql-alchemy/src/db/model.rs - db::model::Model::migrate (line 28) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | let success = User::migrate(&conn).await; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:29:36 [INFO] [stdout] | [INFO] [stdout] 28 | fn main() { #[allow(non_snake_case)] fn _doctest_main_rusql_alchemy_src_db_model_rs_28_0() { [INFO] [stdout] | ----------------------------------------------------- this is not `async` [INFO] [stdout] 29 | let success = User::migrate(&conn).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | let success = User::migrate(&conn).await; [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- rusql-alchemy/src/db/model.rs - db::model::Model::all (line 247) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:248:24 [INFO] [stdout] | [INFO] [stdout] 248 | let users = User::all(&conn).await; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:248:30 [INFO] [stdout] | [INFO] [stdout] 247 | fn main() { #[allow(non_snake_case)] fn _doctest_main_rusql_alchemy_src_db_model_rs_247_0() { [INFO] [stdout] | ------------------------------------------------------ this is not `async` [INFO] [stdout] 248 | let users = User::all(&conn).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | let users = User::all(&conn).await; [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- rusql-alchemy/src/db/model.rs - db::model::Model::create (line 98) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | kwargs!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 98 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:107:6 [INFO] [stdout] | [INFO] [stdout] 107 | &conn, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:108:3 [INFO] [stdout] | [INFO] [stdout] 98 | fn main() { #[allow(non_snake_case)] fn _doctest_main_rusql_alchemy_src_db_model_rs_98_0() { [INFO] [stdout] | ----------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 108 | ).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:99:15 [INFO] [stdout] | [INFO] [stdout] 99 | let success = User::create( [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- rusql-alchemy/src/db/model.rs - db::model::Model::get (line 364) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:366:51 [INFO] [stdout] | [INFO] [stdout] 366 | kwargs!(email == "24nomeniavo@gmail.com").and(kwargs!(password == "strongpassword")), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 364 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:366:5 [INFO] [stdout] | [INFO] [stdout] 366 | kwargs!(email == "24nomeniavo@gmail.com").and(kwargs!(password == "strongpassword")), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 364 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:367:6 [INFO] [stdout] | [INFO] [stdout] 367 | &conn, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:368:3 [INFO] [stdout] | [INFO] [stdout] 364 | fn main() { #[allow(non_snake_case)] fn _doctest_main_rusql_alchemy_src_db_model_rs_364_0() { [INFO] [stdout] | ------------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 368 | ).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:365:12 [INFO] [stdout] | [INFO] [stdout] 365 | let user = User::get( [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- rusql-alchemy/src/lib.rs - Database::migrate (line 139) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `crate::models` [INFO] [stdout] --> rusql-alchemy/src/lib.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 147 | use crate::models::*; [INFO] [stdout] | ^^^^^^ could not find `models` in the crate root [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> rusql-alchemy/src/lib.rs:149:3 [INFO] [stdout] | [INFO] [stdout] 149 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_local` found for struct `rusql_alchemy::Database` in the current scope [INFO] [stdout] --> rusql-alchemy/src/lib.rs:151:30 [INFO] [stdout] | [INFO] [stdout] 151 | let database = Database::new_local("local.db").await?; [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `rusql_alchemy::Database` [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> rusql-alchemy/src/lib.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | let database = Database::new_local("local.db").await?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 152 | database.migrate().await?; [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `database` an explicit type [INFO] [stdout] | [INFO] [stdout] 151 | let database: /* Type */ = Database::new_local("local.db").await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> rusql-alchemy/src/lib.rs:150:1 [INFO] [stdout] | [INFO] [stdout] 150 | async fn main() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0599, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- rusql-alchemy/src/db/model.rs - db::model::Vec::delete (line 463) stdout ---- [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:468:35 [INFO] [stdout] | [INFO] [stdout] 468 | #[derive(FromRow, Debug, Default, Model, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: Missing on_delete strategy for foreign key. [INFO] [stdout] Please specify one: cascade, restrict, no_action, set_null, set_default. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:484:3 [INFO] [stdout] | [INFO] [stdout] 484 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `error` in crate `rusql_alchemy` [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:485:46 [INFO] [stdout] | [INFO] [stdout] 485 | async fn main() -> Result<(), rusql_alchemy::error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: rusql-alchemy/src/lib.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub type Error = Box; [INFO] [stdout] | -------------- similarly named type alias `Error` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 485 - async fn main() -> Result<(), rusql_alchemy::error> { [INFO] [stdout] 485 + async fn main() -> Result<(), rusql_alchemy::Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:486:16 [INFO] [stdout] | [INFO] [stdout] 486 | let conn = Database::new().await?.conn; [INFO] [stdout] | ^^^^^^^^^^^^^-- argument #1 of type `&str` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> rusql-alchemy/src/lib.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | pub async fn new(database_url: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 486 | let conn = Database::new(/* &str */).await?.conn; [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: `Product` is not an iterator [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:488:29 [INFO] [stdout] | [INFO] [stdout] 469 | struct Product { [INFO] [stdout] | -------------- function or associated item `all` not found for this struct because it doesn't satisfy `Product: Iterator` [INFO] [stdout] ... [INFO] [stdout] 488 | let products = Product::all(&conn).await?; [INFO] [stdout] | ^^^ `Product` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Product: Iterator` [INFO] [stdout] which is required by `&mut Product: Iterator` [INFO] [stdout] note: the trait `Iterator` must be implemented [INFO] [stdout] --> /rustc/0d162b25edd5bf0dba9a22e83b614f1113e90474/library/core/src/iter/traits/iterator.rs:40:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `all`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Iterator` [INFO] [stdout] candidate #2: `futures_util::stream::stream::StreamExt` [INFO] [stdout] candidate #3: `rusql_alchemy::prelude::Model` [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:488:9 [INFO] [stdout] | [INFO] [stdout] 488 | let products = Product::all(&conn).await?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 489 | let success = products.delete(&conn).await; [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `products` an explicit type [INFO] [stdout] | [INFO] [stdout] 488 | let products: /* Type */ = Product::all(&conn).await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: `Product` is not an iterator [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:492:29 [INFO] [stdout] | [INFO] [stdout] 469 | struct Product { [INFO] [stdout] | -------------- function or associated item `all` not found for this struct because it doesn't satisfy `Product: Iterator` [INFO] [stdout] ... [INFO] [stdout] 492 | let products = Product::all(&conn).await; [INFO] [stdout] | ^^^ `Product` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Product: Iterator` [INFO] [stdout] which is required by `&mut Product: Iterator` [INFO] [stdout] note: the trait `Iterator` must be implemented [INFO] [stdout] --> /rustc/0d162b25edd5bf0dba9a22e83b614f1113e90474/library/core/src/iter/traits/iterator.rs:40:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `all`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Iterator` [INFO] [stdout] candidate #2: `futures_util::stream::stream::StreamExt` [INFO] [stdout] candidate #3: `rusql_alchemy::prelude::Model` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:485:1 [INFO] [stdout] | [INFO] [stdout] 485 | async fn main() -> Result<(), rusql_alchemy::error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0282, E0425, E0433, E0599, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- rusql-alchemy/src/db/model.rs - db::model::Model::save (line 72) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `User` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | let user = User { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:81:26 [INFO] [stdout] | [INFO] [stdout] 81 | let success = user.save(&conn).await; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:81:32 [INFO] [stdout] | [INFO] [stdout] 72 | fn main() { #[allow(non_snake_case)] fn _doctest_main_rusql_alchemy_src_db_model_rs_72_0() { [INFO] [stdout] | ----------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 81 | let success = user.save(&conn).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- rusql-alchemy/src/db/model.rs - db::model::Model::count (line 412) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:413:26 [INFO] [stdout] | [INFO] [stdout] 413 | let count = User::count(&conn).await; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:413:32 [INFO] [stdout] | [INFO] [stdout] 412 | fn main() { #[allow(non_snake_case)] fn _doctest_main_rusql_alchemy_src_db_model_rs_412_0() { [INFO] [stdout] | ------------------------------------------------------ this is not `async` [INFO] [stdout] 413 | let count = User::count(&conn).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | let count = User::count(&conn).await; [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- rusql-alchemy/src/db/model.rs - db::model::Model::set (line 173) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 176 | kwargs!(role = "admin"), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 173 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `user_id` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 175 | user_id, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:177:6 [INFO] [stdout] | [INFO] [stdout] 177 | &conn, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:178:3 [INFO] [stdout] | [INFO] [stdout] 173 | fn main() { #[allow(non_snake_case)] fn _doctest_main_rusql_alchemy_src_db_model_rs_173_0() { [INFO] [stdout] | ------------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 178 | ).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:174:15 [INFO] [stdout] | [INFO] [stdout] 174 | let success = User::set( [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- rusql-alchemy/src/db/model.rs - db::model::Model::filter (line 294) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:296:28 [INFO] [stdout] | [INFO] [stdout] 296 | kwargs!(age <= 18).and(kwargs!(weight == 80.0)), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 294 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 296 | kwargs!(age <= 18).and(kwargs!(weight == 80.0)), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 294 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:297:6 [INFO] [stdout] | [INFO] [stdout] 297 | &conn, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:298:3 [INFO] [stdout] | [INFO] [stdout] 294 | fn main() { #[allow(non_snake_case)] fn _doctest_main_rusql_alchemy_src_db_model_rs_294_0() { [INFO] [stdout] | ------------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 298 | ).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:295:13 [INFO] [stdout] | [INFO] [stdout] 295 | let users = User::filter( [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- rusql-alchemy/src/macros.rs - macros::kwargs (line 8) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> rusql-alchemy/src/macros.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | let conditions = kwargs!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 8 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- rusql-alchemy/src/db/model.rs - db::model::Model::update (line 148) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | kwargs!(email == "24nomeniavo@gmail.com").and(kwargs!(password == "strongpassword")), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 148 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:150:51 [INFO] [stdout] | [INFO] [stdout] 150 | kwargs!(email == "24nomeniavo@gmail.com").and(kwargs!(password == "strongpassword")), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 148 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:151:6 [INFO] [stdout] | [INFO] [stdout] 151 | &conn, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:154:32 [INFO] [stdout] | [INFO] [stdout] 154 | let success = user.update(&conn).await; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:152:3 [INFO] [stdout] | [INFO] [stdout] 148 | fn main() { #[allow(non_snake_case)] fn _doctest_main_rusql_alchemy_src_db_model_rs_148_0() { [INFO] [stdout] | ------------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 152 | ).await { [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:154:38 [INFO] [stdout] | [INFO] [stdout] 148 | fn main() { #[allow(non_snake_case)] fn _doctest_main_rusql_alchemy_src_db_model_rs_148_0() { [INFO] [stdout] | ------------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 154 | let success = user.update(&conn).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> rusql-alchemy/src/db/model.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | if let Some(mut user) = User::get( [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] rusql-alchemy/src/db/model.rs - db::model::Model::all (line 247) [INFO] [stdout] rusql-alchemy/src/db/model.rs - db::model::Model::count (line 412) [INFO] [stdout] rusql-alchemy/src/db/model.rs - db::model::Model::create (line 98) [INFO] [stdout] rusql-alchemy/src/db/model.rs - db::model::Model::delete (line 229) [INFO] [stdout] rusql-alchemy/src/db/model.rs - db::model::Model::filter (line 294) [INFO] [stdout] rusql-alchemy/src/db/model.rs - db::model::Model::get (line 364) [INFO] [stdout] rusql-alchemy/src/db/model.rs - db::model::Model::migrate (line 28) [INFO] [stdout] rusql-alchemy/src/db/model.rs - db::model::Model::save (line 72) [INFO] [stdout] rusql-alchemy/src/db/model.rs - db::model::Model::set (line 173) [INFO] [stdout] rusql-alchemy/src/db/model.rs - db::model::Model::update (line 148) [INFO] [stdout] rusql-alchemy/src/db/model.rs - db::model::Vec::delete (line 463) [INFO] [stdout] rusql-alchemy/src/lib.rs - Database::migrate (line 139) [INFO] [stdout] rusql-alchemy/src/macros.rs - macros::kwargs (line 8) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.83s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `-p rusql-alchemy --doc` [INFO] running `Command { std: "docker" "inspect" "d6962d407575e0c71296d6c93422588c3e7733b929cad8c3b5908a4439c3af32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6962d407575e0c71296d6c93422588c3e7733b929cad8c3b5908a4439c3af32", kill_on_drop: false }` [INFO] [stdout] d6962d407575e0c71296d6c93422588c3e7733b929cad8c3b5908a4439c3af32