[INFO] fetching crate product-os-http-body 0.0.23... [INFO] checking product-os-http-body-0.0.23 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [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 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 067ae689a09c6b7f24891a427bb548603c548bb1b4a4653a077d3b1d562f6e77 [INFO] running `Command { std: "docker" "start" "-a" "067ae689a09c6b7f24891a427bb548603c548bb1b4a4653a077d3b1d562f6e77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "067ae689a09c6b7f24891a427bb548603c548bb1b4a4653a077d3b1d562f6e77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "067ae689a09c6b7f24891a427bb548603c548bb1b4a4653a077d3b1d562f6e77", kill_on_drop: false }` [INFO] [stdout] 067ae689a09c6b7f24891a427bb548603c548bb1b4a4653a077d3b1d562f6e77 [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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 074bc38ec5770e6d014435de090bd0aa90f4ed8618c7bae5d39d95598ff41197 [INFO] running `Command { std: "docker" "start" "-a" "074bc38ec5770e6d014435de090bd0aa90f4ed8618c7bae5d39d95598ff41197", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking no-std-compat v0.4.1 [INFO] [stderr] Compiling core-error v0.0.1-rc4 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking product-os-http v0.0.8 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Checking tokio v1.44.2 [INFO] [stderr] Checking thiserror v2.0.12 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking 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)]` (part of `#[warn(unused)]`) 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: `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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: 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: 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)]` (part of `#[warn(unused)]`) 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] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:78:29 [INFO] [stdout] | [INFO] [stdout] 78 | let bytes = e.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:78:41 [INFO] [stdout] | [INFO] [stdout] 78 | let bytes = e.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:78:29 [INFO] [stdout] | [INFO] [stdout] 78 | let bytes = e.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | let bytes = f.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:82:41 [INFO] [stdout] | [INFO] [stdout] 82 | let bytes = f.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | let bytes = f.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:86:29 [INFO] [stdout] | [INFO] [stdout] 86 | let bytes = c.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:86:41 [INFO] [stdout] | [INFO] [stdout] 86 | let bytes = c.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:86:29 [INFO] [stdout] | [INFO] [stdout] 86 | let bytes = c.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:114:29 [INFO] [stdout] | [INFO] [stdout] 114 | let bytes = e.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:114:41 [INFO] [stdout] | [INFO] [stdout] 114 | let bytes = e.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:114:29 [INFO] [stdout] | [INFO] [stdout] 114 | let bytes = e.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:119:29 [INFO] [stdout] | [INFO] [stdout] 119 | let bytes = f.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:119:41 [INFO] [stdout] | [INFO] [stdout] 119 | let bytes = f.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:119:29 [INFO] [stdout] | [INFO] [stdout] 119 | let bytes = f.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 124 | let bytes = c.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:124:41 [INFO] [stdout] | [INFO] [stdout] 124 | let bytes = c.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 124 | let bytes = c.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:125:50 [INFO] [stdout] | [INFO] [stdout] 125 | self.inner = Internal::Collected(Full::new(bytes.to_owned()).collect().await.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:125:88 [INFO] [stdout] | [INFO] [stdout] 125 | self.inner = Internal::Collected(Full::new(bytes.to_owned()).collect().await.unwrap()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:125:50 [INFO] [stdout] | [INFO] [stdout] 125 | self.inner = Internal::Collected(Full::new(bytes.to_owned()).collect().await.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:131:50 [INFO] [stdout] | [INFO] [stdout] 131 | self.inner = Internal::Collected(Full::new(bytes.to_owned()).collect().await.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:131:88 [INFO] [stdout] | [INFO] [stdout] 131 | self.inner = Internal::Collected(Full::new(bytes.to_owned()).collect().await.unwrap()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:131:50 [INFO] [stdout] | [INFO] [stdout] 131 | self.inner = Internal::Collected(Full::new(bytes.to_owned()).collect().await.unwrap()); [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `product-os-http-body` (lib) due to 24 previous errors; 18 warnings emitted [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] [stderr] warning: build failed, waiting for other jobs to finish... [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)]` (part of `#[warn(unused)]`) 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] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:78:29 [INFO] [stdout] | [INFO] [stdout] 78 | let bytes = e.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:78:41 [INFO] [stdout] | [INFO] [stdout] 78 | let bytes = e.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:78:29 [INFO] [stdout] | [INFO] [stdout] 78 | let bytes = e.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | let bytes = f.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:82:41 [INFO] [stdout] | [INFO] [stdout] 82 | let bytes = f.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | let bytes = f.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:86:29 [INFO] [stdout] | [INFO] [stdout] 86 | let bytes = c.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:86:41 [INFO] [stdout] | [INFO] [stdout] 86 | let bytes = c.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:86:29 [INFO] [stdout] | [INFO] [stdout] 86 | let bytes = c.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:114:29 [INFO] [stdout] | [INFO] [stdout] 114 | let bytes = e.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:114:41 [INFO] [stdout] | [INFO] [stdout] 114 | let bytes = e.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:114:29 [INFO] [stdout] | [INFO] [stdout] 114 | let bytes = e.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:119:29 [INFO] [stdout] | [INFO] [stdout] 119 | let bytes = f.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:119:41 [INFO] [stdout] | [INFO] [stdout] 119 | let bytes = f.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:119:29 [INFO] [stdout] | [INFO] [stdout] 119 | let bytes = f.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 124 | let bytes = c.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:124:41 [INFO] [stdout] | [INFO] [stdout] 124 | let bytes = c.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 124 | let bytes = c.collect().await.unwrap().to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:125:50 [INFO] [stdout] | [INFO] [stdout] 125 | self.inner = Internal::Collected(Full::new(bytes.to_owned()).collect().await.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:125:88 [INFO] [stdout] | [INFO] [stdout] 125 | self.inner = Internal::Collected(Full::new(bytes.to_owned()).collect().await.unwrap()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:125:50 [INFO] [stdout] | [INFO] [stdout] 125 | self.inner = Internal::Collected(Full::new(bytes.to_owned()).collect().await.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:131:50 [INFO] [stdout] | [INFO] [stdout] 131 | self.inner = Internal::Collected(Full::new(bytes.to_owned()).collect().await.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:131:88 [INFO] [stdout] | [INFO] [stdout] 131 | self.inner = Internal::Collected(Full::new(bytes.to_owned()).collect().await.unwrap()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, core::convert::Infallible> [INFO] [stdout] --> src/body_bytes.rs:131:50 [INFO] [stdout] | [INFO] [stdout] 131 | self.inner = Internal::Collected(Full::new(bytes.to_owned()).collect().await.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `product-os-http-body` (lib test) due to 24 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "074bc38ec5770e6d014435de090bd0aa90f4ed8618c7bae5d39d95598ff41197", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "074bc38ec5770e6d014435de090bd0aa90f4ed8618c7bae5d39d95598ff41197", kill_on_drop: false }` [INFO] [stdout] 074bc38ec5770e6d014435de090bd0aa90f4ed8618c7bae5d39d95598ff41197