[INFO] fetching crate mongodb-macro 1.0.4... [INFO] testing mongodb-macro-1.0.4 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate mongodb-macro 1.0.4 into /workspace/builds/worker-3-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-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate mongodb-macro 1.0.4 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "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 264 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 58762be08e83012ded40f63ecde38580a942816015481c931e0838baa2844d0f [INFO] running `Command { std: "docker" "start" "-a" "58762be08e83012ded40f63ecde38580a942816015481c931e0838baa2844d0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "58762be08e83012ded40f63ecde38580a942816015481c931e0838baa2844d0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58762be08e83012ded40f63ecde38580a942816015481c931e0838baa2844d0f", kill_on_drop: false }` [INFO] [stdout] 58762be08e83012ded40f63ecde38580a942816015481c931e0838baa2844d0f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fed0bb5d3508af72980251d80b8b2938deea7cee6f4db7caddbe6fa7617cf268 [INFO] running `Command { std: "docker" "start" "-a" "fed0bb5d3508af72980251d80b8b2938deea7cee6f4db7caddbe6fa7617cf268", kill_on_drop: false }` [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling fsio v0.4.1 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling envmnt v0.10.4 [INFO] [stderr] Compiling clap_builder v4.5.46 [INFO] [stderr] Compiling nested-env-parser v1.1.0 [INFO] [stderr] Compiling clap v4.5.46 [INFO] [stderr] Compiling mongodb-macro v1.0.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.93s [INFO] running `Command { std: "docker" "inspect" "fed0bb5d3508af72980251d80b8b2938deea7cee6f4db7caddbe6fa7617cf268", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fed0bb5d3508af72980251d80b8b2938deea7cee6f4db7caddbe6fa7617cf268", kill_on_drop: false }` [INFO] [stdout] fed0bb5d3508af72980251d80b8b2938deea7cee6f4db7caddbe6fa7617cf268 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 45e1ca4ff784af67552efda52c4647ad6b2ab2f3a6c3484a4770cd337e4cca7f [INFO] running `Command { std: "docker" "start" "-a" "45e1ca4ff784af67552efda52c4647ad6b2ab2f3a6c3484a4770cd337e4cca7f", kill_on_drop: false }` [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling derive-syn-parse v0.2.0 [INFO] [stderr] Compiling macro_magic_core_macros v0.5.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling rustc_version_runtime v0.3.0 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling macro_magic_core v0.5.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling macro_magic_macros v0.5.1 [INFO] [stderr] Compiling derive-where v1.6.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling macro_magic v0.5.1 [INFO] [stderr] Compiling mongodb-internal-macros v3.2.5 [INFO] [stderr] Compiling clap v4.5.46 [INFO] [stderr] Compiling mongodb-macro v1.0.4 (/opt/rustwide/workdir) [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling serde_with_macros v3.14.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling serde_bytes v0.11.17 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling serde_with v3.14.0 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling bson v2.15.0 [INFO] [stderr] Compiling hickory-proto v0.24.4 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling hickory-resolver v0.24.4 [INFO] [stderr] Compiling mongodb v3.2.5 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 54.45s [INFO] running `Command { std: "docker" "inspect" "45e1ca4ff784af67552efda52c4647ad6b2ab2f3a6c3484a4770cd337e4cca7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45e1ca4ff784af67552efda52c4647ad6b2ab2f3a6c3484a4770cd337e4cca7f", kill_on_drop: false }` [INFO] [stdout] 45e1ca4ff784af67552efda52c4647ad6b2ab2f3a6c3484a4770cd337e4cca7f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3e425be089f799208bd22e1283790a5acdd6a05967098b96dc217e6d230e1e31 [INFO] running `Command { std: "docker" "start" "-a" "3e425be089f799208bd22e1283790a5acdd6a05967098b96dc217e6d230e1e31", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.34s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mongodb_macro-61b81a907b7afc5d) [INFO] [stderr] Doc-tests mongodb_macro [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] [stdout] [INFO] [stdout] running 20 tests [INFO] [stdout] test src/lib.rs - (line 17) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 68) - compile ... FAILED [INFO] [stdout] test src/collection.rs - collection::collection (line 78) ... FAILED [INFO] [stdout] test src/lib.rs - (line 42) - compile ... FAILED [INFO] [stdout] test src/database.rs - database::database_config (line 24) ... 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/collection.rs - collection::collection_config (line 7) ... ok [INFO] [stdout] test src/client.rs - client::client_config (line 7) ... ok [INFO] [stdout] test src/database.rs - database::database_config (line 7) ... ok [INFO] [stdout] test src/lib.rs - (line 94) - compile ... FAILED [INFO] [stdout] test src/client.rs - client::client_config (line 23) ... ok [INFO] [stdout] test src/opts.rs - opts::config (line 22) ... ok [INFO] [stdout] test src/collection.rs - collection::collection_config (line 22) ... ok [INFO] [stdout] test src/opts.rs - opts::config (line 5) ... 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/client.rs - client::client (line 72) ... ok [INFO] [stdout] test src/database.rs - database::database (line 79) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] [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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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 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/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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/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/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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.2.5/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/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] [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 2.81s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "3e425be089f799208bd22e1283790a5acdd6a05967098b96dc217e6d230e1e31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e425be089f799208bd22e1283790a5acdd6a05967098b96dc217e6d230e1e31", kill_on_drop: false }` [INFO] [stdout] 3e425be089f799208bd22e1283790a5acdd6a05967098b96dc217e6d230e1e31