[INFO] fetching crate rusql-alchemy 0.5.3... [INFO] testing rusql-alchemy-0.5.3 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate rusql-alchemy 0.5.3 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate rusql-alchemy 0.5.3 [INFO] finished tweaking crates.io crate rusql-alchemy 0.5.3 [INFO] tweaked toml for crates.io crate rusql-alchemy 0.5.3 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rusql-alchemy 0.5.3 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rusql-alchemy 0.5.3 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8f8a55f3cb6f178608dfe98fddb3860b935bfe9d32cc2abb4186a24befc910bd [INFO] running `Command { std: "docker" "start" "-a" "8f8a55f3cb6f178608dfe98fddb3860b935bfe9d32cc2abb4186a24befc910bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8f8a55f3cb6f178608dfe98fddb3860b935bfe9d32cc2abb4186a24befc910bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f8a55f3cb6f178608dfe98fddb3860b935bfe9d32cc2abb4186a24befc910bd", kill_on_drop: false }` [INFO] [stdout] 8f8a55f3cb6f178608dfe98fddb3860b935bfe9d32cc2abb4186a24befc910bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 889eb2eb4a4e65f66a2329d11870798a92b3e111d787cbe1a02d8defedc4a1f1 [INFO] running `Command { std: "docker" "start" "-a" "889eb2eb4a4e65f66a2329d11870798a92b3e111d787cbe1a02d8defedc4a1f1", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.20 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling cc v1.2.41 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rustls v0.23.34 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling if_chain v1.0.3 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Compiling webpki-roots v1.0.3 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling inventory v0.3.21 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling sqlformat v0.5.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling deluxe-core v0.5.0 [INFO] [stderr] Compiling rustls-webpki v0.103.7 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling deluxe-macros v0.5.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling deluxe v0.5.0 [INFO] [stderr] Compiling rusql-alchemy-derive v0.5.3 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [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.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 54.39s [INFO] running `Command { std: "docker" "inspect" "889eb2eb4a4e65f66a2329d11870798a92b3e111d787cbe1a02d8defedc4a1f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "889eb2eb4a4e65f66a2329d11870798a92b3e111d787cbe1a02d8defedc4a1f1", kill_on_drop: false }` [INFO] [stdout] 889eb2eb4a4e65f66a2329d11870798a92b3e111d787cbe1a02d8defedc4a1f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa20ecff44c06be7a36c4deea916d11971e95d46f43e58bc9e39c38b04ae330c [INFO] running `Command { std: "docker" "start" "-a" "aa20ecff44c06be7a36c4deea916d11971e95d46f43e58bc9e39c38b04ae330c", kill_on_drop: false }` [INFO] [stderr] Compiling rusql-alchemy v0.5.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.81s [INFO] running `Command { std: "docker" "inspect" "aa20ecff44c06be7a36c4deea916d11971e95d46f43e58bc9e39c38b04ae330c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa20ecff44c06be7a36c4deea916d11971e95d46f43e58bc9e39c38b04ae330c", kill_on_drop: false }` [INFO] [stdout] aa20ecff44c06be7a36c4deea916d11971e95d46f43e58bc9e39c38b04ae330c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1248b63c3d724bd4bd736613120b5e316711016fb1fa69388d343d9880993047 [INFO] running `Command { std: "docker" "start" "-a" "1248b63c3d724bd4bd736613120b5e316711016fb1fa69388d343d9880993047", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rusql_alchemy-18cc52f51474c179) [INFO] [stderr] Doc-tests rusql_alchemy [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] [stdout] [INFO] [stdout] running 16 tests [INFO] [stdout] test src/lib.rs - Database::migrate (line 149) ... ignored [INFO] [stdout] test src/utils.rs - utils::to_string (line 36) ... FAILED [INFO] [stdout] test src/utils.rs - utils::get_type_name (line 15) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::save (line 71) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::create (line 97) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::set (line 174) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::get (line 344) ... FAILED [INFO] [stdout] test src/macros.rs - macros::kwargs (line 8) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::migrate (line 34) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::filter (line 286) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Vec::delete (line 425) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::delete (line 232) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::update (line 149) ... FAILED [INFO] [stdout] test src/macros.rs - macros::binds (line 100) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::all (line 249) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/db/models.rs - db::models::Model::count (line 376) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/utils.rs - utils::to_string (line 36) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `to_string` in this scope [INFO] [stdout] --> src/utils.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | let json_string = to_string(true); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 36 + use rusql_alchemy::to_string; [INFO] [stdout] | [INFO] [stdout] 36 + use serde_json::to_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_string` in this scope [INFO] [stdout] --> src/utils.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | let json_string = to_string("Hello"); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 40 - let json_string = to_string("Hello"); [INFO] [stdout] 40 + let json_string = json_string("Hello"); [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 36 + use rusql_alchemy::to_string; [INFO] [stdout] | [INFO] [stdout] 36 + use serde_json::to_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils::get_type_name (line 15) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `get_type_name` in this scope [INFO] [stdout] --> src/utils.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | let type_name = get_type_name(42); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 15 + use rusql_alchemy::get_type_name; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db/models.rs - db::models::Model::save (line 71) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `User` in this scope [INFO] [stdout] --> src/db/models.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | 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] --> src/db/models.rs:80:26 [INFO] [stdout] | [INFO] [stdout] 80 | 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] --> src/db/models.rs:80:32 [INFO] [stdout] | [INFO] [stdout] 71 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_71_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 80 | 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] ---- src/db/models.rs - db::models::Model::create (line 97) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | kwargs!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 97 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:106:6 [INFO] [stdout] | [INFO] [stdout] 106 | &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] --> src/db/models.rs:107:3 [INFO] [stdout] | [INFO] [stdout] 97 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_97_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 107 | ).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] --> src/db/models.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | 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] ---- src/db/models.rs - db::models::Model::set (line 174) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | kwargs!(role = "admin"), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 174 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `user_id` in this scope [INFO] [stdout] --> src/db/models.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 176 | user_id, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:178:6 [INFO] [stdout] | [INFO] [stdout] 178 | &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] --> src/db/models.rs:179:3 [INFO] [stdout] | [INFO] [stdout] 174 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_174_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 179 | ).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] --> src/db/models.rs:175:15 [INFO] [stdout] | [INFO] [stdout] 175 | 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] ---- src/db/models.rs - db::models::Model::get (line 344) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:346:51 [INFO] [stdout] | [INFO] [stdout] 346 | kwargs!(email == "24nomeniavo@gmail.com").and(kwargs!(password == "strongpassword")), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 344 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:346:5 [INFO] [stdout] | [INFO] [stdout] 346 | kwargs!(email == "24nomeniavo@gmail.com").and(kwargs!(password == "strongpassword")), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 344 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:347:6 [INFO] [stdout] | [INFO] [stdout] 347 | &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] --> src/db/models.rs:348:3 [INFO] [stdout] | [INFO] [stdout] 344 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_344_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 348 | ).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] --> src/db/models.rs:345:12 [INFO] [stdout] | [INFO] [stdout] 345 | 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] ---- src/macros.rs - macros::kwargs (line 8) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> 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] ---- src/db/models.rs - db::models::Model::migrate (line 34) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:35:30 [INFO] [stdout] | [INFO] [stdout] 35 | 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] --> src/db/models.rs:35:36 [INFO] [stdout] | [INFO] [stdout] 34 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_34_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] 35 | 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] --> src/db/models.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | 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] ---- src/db/models.rs - db::models::Model::filter (line 286) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:288:28 [INFO] [stdout] | [INFO] [stdout] 288 | kwargs!(age <= 18).and(kwargs!(weight == 80.0)), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 286 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | kwargs!(age <= 18).and(kwargs!(weight == 80.0)), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 286 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:289:6 [INFO] [stdout] | [INFO] [stdout] 289 | &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] --> src/db/models.rs:290:3 [INFO] [stdout] | [INFO] [stdout] 286 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_286_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 290 | ).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] --> src/db/models.rs:287:13 [INFO] [stdout] | [INFO] [stdout] 287 | 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] ---- src/db/models.rs - db::models::Vec::delete (line 425) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/db/models.rs:446:3 [INFO] [stdout] | [INFO] [stdout] 446 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `error` in crate `rusql_alchemy` [INFO] [stdout] --> src/db/models.rs:447:46 [INFO] [stdout] | [INFO] [stdout] 447 | async fn main() -> Result<(), rusql_alchemy::error> { [INFO] [stdout] | ^^^^^ help: a type alias with a similar name exists: `Error` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | pub type Error = Box; [INFO] [stdout] | -------------- similarly named type alias `Error` defined here [INFO] [stdout] [INFO] [stdout] error[E0119]: conflicting implementations of trait `Default` for type `Product` [INFO] [stdout] --> src/db/models.rs:430:35 [INFO] [stdout] | [INFO] [stdout] 430 | #[derive(FromRow, Debug, Default, Model, Clone)] [INFO] [stdout] | ------- ^^^^^ conflicting implementation for `Product` [INFO] [stdout] | | [INFO] [stdout] | first implementation here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Model` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/db/models.rs:448:16 [INFO] [stdout] | [INFO] [stdout] 448 | 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] --> /opt/rustwide/workdir/src/lib.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | pub async fn new(database_url: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 448 | let conn = Database::new(/* &str */).await?.conn; [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `Result<(), Box>` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/db/models.rs:452:45 [INFO] [stdout] | [INFO] [stdout] 452 | println!("Products delete success: {}", success); [INFO] [stdout] | -- ^^^^^^^ `Result<(), Box>` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Result<(), Box>` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/db/models.rs:447:1 [INFO] [stdout] | [INFO] [stdout] 447 | 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 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0119, E0277, E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db/models.rs - db::models::Model::delete (line 232) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `user` in this scope [INFO] [stdout] --> src/db/models.rs:233:15 [INFO] [stdout] | [INFO] [stdout] 233 | 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] --> src/db/models.rs:233:28 [INFO] [stdout] | [INFO] [stdout] 233 | 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] --> src/db/models.rs:233:34 [INFO] [stdout] | [INFO] [stdout] 232 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_232_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] 233 | 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] ---- src/db/models.rs - db::models::Model::update (line 149) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | kwargs!(email == "24nomeniavo@gmail.com").and(kwargs!(password == "strongpassword")), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 149 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:151:51 [INFO] [stdout] | [INFO] [stdout] 151 | kwargs!(email == "24nomeniavo@gmail.com").and(kwargs!(password == "strongpassword")), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 149 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:152:6 [INFO] [stdout] | [INFO] [stdout] 152 | &conn, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | 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] --> src/db/models.rs:153:3 [INFO] [stdout] | [INFO] [stdout] 149 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_149_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 153 | ).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] --> src/db/models.rs:155:38 [INFO] [stdout] | [INFO] [stdout] 149 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_149_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 155 | 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] --> src/db/models.rs:150:25 [INFO] [stdout] | [INFO] [stdout] 150 | 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] ---- src/macros.rs - macros::binds (line 100) stdout ---- [INFO] [stdout] error: cannot find macro `binds` in this scope [INFO] [stdout] --> src/macros.rs:107:1 [INFO] [stdout] | [INFO] [stdout] 107 | binds!(args, stream); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `some_stream` in this scope [INFO] [stdout] --> src/macros.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | let stream = some_stream(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db/models.rs - db::models::Model::all (line 249) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:250:24 [INFO] [stdout] | [INFO] [stdout] 250 | 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] --> src/db/models.rs:250:30 [INFO] [stdout] | [INFO] [stdout] 249 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_249_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] 250 | 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] --> src/db/models.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | 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] ---- src/db/models.rs - db::models::Model::count (line 376) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:377:26 [INFO] [stdout] | [INFO] [stdout] 377 | 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] --> src/db/models.rs:377:32 [INFO] [stdout] | [INFO] [stdout] 376 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_376_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] 377 | 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] --> src/db/models.rs:377:13 [INFO] [stdout] | [INFO] [stdout] 377 | 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] [INFO] [stdout] failures: [INFO] [stdout] src/db/models.rs - db::models::Model::all (line 249) [INFO] [stdout] src/db/models.rs - db::models::Model::count (line 376) [INFO] [stdout] src/db/models.rs - db::models::Model::create (line 97) [INFO] [stdout] src/db/models.rs - db::models::Model::delete (line 232) [INFO] [stdout] src/db/models.rs - db::models::Model::filter (line 286) [INFO] [stdout] src/db/models.rs - db::models::Model::get (line 344) [INFO] [stdout] src/db/models.rs - db::models::Model::migrate (line 34) [INFO] [stdout] src/db/models.rs - db::models::Model::save (line 71) [INFO] [stdout] src/db/models.rs - db::models::Model::set (line 174) [INFO] [stdout] src/db/models.rs - db::models::Model::update (line 149) [INFO] [stdout] src/db/models.rs - db::models::Vec::delete (line 425) [INFO] [stdout] src/macros.rs - macros::binds (line 100) [INFO] [stdout] src/macros.rs - macros::kwargs (line 8) [INFO] [stdout] src/utils.rs - utils::get_type_name (line 15) [INFO] [stdout] src/utils.rs - utils::to_string (line 36) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 15 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.61s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1248b63c3d724bd4bd736613120b5e316711016fb1fa69388d343d9880993047", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1248b63c3d724bd4bd736613120b5e316711016fb1fa69388d343d9880993047", kill_on_drop: false }` [INFO] [stdout] 1248b63c3d724bd4bd736613120b5e316711016fb1fa69388d343d9880993047