Skip to content

master branch fails to build with --all-targets #1863

Closed
@matthiaskrgr

Description

@matthiaskrgr
cargo check  --all-targets

    Checking hyper v0.13.0-a.0 (/tmp/hyper)
error[E0463]: can't find crate for `futures`
 --> tests/client.rs:4:1
  |
4 | extern crate futures;
  | ^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `hyper`.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `tokio_mockstream`
   --> src/common/io/rewind.rs:128:5
    |
128 |     extern crate tokio_mockstream;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `hyper`.
warning: build failed, waiting for other jobs to finish...
error[E0425]: cannot find function `run` in module `rt`
  --> examples/proxy.rs:43:9
   |
43 |     rt::run(server);
   |         ^^^ not found in `rt`

error: unused import: `Future`
 --> examples/proxy.rs:7:23
  |
7 | use hyper::rt::{self, Future};
  |                       ^^^^^^
  |
note: lint level defined here
 --> examples/proxy.rs:1:9
  |
1 | #![deny(warnings)]
  |         ^^^^^^^^
  = note: #[deny(unused_imports)] implied by #[deny(warnings)]

error[E0277]: the trait bound `[closure@examples/proxy.rs:21:23: 34:6 client_main:_, out_addr_clone:_]: hyper::service::MakeService<&'a hyper::server::conn::AddrStream>` is not satisfied
  --> examples/proxy.rs:37:10
   |
37 |         .serve(new_service)
   |          ^^^^^ the trait `hyper::service::MakeService<&'a hyper::server::conn::AddrStream>` is not implemented for `[closure@examples/proxy.rs:21:23: 34:6 client_main:_, out_addr_clone:_]`
   |
   = note: required because of the requirements on the impl of `hyper::service::MakeServiceRef<hyper::server::conn::AddrStream>` for `[closure@examples/proxy.rs:21:23: 34:6 client_main:_, out_addr_clone:_]`

error[E0599]: no method named `map_err` found for type `hyper::Server<hyper::server::conn::AddrIncoming, [closure@examples/proxy.rs:21:23: 34:6 client_main:_, out_addr_clone:_]>` in the current scope
  --> examples/proxy.rs:38:10
   |
38 |         .map_err(|e| eprintln!("server error: {}", e));
   |          ^^^^^^^

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0277, E0425, E0599.
For more information about an error, try `rustc --explain E0277`.
error: Could not compile `hyper`.

To learn more, run the command again with --verbose.

This broke clippy CI rust-lang/rust-clippy#4270

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions