[INFO] fetching crate mongodb-macro 1.0.4... [INFO] testing mongodb-macro-1.0.4 against 1.90.0 for beta-1.91-3 [INFO] extracting crate mongodb-macro 1.0.4 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate mongodb-macro 1.0.4 [INFO] finished tweaking crates.io crate mongodb-macro 1.0.4 [INFO] tweaked toml for crates.io crate mongodb-macro 1.0.4 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate mongodb-macro 1.0.4 on toolchain 1.90.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 268 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded typed-builder-macro v0.20.1 [INFO] [stderr] Downloaded fsio v0.4.1 [INFO] [stderr] Downloaded typed-builder v0.20.1 [INFO] [stderr] Downloaded nested-env-parser v1.1.0 [INFO] [stderr] Downloaded const-random-macro v0.1.16 [INFO] [stderr] Downloaded macro_magic v0.5.1 [INFO] [stderr] Downloaded tokio-rustls v0.26.4 [INFO] [stderr] Downloaded windows-targets v0.53.4 [INFO] [stderr] Downloaded const-random v0.1.18 [INFO] [stderr] Downloaded webpki-roots v0.26.11 [INFO] [stderr] Downloaded linked-hash-map v0.5.6 [INFO] [stderr] Downloaded macro_magic_core_macros v0.5.1 [INFO] [stderr] Downloaded derive-where v1.6.0 [INFO] [stderr] Downloaded enum-as-inner v0.6.1 [INFO] [stderr] Downloaded anstyle v1.0.13 [INFO] [stderr] Downloaded mongocrypt v0.3.1 [INFO] [stderr] Downloaded clap v4.5.48 [INFO] [stderr] Downloaded clap_derive v4.5.47 [INFO] [stderr] Downloaded hickory-resolver v0.24.4 [INFO] [stderr] Downloaded schemars v0.9.0 [INFO] [stderr] Downloaded rustls-webpki v0.103.6 [INFO] [stderr] Downloaded clap_builder v4.5.48 [INFO] [stderr] Downloaded bson v2.15.0 [INFO] [stderr] Downloaded serde_with v3.14.1 [INFO] [stderr] Downloaded webpki-roots v1.0.2 [INFO] [stderr] Downloaded unicode-bidi v0.3.18 [INFO] [stderr] Downloaded serde_with_macros v3.14.1 [INFO] [stderr] Downloaded unicode-properties v0.1.3 [INFO] [stderr] Downloaded derive-syn-parse v0.2.0 [INFO] [stderr] Downloaded stringprep v0.1.5 [INFO] [stderr] Downloaded ipconfig v0.3.2 [INFO] [stderr] Downloaded lru-cache v0.1.2 [INFO] [stderr] Downloaded rustls v0.23.32 [INFO] [stderr] Downloaded hickory-proto v0.24.4 [INFO] [stderr] Downloaded mongodb v3.3.0 [INFO] [stderr] Downloaded mongocrypt-sys v0.1.4+1.12.0 [INFO] [stderr] Downloaded mongodb-internal-macros v3.3.0 [INFO] [stderr] Downloaded take_mut v0.2.2 [INFO] [stderr] Downloaded resolv-conf v0.7.5 [INFO] [stderr] Downloaded rustc_version_runtime v0.3.0 [INFO] [stderr] Downloaded macro_magic_core v0.5.1 [INFO] [stderr] Downloaded macro_magic_macros v0.5.1 [INFO] [stderr] Downloaded envmnt v0.10.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 69c5a3de83bd2117922ac19dcf8a5f3c19a90b5b36140e6f7235a9e2f55c56bc [INFO] running `Command { std: "docker" "start" "-a" "69c5a3de83bd2117922ac19dcf8a5f3c19a90b5b36140e6f7235a9e2f55c56bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "69c5a3de83bd2117922ac19dcf8a5f3c19a90b5b36140e6f7235a9e2f55c56bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69c5a3de83bd2117922ac19dcf8a5f3c19a90b5b36140e6f7235a9e2f55c56bc", kill_on_drop: false }` [INFO] [stdout] 69c5a3de83bd2117922ac19dcf8a5f3c19a90b5b36140e6f7235a9e2f55c56bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d716cb2542a6e106e5359f3bccfa50159761d7f13c497b7240a78ff2ac5dad38 [INFO] running `Command { std: "docker" "start" "-a" "d716cb2542a6e106e5359f3bccfa50159761d7f13c497b7240a78ff2ac5dad38", kill_on_drop: false }` [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling fsio v0.4.1 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling clap_builder v4.5.48 [INFO] [stderr] Compiling envmnt v0.10.4 [INFO] [stderr] Compiling nested-env-parser v1.1.0 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling clap v4.5.48 [INFO] [stderr] Compiling mongodb-macro v1.0.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.01s [INFO] running `Command { std: "docker" "inspect" "d716cb2542a6e106e5359f3bccfa50159761d7f13c497b7240a78ff2ac5dad38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d716cb2542a6e106e5359f3bccfa50159761d7f13c497b7240a78ff2ac5dad38", kill_on_drop: false }` [INFO] [stdout] d716cb2542a6e106e5359f3bccfa50159761d7f13c497b7240a78ff2ac5dad38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 07d9b8a2b7b27d23be256acea3ae71ba846b1b67039918d004a6bc22899edff9 [INFO] running `Command { std: "docker" "start" "-a" "07d9b8a2b7b27d23be256acea3ae71ba846b1b67039918d004a6bc22899edff9", kill_on_drop: false }` [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling find-msvc-tools v0.1.2 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Compiling deranged v0.5.4 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling mongocrypt-sys v0.1.4+1.12.0 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling rustc_version_runtime v0.3.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling serde_bytes v0.11.19 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling webpki-roots v1.0.2 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling resolv-conf v0.7.5 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling macro_magic_core_macros v0.5.1 [INFO] [stderr] Compiling derive-syn-parse v0.2.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling typed-builder-macro v0.20.1 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling derive-where v1.6.0 [INFO] [stderr] Compiling macro_magic_core v0.5.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling macro_magic_macros v0.5.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling typed-builder v0.20.1 [INFO] [stderr] Compiling macro_magic v0.5.1 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling mongodb-internal-macros v3.3.0 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Compiling clap v4.5.48 [INFO] [stderr] Compiling mongodb-macro v1.0.4 (/opt/rustwide/workdir) [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Compiling serde_with_macros v3.14.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling serde_with v3.14.1 [INFO] [stderr] Compiling bson v2.15.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling rustls-webpki v0.103.6 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling mongocrypt v0.3.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling hickory-proto v0.24.4 [INFO] [stderr] Compiling hickory-resolver v0.24.4 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling mongodb v3.3.0 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 32.02s [INFO] running `Command { std: "docker" "inspect" "07d9b8a2b7b27d23be256acea3ae71ba846b1b67039918d004a6bc22899edff9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07d9b8a2b7b27d23be256acea3ae71ba846b1b67039918d004a6bc22899edff9", kill_on_drop: false }` [INFO] [stdout] 07d9b8a2b7b27d23be256acea3ae71ba846b1b67039918d004a6bc22899edff9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6da1f21c0de79137ec4d11b3d04c35fa5a742d970eaa68fa69d0e2942eeda697 [INFO] running `Command { std: "docker" "start" "-a" "6da1f21c0de79137ec4d11b3d04c35fa5a742d970eaa68fa69d0e2942eeda697", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.31s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mongodb_macro-051a451f1026c8df) [INFO] [stdout] [INFO] [stderr] Doc-tests mongodb_macro [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 20 tests [INFO] [stdout] test src/lib.rs - (line 68) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 42) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 17) - compile ... FAILED [INFO] [stdout] test src/database.rs - database::database_config (line 24) ... ok [INFO] [stdout] test src/client.rs - client::client_config (line 7) ... ok [INFO] [stdout] test src/client.rs - client::client_config (line 23) ... ok [INFO] [stdout] test src/lib.rs - (line 94) - compile ... FAILED [INFO] [stdout] test src/collection.rs - collection::collection_config (line 22) ... ok [INFO] [stdout] test src/collection.rs - collection::collection (line 46) ... FAILED [INFO] [stdout] test src/collection.rs - collection::collection (line 62) ... FAILED [INFO] [stdout] test src/opts.rs - opts::config (line 22) ... ok [INFO] [stdout] test src/collection.rs - collection::collection (line 78) ... FAILED [INFO] [stdout] test src/opts.rs - opts::config (line 5) ... ok [INFO] [stdout] test src/collection.rs - collection::collection_config (line 7) ... ok [INFO] [stdout] test src/database.rs - database::database_config (line 7) ... ok [INFO] [stdout] test src/opts.rs - opts::config (line 37) ... ok [INFO] [stdout] test src/database.rs - database::database (line 61) ... ok [INFO] [stdout] test src/client.rs - client::client (line 55) ... ok [INFO] [stdout] test src/database.rs - database::database (line 79) ... ok [INFO] [stdout] test src/client.rs - client::client (line 72) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 68) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 23 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 23 - ... [INFO] [stdout] 23 + .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 23 - ... [INFO] [stdout] 23 + ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 23 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 23 - ... [INFO] [stdout] 23 + .. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:77:1 [INFO] [stdout] | [INFO] [stdout] 11 | async fn main() -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0586, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0586`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 42) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 23 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 23 - ... [INFO] [stdout] 23 + .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 23 - ... [INFO] [stdout] 23 + ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 23 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 23 - ... [INFO] [stdout] 23 + .. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 12 | async fn main() -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0586, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0586`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 17) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 22 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 22 - ... [INFO] [stdout] 22 + .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 22 - ... [INFO] [stdout] 22 + ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 22 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 22 - ... [INFO] [stdout] 22 + .. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 9 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 9 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 9 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `T` cannot be sent between threads safely [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Database::collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/db.rs:120:26 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn collection(&self, name: &str) -> Collection { [INFO] [stdout] | ^^^^ required by this bound in `Database::collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 9 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `T` cannot be shared between threads safely [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Database::collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/db.rs:120:33 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn collection(&self, name: &str) -> Collection { [INFO] [stdout] | ^^^^ required by this bound in `Database::collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 9 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 9 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 9 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 9 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 9 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 9 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 13 | async fn main() -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0586, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 94) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 28 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 28 - ... [INFO] [stdout] 28 + .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 28 - ... [INFO] [stdout] 28 + ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 28 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 28 - ... [INFO] [stdout] 28 + .. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 17 | async fn main() -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0586, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0586`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/collection.rs - collection::collection (line 46) stdout ---- [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `T` cannot be sent between threads safely [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Database::collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/db.rs:120:26 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn collection(&self, name: &str) -> Collection { [INFO] [stdout] | ^^^^ required by this bound in `Database::collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `T` cannot be shared between threads safely [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Database::collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/db.rs:120:33 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn collection(&self, name: &str) -> Collection { [INFO] [stdout] | ^^^^ required by this bound in `Database::collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/collection.rs - collection::collection (line 62) stdout ---- [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts; ("MONGO_DB_URL", "MONGO_DB_NAME", "MONGO_COLLECTION_NAME")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts; ("MONGO_DB_URL", "MONGO_DB_NAME", "MONGO_COLLECTION_NAME")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts; ("MONGO_DB_URL", "MONGO_DB_NAME", "MONGO_COLLECTION_NAME")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `T` cannot be sent between threads safely [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Database::collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/db.rs:120:26 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn collection(&self, name: &str) -> Collection { [INFO] [stdout] | ^^^^ required by this bound in `Database::collection` [INFO] [stdout] = note: this error originates in the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts; ("MONGO_DB_URL", "MONGO_DB_NAME", "MONGO_COLLECTION_NAME")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `T` cannot be shared between threads safely [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Database::collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/db.rs:120:33 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn collection(&self, name: &str) -> Collection { [INFO] [stdout] | ^^^^ required by this bound in `Database::collection` [INFO] [stdout] = note: this error originates in the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts; ("MONGO_DB_URL", "MONGO_DB_NAME", "MONGO_COLLECTION_NAME")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts; ("MONGO_DB_URL", "MONGO_DB_NAME", "MONGO_COLLECTION_NAME")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts; ("MONGO_DB_URL", "MONGO_DB_NAME", "MONGO_COLLECTION_NAME")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts; ("MONGO_DB_URL", "MONGO_DB_NAME", "MONGO_COLLECTION_NAME")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts; ("MONGO_DB_URL", "MONGO_DB_NAME", "MONGO_COLLECTION_NAME")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts; ("MONGO_DB_URL", "MONGO_DB_NAME", "MONGO_COLLECTION_NAME")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/collection.rs - collection::collection (line 78) stdout ---- [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `T` cannot be sent between threads safely [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Database::collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/db.rs:120:26 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn collection(&self, name: &str) -> Collection { [INFO] [stdout] | ^^^^ required by this bound in `Database::collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `T` cannot be shared between threads safely [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Database::collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/db.rs:120:33 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn collection(&self, name: &str) -> Collection { [INFO] [stdout] | ^^^^ required by this bound in `Database::collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Send` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 4 | mongodb_macro::collection!(CollectionFactory; CollectionFactoryOpts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `mongodb::Collection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mongodb-3.3.0/src/coll.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Collection [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 75 | where [INFO] [stdout] 76 | T: Send + Sync, [INFO] [stdout] | ^^^^ required by this bound in `Collection` [INFO] [stdout] = note: this error originates in the macro `$crate::collection` which comes from the expansion of the macro `mongodb_macro::collection` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting type parameter `T` with trait `Sync` [INFO] [stdout] --> /opt/rustwide/workdir/src/collection.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118| pub async fn create(&self) -> Result<::mongodb::Collection, ::mongodb::error::Error> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/collection.rs - collection::collection (line 46) [INFO] [stdout] src/collection.rs - collection::collection (line 62) [INFO] [stdout] src/collection.rs - collection::collection (line 78) [INFO] [stdout] src/lib.rs - (line 17) [INFO] [stdout] src/lib.rs - (line 42) [INFO] [stdout] src/lib.rs - (line 68) [INFO] [stdout] src/lib.rs - (line 94) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 13 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.55s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6da1f21c0de79137ec4d11b3d04c35fa5a742d970eaa68fa69d0e2942eeda697", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6da1f21c0de79137ec4d11b3d04c35fa5a742d970eaa68fa69d0e2942eeda697", kill_on_drop: false }` [INFO] [stdout] 6da1f21c0de79137ec4d11b3d04c35fa5a742d970eaa68fa69d0e2942eeda697