[INFO] fetching crate product-os-http-body 0.0.23... [INFO] testing product-os-http-body-0.0.23 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate product-os-http-body 0.0.23 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate product-os-http-body 0.0.23 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate product-os-http-body 0.0.23 [INFO] tweaked toml for crates.io crate product-os-http-body 0.0.23 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate product-os-http-body 0.0.23 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate product-os-http-body 0.0.23 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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 51a8fb56964ea2d796a075512889a55546e2db3c93a652f58f26f4ce04e4d677 [INFO] running `Command { std: "docker" "start" "-a" "51a8fb56964ea2d796a075512889a55546e2db3c93a652f58f26f4ce04e4d677", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "51a8fb56964ea2d796a075512889a55546e2db3c93a652f58f26f4ce04e4d677", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51a8fb56964ea2d796a075512889a55546e2db3c93a652f58f26f4ce04e4d677", kill_on_drop: false }` [INFO] [stdout] 51a8fb56964ea2d796a075512889a55546e2db3c93a652f58f26f4ce04e4d677 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6fc1ed11531ce220053b61a815b94e7f8908e1c140b03aa9d99f302de6f7f348 [INFO] running `Command { std: "docker" "start" "-a" "6fc1ed11531ce220053b61a815b94e7f8908e1c140b03aa9d99f302de6f7f348", kill_on_drop: false }` [INFO] [stderr] Compiling no-std-compat v0.4.1 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling core-error v0.0.1-rc4 [INFO] [stderr] Compiling tokio v1.44.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling product-os-http v0.0.8 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling product-os-http-body v0.0.23 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::prelude::v1::*` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::prelude::v1::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryStream` [INFO] [stdout] --> src/body_bytes.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | use futures::{Stream, TryStream, TryStreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::BodyError` [INFO] [stdout] --> src/body_bytes.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::BodyError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/body_bytes.rs:63:35 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn new_stream>>(s: impl Stream>>(s: impl Stream> + Send + 'static) -> Self { [INFO] [stdout] 63 + pub fn new_stream>>(s: impl Stream> + Send + 'static) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::StreamExt` [INFO] [stdout] --> src/body_bytes.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryStreamExt` [INFO] [stdout] --> src/body_bytes.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | use futures::{Stream, TryStream, TryStreamExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/body_bytes.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | _ => Poll::Ready(Some(Err(Error::DecodeToBytes(format!("Cannot poll frame"))))) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/body_bytes.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 178 | Internal::Collected(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 179 | Internal::Empty(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 180 | Internal::Full(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 181 | Internal::String(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 212 | _ => Poll::Ready(Some(Err(Error::DecodeToBytes(format!("Cannot poll frame"))))) [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/body_bytes.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | _ => false [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/body_bytes.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 218 | Internal::Collected(body) => body.is_end_stream(), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 219 | Internal::Empty(body) => body.is_end_stream(), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 220 | Internal::Full(body) => body.is_end_stream(), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 221 | Internal::String(body) => body.is_end_stream(), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 230 | _ => false [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/body_bytes.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | _ => SizeHint::new() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/body_bytes.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 236 | Internal::Collected(body) => body.size_hint(), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 237 | Internal::Empty(body) => body.size_hint(), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 238 | Internal::Full(body) => body.size_hint(), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 239 | Internal::String(body) => body.size_hint(), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 248 | _ => SizeHint::new() [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opt` [INFO] [stdout] --> src/data_stream.rs:295:53 [INFO] [stdout] | [INFO] [stdout] 295 | .map(|opt_chunk| opt_chunk.map_err(|opt| BodyError::Network(format!("Network error")))), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_opt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opt` [INFO] [stdout] --> src/data_stream.rs:338:49 [INFO] [stdout] | [INFO] [stdout] 338 | .map(|opt_chunk| opt_chunk.map_err(|opt| BodyError::Network(format!("Network error")))); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_opt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `try_reuse`, `try_clone`, `into_stream`, and `content_length` are never used [INFO] [stdout] --> src/data_stream.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 61 | impl DataStreamBody { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 125 | pub(crate) fn try_reuse(self) -> (Option, Self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub(crate) fn try_clone(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub(crate) fn into_stream(self) -> DataStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub(crate) fn content_length(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `total_timeout` is never used [INFO] [stdout] --> src/data_stream.rs:262:15 [INFO] [stdout] | [INFO] [stdout] 262 | pub(crate) fn total_timeout(body: B, timeout: Pin>) -> TotalTimeoutBody { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `with_read_timeout` is never used [INFO] [stdout] --> src/data_stream.rs:269:15 [INFO] [stdout] | [INFO] [stdout] 269 | pub(crate) fn with_read_timeout(body: B, timeout: Duration) -> ReadTimeoutBody { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ResponseBody` is never used [INFO] [stdout] --> src/data_stream.rs:355:17 [INFO] [stdout] | [INFO] [stdout] 355 | pub(crate) type ResponseBody = [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `boxed` is never used [INFO] [stdout] --> src/data_stream.rs:358:15 [INFO] [stdout] | [INFO] [stdout] 358 | pub(crate) fn boxed(body: B) -> ResponseBody [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `response` is never used [INFO] [stdout] --> src/data_stream.rs:368:15 [INFO] [stdout] | [INFO] [stdout] 368 | pub(crate) fn response( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `box_err` is never used [INFO] [stdout] --> src/data_stream.rs:390:4 [INFO] [stdout] | [INFO] [stdout] 390 | fn box_err(err: E) -> Box [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.08s [INFO] running `Command { std: "docker" "inspect" "6fc1ed11531ce220053b61a815b94e7f8908e1c140b03aa9d99f302de6f7f348", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6fc1ed11531ce220053b61a815b94e7f8908e1c140b03aa9d99f302de6f7f348", kill_on_drop: false }` [INFO] [stdout] 6fc1ed11531ce220053b61a815b94e7f8908e1c140b03aa9d99f302de6f7f348 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1cddfa57600114b680681f45126215f0f2090e443b2d9048a454b86d2c33f4be [INFO] running `Command { std: "docker" "start" "-a" "1cddfa57600114b680681f45126215f0f2090e443b2d9048a454b86d2c33f4be", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling tokio v1.44.2 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling product-os-http-body v0.0.23 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::prelude::v1::*` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::prelude::v1::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryStream` [INFO] [stdout] --> src/body_bytes.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | use futures::{Stream, TryStream, TryStreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::BodyError` [INFO] [stdout] --> src/body_bytes.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::BodyError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/body_bytes.rs:63:35 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn new_stream>>(s: impl Stream>>(s: impl Stream> + Send + 'static) -> Self { [INFO] [stdout] 63 + pub fn new_stream>>(s: impl Stream> + Send + 'static) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::StreamExt` [INFO] [stdout] --> src/body_bytes.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryStreamExt` [INFO] [stdout] --> src/body_bytes.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | use futures::{Stream, TryStream, TryStreamExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/body_bytes.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | _ => Poll::Ready(Some(Err(Error::DecodeToBytes(format!("Cannot poll frame"))))) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/body_bytes.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 178 | Internal::Collected(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 179 | Internal::Empty(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 180 | Internal::Full(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 181 | Internal::String(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 212 | _ => Poll::Ready(Some(Err(Error::DecodeToBytes(format!("Cannot poll frame"))))) [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/body_bytes.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | _ => false [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/body_bytes.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 218 | Internal::Collected(body) => body.is_end_stream(), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 219 | Internal::Empty(body) => body.is_end_stream(), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 220 | Internal::Full(body) => body.is_end_stream(), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 221 | Internal::String(body) => body.is_end_stream(), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 230 | _ => false [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/body_bytes.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | _ => SizeHint::new() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/body_bytes.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 236 | Internal::Collected(body) => body.size_hint(), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 237 | Internal::Empty(body) => body.size_hint(), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 238 | Internal::Full(body) => body.size_hint(), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 239 | Internal::String(body) => body.size_hint(), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 248 | _ => SizeHint::new() [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opt` [INFO] [stdout] --> src/data_stream.rs:295:53 [INFO] [stdout] | [INFO] [stdout] 295 | .map(|opt_chunk| opt_chunk.map_err(|opt| BodyError::Network(format!("Network error")))), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_opt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opt` [INFO] [stdout] --> src/data_stream.rs:338:49 [INFO] [stdout] | [INFO] [stdout] 338 | .map(|opt_chunk| opt_chunk.map_err(|opt| BodyError::Network(format!("Network error")))); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_opt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `try_reuse`, `try_clone`, `into_stream`, and `content_length` are never used [INFO] [stdout] --> src/data_stream.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 61 | impl DataStreamBody { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 125 | pub(crate) fn try_reuse(self) -> (Option, Self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub(crate) fn try_clone(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub(crate) fn into_stream(self) -> DataStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub(crate) fn content_length(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `total_timeout` is never used [INFO] [stdout] --> src/data_stream.rs:262:15 [INFO] [stdout] | [INFO] [stdout] 262 | pub(crate) fn total_timeout(body: B, timeout: Pin>) -> TotalTimeoutBody { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `with_read_timeout` is never used [INFO] [stdout] --> src/data_stream.rs:269:15 [INFO] [stdout] | [INFO] [stdout] 269 | pub(crate) fn with_read_timeout(body: B, timeout: Duration) -> ReadTimeoutBody { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ResponseBody` is never used [INFO] [stdout] --> src/data_stream.rs:355:17 [INFO] [stdout] | [INFO] [stdout] 355 | pub(crate) type ResponseBody = [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `boxed` is never used [INFO] [stdout] --> src/data_stream.rs:358:15 [INFO] [stdout] | [INFO] [stdout] 358 | pub(crate) fn boxed(body: B) -> ResponseBody [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `response` is never used [INFO] [stdout] --> src/data_stream.rs:368:15 [INFO] [stdout] | [INFO] [stdout] 368 | pub(crate) fn response( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `box_err` is never used [INFO] [stdout] --> src/data_stream.rs:390:4 [INFO] [stdout] | [INFO] [stdout] 390 | fn box_err(err: E) -> Box [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::prelude::v1::*` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::prelude::v1::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryStream` [INFO] [stdout] --> src/body_bytes.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | use futures::{Stream, TryStream, TryStreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::BodyError` [INFO] [stdout] --> src/body_bytes.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::BodyError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/body_bytes.rs:63:35 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn new_stream>>(s: impl Stream>>(s: impl Stream> + Send + 'static) -> Self { [INFO] [stdout] 63 + pub fn new_stream>>(s: impl Stream> + Send + 'static) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::StreamExt` [INFO] [stdout] --> src/body_bytes.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryStreamExt` [INFO] [stdout] --> src/body_bytes.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | use futures::{Stream, TryStream, TryStreamExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/body_bytes.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | _ => Poll::Ready(Some(Err(Error::DecodeToBytes(format!("Cannot poll frame"))))) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/body_bytes.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 178 | Internal::Collected(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 179 | Internal::Empty(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 180 | Internal::Full(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 181 | Internal::String(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 212 | _ => Poll::Ready(Some(Err(Error::DecodeToBytes(format!("Cannot poll frame"))))) [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/body_bytes.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | _ => false [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/body_bytes.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 218 | Internal::Collected(body) => body.is_end_stream(), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 219 | Internal::Empty(body) => body.is_end_stream(), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 220 | Internal::Full(body) => body.is_end_stream(), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 221 | Internal::String(body) => body.is_end_stream(), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 230 | _ => false [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/body_bytes.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | _ => SizeHint::new() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/body_bytes.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 236 | Internal::Collected(body) => body.size_hint(), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 237 | Internal::Empty(body) => body.size_hint(), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 238 | Internal::Full(body) => body.size_hint(), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 239 | Internal::String(body) => body.size_hint(), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 248 | _ => SizeHint::new() [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opt` [INFO] [stdout] --> src/data_stream.rs:295:53 [INFO] [stdout] | [INFO] [stdout] 295 | .map(|opt_chunk| opt_chunk.map_err(|opt| BodyError::Network(format!("Network error")))), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_opt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opt` [INFO] [stdout] --> src/data_stream.rs:338:49 [INFO] [stdout] | [INFO] [stdout] 338 | .map(|opt_chunk| opt_chunk.map_err(|opt| BodyError::Network(format!("Network error")))); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_opt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `try_reuse`, `try_clone`, `into_stream`, and `content_length` are never used [INFO] [stdout] --> src/data_stream.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 61 | impl DataStreamBody { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 125 | pub(crate) fn try_reuse(self) -> (Option, Self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub(crate) fn try_clone(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub(crate) fn into_stream(self) -> DataStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub(crate) fn content_length(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `total_timeout` is never used [INFO] [stdout] --> src/data_stream.rs:262:15 [INFO] [stdout] | [INFO] [stdout] 262 | pub(crate) fn total_timeout(body: B, timeout: Pin>) -> TotalTimeoutBody { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `with_read_timeout` is never used [INFO] [stdout] --> src/data_stream.rs:269:15 [INFO] [stdout] | [INFO] [stdout] 269 | pub(crate) fn with_read_timeout(body: B, timeout: Duration) -> ReadTimeoutBody { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ResponseBody` is never used [INFO] [stdout] --> src/data_stream.rs:355:17 [INFO] [stdout] | [INFO] [stdout] 355 | pub(crate) type ResponseBody = [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `boxed` is never used [INFO] [stdout] --> src/data_stream.rs:358:15 [INFO] [stdout] | [INFO] [stdout] 358 | pub(crate) fn boxed(body: B) -> ResponseBody [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `response` is never used [INFO] [stdout] --> src/data_stream.rs:368:15 [INFO] [stdout] | [INFO] [stdout] 368 | pub(crate) fn response( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `box_err` is never used [INFO] [stdout] --> src/data_stream.rs:390:4 [INFO] [stdout] | [INFO] [stdout] 390 | fn box_err(err: E) -> Box [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 10.71s [INFO] running `Command { std: "docker" "inspect" "1cddfa57600114b680681f45126215f0f2090e443b2d9048a454b86d2c33f4be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1cddfa57600114b680681f45126215f0f2090e443b2d9048a454b86d2c33f4be", kill_on_drop: false }` [INFO] [stdout] 1cddfa57600114b680681f45126215f0f2090e443b2d9048a454b86d2c33f4be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1efcd507f877dc0cea280b5d6f1f2678be8940714f099eef165b9e3e83742bcc [INFO] running `Command { std: "docker" "start" "-a" "1efcd507f877dc0cea280b5d6f1f2678be8940714f099eef165b9e3e83742bcc", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::prelude::v1::*` [INFO] [stderr] --> src/lib.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::prelude::v1::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `TryStream` [INFO] [stderr] --> src/body_bytes.rs:9:23 [INFO] [stderr] | [INFO] [stderr] 9 | use futures::{Stream, TryStream, TryStreamExt}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::BodyError` [INFO] [stderr] --> src/body_bytes.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use crate::BodyError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/body_bytes.rs:63:35 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn new_stream>>(s: impl Stream>>(s: impl Stream> + Send + 'static) -> Self { [INFO] [stderr] 63 + pub fn new_stream>>(s: impl Stream> + Send + 'static) -> Self { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `futures::StreamExt` [INFO] [stderr] --> src/body_bytes.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use futures::StreamExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `TryStreamExt` [INFO] [stderr] --> src/body_bytes.rs:9:34 [INFO] [stderr] | [INFO] [stderr] 9 | use futures::{Stream, TryStream, TryStreamExt}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/body_bytes.rs:212:13 [INFO] [stderr] | [INFO] [stderr] 212 | _ => Poll::Ready(Some(Err(Error::DecodeToBytes(format!("Cannot poll frame"))))) [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/body_bytes.rs:212:13 [INFO] [stderr] | [INFO] [stderr] 178 | Internal::Collected(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stderr] | ------------------------- matches some of the same values [INFO] [stderr] 179 | Internal::Empty(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stderr] | --------------------- matches some of the same values [INFO] [stderr] 180 | Internal::Full(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stderr] | -------------------- matches some of the same values [INFO] [stderr] 181 | Internal::String(body) => Pin::new(body).poll_frame(cx).map_err(|e| match e {}), [INFO] [stderr] | ---------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 212 | _ => Poll::Ready(Some(Err(Error::DecodeToBytes(format!("Cannot poll frame"))))) [INFO] [stderr] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/body_bytes.rs:230:13 [INFO] [stderr] | [INFO] [stderr] 230 | _ => false [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/body_bytes.rs:230:13 [INFO] [stderr] | [INFO] [stderr] 218 | Internal::Collected(body) => body.is_end_stream(), [INFO] [stderr] | ------------------------- matches some of the same values [INFO] [stderr] 219 | Internal::Empty(body) => body.is_end_stream(), [INFO] [stderr] | --------------------- matches some of the same values [INFO] [stderr] 220 | Internal::Full(body) => body.is_end_stream(), [INFO] [stderr] | -------------------- matches some of the same values [INFO] [stderr] 221 | Internal::String(body) => body.is_end_stream(), [INFO] [stderr] | ---------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 230 | _ => false [INFO] [stderr] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/body_bytes.rs:248:13 [INFO] [stderr] | [INFO] [stderr] 248 | _ => SizeHint::new() [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/body_bytes.rs:248:13 [INFO] [stderr] | [INFO] [stderr] 236 | Internal::Collected(body) => body.size_hint(), [INFO] [stderr] | ------------------------- matches some of the same values [INFO] [stderr] 237 | Internal::Empty(body) => body.size_hint(), [INFO] [stderr] | --------------------- matches some of the same values [INFO] [stderr] 238 | Internal::Full(body) => body.size_hint(), [INFO] [stderr] | -------------------- matches some of the same values [INFO] [stderr] 239 | Internal::String(body) => body.size_hint(), [INFO] [stderr] | ---------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 248 | _ => SizeHint::new() [INFO] [stderr] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stderr] [INFO] [stderr] warning: unused variable: `opt` [INFO] [stderr] --> src/data_stream.rs:295:53 [INFO] [stderr] | [INFO] [stderr] 295 | .map(|opt_chunk| opt_chunk.map_err(|opt| BodyError::Network(format!("Network error")))), [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_opt` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `opt` [INFO] [stderr] --> src/data_stream.rs:338:49 [INFO] [stderr] | [INFO] [stderr] 338 | .map(|opt_chunk| opt_chunk.map_err(|opt| BodyError::Network(format!("Network error")))); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_opt` [INFO] [stderr] [INFO] [stderr] warning: methods `try_reuse`, `try_clone`, `into_stream`, and `content_length` are never used [INFO] [stderr] --> src/data_stream.rs:125:19 [INFO] [stderr] | [INFO] [stderr] 61 | impl DataStreamBody { [INFO] [stderr] | ------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 125 | pub(crate) fn try_reuse(self) -> (Option, Self) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 134 | pub(crate) fn try_clone(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 141 | pub(crate) fn into_stream(self) -> DataStream { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 145 | pub(crate) fn content_length(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `total_timeout` is never used [INFO] [stderr] --> src/data_stream.rs:262:15 [INFO] [stderr] | [INFO] [stderr] 262 | pub(crate) fn total_timeout(body: B, timeout: Pin>) -> TotalTimeoutBody { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `with_read_timeout` is never used [INFO] [stderr] --> src/data_stream.rs:269:15 [INFO] [stderr] | [INFO] [stderr] 269 | pub(crate) fn with_read_timeout(body: B, timeout: Duration) -> ReadTimeoutBody { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `ResponseBody` is never used [INFO] [stderr] --> src/data_stream.rs:355:17 [INFO] [stderr] | [INFO] [stderr] 355 | pub(crate) type ResponseBody = [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `boxed` is never used [INFO] [stderr] --> src/data_stream.rs:358:15 [INFO] [stderr] | [INFO] [stderr] 358 | pub(crate) fn boxed(body: B) -> ResponseBody [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `response` is never used [INFO] [stderr] --> src/data_stream.rs:368:15 [INFO] [stderr] | [INFO] [stderr] 368 | pub(crate) fn response( [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `box_err` is never used [INFO] [stderr] --> src/data_stream.rs:390:4 [INFO] [stderr] | [INFO] [stderr] 390 | fn box_err(err: E) -> Box [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `product-os-http-body` (lib) generated 18 warnings (run `cargo fix --lib -p product-os-http-body` to apply 4 suggestions) [INFO] [stderr] warning: `product-os-http-body` (lib test) generated 18 warnings (18 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/product_os_http_body-144e77d31555851b) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test data_stream::tests::body_exact_length ... ok [INFO] [stdout] test data_stream::tests::test_as_bytes ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/is_end_stream.rs (/opt/rustwide/target/debug/deps/is_end_stream-b70b37e51b778cd1) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test is_end_stream_default_false ... ok [INFO] [stdout] test is_end_stream_true ... ok [INFO] [stdout] [INFO] [stderr] Doc-tests product_os_http_body [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/body_bytes.rs:63:35 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn new_stream>>(s: impl Stream>>(s: impl Stream> + Send + 'static) -> Self { [INFO] [stderr] 63 + pub fn new_stream>>(s: impl Stream> + Send + 'static) -> Self { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [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.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1efcd507f877dc0cea280b5d6f1f2678be8940714f099eef165b9e3e83742bcc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1efcd507f877dc0cea280b5d6f1f2678be8940714f099eef165b9e3e83742bcc", kill_on_drop: false }` [INFO] [stdout] 1efcd507f877dc0cea280b5d6f1f2678be8940714f099eef165b9e3e83742bcc