[INFO] fetching crate clia-reqwest-ntex-stream 1.0.1... [INFO] testing clia-reqwest-ntex-stream-1.0.1 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate clia-reqwest-ntex-stream 1.0.1 into /workspace/builds/worker-116/source [INFO] validating manifest of crates.io crate clia-reqwest-ntex-stream 1.0.1 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate clia-reqwest-ntex-stream 1.0.1 [INFO] finished tweaking crates.io crate clia-reqwest-ntex-stream 1.0.1 [INFO] tweaked toml for crates.io crate clia-reqwest-ntex-stream 1.0.1 written to /workspace/builds/worker-116/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c1da7b1fe64cd4a12fef390b0393f028203fa72704006f415b416a5e1efc8a1b [INFO] running `Command { std: "docker" "start" "-a" "c1da7b1fe64cd4a12fef390b0393f028203fa72704006f415b416a5e1efc8a1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c1da7b1fe64cd4a12fef390b0393f028203fa72704006f415b416a5e1efc8a1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1da7b1fe64cd4a12fef390b0393f028203fa72704006f415b416a5e1efc8a1b", kill_on_drop: false }` [INFO] [stdout] c1da7b1fe64cd4a12fef390b0393f028203fa72704006f415b416a5e1efc8a1b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] acfc7ecad22e4b50007744b23db48b24c550a746cf5bdc55925ec8de9f47d963 [INFO] running `Command { std: "docker" "start" "-a" "acfc7ecad22e4b50007744b23db48b24c550a746cf5bdc55925ec8de9f47d963", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling cache-padded v1.2.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling event-listener v2.5.2 [INFO] [stderr] Compiling httparse v1.7.0 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Compiling futures-timer v3.0.2 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling nanorand v0.6.1 [INFO] [stderr] Compiling ipnet v2.4.0 [INFO] [stderr] Compiling futures-micro v0.5.0 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling tracing-core v0.1.25 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling ntex-service v0.3.1 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling async-oneshot v0.5.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling mio v0.8.2 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling polling v2.2.0 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling sha-1 v0.10.0 [INFO] [stderr] Compiling ntex-rt v0.4.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling ntex-util v0.1.16 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling tracing-attributes v0.1.20 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling ntex-macros v0.1.3 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling tracing v0.1.33 [INFO] [stderr] Compiling tokio-util v0.7.1 [INFO] [stderr] Compiling h2 v0.3.13 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling hyper v0.14.18 [INFO] [stderr] Compiling ntex-bytes v0.1.14 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling ntex-codec v0.6.2 [INFO] [stderr] Compiling ntex-router v0.5.1 [INFO] [stderr] Compiling ntex-io v0.1.8 [INFO] [stderr] Compiling ntex-tls v0.1.5 [INFO] [stderr] Compiling ntex-tokio v0.1.3 [INFO] [stderr] Compiling ntex v0.5.16 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.10 [INFO] [stderr] Compiling clia-reqwest-ntex-stream v1.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 31.97s [INFO] running `Command { std: "docker" "inspect" "acfc7ecad22e4b50007744b23db48b24c550a746cf5bdc55925ec8de9f47d963", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "acfc7ecad22e4b50007744b23db48b24c550a746cf5bdc55925ec8de9f47d963", kill_on_drop: false }` [INFO] [stdout] acfc7ecad22e4b50007744b23db48b24c550a746cf5bdc55925ec8de9f47d963 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1b6c69edc343de53a7b1310afb0273ae569545ea650ffecfe1503bec3bfd2957 [INFO] running `Command { std: "docker" "start" "-a" "1b6c69edc343de53a7b1310afb0273ae569545ea650ffecfe1503bec3bfd2957", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling clia-reqwest-ntex-stream v1.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.36s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/clia_reqwest_ntex_stream-d435e7212a0c5858) [INFO] running `Command { std: "docker" "inspect" "1b6c69edc343de53a7b1310afb0273ae569545ea650ffecfe1503bec3bfd2957", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b6c69edc343de53a7b1310afb0273ae569545ea650ffecfe1503bec3bfd2957", kill_on_drop: false }` [INFO] [stdout] 1b6c69edc343de53a7b1310afb0273ae569545ea650ffecfe1503bec3bfd2957 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b240c6c827ad6a2b41ee6723e62f615b70b1b7e550b7e7415da843ad96691d62 [INFO] running `Command { std: "docker" "start" "-a" "b240c6c827ad6a2b41ee6723e62f615b70b1b7e550b7e7415da843ad96691d62", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/clia_reqwest_ntex_stream-d435e7212a0c5858) [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 clia_reqwest_ntex_stream [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/lib.rs - PayloadStream (line 18) ... FAILED [INFO] [stdout] test src/lib.rs - SizedResponseStream (line 120) ... FAILED [INFO] [stdout] test src/lib.rs - ResponseStream (line 74) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - PayloadStream (line 18) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `reqwest_ntex_stream` [INFO] [stdout] --> src/lib.rs:23:55 [INFO] [stdout] | [INFO] [stdout] 7 | builder = builder.body(reqwest::Body::wrap_stream(reqwest_ntex_stream::PayloadStream { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `reqwest_ntex_stream` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 7 | builder = builder.body(reqwest::Body::wrap_stream(clia_reqwest_ntex_stream::PayloadStream { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 6 | let mut builder = client.get(url); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `url` in this scope [INFO] [stdout] --> src/lib.rs:22:34 [INFO] [stdout] | [INFO] [stdout] 6 | let mut builder = client.get(url); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `wrap_stream` found for struct `reqwest::Body` in the current scope [INFO] [stdout] --> src/lib.rs:23:43 [INFO] [stdout] | [INFO] [stdout] 7 | builder = builder.body(reqwest::Body::wrap_stream(reqwest_ntex_stream::PayloadStream { [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `reqwest::Body` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SizedResponseStream (line 120) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `reqwest_ntex_stream` [INFO] [stdout] --> src/lib.rs:125:26 [INFO] [stdout] | [INFO] [stdout] 7 | return Ok(resp.streaming(reqwest_ntex_stream::ResponseStream{ stream: stream })); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `reqwest_ntex_stream` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 7 | return Ok(resp.streaming(clia_reqwest_ntex_stream::ResponseStream{ stream: stream })); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `builder` in this scope [INFO] [stdout] --> src/lib.rs:121:11 [INFO] [stdout] | [INFO] [stdout] 3 | let res = builder.send().await; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpResponse` [INFO] [stdout] --> src/lib.rs:123:16 [INFO] [stdout] | [INFO] [stdout] 5 | let mut resp = HttpResponse::build(res.status()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use ntex::web::HttpResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:121:25 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_120_0() { [INFO] [stdout] | ------------------------------ this is not `async` [INFO] [stdout] 3 | let res = builder.send().await; [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_120_0() { [INFO] [stdout] | - help: a return type might be missing here: `-> _` [INFO] [stdout] ... [INFO] [stdout] 7 | return Ok(resp.streaming(reqwest_ntex_stream::ResponseStream{ stream: stream })); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - ResponseStream (line 74) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `reqwest_ntex_stream` [INFO] [stdout] --> src/lib.rs:79:26 [INFO] [stdout] | [INFO] [stdout] 7 | return Ok(resp.streaming(reqwest_ntex_stream::ResponseStream{ stream: stream })); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `reqwest_ntex_stream` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 7 | return Ok(resp.streaming(clia_reqwest_ntex_stream::ResponseStream{ stream: stream })); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `builder` in this scope [INFO] [stdout] --> src/lib.rs:75:11 [INFO] [stdout] | [INFO] [stdout] 3 | let res = builder.send().await; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpResponse` [INFO] [stdout] --> src/lib.rs:77:16 [INFO] [stdout] | [INFO] [stdout] 5 | let mut resp = HttpResponse::build(res.status()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use ntex::web::HttpResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_74_0() { [INFO] [stdout] | ----------------------------- this is not `async` [INFO] [stdout] 3 | let res = builder.send().await; [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_74_0() { [INFO] [stdout] | - help: a return type might be missing here: `-> _` [INFO] [stdout] ... [INFO] [stdout] 7 | return Ok(resp.streaming(reqwest_ntex_stream::ResponseStream{ stream: stream })); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - PayloadStream (line 18) [INFO] [stdout] src/lib.rs - ResponseStream (line 74) [INFO] [stdout] src/lib.rs - SizedResponseStream (line 120) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.35s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "b240c6c827ad6a2b41ee6723e62f615b70b1b7e550b7e7415da843ad96691d62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b240c6c827ad6a2b41ee6723e62f615b70b1b7e550b7e7415da843ad96691d62", kill_on_drop: false }` [INFO] [stdout] b240c6c827ad6a2b41ee6723e62f615b70b1b7e550b7e7415da843ad96691d62