[INFO] fetching crate product-os-http-body 0.0.23... [INFO] building product-os-http-body-0.0.23 against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] extracting crate product-os-http-body 0.0.23 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate product-os-http-body 0.0.23 on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-0-tc2/source/Cargo.toml [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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 52257980cf93ddc18a109e16b2c7ef39d7e9998667de6b1612e95ba9f3586ba0 [INFO] running `Command { std: "docker" "start" "-a" "52257980cf93ddc18a109e16b2c7ef39d7e9998667de6b1612e95ba9f3586ba0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "52257980cf93ddc18a109e16b2c7ef39d7e9998667de6b1612e95ba9f3586ba0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52257980cf93ddc18a109e16b2c7ef39d7e9998667de6b1612e95ba9f3586ba0", kill_on_drop: false }` [INFO] [stdout] 52257980cf93ddc18a109e16b2c7ef39d7e9998667de6b1612e95ba9f3586ba0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 65a97c0a0a247ad21e5953a80b8624bc82bef434e18c6f9fd5b60472096a06bd [INFO] running `Command { std: "docker" "start" "-a" "65a97c0a0a247ad21e5953a80b8624bc82bef434e18c6f9fd5b60472096a06bd", kill_on_drop: false }` [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling no-std-compat v0.4.1 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [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 core-error v0.0.1-rc4 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling product-os-http v0.0.8 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling thiserror-impl 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: 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.10s [INFO] running `Command { std: "docker" "inspect" "65a97c0a0a247ad21e5953a80b8624bc82bef434e18c6f9fd5b60472096a06bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65a97c0a0a247ad21e5953a80b8624bc82bef434e18c6f9fd5b60472096a06bd", kill_on_drop: false }` [INFO] [stdout] 65a97c0a0a247ad21e5953a80b8624bc82bef434e18c6f9fd5b60472096a06bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f28edaf6d794e14bba218f8d7053c1bb1fceda57820e197930cbde16d2ea38c8 [INFO] running `Command { std: "docker" "start" "-a" "f28edaf6d794e14bba218f8d7053c1bb1fceda57820e197930cbde16d2ea38c8", 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 hyper v1.6.0 [INFO] [stderr] Compiling tokio-util v0.7.15 [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: 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: 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.95s [INFO] running `Command { std: "docker" "inspect" "f28edaf6d794e14bba218f8d7053c1bb1fceda57820e197930cbde16d2ea38c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f28edaf6d794e14bba218f8d7053c1bb1fceda57820e197930cbde16d2ea38c8", kill_on_drop: false }` [INFO] [stdout] f28edaf6d794e14bba218f8d7053c1bb1fceda57820e197930cbde16d2ea38c8