[INFO] fetching crate mungos 0.0.11... [INFO] testing mungos-0.0.11 against try#722e1797249a965b6335aebd65d777f917e498f1 for pr-91031 [INFO] extracting crate mungos 0.0.11 into /workspace/builds/worker-13/source [INFO] validating manifest of crates.io crate mungos 0.0.11 on toolchain 722e1797249a965b6335aebd65d777f917e498f1 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate mungos 0.0.11 [INFO] finished tweaking crates.io crate mungos 0.0.11 [INFO] tweaked toml for crates.io crate mungos 0.0.11 written to /workspace/builds/worker-13/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded md-5 v0.9.1 [INFO] [stderr] Downloaded bson v2.0.1 [INFO] [stderr] Downloaded os_info v3.0.7 [INFO] [stderr] Downloaded mongodb v2.0.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 84003cc8e353c391996b6b280a745fdd13002a760ca419971bce7f5729261d81 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "84003cc8e353c391996b6b280a745fdd13002a760ca419971bce7f5729261d81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "84003cc8e353c391996b6b280a745fdd13002a760ca419971bce7f5729261d81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84003cc8e353c391996b6b280a745fdd13002a760ca419971bce7f5729261d81", kill_on_drop: false }` [INFO] [stdout] 84003cc8e353c391996b6b280a745fdd13002a760ca419971bce7f5729261d81 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] af0c079b049fc80b8f499d510c5a66b685b7137576a79debc72754a543df4898 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "af0c079b049fc80b8f499d510c5a66b685b7137576a79debc72754a543df4898", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling libc v0.2.107 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling futures-sink v0.3.17 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling rustversion v1.0.5 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling ipnet v2.3.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling futures-macro v0.3.17 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling tokio v1.14.0 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling os_info v3.0.7 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling sha2 v0.9.8 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling pbkdf2 v0.8.0 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling darling_core v0.13.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling tokio-macros v1.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling async-trait v0.1.51 [INFO] [stderr] Compiling typed-builder v0.9.1 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling darling_macro v0.13.0 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling darling v0.13.0 [INFO] [stderr] Compiling serde_with_macros v1.5.1 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling futures-executor v0.3.17 [INFO] [stderr] Compiling futures v0.3.17 [INFO] [stderr] Compiling trust-dns-proto v0.20.3 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling trust-dns-resolver v0.20.3 [INFO] [stderr] Compiling serde_json v1.0.71 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling serde_with v1.11.0 [INFO] [stderr] Compiling bson v2.0.1 [INFO] [stderr] Compiling mongodb v2.0.2 [INFO] [stderr] Compiling mungos v0.0.11 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 25s [INFO] running `Command { std: "docker" "inspect" "af0c079b049fc80b8f499d510c5a66b685b7137576a79debc72754a543df4898", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af0c079b049fc80b8f499d510c5a66b685b7137576a79debc72754a543df4898", kill_on_drop: false }` [INFO] [stdout] af0c079b049fc80b8f499d510c5a66b685b7137576a79debc72754a543df4898 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] def9fb16eda76d1f64137d39a7b3e5de6d8c56f046016a6da14bc11af0551768 [INFO] running `Command { std: "docker" "start" "-a" "def9fb16eda76d1f64137d39a7b3e5de6d8c56f046016a6da14bc11af0551768", kill_on_drop: false }` [INFO] [stderr] Compiling mungos v0.0.11 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.58s [INFO] running `Command { std: "docker" "inspect" "def9fb16eda76d1f64137d39a7b3e5de6d8c56f046016a6da14bc11af0551768", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "def9fb16eda76d1f64137d39a7b3e5de6d8c56f046016a6da14bc11af0551768", kill_on_drop: false }` [INFO] [stdout] def9fb16eda76d1f64137d39a7b3e5de6d8c56f046016a6da14bc11af0551768 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 57f41972db45fde632996c8f1dd67b0c19077d1731c530c9c8d0842d6e806c86 [INFO] running `Command { std: "docker" "start" "-a" "57f41972db45fde632996c8f1dd67b0c19077d1731c530c9c8d0842d6e806c86", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.14s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/mungos-5032c29b95c90979) [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests mungos [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 10 tests [INFO] [stdout] test src/queries/get_most_recent_with_skip.rs - queries::get_most_recent_with_skip (line 10) ... FAILED [INFO] [stdout] test src/queries/get_many_by_id.rs - queries::get_many_by_id (line 8) ... FAILED [INFO] [stdout] test src/queries/get_full_collection.rs - queries::get_full_collection (line 8) ... FAILED [INFO] [stdout] test src/queries/get_one.rs - queries::get_one (line 8) ... FAILED [INFO] [stdout] test src/queries/get_most_recent.rs - queries::get_most_recent (line 10) ... FAILED [INFO] [stdout] test src/queries/get_some.rs - queries::get_some (line 10) ... FAILED [INFO] [stdout] test src/queries/delete_one.rs - queries::delete_one (line 7) ... FAILED [INFO] [stdout] test src/queries/create_one.rs - queries::create_one (line 7) ... FAILED [INFO] [stdout] test src/queries/create_many.rs - queries::create_many (line 8) ... FAILED [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] [stdout] test src/queries/update_one.rs - queries::update_one (line 9) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/queries/get_most_recent_with_skip.rs - queries::get_most_recent_with_skip (line 10) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `use` [INFO] [stdout] --> src/queries/get_most_recent_with_skip.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mungos::{Mungos} [INFO] [stdout] | - expected `;` [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | ^^^ unexpected token [INFO] [stdout] | [INFO] [stdout] = note: glob-like brace syntax must be last on the path [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queries/get_many_by_id.rs - queries::get_many_by_id (line 8) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `use` [INFO] [stdout] --> src/queries/get_many_by_id.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mungos::{Mungos} [INFO] [stdout] | - expected `;` [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | ^^^ unexpected token [INFO] [stdout] | [INFO] [stdout] = note: glob-like brace syntax must be last on the path [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queries/get_full_collection.rs - queries::get_full_collection (line 8) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `use` [INFO] [stdout] --> src/queries/get_full_collection.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mungos::{Mungos} [INFO] [stdout] | - expected `;` [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | ^^^ unexpected token [INFO] [stdout] | [INFO] [stdout] = note: glob-like brace syntax must be last on the path [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queries/get_one.rs - queries::get_one (line 8) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `use` [INFO] [stdout] --> src/queries/get_one.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mungos::{Mungos} [INFO] [stdout] | - expected `;` [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | ^^^ unexpected token [INFO] [stdout] | [INFO] [stdout] = note: glob-like brace syntax must be last on the path [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queries/get_most_recent.rs - queries::get_most_recent (line 10) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `use` [INFO] [stdout] --> src/queries/get_most_recent.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mungos::{Mungos} [INFO] [stdout] | - expected `;` [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | ^^^ unexpected token [INFO] [stdout] | [INFO] [stdout] = note: glob-like brace syntax must be last on the path [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queries/get_some.rs - queries::get_some (line 10) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/queries/get_some.rs:28:64 [INFO] [stdout] | [INFO] [stdout] 21 | let find_options_2 = FindOptions::builder().skip(5).build() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 22 | let items_2 = collection.get_some(find_options).await.unwpra() [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/queries/get_some.rs:29:67 [INFO] [stdout] | [INFO] [stdout] 22 | let items_2 = collection.get_some(find_options).await.unwpra() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 23 | } _doctest_main_src_queries_get_some_rs_10_0() } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `mongodb` in `mungos` [INFO] [stdout] --> src/queries/get_some.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 5 | use mungos::mongodb::{options::FindOptions, bson::doc}; [INFO] [stdout] | ^^^^^^^ could not find `mongodb` in `mungos` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/queries/get_some.rs:24:52 [INFO] [stdout] | [INFO] [stdout] 17 | let find_options = FindOptions::builder().sort(doc! { _id: -1 }).limit(10).build(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] mungos::doc [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `Mungos` [INFO] [stdout] --> src/queries/get_some.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 13 | let db = Mungos.new("uri", "app name", timeout).await; [INFO] [stdout] | ^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `Mungos::new` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `timeout` in this scope [INFO] [stdout] --> src/queries/get_some.rs:20:44 [INFO] [stdout] | [INFO] [stdout] 13 | let db = Mungos.new("uri", "app name", timeout).await; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FindOptions` [INFO] [stdout] --> src/queries/get_some.rs:24:24 [INFO] [stdout] | [INFO] [stdout] 17 | let find_options = FindOptions::builder().sort(doc! { _id: -1 }).limit(10).build(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use mongodb::options::FindOptions; [INFO] [stdout] | [INFO] [stdout] 3 | use mungos::FindOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FindOptions` [INFO] [stdout] --> src/queries/get_some.rs:28:26 [INFO] [stdout] | [INFO] [stdout] 21 | let find_options_2 = FindOptions::builder().skip(5).build() [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use mongodb::options::FindOptions; [INFO] [stdout] | [INFO] [stdout] 3 | use mungos::FindOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/queries/get_some.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_get_some_rs_10_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 13 | let db = Mungos.new("uri", "app name", timeout).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/queries/get_some.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_get_some_rs_10_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 18 | let items = collection.get_some(find_options).await.unwrap(); [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/queries/get_some.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_get_some_rs_10_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 22 | let items_2 = collection.get_some(find_options).await.unwpra() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queries/delete_one.rs - queries::delete_one (line 7) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `use` [INFO] [stdout] --> src/queries/delete_one.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mungos::{Mungos} [INFO] [stdout] | - expected `;` [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | ^^^ unexpected token [INFO] [stdout] | [INFO] [stdout] = note: glob-like brace syntax must be last on the path [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queries/create_one.rs - queries::create_one (line 7) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `use` [INFO] [stdout] --> src/queries/create_one.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mungos::{Mungos} [INFO] [stdout] | - expected `;` [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | ^^^ unexpected token [INFO] [stdout] | [INFO] [stdout] = note: glob-like brace syntax must be last on the path [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queries/create_many.rs - queries::create_many (line 8) stdout ---- [INFO] [stdout] error: expected identifier, found `...` [INFO] [stdout] --> src/queries/create_many.rs:20:36 [INFO] [stdout] | [INFO] [stdout] 15 | let items = Vec::from([ { Item{...} }, { Item{...} }, { Item{...} }, ...]) [INFO] [stdout] | ---- ^^^ expected identifier [INFO] [stdout] | | [INFO] [stdout] | while parsing this struct [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `...` [INFO] [stdout] --> src/queries/create_many.rs:20:51 [INFO] [stdout] | [INFO] [stdout] 15 | let items = Vec::from([ { Item{...} }, { Item{...} }, { Item{...} }, ...]) [INFO] [stdout] | ---- ^^^ expected identifier [INFO] [stdout] | | [INFO] [stdout] | while parsing this struct [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `...` [INFO] [stdout] --> src/queries/create_many.rs:20:66 [INFO] [stdout] | [INFO] [stdout] 15 | let items = Vec::from([ { Item{...} }, { Item{...} }, { Item{...} }, ...]) [INFO] [stdout] | ---- ^^^ expected identifier [INFO] [stdout] | | [INFO] [stdout] | while parsing this struct [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/queries/create_many.rs:20:74 [INFO] [stdout] | [INFO] [stdout] 15 | let items = Vec::from([ { Item{...} }, { Item{...} }, { Item{...} }, ...]) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 15 | let items = Vec::from([ { Item{...} }, { Item{...} }, { Item{...} }, ..]) [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 15 | let items = Vec::from([ { Item{...} }, { Item{...} }, { Item{...} }, ..=]) [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/queries/create_many.rs:20:74 [INFO] [stdout] | [INFO] [stdout] 15 | let items = Vec::from([ { Item{...} }, { Item{...} }, { Item{...} }, ...]) [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `db` [INFO] [stdout] --> src/queries/create_many.rs:20:79 [INFO] [stdout] | [INFO] [stdout] 15 | let items = Vec::from([ { Item{...} }, { Item{...} }, { Item{...} }, ...]) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 16 | db.collection.create_many(items).await.unwrap() [INFO] [stdout] | -- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `Mungos` [INFO] [stdout] --> src/queries/create_many.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 12 | let db = Mungos.new("uri", "app name", timeout).await; [INFO] [stdout] | ^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `Mungos::new` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `timeout` in this scope [INFO] [stdout] --> src/queries/create_many.rs:17:44 [INFO] [stdout] | [INFO] [stdout] 12 | let db = Mungos.new("uri", "app name", timeout).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/queries/create_many.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_create_many_rs_8_0() { [INFO] [stdout] | -------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | let db = Mungos.new("uri", "app name", timeout).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/queries/create_many.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_create_many_rs_8_0() { [INFO] [stdout] | -------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 16 | db.collection.create_many(items).await.unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `field` in initializer of `Item` [INFO] [stdout] --> src/queries/create_many.rs:20:31 [INFO] [stdout] | [INFO] [stdout] 15 | let items = Vec::from([ { Item{...} }, { Item{...} }, { Item{...} }, ...]) [INFO] [stdout] | ^^^^ missing `field` [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `field` in initializer of `Item` [INFO] [stdout] --> src/queries/create_many.rs:20:46 [INFO] [stdout] | [INFO] [stdout] 15 | let items = Vec::from([ { Item{...} }, { Item{...} }, { Item{...} }, ...]) [INFO] [stdout] | ^^^^ missing `field` [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `field` in initializer of `Item` [INFO] [stdout] --> src/queries/create_many.rs:20:61 [INFO] [stdout] | [INFO] [stdout] 15 | let items = Vec::from([ { Item{...} }, { Item{...} }, { Item{...} }, ...]) [INFO] [stdout] | ^^^^ missing `field` [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0423, E0425, E0586, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queries/update_one.rs - queries::update_one (line 9) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/queries/update_one.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 15 | let id = "..." [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 16 | let new_item = Item { field: "..." } [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/queries/update_one.rs:22:41 [INFO] [stdout] | [INFO] [stdout] 16 | let new_item = Item { field: "..." } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 17 | let items = collection.update_one(id, item).await.unwrap(); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `Mungos` [INFO] [stdout] --> src/queries/update_one.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 12 | let db = Mungos.new("uri", "app name", timeout).await; [INFO] [stdout] | ^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `Mungos::new` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `timeout` in this scope [INFO] [stdout] --> src/queries/update_one.rs:18:44 [INFO] [stdout] | [INFO] [stdout] 12 | let db = Mungos.new("uri", "app name", timeout).await; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `item` in this scope [INFO] [stdout] --> src/queries/update_one.rs:23:43 [INFO] [stdout] | [INFO] [stdout] 17 | let items = collection.update_one(id, item).await.unwrap(); [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/queries/update_one.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_update_one_rs_9_0() { [INFO] [stdout] | ------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | let db = Mungos.new("uri", "app name", timeout).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/queries/update_one.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_update_one_rs_9_0() { [INFO] [stdout] | ------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 17 | let items = collection.update_one(id, item).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/queries/update_one.rs:22:34 [INFO] [stdout] | [INFO] [stdout] 16 | let new_item = Item { field: "..." } [INFO] [stdout] | ^^^^^- help: try using a conversion method: `.to_string()` [INFO] [stdout] | | [INFO] [stdout] | expected struct `std::string::String`, found `&str` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0423, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/queries/create_many.rs - queries::create_many (line 8) [INFO] [stdout] src/queries/create_one.rs - queries::create_one (line 7) [INFO] [stdout] src/queries/delete_one.rs - queries::delete_one (line 7) [INFO] [stdout] src/queries/get_full_collection.rs - queries::get_full_collection (line 8) [INFO] [stdout] src/queries/get_many_by_id.rs - queries::get_many_by_id (line 8) [INFO] [stdout] src/queries/get_most_recent.rs - queries::get_most_recent (line 10) [INFO] [stdout] src/queries/get_most_recent_with_skip.rs - queries::get_most_recent_with_skip (line 10) [INFO] [stdout] src/queries/get_one.rs - queries::get_one (line 8) [INFO] [stdout] src/queries/get_some.rs - queries::get_some (line 10) [INFO] [stdout] src/queries/update_one.rs - queries::update_one (line 9) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 10 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.84s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "57f41972db45fde632996c8f1dd67b0c19077d1731c530c9c8d0842d6e806c86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57f41972db45fde632996c8f1dd67b0c19077d1731c530c9c8d0842d6e806c86", kill_on_drop: false }` [INFO] [stdout] 57f41972db45fde632996c8f1dd67b0c19077d1731c530c9c8d0842d6e806c86