[INFO] fetching crate kick-api 0.1.2... [INFO] testing kick-api-0.1.2 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate kick-api 0.1.2 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate kick-api 0.1.2 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate kick-api 0.1.2 [INFO] tweaked toml for crates.io crate kick-api 0.1.2 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate kick-api 0.1.2 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate kick-api 0.1.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 909baa241d1dc10057b943dc0a69d1846ca8532f91369332492c11f22aef8cb3 [INFO] running `Command { std: "docker" "start" "-a" "909baa241d1dc10057b943dc0a69d1846ca8532f91369332492c11f22aef8cb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "909baa241d1dc10057b943dc0a69d1846ca8532f91369332492c11f22aef8cb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "909baa241d1dc10057b943dc0a69d1846ca8532f91369332492c11f22aef8cb3", kill_on_drop: false }` [INFO] [stdout] 909baa241d1dc10057b943dc0a69d1846ca8532f91369332492c11f22aef8cb3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5dedb2cf2953051933bf2736c60fa892b6c58dd1bb8f35bd0a0328b2db432bf4 [INFO] running `Command { std: "docker" "start" "-a" "5dedb2cf2953051933bf2736c60fa892b6c58dd1bb8f35bd0a0328b2db432bf4", kill_on_drop: false }` [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling zerocopy v0.8.37 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling socket2 v0.6.2 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling zmij v1.0.18 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling h2 v0.4.13 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tungstenite v0.26.2 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling tower-http v0.6.8 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling hyper-util v0.1.19 [INFO] [stderr] Compiling tokio-tungstenite v0.26.2 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.28 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling oauth2 v4.4.2 [INFO] [stderr] Compiling kick-api v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 43.09s [INFO] running `Command { std: "docker" "inspect" "5dedb2cf2953051933bf2736c60fa892b6c58dd1bb8f35bd0a0328b2db432bf4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5dedb2cf2953051933bf2736c60fa892b6c58dd1bb8f35bd0a0328b2db432bf4", kill_on_drop: false }` [INFO] [stdout] 5dedb2cf2953051933bf2736c60fa892b6c58dd1bb8f35bd0a0328b2db432bf4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bbae0663b20812de795e8cd979a0072fab95b5e03211243478795ee0cda57495 [INFO] running `Command { std: "docker" "start" "-a" "bbae0663b20812de795e8cd979a0072fab95b5e03211243478795ee0cda57495", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling unicase v2.9.0 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling nu-ansi-term v0.50.3 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling headers v0.3.9 [INFO] [stderr] Compiling tracing-subscriber v0.3.22 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tungstenite v0.26.2 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling tokio-tungstenite v0.26.2 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling tower-http v0.6.8 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling h2 v0.4.13 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-util v0.1.19 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.28 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling warp v0.3.7 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling oauth2 v4.4.2 [INFO] [stderr] Compiling kick-api v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 43.73s [INFO] running `Command { std: "docker" "inspect" "bbae0663b20812de795e8cd979a0072fab95b5e03211243478795ee0cda57495", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbae0663b20812de795e8cd979a0072fab95b5e03211243478795ee0cda57495", kill_on_drop: false }` [INFO] [stdout] bbae0663b20812de795e8cd979a0072fab95b5e03211243478795ee0cda57495 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 74754e3016230f6e56a95f56cab8c08d40bff61aaaa8f5b25763ed2bc1ac2d34 [INFO] running `Command { std: "docker" "start" "-a" "74754e3016230f6e56a95f56cab8c08d40bff61aaaa8f5b25763ed2bc1ac2d34", 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/kick_api-1f5a01e181f684e0) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test models::user::tests::test_token_scopes ... ok [INFO] [stdout] test models::user::tests::test_token_expiry ... ok [INFO] [stdout] test oauth::tests::test_oauth_from_env ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests kick_api [INFO] [stdout] [INFO] [stdout] running 27 tests [INFO] [stdout] test src/api/moderation.rs - api::moderation::ModerationApi<'a>::ban (line 36) - compile ... FAILED [INFO] [stdout] test src/api/channels.rs - api::channels::ChannelsApi<'a>::get_mine (line 75) - compile ... FAILED [INFO] [stdout] test src/api/channels.rs - api::channels::ChannelsApi<'a>::get (line 31) - compile ... FAILED [INFO] [stdout] test src/api/events.rs - api::events::EventsApi<'a>::subscribe (line 86) - compile ... FAILED [INFO] [stdout] test src/api/rewards.rs - api::rewards::RewardsApi<'a>::create (line 59) - compile ... FAILED [INFO] [stdout] test src/api/moderation.rs - api::moderation::ModerationApi<'a>::unban (line 75) - compile ... FAILED [INFO] [stdout] test src/api/chat.rs - api::chat::ChatApi<'a>::delete_message (line 82) - compile ... FAILED [INFO] [stdout] test src/client.rs - client::KickApiClient (line 8) - compile ... FAILED [INFO] [stdout] test src/api/users.rs - api::users::UsersApi<'a>::get (line 33) - compile ... FAILED [INFO] [stdout] test src/api/events.rs - api::events::EventsApi<'a>::list (line 35) - compile ... FAILED [INFO] [stdout] test src/api/chat.rs - api::chat::ChatApi<'a>::send_message (line 33) - compile ... FAILED [INFO] [stdout] test src/api/rewards.rs - api::rewards::RewardsApi<'a>::update (line 92) - compile ... FAILED [INFO] [stdout] test src/api/users.rs - api::users::UsersApi<'a>::introspect_token (line 91) - compile ... FAILED [INFO] [stdout] test src/client.rs - client::KickApiClient::channels (line 53) - compile ... FAILED [INFO] [stdout] test src/client.rs - client::KickApiClient::moderation (line 98) - compile ... FAILED [INFO] [stdout] test src/client.rs - client::KickApiClient::chat (line 87) - compile ... FAILED [INFO] [stdout] test src/api/rewards.rs - api::rewards::RewardsApi<'a>::get_all (line 34) - compile ... FAILED [INFO] [stdout] test src/live_chat.rs - live_chat::LiveChatClient (line 23) - compile ... ok [INFO] [stdout] test src/client.rs - client::KickApiClient::events (line 109) - compile ... FAILED [INFO] [stdout] test src/client.rs - client::KickApiClient::rewards (line 64) - compile ... FAILED [INFO] [stdout] test src/client.rs - client::KickApiClient::users (line 75) - compile ... FAILED [INFO] [stdout] test src/api/users.rs - api::users::UsersApi<'a>::get_me (line 69) - compile ... FAILED [INFO] [stdout] test src/api/events.rs - api::events::EventsApi<'a>::unsubscribe (line 138) - compile ... FAILED [INFO] [stdout] test src/models/event.rs - models::event::SubscribeRequest (line 44) ... ok [INFO] [stdout] test src/models/moderation.rs - models::moderation::BanRequest (line 9) ... ok [INFO] [stdout] test src/models/moderation.rs - models::moderation::UnbanRequest (line 48) ... ok [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/models/chat.rs - models::chat::SendMessageRequest (line 6) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/api/moderation.rs - api::moderation::ModerationApi<'a>::ban (line 36) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/moderation.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | client.moderation().ban(request).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/moderation.rs:47:34 [INFO] [stdout] | [INFO] [stdout] 37 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_moderation_rs_36_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 47 | client.moderation().ban(request).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/channels.rs - api::channels::ChannelsApi<'a>::get_mine (line 75) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/channels.rs:76:19 [INFO] [stdout] | [INFO] [stdout] 76 | let my_channels = client.channels().get_mine().await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/channels.rs:76:48 [INFO] [stdout] | [INFO] [stdout] 75 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_channels_rs_75_0() { [INFO] [stdout] | ------------------------------------------- this is not `async` [INFO] [stdout] 76 | let my_channels = client.channels().get_mine().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/channels.rs - api::channels::ChannelsApi<'a>::get (line 31) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/channels.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | let channel = client.channels().get("xqc").await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/channels.rs:32:44 [INFO] [stdout] | [INFO] [stdout] 31 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_channels_rs_31_0() { [INFO] [stdout] | ------------------------------------------- this is not `async` [INFO] [stdout] 32 | let channel = client.channels().get("xqc").await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/events.rs - api::events::EventsApi<'a>::subscribe (line 86) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/events.rs:97:15 [INFO] [stdout] | [INFO] [stdout] 97 | let results = client.events().subscribe(request).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/events.rs:97:50 [INFO] [stdout] | [INFO] [stdout] 87 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_events_rs_86_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 97 | let results = client.events().subscribe(request).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/rewards.rs - api::rewards::RewardsApi<'a>::create (line 59) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/rewards.rs:71:14 [INFO] [stdout] | [INFO] [stdout] 71 | let reward = client.rewards().create(request).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/rewards.rs:71:47 [INFO] [stdout] | [INFO] [stdout] 60 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_rewards_rs_59_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 71 | let reward = client.rewards().create(request).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CreateRewardRequest: Default` is not satisfied [INFO] [stdout] --> src/api/rewards.rs:68:7 [INFO] [stdout] | [INFO] [stdout] 68 | ..Default::default() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `CreateRewardRequest` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/moderation.rs - api::moderation::ModerationApi<'a>::unban (line 75) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/moderation.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | client.moderation().unban(request).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/moderation.rs:83:36 [INFO] [stdout] | [INFO] [stdout] 76 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_moderation_rs_75_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 83 | client.moderation().unban(request).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/chat.rs - api::chat::ChatApi<'a>::delete_message (line 82) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/chat.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | client.chat().delete_message("message_id_here").await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/chat.rs:83:49 [INFO] [stdout] | [INFO] [stdout] 82 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_chat_rs_82_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 83 | client.chat().delete_message("message_id_here").await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::KickApiClient (line 8) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:19:44 [INFO] [stdout] | [INFO] [stdout] 9 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_8_0() { [INFO] [stdout] | ------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 19 | let channel = client.channels().get("xqc").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/client.rs:20:42 [INFO] [stdout] | [INFO] [stdout] 9 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_8_0() { [INFO] [stdout] | ------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 20 | let rewards = client.rewards().get_all().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/users.rs - api::users::UsersApi<'a>::get (line 33) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/users.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let users = client.users().get(vec![123, 456]).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/users.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | let me = client.users().get_me().await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/users.rs:35:48 [INFO] [stdout] | [INFO] [stdout] 33 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_users_rs_33_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] 34 | // Get specific users [INFO] [stdout] 35 | let users = client.users().get(vec![123, 456]).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/api/users.rs:38:34 [INFO] [stdout] | [INFO] [stdout] 33 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_users_rs_33_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 38 | let me = client.users().get_me().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/events.rs - api::events::EventsApi<'a>::list (line 35) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/events.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | let subs = client.events().list(None).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/events.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | let subs = client.events().list(Some(12345)).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/events.rs:37:39 [INFO] [stdout] | [INFO] [stdout] 35 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_events_rs_35_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] 36 | // List all subscriptions [INFO] [stdout] 37 | let subs = client.events().list(None).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/events.rs:40:46 [INFO] [stdout] | [INFO] [stdout] 35 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_events_rs_35_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 40 | let subs = client.events().list(Some(12345)).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/chat.rs - api::chat::ChatApi<'a>::send_message (line 33) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/chat.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | let response = client.chat().send_message(request).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/chat.rs:43:52 [INFO] [stdout] | [INFO] [stdout] 34 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_chat_rs_33_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 43 | let response = client.chat().send_message(request).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/rewards.rs - api::rewards::RewardsApi<'a>::update (line 92) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/rewards.rs:102:14 [INFO] [stdout] | [INFO] [stdout] 102 | let reward = client.rewards().update("reward_id", update).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/rewards.rs:102:59 [INFO] [stdout] | [INFO] [stdout] 93 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_rewards_rs_92_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 102 | let reward = client.rewards().update("reward_id", update).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/users.rs - api::users::UsersApi<'a>::introspect_token (line 91) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/users.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let introspection = client.users().introspect_token().await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/users.rs:92:55 [INFO] [stdout] | [INFO] [stdout] 91 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_users_rs_91_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] 92 | let introspection = client.users().introspect_token().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::KickApiClient::channels (line 53) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:54:15 [INFO] [stdout] | [INFO] [stdout] 54 | let channel = client.channels().get("xqc").await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | let my_channels = client.channels().get_mine().await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:54:44 [INFO] [stdout] | [INFO] [stdout] 53 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_53_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 54 | let channel = client.channels().get("xqc").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/client.rs:55:48 [INFO] [stdout] | [INFO] [stdout] 53 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_53_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 54 | let channel = client.channels().get("xqc").await?; [INFO] [stdout] 55 | let my_channels = client.channels().get_mine().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::KickApiClient::moderation (line 98) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | client.moderation().ban(ban_request).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ban_request` in this scope [INFO] [stdout] --> src/client.rs:99:25 [INFO] [stdout] | [INFO] [stdout] 99 | client.moderation().ban(ban_request).await?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 100 | client.moderation().unban(unban_request).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `unban_request` in this scope [INFO] [stdout] --> src/client.rs:100:27 [INFO] [stdout] | [INFO] [stdout] 100 | client.moderation().unban(unban_request).await?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:99:38 [INFO] [stdout] | [INFO] [stdout] 98 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_98_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 99 | client.moderation().ban(ban_request).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/client.rs:100:42 [INFO] [stdout] | [INFO] [stdout] 98 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_98_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 99 | client.moderation().ban(ban_request).await?; [INFO] [stdout] 100 | client.moderation().unban(unban_request).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::KickApiClient::chat (line 87) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:88:16 [INFO] [stdout] | [INFO] [stdout] 88 | let response = client.chat().send_message(request).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `request` in this scope [INFO] [stdout] --> src/client.rs:88:43 [INFO] [stdout] | [INFO] [stdout] 88 | let response = client.chat().send_message(request).await?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 87 + use warp::test::request; [INFO] [stdout] | [INFO] [stdout] 87 + use warp::trace::request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | client.chat().delete_message("msg_id").await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:88:52 [INFO] [stdout] | [INFO] [stdout] 87 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_87_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 88 | let response = client.chat().send_message(request).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/client.rs:89:40 [INFO] [stdout] | [INFO] [stdout] 87 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_87_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 88 | let response = client.chat().send_message(request).await?; [INFO] [stdout] 89 | client.chat().delete_message("msg_id").await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/rewards.rs - api::rewards::RewardsApi<'a>::get_all (line 34) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/rewards.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | let rewards = client.rewards().get_all().await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/rewards.rs:35:42 [INFO] [stdout] | [INFO] [stdout] 34 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_rewards_rs_34_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] 35 | let rewards = client.rewards().get_all().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::KickApiClient::events (line 109) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | let subs = client.events().list(None).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:111:15 [INFO] [stdout] | [INFO] [stdout] 111 | let results = client.events().subscribe(request).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `request` in this scope [INFO] [stdout] --> src/client.rs:111:41 [INFO] [stdout] | [INFO] [stdout] 111 | let results = client.events().subscribe(request).await?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 109 + use warp::test::request; [INFO] [stdout] | [INFO] [stdout] 109 + use warp::trace::request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | client.events().unsubscribe(vec!["id".to_string()]).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:110:39 [INFO] [stdout] | [INFO] [stdout] 109 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_109_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 110 | let subs = client.events().list(None).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:111:50 [INFO] [stdout] | [INFO] [stdout] 109 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_109_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 110 | let subs = client.events().list(None).await?; [INFO] [stdout] 111 | let results = client.events().subscribe(request).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/client.rs:112:53 [INFO] [stdout] | [INFO] [stdout] 109 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_109_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 112 | client.events().unsubscribe(vec!["id".to_string()]).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::KickApiClient::rewards (line 64) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 65 | let rewards = client.rewards().get_all().await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | let reward = client.rewards().create(request).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `request` in this scope [INFO] [stdout] --> src/client.rs:66:38 [INFO] [stdout] | [INFO] [stdout] 66 | let reward = client.rewards().create(request).await?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 64 + use warp::test::request; [INFO] [stdout] | [INFO] [stdout] 64 + use warp::trace::request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:65:42 [INFO] [stdout] | [INFO] [stdout] 64 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_64_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 65 | let rewards = client.rewards().get_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/client.rs:66:47 [INFO] [stdout] | [INFO] [stdout] 64 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_64_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 65 | let rewards = client.rewards().get_all().await?; [INFO] [stdout] 66 | let reward = client.rewards().create(request).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::KickApiClient::users (line 75) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | let me = client.users().get_me().await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let users = client.users().get(vec![123, 456]).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:78:18 [INFO] [stdout] | [INFO] [stdout] 78 | let token_info = client.users().introspect_token().await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:76:34 [INFO] [stdout] | [INFO] [stdout] 75 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_75_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 76 | let me = client.users().get_me().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/client.rs:77:48 [INFO] [stdout] | [INFO] [stdout] 75 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_75_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 76 | let me = client.users().get_me().await?; [INFO] [stdout] 77 | let users = client.users().get(vec![123, 456]).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/client.rs:78:52 [INFO] [stdout] | [INFO] [stdout] 75 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_75_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 78 | let token_info = client.users().introspect_token().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/users.rs - api::users::UsersApi<'a>::get_me (line 69) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/users.rs:70:10 [INFO] [stdout] | [INFO] [stdout] 70 | let me = client.users().get_me().await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/users.rs:70:34 [INFO] [stdout] | [INFO] [stdout] 69 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_users_rs_69_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] 70 | let me = client.users().get_me().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/events.rs - api::events::EventsApi<'a>::unsubscribe (line 138) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/api/events.rs:139:1 [INFO] [stdout] | [INFO] [stdout] 139 | client.events().unsubscribe(vec!["sub_id_1".to_string(), "sub_id_2".to_string()]).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/events.rs:139:83 [INFO] [stdout] | [INFO] [stdout] 138 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_events_rs_138_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] 139 | client.events().unsubscribe(vec!["sub_id_1".to_string(), "sub_id_2".to_string()]).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/api/channels.rs - api::channels::ChannelsApi<'a>::get (line 31) [INFO] [stdout] src/api/channels.rs - api::channels::ChannelsApi<'a>::get_mine (line 75) [INFO] [stdout] src/api/chat.rs - api::chat::ChatApi<'a>::delete_message (line 82) [INFO] [stdout] src/api/chat.rs - api::chat::ChatApi<'a>::send_message (line 33) [INFO] [stdout] src/api/events.rs - api::events::EventsApi<'a>::list (line 35) [INFO] [stdout] src/api/events.rs - api::events::EventsApi<'a>::subscribe (line 86) [INFO] [stdout] src/api/events.rs - api::events::EventsApi<'a>::unsubscribe (line 138) [INFO] [stdout] src/api/moderation.rs - api::moderation::ModerationApi<'a>::ban (line 36) [INFO] [stdout] src/api/moderation.rs - api::moderation::ModerationApi<'a>::unban (line 75) [INFO] [stdout] src/api/rewards.rs - api::rewards::RewardsApi<'a>::create (line 59) [INFO] [stdout] src/api/rewards.rs - api::rewards::RewardsApi<'a>::get_all (line 34) [INFO] [stdout] src/api/rewards.rs - api::rewards::RewardsApi<'a>::update (line 92) [INFO] [stdout] src/api/users.rs - api::users::UsersApi<'a>::get (line 33) [INFO] [stdout] src/api/users.rs - api::users::UsersApi<'a>::get_me (line 69) [INFO] [stdout] src/api/users.rs - api::users::UsersApi<'a>::introspect_token (line 91) [INFO] [stdout] src/client.rs - client::KickApiClient (line 8) [INFO] [stdout] src/client.rs - client::KickApiClient::channels (line 53) [INFO] [stdout] src/client.rs - client::KickApiClient::chat (line 87) [INFO] [stdout] src/client.rs - client::KickApiClient::events (line 109) [INFO] [stdout] src/client.rs - client::KickApiClient::moderation (line 98) [INFO] [stdout] src/client.rs - client::KickApiClient::rewards (line 64) [INFO] [stdout] src/client.rs - client::KickApiClient::users (line 75) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 5 passed; 22 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.71s [INFO] [stdout] [INFO] [stdout] all doctests ran in 2.20s; merged doctests compilation took 0.48s [INFO] running `Command { std: "docker" "inspect" "74754e3016230f6e56a95f56cab8c08d40bff61aaaa8f5b25763ed2bc1ac2d34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74754e3016230f6e56a95f56cab8c08d40bff61aaaa8f5b25763ed2bc1ac2d34", kill_on_drop: false }` [INFO] [stdout] 74754e3016230f6e56a95f56cab8c08d40bff61aaaa8f5b25763ed2bc1ac2d34