[INFO] fetching crate mungos 0.2.1... [INFO] testing mungos-0.2.1 against 1.60.0 for beta-1.61-1 [INFO] extracting crate mungos 0.2.1 into /workspace/builds/worker-16/source [INFO] validating manifest of crates.io crate mungos 0.2.1 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate mungos 0.2.1 [INFO] finished tweaking crates.io crate mungos 0.2.1 [INFO] tweaked toml for crates.io crate mungos 0.2.1 written to /workspace/builds/worker-16/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded os_info v3.2.0 [INFO] [stderr] Downloaded md-5 v0.9.1 [INFO] [stderr] Downloaded bson v2.1.0 [INFO] [stderr] Downloaded serde_with_macros v1.5.2 [INFO] [stderr] Downloaded serde_with v1.12.1 [INFO] [stderr] Downloaded typed-builder v0.9.1 [INFO] [stderr] Downloaded mongodb v2.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6d029f7ca9211bf20daa4a96713604b83091036c93054e805708f6c8c2801caa [INFO] running `Command { std: "docker" "start" "-a" "6d029f7ca9211bf20daa4a96713604b83091036c93054e805708f6c8c2801caa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6d029f7ca9211bf20daa4a96713604b83091036c93054e805708f6c8c2801caa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d029f7ca9211bf20daa4a96713604b83091036c93054e805708f6c8c2801caa", kill_on_drop: false }` [INFO] [stdout] 6d029f7ca9211bf20daa4a96713604b83091036c93054e805708f6c8c2801caa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 31b58647373514cac0d141088af55d19a462b00be537d640566cdb1fb2c1e6d2 [INFO] running `Command { std: "docker" "start" "-a" "31b58647373514cac0d141088af55d19a462b00be537d640566cdb1fb2c1e6d2", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling data-encoding v2.3.2 [INFO] [stderr] Compiling ipnet v2.4.0 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling rustls-pemfile v0.2.1 [INFO] [stderr] Compiling mio v0.8.2 [INFO] [stderr] Compiling os_info v3.2.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling ring v0.16.20 [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 unicode-normalization v0.1.19 [INFO] [stderr] Compiling pbkdf2 v0.8.0 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling typed-builder v0.9.1 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling trust-dns-proto v0.20.4 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling trust-dns-resolver v0.20.4 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling serde_with v1.12.1 [INFO] [stderr] Compiling bson v2.1.0 [INFO] [stderr] Compiling mongodb v2.1.0 [INFO] [stderr] Compiling mungos v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 39.53s [INFO] running `Command { std: "docker" "inspect" "31b58647373514cac0d141088af55d19a462b00be537d640566cdb1fb2c1e6d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31b58647373514cac0d141088af55d19a462b00be537d640566cdb1fb2c1e6d2", kill_on_drop: false }` [INFO] [stdout] 31b58647373514cac0d141088af55d19a462b00be537d640566cdb1fb2c1e6d2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] edde1233a4f63bb7033c2f12e801c3f068ce92cdcd45a2ed247d4d7a4e400dd5 [INFO] running `Command { std: "docker" "start" "-a" "edde1233a4f63bb7033c2f12e801c3f068ce92cdcd45a2ed247d4d7a4e400dd5", kill_on_drop: false }` [INFO] [stderr] Compiling mungos v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.00s [INFO] running `Command { std: "docker" "inspect" "edde1233a4f63bb7033c2f12e801c3f068ce92cdcd45a2ed247d4d7a4e400dd5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edde1233a4f63bb7033c2f12e801c3f068ce92cdcd45a2ed247d4d7a4e400dd5", kill_on_drop: false }` [INFO] [stdout] edde1233a4f63bb7033c2f12e801c3f068ce92cdcd45a2ed247d4d7a4e400dd5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] fa35310d3d20ad405354eead29582916e2067e47a996d15e509d21c9a1088ba7 [INFO] running `Command { std: "docker" "start" "-a" "fa35310d3d20ad405354eead29582916e2067e47a996d15e509d21c9a1088ba7", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.23s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/mungos-a89eb1ed26e19d34) [INFO] [stdout] [INFO] [stderr] Doc-tests mungos [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test src/queries/get_most_recent_with_skip.rs - queries::get_most_recent_with_skip (line 11) ... FAILED [INFO] [stdout] test src/queries/get_one.rs - queries::get_one (line 8) ... FAILED [INFO] [stdout] test src/queries/get_many_by_id.rs - queries::get_many_by_id (line 8) ... FAILED [INFO] [stdout] test src/queries/delete_one.rs - queries::delete_one (line 7) ... FAILED [INFO] [stdout] test src/queries/get_many.rs - queries::get_many (line 8) ... FAILED [INFO] [stdout] test src/queries/get_most_recent.rs - queries::get_most_recent (line 11) ... FAILED [INFO] [stdout] test src/queries/create_one.rs - queries::create_one (line 7) ... FAILED [INFO] [stdout] test src/queries/delete_many.rs - queries::delete_many (line 5) ... FAILED [INFO] [stdout] test src/queries/get_some.rs - queries::get_some (line 10) ... FAILED [INFO] [stdout] test src/queries/create_many.rs - queries::create_many (line 8) ... FAILED [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 11) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `use` [INFO] [stdout] --> src/queries/get_most_recent_with_skip.rs:13: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_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/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, ObjectId} [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.rs - queries::get_many (line 8) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `use` [INFO] [stdout] --> src/queries/get_many.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 11) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `use` [INFO] [stdout] --> src/queries/get_most_recent.rs:13: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/delete_many.rs - queries::delete_many (line 5) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `use` [INFO] [stdout] --> src/queries/delete_many.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mungos::{Mungos, doc} [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[E0425]: cannot find value `timeout` in this scope [INFO] [stdout] --> src/queries/get_some.rs:20:45 [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:53 [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:50 [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:52 [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[E0599]: no method named `connection` found for struct `Mungos` in the current scope [INFO] [stdout] --> src/queries/get_some.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 14 | let collection = db.connection::("db name", "collection name"); [INFO] [stdout] | ^^^^^^^^^^ help: there is an associated function with a similar name: `collection` [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0599, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [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[E0425]: cannot find value `timeout` in this scope [INFO] [stdout] --> src/queries/create_many.rs:17:45 [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:53 [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:37 [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[E0599]: no method named `connection` found for struct `Mungos` in the current scope [INFO] [stdout] --> src/queries/create_many.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 13 | let collection = db.connection::("db name", "collection name"); [INFO] [stdout] | ^^^^^^^^^^ help: there is an associated function with a similar name: `collection` [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[E0615]: attempted to take value of method `collection` on type `Mungos` [INFO] [stdout] --> src/queries/create_many.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 16 | db.collection.create_many(items).await.unwrap() [INFO] [stdout] | ^^^^^^^^^^ method, not a field [INFO] [stdout] | [INFO] [stdout] help: use parentheses to call the method [INFO] [stdout] | [INFO] [stdout] 16 | db.collection(_, _).create_many(items).await.unwrap() [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0425, E0586, E0599, E0615, 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:27:19 [INFO] [stdout] | [INFO] [stdout] 21 | let id = "..." [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 22 | let update = ItemUpdate { field1: "..." } [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `collection` [INFO] [stdout] --> src/queries/update_one.rs:28:46 [INFO] [stdout] | [INFO] [stdout] 22 | let update = ItemUpdate { field1: "..." } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 23 | collection.update_one(id, Update::Regular(update.clone())).await.unwrap(); [INFO] [stdout] | ---------- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `timeout` in this scope [INFO] [stdout] --> src/queries/update_one.rs:24:45 [INFO] [stdout] | [INFO] [stdout] 18 | 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/update_one.rs:24:53 [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] 18 | 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:29:63 [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] 23 | collection.update_one(id, Update::Regular(update.clone())).await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `connection` found for struct `Mungos` in the current scope [INFO] [stdout] --> src/queries/update_one.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 19 | let collection = db.connection::("db name", "collection name"); [INFO] [stdout] | ^^^^^^^^^^ help: there is an associated function with a similar name: `collection` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/queries/update_one.rs:28:39 [INFO] [stdout] | [INFO] [stdout] 22 | let update = ItemUpdate { field1: "..." } [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[E0308]: mismatched types [INFO] [stdout] --> src/queries/update_one.rs:30:69 [INFO] [stdout] | [INFO] [stdout] 24 | collection.update_one(id, Update::Custom(doc! { "$set": to_bson(update) })) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found struct `ItemUpdate` [INFO] [stdout] | help: consider borrowing here: `&update` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `ItemUpdate` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `bson::bson::Bson: From>` is not satisfied [INFO] [stdout] --> src/queries/update_one.rs:30:61 [INFO] [stdout] | [INFO] [stdout] 24 | collection.update_one(id, Update::Custom(doc! { "$set": to_bson(update) })) [INFO] [stdout] | ---------------^^^^^^^^^^^^^^^-- [INFO] [stdout] | | | [INFO] [stdout] | | the trait `From>` is not implemented for `bson::bson::Bson` [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] and 20 others [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425, E0599, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [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_many.rs - queries::delete_many (line 5) [INFO] [stdout] src/queries/delete_one.rs - queries::delete_one (line 7) [INFO] [stdout] src/queries/get_many.rs - queries::get_many (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 11) [INFO] [stdout] src/queries/get_most_recent_with_skip.rs - queries::get_most_recent_with_skip (line 11) [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; 11 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.08s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "fa35310d3d20ad405354eead29582916e2067e47a996d15e509d21c9a1088ba7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa35310d3d20ad405354eead29582916e2067e47a996d15e509d21c9a1088ba7", kill_on_drop: false }` [INFO] [stdout] fa35310d3d20ad405354eead29582916e2067e47a996d15e509d21c9a1088ba7