[INFO] fetching crate oximod_core 0.1.11... [INFO] testing oximod_core-0.1.11 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [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 c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded derive-where v1.5.0 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4cbd1623cf51f389eb4c29ca3c4d85cc3943a8a72b3861cf851590cbb22e2826 [INFO] running `Command { std: "docker" "start" "-a" "4cbd1623cf51f389eb4c29ca3c4d85cc3943a8a72b3861cf851590cbb22e2826", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4cbd1623cf51f389eb4c29ca3c4d85cc3943a8a72b3861cf851590cbb22e2826", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4cbd1623cf51f389eb4c29ca3c4d85cc3943a8a72b3861cf851590cbb22e2826", kill_on_drop: false }` [INFO] [stdout] 4cbd1623cf51f389eb4c29ca3c4d85cc3943a8a72b3861cf851590cbb22e2826 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec854b3d08b3c58de9e35a2b360dc4dce510677261c31e9b0592a33b62ee00da [INFO] running `Command { std: "docker" "start" "-a" "ec854b3d08b3c58de9e35a2b360dc4dce510677261c31e9b0592a33b62ee00da", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling cc v1.2.31 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling derive-syn-parse v0.2.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling macro_magic_core_macros v0.5.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling zerovec v0.11.3 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling rustc_version_runtime v0.3.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling macro_magic_core v0.5.1 [INFO] [stderr] Compiling resolv-conf v0.7.4 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling macro_magic_macros v0.5.1 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling serde_bytes v0.11.17 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling macro_magic v0.5.1 [INFO] [stderr] Compiling mongodb-internal-macros v3.2.4 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling derive-where v1.5.0 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling serde_with_macros v3.14.0 [INFO] [stderr] Compiling bson v2.15.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling serde_with v3.14.0 [INFO] [stderr] Compiling hickory-proto v0.24.4 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling hickory-resolver v0.24.4 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling mongodb v3.2.4 [INFO] [stderr] Compiling oximod_core v0.1.11 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `attach_printables` [INFO] [stdout] --> src/feature/conn/client.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{attach_printables, error::oximod_error::OxiModError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 19s [INFO] running `Command { std: "docker" "inspect" "ec854b3d08b3c58de9e35a2b360dc4dce510677261c31e9b0592a33b62ee00da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec854b3d08b3c58de9e35a2b360dc4dce510677261c31e9b0592a33b62ee00da", kill_on_drop: false }` [INFO] [stdout] ec854b3d08b3c58de9e35a2b360dc4dce510677261c31e9b0592a33b62ee00da [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 18d95e4bd740ff3376470c0eb030290a99c2681f8ece94dbb51af6a154fa673f [INFO] running `Command { std: "docker" "start" "-a" "18d95e4bd740ff3376470c0eb030290a99c2681f8ece94dbb51af6a154fa673f", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `attach_printables` [INFO] [stdout] --> src/feature/conn/client.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{attach_printables, error::oximod_error::OxiModError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling oximod_core v0.1.11 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `attach_printables` [INFO] [stdout] --> src/feature/conn/client.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{attach_printables, error::oximod_error::OxiModError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.67s [INFO] running `Command { std: "docker" "inspect" "18d95e4bd740ff3376470c0eb030290a99c2681f8ece94dbb51af6a154fa673f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18d95e4bd740ff3376470c0eb030290a99c2681f8ece94dbb51af6a154fa673f", kill_on_drop: false }` [INFO] [stdout] 18d95e4bd740ff3376470c0eb030290a99c2681f8ece94dbb51af6a154fa673f [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 767069d2a828db5f3887bdad8f71a964dfe7dc8f7446d0a4f7c051ce670abaee [INFO] running `Command { std: "docker" "start" "-a" "767069d2a828db5f3887bdad8f71a964dfe7dc8f7446d0a4f7c051ce670abaee", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `attach_printables` [INFO] [stderr] --> src/feature/conn/client.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::{attach_printables, error::oximod_error::OxiModError}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `oximod_core` (lib) generated 1 warning (run `cargo fix --lib -p oximod_core` to apply 1 suggestion) [INFO] [stderr] warning: `oximod_core` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/oximod_core-16f7ba329ef1f3d2) [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] Doc-tests oximod_core [INFO] [stdout] [INFO] [stdout] running 15 tests [INFO] [stdout] test src/lib.rs - attach_printables (line 4) ... ignored [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::find_by_id (line 150) - 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::exists (line 217) - compile ... FAILED [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::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::delete (line 85) - compile ... FAILED [INFO] [stdout] test src/feature/model/mod.rs - feature::model::Model::update (line 50) - 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::clear (line 232) - 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_one (line 99) - 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::find_one (line 131) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 150 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_150_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 151 | let id = ObjectId::parse_str("652efcddfc13ae2c82000001")?; [INFO] [stdout] 152 | 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] 151 | 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] 152 | 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::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] 204 | 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] 203 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_203_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 204 | 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] 204 | 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::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] 218 | 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] 217 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_217_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 218 | 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] 218 | 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::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] 25 | 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] 23 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_23_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] 24 | let collection = User::get_collection()?; [INFO] [stdout] 25 | 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] 24 | 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::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] 69 | 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] 69 | 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] 68 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_68_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] 69 | 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] 69 | 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] 172 | 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] 170 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_170_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 171 | let id = ObjectId::parse_str("652efcddfc13ae2c82000001")?; [INFO] [stdout] 172 | 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] 171 | 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] 172 | 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::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] 86 | 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] 85 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_85_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] 86 | 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] 86 | 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::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] 51 | 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] 51 | 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] 50 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_50_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] 51 | 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] 51 | 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] ---- 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] 36 | 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] 35 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_35_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] 36 | 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::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] 232 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_232_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 233 | 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] 233 | 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 (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] 116 | 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] 115 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_115_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 116 | 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] 116 | 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_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] 100 | 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] 99 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_99_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] 100 | 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] 100 | 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::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] 188 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_188_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 189 | let id = ObjectId::parse_str("652efcddfc13ae2c82000001")?; [INFO] [stdout] 190 | 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] 189 | 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] 190 | 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::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] 132 | 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] 131 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_feature_model_mod_rs_131_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] 132 | 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] 132 | 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] [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 0.57s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "767069d2a828db5f3887bdad8f71a964dfe7dc8f7446d0a4f7c051ce670abaee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "767069d2a828db5f3887bdad8f71a964dfe7dc8f7446d0a4f7c051ce670abaee", kill_on_drop: false }` [INFO] [stdout] 767069d2a828db5f3887bdad8f71a964dfe7dc8f7446d0a4f7c051ce670abaee