[INFO] fetching crate nadeo-api 0.3.0... [INFO] testing nadeo-api-0.3.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [INFO] extracting crate nadeo-api 0.3.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate nadeo-api 0.3.0 [INFO] finished tweaking crates.io crate nadeo-api 0.3.0 [INFO] tweaked toml for crates.io crate nadeo-api 0.3.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate nadeo-api 0.3.0 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 188 packages to latest compatible versions [INFO] [stderr] Adding strum v0.26.3 (available: v0.27.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded thiserror v2.0.17 [INFO] [stderr] Downloaded strum v0.26.3 [INFO] [stderr] Downloaded tempfile v3.23.0 [INFO] [stderr] Downloaded errno v0.3.14 [INFO] [stderr] Downloaded thiserror-impl v2.0.17 [INFO] [stderr] Downloaded zeroize v1.8.2 [INFO] [stderr] Downloaded unicase v2.8.1 [INFO] [stderr] Downloaded tokio-rustls v0.26.4 [INFO] [stderr] Downloaded derive_more v2.0.1 [INFO] [stderr] Downloaded derive_more-impl v2.0.1 [INFO] [stderr] Downloaded hyper-util v0.1.17 [INFO] [stderr] Downloaded rustls-webpki v0.103.7 [INFO] [stderr] Downloaded wit-bindgen v0.46.0 [INFO] [stderr] Downloaded hyper v1.7.0 [INFO] [stderr] Downloaded h2 v0.4.12 [INFO] [stderr] Downloaded wasip2 v1.0.1+wasi-0.2.4 [INFO] [stderr] Downloaded reqwest v0.12.23 [INFO] [stderr] Downloaded mime_guess v2.0.5 [INFO] [stderr] Downloaded strum_macros v0.26.4 [INFO] [stderr] Downloaded wasi v0.14.7+wasi-0.2.4 [INFO] [stderr] Downloaded rustls v0.23.32 [INFO] [stderr] Downloaded rustix v1.1.2 [INFO] [stderr] Downloaded linux-raw-sys v0.11.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f96dfabf2d848b89ac7d01d91d5f1c4737a6cb7ac83769a3c575f0a4f48ed0d3 [INFO] running `Command { std: "docker" "start" "-a" "f96dfabf2d848b89ac7d01d91d5f1c4737a6cb7ac83769a3c575f0a4f48ed0d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f96dfabf2d848b89ac7d01d91d5f1c4737a6cb7ac83769a3c575f0a4f48ed0d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f96dfabf2d848b89ac7d01d91d5f1c4737a6cb7ac83769a3c575f0a4f48ed0d3", kill_on_drop: false }` [INFO] [stdout] f96dfabf2d848b89ac7d01d91d5f1c4737a6cb7ac83769a3c575f0a4f48ed0d3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8522df3e145efe9d0f581a2f27d8f739e4b3b3e7f8bddcb72a25d57911640d83 [INFO] running `Command { std: "docker" "start" "-a" "8522df3e145efe9d0f581a2f27d8f739e4b3b3e7f8bddcb72a25d57911640d83", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling find-msvc-tools v0.1.2 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [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 derive_more-impl v2.0.1 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling derive_more v2.0.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_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling nadeo-api v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 50.78s [INFO] running `Command { std: "docker" "inspect" "8522df3e145efe9d0f581a2f27d8f739e4b3b3e7f8bddcb72a25d57911640d83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8522df3e145efe9d0f581a2f27d8f739e4b3b3e7f8bddcb72a25d57911640d83", kill_on_drop: false }` [INFO] [stdout] 8522df3e145efe9d0f581a2f27d8f739e4b3b3e7f8bddcb72a25d57911640d83 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1816893f64cd83453bb71d8b6adf1266e09bd58f07153c7f5f77129a0d5bc30 [INFO] running `Command { std: "docker" "start" "-a" "e1816893f64cd83453bb71d8b6adf1266e09bd58f07153c7f5f77129a0d5bc30", kill_on_drop: false }` [INFO] [stderr] Compiling nadeo-api v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.00s [INFO] running `Command { std: "docker" "inspect" "e1816893f64cd83453bb71d8b6adf1266e09bd58f07153c7f5f77129a0d5bc30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1816893f64cd83453bb71d8b6adf1266e09bd58f07153c7f5f77129a0d5bc30", kill_on_drop: false }` [INFO] [stdout] e1816893f64cd83453bb71d8b6adf1266e09bd58f07153c7f5f77129a0d5bc30 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 05b9c76737c05d29fa7c389f9a621dfb871f9d75217ca0ad542d67e40a2332cd [INFO] running `Command { std: "docker" "start" "-a" "05b9c76737c05d29fa7c389f9a621dfb871f9d75217ca0ad542d67e40a2332cd", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/nadeo_api-0d29a063c02883c7) [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 nadeo_api [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/request/mod.rs - request::NadeoRequest (line 18) ... FAILED [INFO] [stdout] test src/lib.rs - (line 9) ... FAILED [INFO] [stdout] test src/lib.rs - (line 53) ... FAILED [INFO] [stdout] test src/client/mod.rs - client::NadeoClient::execute (line 64) ... FAILED [INFO] [stdout] test src/client/mod.rs - client::NadeoClient (line 29) ... FAILED [INFO] [stdout] test src/auth/o_auth/mod.rs - auth::o_auth::OAuthInfo::new (line 31) ... FAILED [INFO] [stdout] test src/lib.rs - (line 32) ... FAILED [INFO] [stdout] test src/client/client_builder.rs - client::client_builder::NadeoClientBuilder::user_agent (line 54) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/request/mod.rs - request::NadeoRequest (line 18) stdout ---- [INFO] [stdout] error: expected expression, found `let` statement [INFO] [stdout] --> src/request/mod.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 11 | let request = NadeoRequest::builder() [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: only supported directly in conditions of `if` and `while` expressions [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/request/mod.rs:32:40 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_request_mod_rs_18_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 17 | let response = client.execute(request).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/request/mod.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_request_mod_rs_18_0() { [INFO] [stdout] | ------------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 15 | .build()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_request_mod_rs_18_0() -> Result<(), Box> { [INFO] [stdout] 5 | use reqwest::Method; [INFO] [stdout] ... [INFO] [stdout] 17 | let response = client.execute(request).await?; [INFO] [stdout] 18 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 9) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_9_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 13 | .await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 53) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 3 | let res = client.execute(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/lib.rs:54:26 [INFO] [stdout] | [INFO] [stdout] 3 | let res = client.execute(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/lib.rs:54:35 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_53_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 3 | let res = client.execute(request).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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/mod.rs - client::NadeoClient::execute (line 64) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client/mod.rs:75:6 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_mod_rs_64_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 14 | .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/mod.rs:85:40 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_mod_rs_64_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 24 | let response = client.execute(request).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/client/mod.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_mod_rs_64_0() { [INFO] [stdout] | ----------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 21 | .build()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_mod_rs_64_0() -> Result<(), Box> { [INFO] [stdout] 5 | use nadeo_api::auth::AuthType; [INFO] [stdout] ... [INFO] [stdout] 24 | let response = client.execute(request).await?; [INFO] [stdout] 25 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client/mod.rs - client::NadeoClient (line 29) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client/mod.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_mod_rs_29_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | .await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/auth/o_auth/mod.rs - auth::o_auth::OAuthInfo::new (line 31) stdout ---- [INFO] [stdout] error[E0603]: struct `OAuthInfo` is private [INFO] [stdout] --> src/auth/o_auth/mod.rs:33:30 [INFO] [stdout] | [INFO] [stdout] 5 | use nadeo_api::auth::o_auth::OAuthInfo; [INFO] [stdout] | ^^^^^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `OAuthInfo` is defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/auth/o_auth/mod.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) struct OAuthInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/auth/o_auth/mod.rs:36:70 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_o_auth_mod_rs_31_0() { [INFO] [stdout] | ---------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | let info = OAuthInfo::new("your_identifier", "your_secret", &client).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: E0603, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0603`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 32) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:43:6 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_32_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 14 | .await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_32_0() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 20 | .build()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_32_0() -> Result<(), Box> { [INFO] [stdout] 5 | use nadeo_api::{NadeoClient, NadeoRequest}; [INFO] [stdout] ... [INFO] [stdout] 20 | .build()?; [INFO] [stdout] 21 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client/client_builder.rs - client::client_builder::NadeoClientBuilder::user_agent (line 54) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client/client_builder.rs:61:6 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_client_builder_rs_54_0() { [INFO] [stdout] | ---------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 10 | .await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/auth/o_auth/mod.rs - auth::o_auth::OAuthInfo::new (line 31) [INFO] [stdout] src/client/client_builder.rs - client::client_builder::NadeoClientBuilder::user_agent (line 54) [INFO] [stdout] src/client/mod.rs - client::NadeoClient (line 29) [INFO] [stdout] src/client/mod.rs - client::NadeoClient::execute (line 64) [INFO] [stdout] src/lib.rs - (line 32) [INFO] [stdout] src/lib.rs - (line 53) [INFO] [stdout] src/lib.rs - (line 9) [INFO] [stdout] src/request/mod.rs - request::NadeoRequest (line 18) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "05b9c76737c05d29fa7c389f9a621dfb871f9d75217ca0ad542d67e40a2332cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05b9c76737c05d29fa7c389f9a621dfb871f9d75217ca0ad542d67e40a2332cd", kill_on_drop: false }` [INFO] [stdout] 05b9c76737c05d29fa7c389f9a621dfb871f9d75217ca0ad542d67e40a2332cd