chore(deps): upgrade to hyper 1.x #1855
Annotations
12 errors
package (amd64, gnu):
linkerd/proxy/http/src/orig_proto.rs#L214
error[E0407]: method `poll_data` is not a member of trait `Body`
--> linkerd/proxy/http/src/orig_proto.rs:214:5
|
214 | / fn poll_data(
215 | | self: Pin<&mut Self>,
216 | | cx: &mut Context<'_>,
217 | | ) -> Poll<Option<Result<Self::Data, Self::Error>>> {
... |
221 | | .map_err(downgrade_h2_error)
222 | | }
| |_____^ not a member of trait `Body`
|
package (amd64, gnu):
linkerd/proxy/http/src/orig_proto.rs#L224
error[E0407]: method `poll_trailers` is not a member of trait `Body`
--> linkerd/proxy/http/src/orig_proto.rs:224:5
|
224 | / fn poll_trailers(
225 | | self: Pin<&mut Self>,
226 | | cx: &mut Context<'_>,
227 | | ) -> Poll<Result<Option<http::HeaderMap>, Self::Error>> {
... |
231 | | .map_err(downgrade_h2_error)
232 | | }
| |_____^ not a member of trait `Body`
|
package (amd64, gnu):
linkerd/proxy/http/src/h1.rs#L36
error[E0412]: cannot find type `Client` in crate `hyper`
--> linkerd/proxy/http/src/h1.rs:36:34
|
36 | absolute_form: Option<hyper::Client<HyperConnect<C, T>, B>>,
| ^^^^^^ not found in `hyper`
|
help: consider importing this enum
|
1 + use crate::client::Client;
|
help: if you import `Client`, refer to it directly
|
36 - absolute_form: Option<hyper::Client<HyperConnect<C, T>, B>>,
36 + absolute_form: Option<Client<HyperConnect<C, T>, B>>,
|
|
package (amd64, gnu):
linkerd/proxy/http/src/h1.rs#L37
error[E0412]: cannot find type `Client` in crate `hyper`
--> linkerd/proxy/http/src/h1.rs:37:32
|
37 | origin_form: Option<hyper::Client<HyperConnect<C, T>, B>>,
| ^^^^^^ not found in `hyper`
|
help: consider importing this enum
|
1 + use crate::client::Client;
|
help: if you import `Client`, refer to it directly
|
37 - origin_form: Option<hyper::Client<HyperConnect<C, T>, B>>,
37 + origin_form: Option<Client<HyperConnect<C, T>, B>>,
|
|
package (amd64, gnu):
linkerd/proxy/http/src/h1.rs#L97
error[E0433]: failed to resolve: could not find `Client` in `hyper`
--> linkerd/proxy/http/src/h1.rs:97:20
|
97 | hyper::Client::builder()
| ^^^^^^ could not find `Client` in `hyper`
|
help: consider importing one of these items
|
1 + use crate::client::Client;
|
1 + use crate::h1::Client;
|
help: if you import `Client`, refer to it directly
|
97 - hyper::Client::builder()
97 + Client::builder()
|
|
package (amd64, gnu):
linkerd/proxy/http/src/h1.rs#L123
error[E0433]: failed to resolve: could not find `Client` in `hyper`
--> linkerd/proxy/http/src/h1.rs:123:28
|
123 | hyper::Client::builder()
| ^^^^^^ could not find `Client` in `hyper`
|
help: consider importing one of these items
|
1 + use crate::client::Client;
|
1 + use crate::h1::Client;
|
help: if you import `Client`, refer to it directly
|
123 - hyper::Client::builder()
123 + Client::builder()
|
|
package (amd64, gnu):
linkerd/proxy/http/src/h2.rs#L150
error[E0412]: cannot find type `Body` in crate `hyper`
--> linkerd/proxy/http/src/h2.rs:150:43
|
150 | type Response = http::Response<hyper::Body>;
| ^^^^ not found in `hyper`
|
help: consider importing one of these items
|
1 + use crate::Body;
|
1 + use crate::balance::Body;
|
1 + use http_body::Body;
|
1 + use hyper::body::Body;
|
help: if you import `Body`, refer to it directly
|
150 - type Response = http::Response<hyper::Body>;
150 + type Response = http::Response<Body>;
|
|
package (amd64, gnu):
linkerd/proxy/http/src/orig_proto.rs#L201
error[E0046]: not all trait items implemented, missing: `poll_frame`
--> linkerd/proxy/http/src/orig_proto.rs:201:1
|
201 | / impl<B> Body for UpgradeResponseBody<B>
202 | | where
203 | | B: Body + Unpin,
204 | | B::Error: std::error::Error + Send + Sync + 'static,
| |________________________________________________________^ missing `poll_frame` in implementation
|
= help: implement the missing item: `fn poll_frame(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Option<Result<Frame<<Self as http_body::Body>::Data>, <Self as http_body::Body>::Error>>> { todo!() }`
|
package (amd64, gnu):
linkerd/proxy/http/src/client.rs#L90
error[E0282]: type annotations needed
--> linkerd/proxy/http/src/client.rs:90:56
|
90 | Params::Http1(params) => Client::Http1(h1::Client::new(connect, target, params)),
| ^^^^^^^^^^^^^^^ cannot infer type of the type parameter `B` declared on the struct `Client`
|
help: consider specifying the generic arguments
|
90 | Params::Http1(params) => Client::Http1(h1::Client::<C, T, B>::new(connect, target, params)),
| +++++++++++
|
package (amd64, gnu):
linkerd/proxy/http/src/h2.rs#L126
error[E0277]: the trait bound `<C as linkerd_stack::MakeConnection<(linkerd_http_version::Version, T)>>::Connection: hyper::rt::Read` is not satisfied
--> linkerd/proxy/http/src/h2.rs:126:32
|
126 | .handshake(io)
| --------- ^^ the trait `hyper::rt::Read` is not implemented for `<C as linkerd_stack::MakeConnection<(linkerd_http_version::Version, T)>>::Connection`
| |
| required by a bound introduced by this call
|
note: required by a bound in `hyper::client::conn::http2::Builder::<Ex>::handshake`
--> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-1.5.2/src/client/conn/http2.rs:478:12
|
473 | pub fn handshake<T, B>(
| --------- required by a bound in this associated function
...
478 | T: Read + Write + Unpin,
| ^^^^ required by this bound in `Builder::<Ex>::handshake`
help: consider further restricting the associated type
|
71 | fn call(&mut self, target: T) -> Self::Future where <C as linkerd_stack::MakeConnection<(linkerd_http_version::Version, T)>>::Connection: hyper::rt::Read {
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
publish
Process completed with exit code 1.
|
release-ok
Process completed with exit code 1.
|