[INFO] fetching crate nylas 0.0.8... [INFO] testing nylas-0.0.8 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate nylas 0.0.8 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate nylas 0.0.8 [INFO] finished tweaking crates.io crate nylas 0.0.8 [INFO] tweaked toml for crates.io crate nylas 0.0.8 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate nylas 0.0.8 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 155 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.21.7 (available: v0.22.1) [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.23) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3421128432a281cdf932504f4a694bb5b19acdbc984c242079520c835e8b3700 [INFO] running `Command { std: "docker" "start" "-a" "3421128432a281cdf932504f4a694bb5b19acdbc984c242079520c835e8b3700", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3421128432a281cdf932504f4a694bb5b19acdbc984c242079520c835e8b3700", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3421128432a281cdf932504f4a694bb5b19acdbc984c242079520c835e8b3700", kill_on_drop: false }` [INFO] [stdout] 3421128432a281cdf932504f4a694bb5b19acdbc984c242079520c835e8b3700 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5b8a4c30e0a37eec96338b0ee86ea39f32ecbe498601c3ef85b3a43a437c733d [INFO] running `Command { std: "docker" "start" "-a" "5b8a4c30e0a37eec96338b0ee86ea39f32ecbe498601c3ef85b3a43a437c733d", kill_on_drop: false }` [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling nylas v0.0.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/client.rs:337:21 [INFO] [stdout] | [INFO] [stdout] 337 | pub fn messages(&mut self) -> Messages { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 337 | pub fn messages(&mut self) -> Messages<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.90s [INFO] running `Command { std: "docker" "inspect" "5b8a4c30e0a37eec96338b0ee86ea39f32ecbe498601c3ef85b3a43a437c733d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b8a4c30e0a37eec96338b0ee86ea39f32ecbe498601c3ef85b3a43a437c733d", kill_on_drop: false }` [INFO] [stdout] 5b8a4c30e0a37eec96338b0ee86ea39f32ecbe498601c3ef85b3a43a437c733d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1127e66df3ffe8c768f6ba84cb7b39e65f4ffd0416d034027ea3ddeb41074e1d [INFO] running `Command { std: "docker" "start" "-a" "1127e66df3ffe8c768f6ba84cb7b39e65f4ffd0416d034027ea3ddeb41074e1d", kill_on_drop: false }` [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling nylas v0.0.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/client.rs:337:21 [INFO] [stdout] | [INFO] [stdout] 337 | pub fn messages(&mut self) -> Messages { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 337 | pub fn messages(&mut self) -> Messages<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/client.rs:337:21 [INFO] [stdout] | [INFO] [stdout] 337 | pub fn messages(&mut self) -> Messages { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 337 | pub fn messages(&mut self) -> Messages<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 19.46s [INFO] running `Command { std: "docker" "inspect" "1127e66df3ffe8c768f6ba84cb7b39e65f4ffd0416d034027ea3ddeb41074e1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1127e66df3ffe8c768f6ba84cb7b39e65f4ffd0416d034027ea3ddeb41074e1d", kill_on_drop: false }` [INFO] [stdout] 1127e66df3ffe8c768f6ba84cb7b39e65f4ffd0416d034027ea3ddeb41074e1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 53db988d0bc53c4eae9adf612f44c7a2b135c3bf4a63fea73c613156c66fcdf5 [INFO] running `Command { std: "docker" "start" "-a" "53db988d0bc53c4eae9adf612f44c7a2b135c3bf4a63fea73c613156c66fcdf5", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/client.rs:337:21 [INFO] [stderr] | [INFO] [stderr] 337 | pub fn messages(&mut self) -> Messages { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 337 | pub fn messages(&mut self) -> Messages<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `nylas` (lib) generated 1 warning (run `cargo fix --lib -p nylas` to apply 1 suggestion) [INFO] [stderr] warning: `nylas` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/nylas-67e4b07c59442285) [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 nylas [INFO] [stdout] [INFO] [stdout] running 16 tests [INFO] [stdout] test src/messages.rs - messages::Messages<'a>::get (line 611) ... FAILED [INFO] [stdout] test src/messages.rs - messages::Messages<'a>::first (line 551) ... FAILED [INFO] [stdout] test src/client.rs - client::Nylas::account (line 272) ... FAILED [INFO] [stdout] test src/client.rs - client::Nylas::exchange_access_token (line 192) ... FAILED [INFO] [stdout] test src/messages.rs - messages::Messages<'a>::where_ (line 440) ... FAILED [INFO] [stdout] test src/client.rs - client::Nylas::authentication_url (line 101) ... FAILED [INFO] [stdout] test src/messages.rs - messages::Messages<'a>::all (line 267) ... FAILED [INFO] [stdout] test src/messages.rs - messages::Messages<'a>::search (line 347) ... FAILED [INFO] [stdout] test src/lib.rs - (line 25) ... FAILED [INFO] [stdout] test src/client.rs - client::Nylas::messages (line 323) ... FAILED [INFO] [stdout] test src/lib.rs - (line 63) ... FAILED [INFO] [stdout] test src/lib.rs - (line 52) ... FAILED [INFO] [stdout] test src/lib.rs - (line 70) ... FAILED [INFO] [stdout] test src/lib.rs - (line 19) ... ok [INFO] [stdout] test src/client.rs - client::Nylas::new (line 42) ... ok [INFO] [stdout] test src/client.rs - client::Nylas (line 15) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/messages.rs - messages::Messages<'a>::get (line 611) stdout ---- [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `a` [INFO] [stdout] --> src/messages.rs:623:14 [INFO] [stdout] | [INFO] [stdout] 14 | Retrieve a specific message by ID with a view parameter [INFO] [stdout] | ^ expected one of 8 possible tokens [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/messages.rs:615:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/messages.rs:616:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() { [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: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/messages.rs - messages::Messages<'a>::first (line 551) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/messages.rs:554:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/messages.rs:555:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Nylas::account (line 272) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/client.rs:276:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/client.rs:277:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Nylas::exchange_access_token (line 192) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/client.rs:196:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/client.rs:197:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/messages.rs - messages::Messages<'a>::where_ (line 440) stdout ---- [INFO] [stdout] error: unknown start of token: ` [INFO] [stdout] --> src/messages.rs:456:14 [INFO] [stdout] | [INFO] [stdout] 18 | Call the `where_` method with filter and view parameters [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not [INFO] [stdout] | [INFO] [stdout] 18 - Call the `where_` method with filter and view parameters [INFO] [stdout] 18 + Call the 'where_` method with filter and view parameters [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unknown start of token: ` [INFO] [stdout] --> src/messages.rs:456:21 [INFO] [stdout] | [INFO] [stdout] 18 | Call the `where_` method with filter and view parameters [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not [INFO] [stdout] | [INFO] [stdout] 18 - Call the `where_` method with filter and view parameters [INFO] [stdout] 18 + Call the `where_' method with filter and view parameters [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `filter` [INFO] [stdout] --> src/messages.rs:452:12 [INFO] [stdout] | [INFO] [stdout] 14 | Define filter parameters as a HashMap [INFO] [stdout] | ^^^^^^ expected one of 8 possible tokens [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/messages.rs:444:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/messages.rs:445:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Nylas::authentication_url (line 101) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/client.rs:105:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/client.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/messages.rs - messages::Messages<'a>::all (line 267) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/messages.rs:270:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/messages.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/messages.rs - messages::Messages<'a>::search (line 347) stdout ---- [INFO] [stdout] error: unknown start of token: ` [INFO] [stdout] --> src/messages.rs:358:14 [INFO] [stdout] | [INFO] [stdout] 13 | Call the `search` method to search for messages with a limit and offset [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not [INFO] [stdout] | [INFO] [stdout] 13 - Call the `search` method to search for messages with a limit and offset [INFO] [stdout] 13 + Call the 'search` method to search for messages with a limit and offset [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unknown start of token: ` [INFO] [stdout] --> src/messages.rs:358:21 [INFO] [stdout] | [INFO] [stdout] 13 | Call the `search` method to search for messages with a limit and offset [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not [INFO] [stdout] | [INFO] [stdout] 13 - Call the `search` method to search for messages with a limit and offset [INFO] [stdout] 13 + Call the `search' method to search for messages with a limit and offset [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `the` [INFO] [stdout] --> src/messages.rs:358:10 [INFO] [stdout] | [INFO] [stdout] 13 | Call the `search` method to search for messages with a limit and offset [INFO] [stdout] | ^^^ expected one of 8 possible tokens [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/messages.rs:350:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/messages.rs:351:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 25) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:29:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Nylas::messages (line 323) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/client.rs:327:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/client.rs:328:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 63) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `nylas` [INFO] [stdout] --> src/lib.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 6 | println!("{:?}", nylas.account); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 6 - println!("{:?}", nylas.account); [INFO] [stdout] 6 + println!("{:?}", nylas::account); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 52) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `nylas` [INFO] [stdout] --> src/lib.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 6 | let auth_url = nylas.authentication_url(redirect_uri, login_hint, state, scopes); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 6 - let auth_url = nylas.authentication_url(redirect_uri, login_hint, state, scopes); [INFO] [stdout] 6 + let auth_url = nylas::authentication_url(redirect_uri, login_hint, state, scopes); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `redirect_uri` in this scope [INFO] [stdout] --> src/lib.rs:55:41 [INFO] [stdout] | [INFO] [stdout] 6 | let auth_url = nylas.authentication_url(redirect_uri, login_hint, state, scopes); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `login_hint` in this scope [INFO] [stdout] --> src/lib.rs:55:55 [INFO] [stdout] | [INFO] [stdout] 6 | let auth_url = nylas.authentication_url(redirect_uri, login_hint, state, scopes); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `state` in this scope [INFO] [stdout] --> src/lib.rs:55:67 [INFO] [stdout] | [INFO] [stdout] 6 | let auth_url = nylas.authentication_url(redirect_uri, login_hint, state, scopes); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `scopes` in this scope [INFO] [stdout] --> src/lib.rs:55:74 [INFO] [stdout] | [INFO] [stdout] 6 | let auth_url = nylas.authentication_url(redirect_uri, login_hint, state, scopes); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `nylas` [INFO] [stdout] --> src/lib.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 10 | nylas = Nylas::new(client_id, client_secret, Some(access_token)).await.unwrap(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 10 | let nylas = Nylas::new(client_id, client_secret, Some(access_token)).await.unwrap(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nylas` [INFO] [stdout] --> src/lib.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 10 | nylas = Nylas::new(client_id, client_secret, Some(access_token)).await.unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `Nylas` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nylas::client::Nylas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client_id` in this scope [INFO] [stdout] --> src/lib.rs:59:20 [INFO] [stdout] | [INFO] [stdout] 10 | nylas = Nylas::new(client_id, client_secret, Some(access_token)).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client_secret` in this scope [INFO] [stdout] --> src/lib.rs:59:31 [INFO] [stdout] | [INFO] [stdout] 10 | nylas = Nylas::new(client_id, client_secret, Some(access_token)).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:59:66 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_52_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 10 | nylas = Nylas::new(client_id, client_secret, Some(access_token)).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 70) stdout ---- [INFO] [stdout] error: cannot find macro `hashmap` in this scope [INFO] [stdout] --> src/lib.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 12 | let filter = Some(hashmap!{ [INFO] [stdout] | ^^^^^^^ help: a macro with a similar name exists: `hash_map` [INFO] [stdout] | [INFO] [stdout] --> /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/macros.rs:443:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `hash_map` defined here [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `nylas` [INFO] [stdout] --> src/lib.rs:73:16 [INFO] [stdout] | [INFO] [stdout] 6 | let messages = nylas.messages().all().await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 6 - let messages = nylas.messages().all().await; [INFO] [stdout] 6 + let messages = nylas::messages().all().await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `nylas` [INFO] [stdout] --> src/lib.rs:76:14 [INFO] [stdout] | [INFO] [stdout] 9 | let result = nylas.messages().search("example@example.com", Some(1), Some(0)).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 9 - let result = nylas.messages().search("example@example.com", Some(1), Some(0)).await; [INFO] [stdout] 9 + let result = nylas::messages().search("example@example.com", Some(1), Some(0)).await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `nylas` [INFO] [stdout] --> src/lib.rs:82:16 [INFO] [stdout] | [INFO] [stdout] 15 | let messages = nylas.messages().where_(filter, Some(View::Expanded)).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 15 - let messages = nylas.messages().where_(filter, Some(View::Expanded)).await; [INFO] [stdout] 15 + let messages = nylas::messages().where_(filter, Some(View::Expanded)).await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `View` [INFO] [stdout] --> src/lib.rs:82:53 [INFO] [stdout] | [INFO] [stdout] 15 | let messages = nylas.messages().where_(filter, Some(View::Expanded)).await; [INFO] [stdout] | ^^^^ use of undeclared type `View` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nylas::messages::View; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `nylas` [INFO] [stdout] --> src/lib.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 18 | let message_result = nylas.messages().first().await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 18 - let message_result = nylas.messages().first().await; [INFO] [stdout] 18 + let message_result = nylas::messages().first().await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `nylas` [INFO] [stdout] --> src/lib.rs:89:22 [INFO] [stdout] | [INFO] [stdout] 22 | let message_result = nylas.messages().get(message_id, Some(View::Expanded)).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 22 - let message_result = nylas.messages().get(message_id, Some(View::Expanded)).await; [INFO] [stdout] 22 + let message_result = nylas::messages().get(message_id, Some(View::Expanded)).await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `View` [INFO] [stdout] --> src/lib.rs:89:60 [INFO] [stdout] | [INFO] [stdout] 22 | let message_result = nylas.messages().get(message_id, Some(View::Expanded)).await; [INFO] [stdout] | ^^^^ use of undeclared type `View` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nylas::messages::View; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:73:39 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_70_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 5 | // Retrieve all messages [INFO] [stdout] 6 | let messages = nylas.messages().all().await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:76:79 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_70_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 9 | let result = nylas.messages().search("example@example.com", Some(1), Some(0)).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:82:70 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_70_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 15 | let messages = nylas.messages().where_(filter, Some(View::Expanded)).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:85:47 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_70_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 18 | let message_result = nylas.messages().first().await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:89:77 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_70_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 22 | let message_result = nylas.messages().get(message_id, Some(View::Expanded)).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/client.rs - client::Nylas::account (line 272) [INFO] [stdout] src/client.rs - client::Nylas::authentication_url (line 101) [INFO] [stdout] src/client.rs - client::Nylas::exchange_access_token (line 192) [INFO] [stdout] src/client.rs - client::Nylas::messages (line 323) [INFO] [stdout] src/lib.rs - (line 25) [INFO] [stdout] src/lib.rs - (line 52) [INFO] [stdout] src/lib.rs - (line 63) [INFO] [stdout] src/lib.rs - (line 70) [INFO] [stdout] src/messages.rs - messages::Messages<'a>::all (line 267) [INFO] [stdout] src/messages.rs - messages::Messages<'a>::first (line 551) [INFO] [stdout] src/messages.rs - messages::Messages<'a>::get (line 611) [INFO] [stdout] src/messages.rs - messages::Messages<'a>::search (line 347) [INFO] [stdout] src/messages.rs - messages::Messages<'a>::where_ (line 440) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.19s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "53db988d0bc53c4eae9adf612f44c7a2b135c3bf4a63fea73c613156c66fcdf5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53db988d0bc53c4eae9adf612f44c7a2b135c3bf4a63fea73c613156c66fcdf5", kill_on_drop: false }` [INFO] [stdout] 53db988d0bc53c4eae9adf612f44c7a2b135c3bf4a63fea73c613156c66fcdf5