[INFO] fetching crate oximod_core 0.1.11... [INFO] testing oximod_core-0.1.11 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate oximod_core 0.1.11 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate oximod_core 0.1.11 [INFO] finished tweaking crates.io crate oximod_core 0.1.11 [INFO] tweaked toml for crates.io crate oximod_core 0.1.11 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate oximod_core 0.1.11 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate oximod_core 0.1.11 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rustc_version_runtime v0.3.0 [INFO] [stderr] Downloaded derive-where v1.5.0 [INFO] [stderr] Downloaded mongodb-internal-macros v3.2.4 [INFO] [stderr] Downloaded zerovec v0.11.3 [INFO] [stderr] Downloaded mongodb v3.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7df3b82af89dc7bc0c1325683aa355e09563fafda4e24da9248596e13fe24749 [INFO] running `Command { std: "docker" "start" "-a" "7df3b82af89dc7bc0c1325683aa355e09563fafda4e24da9248596e13fe24749", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7df3b82af89dc7bc0c1325683aa355e09563fafda4e24da9248596e13fe24749", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7df3b82af89dc7bc0c1325683aa355e09563fafda4e24da9248596e13fe24749", kill_on_drop: false }` [INFO] [stdout] 7df3b82af89dc7bc0c1325683aa355e09563fafda4e24da9248596e13fe24749 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8745a3245f59a774398ab4fdd4d48eda76f6f328c7ec4868c7a90983622dab6 [INFO] running `Command { std: "docker" "start" "-a" "e8745a3245f59a774398ab4fdd4d48eda76f6f328c7ec4868c7a90983622dab6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling cc v1.2.31 [INFO] [stderr] Compiling zerovec v0.11.3 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling macro_magic_core_macros v0.5.1 [INFO] [stderr] Compiling derive-syn-parse v0.2.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling macro_magic_core v0.5.1 [INFO] [stderr] Compiling macro_magic_macros v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling rustc_version_runtime v0.3.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling serde_with_macros v3.14.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde_bytes v0.11.17 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling macro_magic v0.5.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling resolv-conf v0.7.4 [INFO] [stderr] Compiling hickory-proto v0.24.4 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling bson v2.15.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling serde_with v3.14.0 [INFO] [stderr] Compiling mongodb-internal-macros v3.2.4 [INFO] [stderr] Compiling hickory-resolver v0.24.4 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling derive-where v1.5.0 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling mongodb v3.2.4 [INFO] [stderr] Compiling oximod_core v0.1.11 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 06s [INFO] running `Command { std: "docker" "inspect" "e8745a3245f59a774398ab4fdd4d48eda76f6f328c7ec4868c7a90983622dab6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8745a3245f59a774398ab4fdd4d48eda76f6f328c7ec4868c7a90983622dab6", kill_on_drop: false }` [INFO] [stdout] e8745a3245f59a774398ab4fdd4d48eda76f6f328c7ec4868c7a90983622dab6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd0a9431237d587a0b7c4b2cacb0a587b139e600acbbf781bfaf652df74201b8 [INFO] running `Command { std: "docker" "start" "-a" "fd0a9431237d587a0b7c4b2cacb0a587b139e600acbbf781bfaf652df74201b8", kill_on_drop: false }` [INFO] [stderr] Compiling oximod_core v0.1.11 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.03s [INFO] running `Command { std: "docker" "inspect" "fd0a9431237d587a0b7c4b2cacb0a587b139e600acbbf781bfaf652df74201b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd0a9431237d587a0b7c4b2cacb0a587b139e600acbbf781bfaf652df74201b8", kill_on_drop: false }` [INFO] [stdout] fd0a9431237d587a0b7c4b2cacb0a587b139e600acbbf781bfaf652df74201b8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4e4a509164d6a7c3f24c394f1d4bde937b3dc6c307f261661e85d10558839c0a [INFO] running `Command { std: "docker" "start" "-a" "4e4a509164d6a7c3f24c394f1d4bde937b3dc6c307f261661e85d10558839c0a", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/oximod_core-16f7ba329ef1f3d2) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests oximod_core [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 15 tests [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::delete_one (line 99) - compile ... FAILED [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::exists (line 217) - compile ... FAILED [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::find (line 115) - compile ... FAILED [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::delete (line 85) - compile ... FAILED [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::count (line 203) - compile ... FAILED [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::clear (line 232) - compile ... FAILED [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::find_by_id (line 150) - compile ... FAILED [INFO] [stdout] test src/lib.rs - attach_printables (line 4) ... ignored [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::get_collection (line 23) - compile ... FAILED [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::delete_by_id (line 188) - compile ... FAILED [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::update_one (line 68) - compile ... FAILED [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::update_by_id (line 170) - compile ... FAILED [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::save (line 35) - compile ... FAILED [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::find_one (line 131) - compile ... FAILED [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::update (line 50) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/feature/model/mod.rs - feature::model::Model::delete_one (line 99) stdout ---- [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/feature/model/mod.rs:100:31 [INFO] [stdout] | [INFO] [stdout] 3 | let result = User::delete_one(doc! { "name": "user_a" }).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `doc` is in scope, but it is an attribute: `#[doc]` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/feature/model/mod.rs:100:58 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_99_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] 3 | let result = User::delete_one(doc! { "name": "user_a" }).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/feature/model/mod.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 3 | let result = User::delete_one(doc! { "name": "user_a" }).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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/feature/model/mod.rs - feature::model::Model::exists (line 217) stdout ---- [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/feature/model/mod.rs:218:27 [INFO] [stdout] | [INFO] [stdout] 3 | let exists = User::exists(doc! { "name": "user_a" }).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `doc` is in scope, but it is an attribute: `#[doc]` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/feature/model/mod.rs:218:54 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_217_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 3 | let exists = User::exists(doc! { "name": "user_a" }).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/feature/model/mod.rs:218:14 [INFO] [stdout] | [INFO] [stdout] 3 | let exists = User::exists(doc! { "name": "user_a" }).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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/feature/model/mod.rs - feature::model::Model::find (line 115) stdout ---- [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/feature/model/mod.rs:116:24 [INFO] [stdout] | [INFO] [stdout] 3 | let users = User::find(doc! { "active": true }).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `doc` is in scope, but it is an attribute: `#[doc]` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/feature/model/mod.rs:116:49 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_115_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 3 | let users = User::find(doc! { "active": true }).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/feature/model/mod.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 3 | let users = User::find(doc! { "active": true }).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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/feature/model/mod.rs - feature::model::Model::delete (line 85) stdout ---- [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/feature/model/mod.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 3 | let result = User::delete(doc! { "active": false }).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `doc` is in scope, but it is an attribute: `#[doc]` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/feature/model/mod.rs:86:53 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_85_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] 3 | let result = User::delete(doc! { "active": false }).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/feature/model/mod.rs:86:14 [INFO] [stdout] | [INFO] [stdout] 3 | let result = User::delete(doc! { "active": false }).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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/feature/model/mod.rs - feature::model::Model::count (line 203) stdout ---- [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/feature/model/mod.rs:204:25 [INFO] [stdout] | [INFO] [stdout] 3 | let count = User::count(doc! { "active": true }).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `doc` is in scope, but it is an attribute: `#[doc]` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/feature/model/mod.rs:204:50 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_203_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 3 | let count = User::count(doc! { "active": true }).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/feature/model/mod.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 3 | let count = User::count(doc! { "active": true }).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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/feature/model/mod.rs - feature::model::Model::clear (line 232) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/feature/model/mod.rs:233:28 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_232_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 3 | let result = User::clear().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/feature/model/mod.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 3 | let result = User::clear().await?; [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/feature/model/mod.rs - feature::model::Model::find_by_id (line 150) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/feature/model/mod.rs:152:33 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_150_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 3 | let id = ObjectId::parse_str("652efcddfc13ae2c82000001")?; [INFO] [stdout] 4 | let user = User::find_by_id(id).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ObjectId` [INFO] [stdout] --> src/feature/model/mod.rs:151:10 [INFO] [stdout] | [INFO] [stdout] 3 | let id = ObjectId::parse_str("652efcddfc13ae2c82000001")?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ObjectId` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> src/feature/model/mod.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 4 | let user = User::find_by_id(id).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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/feature/model/mod.rs - feature::model::Model::get_collection (line 23) stdout ---- [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/feature/model/mod.rs:25:40 [INFO] [stdout] | [INFO] [stdout] 4 | let count = collection.count_documents(doc! {}).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `doc` is in scope, but it is an attribute: `#[doc]` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/feature/model/mod.rs:25:49 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_23_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] 3 | let collection = User::get_collection()?; [INFO] [stdout] 4 | let count = collection.count_documents(doc! {}).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/feature/model/mod.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 3 | let collection = User::get_collection()?; [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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/feature/model/mod.rs - feature::model::Model::delete_by_id (line 188) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/feature/model/mod.rs:190:37 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_188_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 3 | let id = ObjectId::parse_str("652efcddfc13ae2c82000001")?; [INFO] [stdout] 4 | let result = User::delete_by_id(id).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ObjectId` [INFO] [stdout] --> src/feature/model/mod.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 3 | let id = ObjectId::parse_str("652efcddfc13ae2c82000001")?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ObjectId` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> src/feature/model/mod.rs:190:14 [INFO] [stdout] | [INFO] [stdout] 4 | let result = User::delete_by_id(id).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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/feature/model/mod.rs - feature::model::Model::update_one (line 68) stdout ---- [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/feature/model/mod.rs:69:51 [INFO] [stdout] | [INFO] [stdout] 3 | let result = User::update_one(doc! { "age": 25 }, doc! { "$set": { "active": false } }).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `doc` is in scope, but it is an attribute: `#[doc]` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/feature/model/mod.rs:69:31 [INFO] [stdout] | [INFO] [stdout] 3 | let result = User::update_one(doc! { "age": 25 }, doc! { "$set": { "active": false } }).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `doc` is in scope, but it is an attribute: `#[doc]` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/feature/model/mod.rs:69:89 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_68_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] 3 | let result = User::update_one(doc! { "age": 25 }, doc! { "$set": { "active": false } }).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/feature/model/mod.rs:69:14 [INFO] [stdout] | [INFO] [stdout] 3 | let result = User::update_one(doc! { "age": 25 }, doc! { "$set": { "active": false } }).await?; [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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/feature/model/mod.rs - feature::model::Model::update_by_id (line 170) stdout ---- [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/feature/model/mod.rs:172:37 [INFO] [stdout] | [INFO] [stdout] 4 | let result = User::update_by_id(id, doc! { "$set": { "active": false } }).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `doc` is in scope, but it is an attribute: `#[doc]` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/feature/model/mod.rs:172:75 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_170_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 3 | let id = ObjectId::parse_str("652efcddfc13ae2c82000001")?; [INFO] [stdout] 4 | let result = User::update_by_id(id, doc! { "$set": { "active": false } }).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ObjectId` [INFO] [stdout] --> src/feature/model/mod.rs:171:10 [INFO] [stdout] | [INFO] [stdout] 3 | let id = ObjectId::parse_str("652efcddfc13ae2c82000001")?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ObjectId` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> src/feature/model/mod.rs:172:14 [INFO] [stdout] | [INFO] [stdout] 4 | let result = User::update_by_id(id, doc! { "$set": { "active": false } }).await?; [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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/feature/model/mod.rs - feature::model::Model::save (line 35) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `user` in this scope [INFO] [stdout] --> src/feature/model/mod.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 3 | let id = user.save().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/feature/model/mod.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_35_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] 3 | let id = user.save().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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/feature/model/mod.rs - feature::model::Model::find_one (line 131) stdout ---- [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/feature/model/mod.rs:132:36 [INFO] [stdout] | [INFO] [stdout] 3 | if let Some(user) = User::find_one(doc! { "name": "user_a" }).await? { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `doc` is in scope, but it is an attribute: `#[doc]` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/feature/model/mod.rs:132:63 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_131_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 3 | if let Some(user) = User::find_one(doc! { "name": "user_a" }).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/feature/model/mod.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 3 | if let Some(user) = User::find_one(doc! { "name": "user_a" }).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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/feature/model/mod.rs - feature::model::Model::update (line 50) stdout ---- [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/feature/model/mod.rs:51:53 [INFO] [stdout] | [INFO] [stdout] 3 | let result = User::update(doc! { "active": false }, doc! { "$set": { "active": true } }).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `doc` is in scope, but it is an attribute: `#[doc]` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/feature/model/mod.rs:51:27 [INFO] [stdout] | [INFO] [stdout] 3 | let result = User::update(doc! { "active": false }, doc! { "$set": { "active": true } }).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `doc` is in scope, but it is an attribute: `#[doc]` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/feature/model/mod.rs:51:90 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_50_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] 3 | let result = User::update(doc! { "active": false }, doc! { "$set": { "active": true } }).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/feature/model/mod.rs:51:14 [INFO] [stdout] | [INFO] [stdout] 3 | let result = User::update(doc! { "active": false }, doc! { "$set": { "active": true } }).await?; [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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/feature/model/mod.rs - feature::model::Model::clear (line 232) [INFO] [stdout] src/feature/model/mod.rs - feature::model::Model::count (line 203) [INFO] [stdout] src/feature/model/mod.rs - feature::model::Model::delete (line 85) [INFO] [stdout] src/feature/model/mod.rs - feature::model::Model::delete_by_id (line 188) [INFO] [stdout] src/feature/model/mod.rs - feature::model::Model::delete_one (line 99) [INFO] [stdout] src/feature/model/mod.rs - feature::model::Model::exists (line 217) [INFO] [stdout] src/feature/model/mod.rs - feature::model::Model::find (line 115) [INFO] [stdout] src/feature/model/mod.rs - feature::model::Model::find_by_id (line 150) [INFO] [stdout] src/feature/model/mod.rs - feature::model::Model::find_one (line 131) [INFO] [stdout] src/feature/model/mod.rs - feature::model::Model::get_collection (line 23) [INFO] [stdout] src/feature/model/mod.rs - feature::model::Model::save (line 35) [INFO] [stdout] src/feature/model/mod.rs - feature::model::Model::update (line 50) [INFO] [stdout] src/feature/model/mod.rs - feature::model::Model::update_by_id (line 170) [INFO] [stdout] src/feature/model/mod.rs - feature::model::Model::update_one (line 68) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 14 failed; 1 ignored; 0 measured; 0 filtered out; finished in 1.52s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "4e4a509164d6a7c3f24c394f1d4bde937b3dc6c307f261661e85d10558839c0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e4a509164d6a7c3f24c394f1d4bde937b3dc6c307f261661e85d10558839c0a", kill_on_drop: false }` [INFO] [stdout] 4e4a509164d6a7c3f24c394f1d4bde937b3dc6c307f261661e85d10558839c0a