[INFO] fetching crate mongodb-macro 1.0.4... [INFO] testing mongodb-macro-1.0.4 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-2 [INFO] extracting crate mongodb-macro 1.0.4 into /workspace/builds/worker-5-tc2/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-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate mongodb-macro 1.0.4 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 241 packages to latest compatible versions [INFO] [stderr] Adding generic-array v0.14.7 (available: v0.14.9) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 57fac0763f9602309d1e4c0554968222b30d828e0ce41a0c79d7824f1a24b341 [INFO] running `Command { std: "docker" "start" "-a" "57fac0763f9602309d1e4c0554968222b30d828e0ce41a0c79d7824f1a24b341", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "57fac0763f9602309d1e4c0554968222b30d828e0ce41a0c79d7824f1a24b341", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57fac0763f9602309d1e4c0554968222b30d828e0ce41a0c79d7824f1a24b341", kill_on_drop: false }` [INFO] [stdout] 57fac0763f9602309d1e4c0554968222b30d828e0ce41a0c79d7824f1a24b341 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 304fc00e8da117372153c4c049d4361073a4a2f7b84d49991e4a0b0712a32990 [INFO] running `Command { std: "docker" "start" "-a" "304fc00e8da117372153c4c049d4361073a4a2f7b84d49991e4a0b0712a32990", kill_on_drop: false }` [INFO] [stderr] Compiling fsio v0.4.1 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling clap_builder v4.6.0 [INFO] [stderr] Compiling envmnt v0.10.4 [INFO] [stderr] Compiling nested-env-parser v1.1.0 [INFO] [stderr] Compiling clap_derive v4.6.1 [INFO] [stderr] Compiling clap v4.6.1 [INFO] [stderr] Compiling mongodb-macro v1.0.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.17s [INFO] running `Command { std: "docker" "inspect" "304fc00e8da117372153c4c049d4361073a4a2f7b84d49991e4a0b0712a32990", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "304fc00e8da117372153c4c049d4361073a4a2f7b84d49991e4a0b0712a32990", kill_on_drop: false }` [INFO] [stdout] 304fc00e8da117372153c4c049d4361073a4a2f7b84d49991e4a0b0712a32990 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2024efb393dfaa2db7c4669730f9b2905d7080fc3024d852bfb5374b8f5ead86 [INFO] running `Command { std: "docker" "start" "-a" "2024efb393dfaa2db7c4669730f9b2905d7080fc3024d852bfb5374b8f5ead86", kill_on_drop: false }` [INFO] [stderr] Compiling portable-atomic v1.13.1 [INFO] [stderr] Compiling libc v0.2.185 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling typenum v1.20.0 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling once_cell v1.21.4 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling macro_magic_core_macros v0.5.1 [INFO] [stderr] Compiling derive-syn-parse v0.2.0 [INFO] [stderr] Compiling tokio v1.52.1 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling icu_normalizer v2.2.0 [INFO] [stderr] Compiling semver v1.0.28 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling rustls v0.23.38 [INFO] [stderr] Compiling rand_core v0.9.5 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling uuid v1.23.1 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling time-core v0.1.8 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling time-macros v0.2.27 [INFO] [stderr] Compiling convert_case v0.10.0 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling rand v0.9.4 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling rustc_version_runtime v0.3.0 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling data-encoding v2.10.0 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling tagptr v0.2.0 [INFO] [stderr] Compiling ipnet v2.12.0 [INFO] [stderr] Compiling moka v0.12.15 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Compiling time v0.3.47 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling typed-builder-macro v0.22.0 [INFO] [stderr] Compiling clap_derive v4.6.1 [INFO] [stderr] Compiling serde_bytes v0.11.19 [INFO] [stderr] Compiling resolv-conf v0.7.6 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling serde_with v3.18.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling macro_magic_core v0.5.1 [INFO] [stderr] Compiling pbkdf2 v0.12.2 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling webpki-roots v1.0.7 [INFO] [stderr] Compiling derive-where v1.6.1 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling macro_magic_macros v0.5.1 [INFO] [stderr] Compiling typed-builder v0.22.0 [INFO] [stderr] Compiling clap v4.6.1 [INFO] [stderr] Compiling mongodb-macro v1.0.4 (/opt/rustwide/workdir) [INFO] [stderr] Compiling derive_more v2.1.1 [INFO] [stderr] Compiling macro_magic v0.5.1 [INFO] [stderr] Compiling mongodb-internal-macros v3.5.2 [INFO] [stderr] Compiling bson v2.15.0 [INFO] [stderr] Compiling rustls-webpki v0.103.12 [INFO] [stderr] Compiling hickory-proto v0.25.2 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling hickory-resolver v0.25.2 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling mongodb v3.5.2 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1m 03s [INFO] running `Command { std: "docker" "inspect" "2024efb393dfaa2db7c4669730f9b2905d7080fc3024d852bfb5374b8f5ead86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2024efb393dfaa2db7c4669730f9b2905d7080fc3024d852bfb5374b8f5ead86", kill_on_drop: false }` [INFO] [stdout] 2024efb393dfaa2db7c4669730f9b2905d7080fc3024d852bfb5374b8f5ead86 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5727f183a4d710cb80bf4650600bd9cde64ddcedf4d30d7ae43df9e2db7a00f1 [INFO] running `Command { std: "docker" "start" "-a" "5727f183a4d710cb80bf4650600bd9cde64ddcedf4d30d7ae43df9e2db7a00f1", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mongodb_macro-976937aeb4460e0e) [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 mongodb_macro [INFO] [stdout] [INFO] [stdout] running 20 tests [INFO] [stdout] test src/lib.rs - (line 68) - compile ... FAILED [INFO] [stdout] test src/client.rs - client::client_config (line 23) ... ok [INFO] [stdout] test src/collection.rs - collection::collection (line 46) ... FAILED [INFO] [stdout] test src/database.rs - database::database_config (line 24) ... ok [INFO] [stdout] test src/collection.rs - collection::collection_config (line 7) ... ok [INFO] [stdout] test src/lib.rs - (line 42) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 17) - compile ... FAILED [INFO] [stdout] test src/collection.rs - collection::collection (line 78) ... FAILED [INFO] [stdout] test src/database.rs - database::database_config (line 7) ... ok [INFO] [stdout] test src/collection.rs - collection::collection (line 62) ... FAILED [INFO] [stdout] test src/collection.rs - collection::collection_config (line 22) ... ok [INFO] [stdout] test src/opts.rs - opts::config (line 37) ... ok [INFO] [stdout] test src/lib.rs - (line 94) - compile ... FAILED [INFO] [stdout] test src/client.rs - client::client_config (line 7) ... ok [INFO] [stdout] test src/opts.rs - opts::config (line 5) ... 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/opts.rs - opts::config (line 22) ... 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] 89 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 89 - ... [INFO] [stdout] 89 + .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 89 - ... [INFO] [stdout] 89 + ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | ... [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] 89 - ... [INFO] [stdout] 89 + .. [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] 77 | 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] 48 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | 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.5.2/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] [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/lib.rs - (line 42) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 63 - ... [INFO] [stdout] 63 + .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 63 - ... [INFO] [stdout] 63 + ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | ... [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] 63 - ... [INFO] [stdout] 63 + .. [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] 52 | 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] 37 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 37 - ... [INFO] [stdout] 37 + .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 37 - ... [INFO] [stdout] 37 + ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | ... [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] 37 - ... [INFO] [stdout] 37 + .. [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] 24 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | 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.5.2/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] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | 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/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] 80 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | 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.5.2/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] [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] 64 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be sent between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | 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.5.2/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] [INFO] [stdout] error[E0277]: `T` cannot be shared between threads safely [INFO] [stdout] --> src/collection.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | 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.5.2/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] [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/lib.rs - (line 94) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 120 - ... [INFO] [stdout] 120 + .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 120 - ... [INFO] [stdout] 120 + ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | ... [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] 120 - ... [INFO] [stdout] 120 + .. [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] 109 | 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] [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 3.33s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "5727f183a4d710cb80bf4650600bd9cde64ddcedf4d30d7ae43df9e2db7a00f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5727f183a4d710cb80bf4650600bd9cde64ddcedf4d30d7ae43df9e2db7a00f1", kill_on_drop: false }` [INFO] [stdout] 5727f183a4d710cb80bf4650600bd9cde64ddcedf4d30d7ae43df9e2db7a00f1