[INFO] fetching crate mungos 0.3.1... [INFO] testing mungos-0.3.1 against master#159ba8a92c9e2fa4121f106176309521f4af87e9+rustflags=-Copt-level=3 for pr-107051 [INFO] extracting crate mungos 0.3.1 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate mungos 0.3.1 on toolchain 159ba8a92c9e2fa4121f106176309521f4af87e9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate mungos 0.3.1 [INFO] finished tweaking crates.io crate mungos 0.3.1 [INFO] tweaked toml for crates.io crate mungos 0.3.1 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly" "/workspace/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c7844c2cb084d36ee8b629c578411656689564a558288914749101559b418088 [INFO] running `Command { std: "docker" "start" "-a" "c7844c2cb084d36ee8b629c578411656689564a558288914749101559b418088", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7844c2cb084d36ee8b629c578411656689564a558288914749101559b418088", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7844c2cb084d36ee8b629c578411656689564a558288914749101559b418088", kill_on_drop: false }` [INFO] [stdout] c7844c2cb084d36ee8b629c578411656689564a558288914749101559b418088 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3709f6a1033257b680df21abb0c3dd5630f27f8a34466f2d139c697e15a67ef4 [INFO] running `Command { std: "docker" "start" "-a" "3709f6a1033257b680df21abb0c3dd5630f27f8a34466f2d139c697e15a67ef4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.50 [INFO] [stderr] Compiling quote v1.0.23 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling futures-core v0.3.25 [INFO] [stderr] Compiling once_cell v1.17.0 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling futures-channel v0.3.25 [INFO] [stderr] Compiling jobserver v0.1.25 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling futures-task v0.3.25 [INFO] [stderr] Compiling futures-sink v0.3.25 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling cc v1.0.78 [INFO] [stderr] Compiling tokio v1.24.2 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling unicode-bidi v0.3.10 [INFO] [stderr] Compiling futures-util v0.3.25 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling bytes v1.3.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling futures-io v0.3.25 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling async-trait v0.1.62 [INFO] [stderr] Compiling parking_lot_core v0.9.6 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Compiling itoa v1.0.5 [INFO] [stderr] Compiling time-core v0.1.0 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling rustls v0.20.8 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling time-macros v0.2.6 [INFO] [stderr] Compiling rustc_version_runtime v0.2.1 [INFO] [stderr] Compiling ipnet v2.7.1 [INFO] [stderr] Compiling block-buffer v0.10.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling ryu v1.0.12 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling data-encoding v2.3.3 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling snap v1.1.0 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling anyhow v1.0.68 [INFO] [stderr] Compiling iana-time-zone v0.1.53 [INFO] [stderr] Compiling chrono v0.4.23 [INFO] [stderr] Compiling flate2 v1.0.25 [INFO] [stderr] Compiling rustls-pemfile v0.3.0 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling pbkdf2 v0.10.1 [INFO] [stderr] Compiling md-5 v0.10.5 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling os_info v3.5.1 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling time v0.3.17 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling zstd-sys v2.0.5+zstd.1.5.2 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling webpki-roots v0.22.6 [INFO] [stderr] Compiling zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Compiling futures-macro v0.3.25 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling enum-as-inner v0.4.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Compiling tokio-rustls v0.23.4 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling futures-executor v0.3.25 [INFO] [stderr] Compiling futures v0.3.25 [INFO] [stderr] Compiling trust-dns-proto v0.21.2 [INFO] [stderr] Compiling trust-dns-resolver v0.21.2 [INFO] [stderr] Compiling serde_bytes v0.11.8 [INFO] [stderr] Compiling uuid v1.2.2 [INFO] [stderr] Compiling serde_with v1.14.0 [INFO] [stderr] Compiling bson v2.5.0 [INFO] [stderr] Compiling mongodb v2.3.1 [INFO] [stderr] Compiling mungos v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7m 17s [INFO] running `Command { std: "docker" "inspect" "3709f6a1033257b680df21abb0c3dd5630f27f8a34466f2d139c697e15a67ef4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3709f6a1033257b680df21abb0c3dd5630f27f8a34466f2d139c697e15a67ef4", kill_on_drop: false }` [INFO] [stdout] 3709f6a1033257b680df21abb0c3dd5630f27f8a34466f2d139c697e15a67ef4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d51626c940f8c25feb8eba9df72370b83fc8bc580e6f658bf948086cc227a7e4 [INFO] running `Command { std: "docker" "start" "-a" "d51626c940f8c25feb8eba9df72370b83fc8bc580e6f658bf948086cc227a7e4", kill_on_drop: false }` [INFO] [stderr] Compiling mungos v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.56s [INFO] running `Command { std: "docker" "inspect" "d51626c940f8c25feb8eba9df72370b83fc8bc580e6f658bf948086cc227a7e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d51626c940f8c25feb8eba9df72370b83fc8bc580e6f658bf948086cc227a7e4", kill_on_drop: false }` [INFO] [stdout] d51626c940f8c25feb8eba9df72370b83fc8bc580e6f658bf948086cc227a7e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5f6972acbf812da8a22b74df701c5300eb1857a0085a618259bf326542445890 [INFO] running `Command { std: "docker" "start" "-a" "5f6972acbf812da8a22b74df701c5300eb1857a0085a618259bf326542445890", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.18s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mungos-692370739d3d7a79) [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 mungos [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/queries/create_many.rs - queries::create_many (line 8) ... FAILED [INFO] [stdout] test src/queries/get_some.rs - queries::get_some (line 10) ... FAILED [INFO] [stdout] test src/queries/create_one.rs - queries::create_one (line 7) ... 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/delete_many.rs - queries::delete_many (line 5) ... FAILED [INFO] [stdout] test src/queries/get_most_recent.rs - queries::get_most_recent (line 11) ... 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/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] [stderr] error: doctest failed, to rerun pass `--doc` [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[E0061]: this function takes 4 arguments but 3 arguments were supplied [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] | ^^^^^^^^^^^---------------------------- an argument is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/mungos.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 12 | let db = Mungos::new("uri", "app name", timeout, /* compressors */).await; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `connection` found for enum `Result` 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] | ^^^^^^^^^^ method not found in `Result` [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[E0609]: no field `collection` on type `Result` [INFO] [stdout] --> src/queries/create_many.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 16 | db.collection.create_many(items).await.unwrap() [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0063, E0425, E0586, E0599, E0609, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [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:27:64 [INFO] [stdout] | [INFO] [stdout] 20 | let find_options_2 = FindOptions::builder().skip(5).build() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 21 | let items_2 = collection.get_some(None, find_options_2).await.unwrap() [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/queries/get_some.rs:28:75 [INFO] [stdout] | [INFO] [stdout] 21 | let items_2 = collection.get_some(None, find_options_2).await.unwrap() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 22 | } _doctest_main_src_queries_get_some_rs_10_0() } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `timeout` in this scope [INFO] [stdout] --> src/queries/get_some.rs:18:45 [INFO] [stdout] | [INFO] [stdout] 11 | let db = Mungos::new("uri", "app name", timeout, None).await; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `_id` in this scope [INFO] [stdout] --> src/queries/get_some.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 16 | let find_options = FindOptions::builder().sort(doc! { _id: -1 }).limit(10).build(); [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/get_some.rs:18:59 [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] 11 | let db = Mungos::new("uri", "app name", timeout, None).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:24:58 [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] 17 | let items = collection.get_some(filter, 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:28:60 [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] 21 | let items_2 = collection.get_some(None, find_options_2).await.unwrap() [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `connection` found for enum `Result` in the current scope [INFO] [stdout] --> src/queries/get_some.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 12 | let collection = db.connection::("db name", "collection name"); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, 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_one.rs - queries::create_one (line 7) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `use` [INFO] [stdout] --> src/queries/create_one.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 4 | use mungos::{Mungos} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `#` [INFO] [stdout] --> src/queries/create_one.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `timeout` in this scope [INFO] [stdout] --> src/queries/create_one.rs:16: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_one.rs:16:53 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_create_one_rs_7_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_one.rs:20:32 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_create_one_rs_7_0() { [INFO] [stdout] | ------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 16 | collection.create_one(item).await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/queries/create_one.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 12 | let db = Mungos::new("uri", "app name", timeout).await; [INFO] [stdout] | ^^^^^^^^^^^---------------------------- an argument is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/mungos.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 12 | let db = Mungos::new("uri", "app name", timeout, /* compressors */).await; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `connection` found for enum `Result` in the current scope [INFO] [stdout] --> src/queries/create_one.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 13 | let collection = db.connection::("db name", "collection name"); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0599, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [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:9:21 [INFO] [stdout] | [INFO] [stdout] 4 | use mungos::{Mungos} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `#` [INFO] [stdout] --> src/queries/get_many_by_id.rs:10:40 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `timeout` in this scope [INFO] [stdout] --> src/queries/get_many_by_id.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/get_many_by_id.rs:17:53 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_get_many_by_id_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/get_many_by_id.rs:21:35 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_get_many_by_id_rs_8_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 16 | collection.get_many_by_id(ids).await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/queries/get_many_by_id.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 12 | let db = Mungos::new("uri", "app name", timeout).await; [INFO] [stdout] | ^^^^^^^^^^^---------------------------- an argument is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/mungos.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 12 | let db = Mungos::new("uri", "app name", timeout, /* compressors */).await; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `connection` found for enum `Result` in the current scope [INFO] [stdout] --> src/queries/get_many_by_id.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 13 | let collection = db.connection::("db name", "collection name"); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0599, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [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:8:31 [INFO] [stdout] | [INFO] [stdout] 4 | use mungos::{Mungos, ObjectId} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `#` [INFO] [stdout] --> src/queries/delete_one.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `,`, or `}`, found `field` [INFO] [stdout] --> src/queries/delete_one.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 9 | _id: ObjectId [INFO] [stdout] | ^ help: try adding a comma: `,` [INFO] [stdout] [INFO] [stdout] error: expected `,` [INFO] [stdout] --> src/queries/delete_one.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 10 | field: String [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `timeout` in this scope [INFO] [stdout] --> src/queries/delete_one.rs:17: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[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/queries/delete_one.rs:17:53 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_delete_one_rs_7_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/delete_one.rs:21:30 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_delete_one_rs_7_0() { [INFO] [stdout] | ------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 17 | collection.delete_one(id).await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/queries/delete_one.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 13 | let db = Mungos::new("uri", "app name", timeout).await; [INFO] [stdout] | ^^^^^^^^^^^---------------------------- an argument is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/mungos.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 13 | let db = Mungos::new("uri", "app name", timeout, /* compressors */).await; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `connection` found for enum `Result` in the current scope [INFO] [stdout] --> src/queries/delete_one.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 14 | let collection = db.connection::("db name", "collection name"); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0599, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [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:6:26 [INFO] [stdout] | [INFO] [stdout] 4 | use mungos::{Mungos, doc} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `#` [INFO] [stdout] --> src/queries/delete_many.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `timeout` in this scope [INFO] [stdout] --> src/queries/delete_many.rs:14: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/delete_many.rs:14:53 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_delete_many_rs_5_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/delete_many.rs:18:54 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_delete_many_rs_5_0() { [INFO] [stdout] | -------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 16 | collection.delete_many(doc! { "field": "apple" }).await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/queries/delete_many.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 12 | let db = Mungos::new("uri", "app name", timeout).await; [INFO] [stdout] | ^^^^^^^^^^^---------------------------- an argument is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/mungos.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 12 | let db = Mungos::new("uri", "app name", timeout, /* compressors */).await; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `connection` found for enum `Result` in the current scope [INFO] [stdout] --> src/queries/delete_many.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 13 | let collection = db.connection::("db name", "collection name"); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0599, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [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:12:21 [INFO] [stdout] | [INFO] [stdout] 4 | use mungos::{Mungos} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `#` [INFO] [stdout] --> src/queries/get_most_recent.rs:13:40 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Serialize, Deserialize} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/queries/get_most_recent.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 15 | let n = 10 [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] ... [INFO] [stdout] 19 | let items = collection.get_most_recent(n, 0, None, None).await.unwrap(); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `timeout` in this scope [INFO] [stdout] --> src/queries/get_most_recent.rs:20: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/get_most_recent.rs:20:53 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_get_most_recent_rs_11_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/get_most_recent.rs:27:61 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_queries_get_most_recent_rs_11_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 19 | let items = collection.get_most_recent(n, 0, None, None).await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/queries/get_most_recent.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 12 | let db = Mungos::new("uri", "app name", timeout).await; [INFO] [stdout] | ^^^^^^^^^^^---------------------------- an argument is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/mungos.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 12 | let db = Mungos::new("uri", "app name", timeout, /* compressors */).await; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `connection` found for enum `Result` in the current scope [INFO] [stdout] --> src/queries/get_most_recent.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 13 | let collection = db.connection::("db name", "collection name"); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0599, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [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[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/queries/update_one.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 18 | let db = Mungos::new("uri", "app name", timeout).await; [INFO] [stdout] | ^^^^^^^^^^^---------------------------- an argument is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/mungos.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 18 | let db = Mungos::new("uri", "app name", timeout, /* compressors */).await; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `connection` found for enum `Result` 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] | ^^^^^^^^^^ method not found in `Result` [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 `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] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `ItemUpdate` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/bson-2.5.0/src/ser/mod.rs:194:8 [INFO] [stdout] | [INFO] [stdout] 194 | pub fn to_bson(value: &T) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `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` [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] >> [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] and 17 others [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0425, E0599, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [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_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_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; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.81s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5f6972acbf812da8a22b74df701c5300eb1857a0085a618259bf326542445890", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f6972acbf812da8a22b74df701c5300eb1857a0085a618259bf326542445890", kill_on_drop: false }` [INFO] [stdout] 5f6972acbf812da8a22b74df701c5300eb1857a0085a618259bf326542445890