[INFO] crate tokio 0.2.0-alpha.4 is already in cache [INFO] checking tokio-0.2.0-alpha.4 against master#446e5e57b667c841ba3ebb4b41b44fb98bd3af4b for pr-65294 [INFO] extracting crate tokio 0.2.0-alpha.4 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate tokio 0.2.0-alpha.4 on toolchain 446e5e57b667c841ba3ebb4b41b44fb98bd3af4b [INFO] running `"/workspace/cargo-home/bin/cargo" "+446e5e57b667c841ba3ebb4b41b44fb98bd3af4b" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate tokio 0.2.0-alpha.4 [INFO] finished tweaking crates.io crate tokio 0.2.0-alpha.4 [INFO] tweaked toml for crates.io crate tokio 0.2.0-alpha.4 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate crates.io crate tokio 0.2.0-alpha.4 already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+446e5e57b667c841ba3ebb4b41b44fb98bd3af4b" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+446e5e57b667c841ba3ebb4b41b44fb98bd3af4b" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2e1ec789231350c31987db48d384d73fb84b04912cc81fd49fe075f9c6d76e6d [INFO] running `"docker" "start" "-a" "2e1ec789231350c31987db48d384d73fb84b04912cc81fd49fe075f9c6d76e6d"` [INFO] [stderr] Compiling proc-macro2 v1.0.1 [INFO] [stderr] Checking futures-channel-preview v0.3.0-alpha.18 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Checking tracing-core v0.1.5 [INFO] [stderr] Checking parking_lot_core v0.6.2 [INFO] [stderr] Checking tokio-io v0.2.0-alpha.4 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking futures-util-preview v0.3.0-alpha.18 [INFO] [stderr] Checking crossbeam-epoch v0.7.2 [INFO] [stderr] Checking crossbeam-queue v0.1.2 [INFO] [stderr] Checking crossbeam-channel v0.3.9 [INFO] [stderr] Checking tokio-codec v0.2.0-alpha.4 [INFO] [stderr] Checking parking_lot v0.9.0 [INFO] [stderr] Checking crossbeam-deque v0.7.1 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Checking tokio-sync v0.2.0-alpha.4 [INFO] [stderr] Compiling tracing-attributes v0.1.2 [INFO] [stderr] Compiling tokio-macros v0.2.0-alpha.4 [INFO] [stderr] Checking tracing v0.1.6 [INFO] [stderr] Checking tokio-executor v0.2.0-alpha.4 [INFO] [stderr] Checking tokio-fs v0.2.0-alpha.4 [INFO] [stderr] Checking tokio-net v0.2.0-alpha.4 [INFO] [stderr] Checking tokio-timer v0.3.0-alpha.4 [INFO] [stderr] Checking tokio v0.2.0-alpha.4 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `mio` [INFO] [stderr] --> benches/mio-ops.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use mio::tcp::TcpListener; [INFO] [stderr] | ^^^ use of undeclared type or module `mio` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `tokio_test` [INFO] [stderr] --> tests/runtime_current_thread.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use tokio_test::{assert_err, assert_ok}; [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `tokio_test` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `env_logger` [INFO] [stderr] --> tests/runtime_current_thread.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use env_logger; [INFO] [stderr] | ^^^^^^^^^^ no `env_logger` external crate [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/runtime_current_thread.rs:16:22 [INFO] [stderr] | [INFO] [stderr] 16 | let mut server = assert_ok!(TcpListener::bind("127.0.0.1:0").await); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/runtime_current_thread.rs:19:16 [INFO] [stderr] | [INFO] [stderr] 19 | let addr = assert_ok!(server.local_addr()); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/runtime_current_thread.rs:55:5 [INFO] [stderr] | [INFO] [stderr] 55 | assert_ok!(rx.try_recv()); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/runtime_current_thread.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | assert_ok!(rx.try_recv()); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/runtime_current_thread.rs:77:5 [INFO] [stderr] | [INFO] [stderr] 77 | assert_ok!(rx.try_recv()); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/runtime_current_thread.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | assert_ok!(rx.try_recv()); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/runtime_current_thread.rs:96:5 [INFO] [stderr] | [INFO] [stderr] 96 | assert_ok!(rx.try_recv()); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_err` [INFO] [stderr] --> tests/runtime_current_thread.rs:97:5 [INFO] [stderr] | [INFO] [stderr] 97 | assert_err!(rx.try_recv()); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] warning: unused import: `TcpListener` [INFO] [stderr] --> tests/runtime_current_thread.rs:5:18 [INFO] [stderr] | [INFO] [stderr] 5 | use tokio::net::{TcpListener, TcpStream}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `AsyncWriteExt` [INFO] [stderr] --> tests/runtime_current_thread.rs:4:31 [INFO] [stderr] | [INFO] [stderr] 4 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 10 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `tokio`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `futures` [INFO] [stderr] --> benches/latency.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use futures::sync::mpsc; [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `futures` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `futures` [INFO] [stderr] --> benches/latency.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use futures::sync::oneshot; [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `futures` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `futures` [INFO] [stderr] --> benches/latency.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use futures::try_ready; [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `futures` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `futures` [INFO] [stderr] --> benches/latency.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use futures::{Future, Poll, Sink, Stream}; [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `futures` [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `try_ready` [INFO] [stderr] --> benches/latency.rs:41:17 [INFO] [stderr] | [INFO] [stderr] 41 | try_ready!(self.socket.poll_send_to(&self.buf[..size], &peer)); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `try_ready` [INFO] [stderr] --> benches/latency.rs:44:33 [INFO] [stderr] | [INFO] [stderr] 44 | self.to_send = Some(try_ready!(self.socket.poll_recv_from(&mut self.buf))); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `oneshot` [INFO] [stderr] --> benches/latency.rs:54:28 [INFO] [stderr] | [INFO] [stderr] 54 | let (stop_c, stop_p) = oneshot::channel::<()>(); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `oneshot` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `oneshot` [INFO] [stderr] --> benches/latency.rs:55:20 [INFO] [stderr] | [INFO] [stderr] 55 | let (tx, rx) = oneshot::channel(); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `oneshot` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `mpsc` [INFO] [stderr] --> benches/latency.rs:92:30 [INFO] [stderr] | [INFO] [stderr] 92 | let (mut in_tx, in_rx) = mpsc::channel(32); [INFO] [stderr] | ^^^^ use of undeclared type or module `mpsc` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `mpsc` [INFO] [stderr] --> benches/latency.rs:93:28 [INFO] [stderr] | [INFO] [stderr] 93 | let (out_tx, out_rx) = mpsc::channel::<_>(32); [INFO] [stderr] | ^^^^ use of undeclared type or module `mpsc` [INFO] [stderr] [INFO] [stderr] error: aborting due to 10 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `http` [INFO] [stderr] --> examples/tinyhttp.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use http::{header::HeaderValue, Request, Response, StatusCode}; [INFO] [stderr] | ^^^^ use of undeclared type or module `http` [INFO] [stderr] error: could not compile `tokio`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `futures` [INFO] [stderr] --> examples/tinyhttp.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use futures::{SinkExt, StreamExt}; [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `futures` [INFO] [stderr] error[E0432]: unresolved import `futures` [INFO] [stderr] --> examples/udp-codec.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use futures::{FutureExt, SinkExt, StreamExt}; [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `futures` [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `env_logger` [INFO] [stderr] --> examples/udp-codec.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | let _ = env_logger::init(); [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `env_logger` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `futures` [INFO] [stderr] --> examples/udp-codec.rs:49:11 [INFO] [stderr] | [INFO] [stderr] 49 | match futures::future::try_join(a, b).await { [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `futures` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `http` [INFO] [stderr] --> examples/tinyhttp.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use http::{header::HeaderValue, Request, Response, StatusCode}; [INFO] [stderr] | ^^^^ use of undeclared type or module `http` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `serde` [INFO] [stderr] --> examples/tinyhttp.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use serde::Serialize; [INFO] [stderr] | ^^^^^ use of undeclared type or module `serde` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `time` [INFO] [stderr] --> examples/tinyhttp.rs:223:16 [INFO] [stderr] | [INFO] [stderr] 223 | use time::{self, Duration}; [INFO] [stderr] | ^^^^ no `time` external crate [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the derive macro `Serialize` [INFO] [stderr] --> examples/tinyhttp.rs:72:22 [INFO] [stderr] | [INFO] [stderr] 72 | #[derive(Serialize)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `serde_json` [INFO] [stderr] --> examples/tinyhttp.rs:76:13 [INFO] [stderr] | [INFO] [stderr] 76 | serde_json::to_string(&Message { [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `serde_json` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `httparse` [INFO] [stderr] --> examples/tinyhttp.rs:160:39 [INFO] [stderr] | [INFO] [stderr] 160 | let mut parsed_headers = [httparse::EMPTY_HEADER; 16]; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `httparse` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `httparse` [INFO] [stderr] --> examples/tinyhttp.rs:161:25 [INFO] [stderr] | [INFO] [stderr] 161 | let mut r = httparse::Request::new(&mut parsed_headers); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `httparse` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `httparse` [INFO] [stderr] --> examples/tinyhttp.rs:168:17 [INFO] [stderr] | [INFO] [stderr] 168 | httparse::Status::Complete(amt) => amt, [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `httparse` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `httparse` [INFO] [stderr] --> examples/tinyhttp.rs:169:17 [INFO] [stderr] | [INFO] [stderr] 169 | httparse::Status::Partial => return Ok(None), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `httparse` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `http` [INFO] [stderr] --> examples/tinyhttp.rs:201:21 [INFO] [stderr] | [INFO] [stderr] 201 | ret.version(http::Version::HTTP_11); [INFO] [stderr] | ^^^^ use of undeclared type or module `http` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `HeaderValue` [INFO] [stderr] --> examples/tinyhttp.rs:207:34 [INFO] [stderr] | [INFO] [stderr] 207 | let value = unsafe { HeaderValue::from_shared_unchecked(data.slice(v.0, v.1)) }; [INFO] [stderr] | ^^^^^^^^^^^ use of undeclared type or module `HeaderValue` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Duration` [INFO] [stderr] --> examples/tinyhttp.rs:283:38 [INFO] [stderr] | [INFO] [stderr] 283 | self.next_update = now + Duration::seconds(1); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Duration` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `mio` [INFO] [stderr] --> benches/mio-ops.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use mio::{PollOpt, Ready, Token}; [INFO] [stderr] | ^^^ use of undeclared type or module `mio` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TcpListener` [INFO] [stderr] --> benches/mio-ops.rs:17:16 [INFO] [stderr] | [INFO] [stderr] 17 | let sock = TcpListener::bind(&addr).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ use of undeclared type or module `TcpListener` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `mio` [INFO] [stderr] --> benches/mio-ops.rs:18:16 [INFO] [stderr] | [INFO] [stderr] 18 | let poll = mio::Poll::new().unwrap(); [INFO] [stderr] | ^^^ use of undeclared type or module `mio` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TcpListener` [INFO] [stderr] --> benches/mio-ops.rs:33:16 [INFO] [stderr] | [INFO] [stderr] 33 | let sock = TcpListener::bind(&addr).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ use of undeclared type or module `TcpListener` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `mio` [INFO] [stderr] --> benches/mio-ops.rs:34:16 [INFO] [stderr] | [INFO] [stderr] 34 | let poll = mio::Poll::new().unwrap(); [INFO] [stderr] | ^^^ use of undeclared type or module `mio` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `mio` [INFO] [stderr] --> benches/mio-ops.rs:49:16 [INFO] [stderr] | [INFO] [stderr] 49 | let poll = mio::Poll::new().unwrap(); [INFO] [stderr] | ^^^ use of undeclared type or module `mio` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `mio` [INFO] [stderr] --> benches/mio-ops.rs:51:22 [INFO] [stderr] | [INFO] [stderr] 51 | let mut events = mio::Events::with_capacity(1024); [INFO] [stderr] | ^^^ use of undeclared type or module `mio` [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error[E0599]: no method named `send` found for type `&mut tokio_net::udp::frame::UdpFramed` in the current scope [INFO] [stderr] --> examples/udp-codec.rs:58:12 [INFO] [stderr] | [INFO] [stderr] 58 | socket.send((Bytes::from(&b"PING"[..]), b_addr)).await?; [INFO] [stderr] | ^^^^ method not found in `&mut tokio_net::udp::frame::UdpFramed` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 12 | use futures_util::sink::SinkExt; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: could not compile `tokio`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0599]: no method named `next` found for type `&mut tokio_net::udp::frame::UdpFramed` in the current scope [INFO] [stderr] --> examples/udp-codec.rs:61:36 [INFO] [stderr] | [INFO] [stderr] 61 | let (bytes, addr) = socket.next().map(|e| e.unwrap()).await?; [INFO] [stderr] | ^^^^ method not found in `&mut tokio_net::udp::frame::UdpFramed` [INFO] [stderr] | [INFO] [stderr] = note: the method `next` exists but the following trait bounds were not satisfied: [INFO] [stderr] `&mut tokio_net::udp::frame::UdpFramed : std::iter::Iterator` [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 12 | use futures_util::stream::StreamExt; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stderr] --> examples/udp-codec.rs:63:58 [INFO] [stderr] | [INFO] [stderr] 63 | println!("[a] recv: {}", String::from_utf8_lossy(&bytes)); [INFO] [stderr] | ^^^^^^ doesn't have a size known at compile-time [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Sized` is not implemented for `[u8]` [INFO] [stderr] = note: to learn more, visit [INFO] [stderr] = note: all local variables must have a statically known size [INFO] [stderr] = help: unsized locals are gated as an unstable feature [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `send` found for type `&mut tokio_net::udp::frame::UdpFramed` in the current scope [INFO] [stderr] --> examples/udp-codec.rs:65:16 [INFO] [stderr] | [INFO] [stderr] 65 | socket.send((Bytes::from(&b"PING"[..]), addr)).await?; [INFO] [stderr] | ^^^^ method not found in `&mut tokio_net::udp::frame::UdpFramed` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 12 | use futures_util::sink::SinkExt; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `next` found for type `&mut tokio_net::udp::frame::UdpFramed` in the current scope [INFO] [stderr] --> examples/udp-codec.rs:74:52 [INFO] [stderr] | [INFO] [stderr] 74 | while let Ok(Some(Ok((bytes, addr)))) = socket.next().timeout(timeout).await { [INFO] [stderr] | ^^^^ method not found in `&mut tokio_net::udp::frame::UdpFramed` [INFO] [stderr] | [INFO] [stderr] = note: the method `next` exists but the following trait bounds were not satisfied: [INFO] [stderr] `&mut tokio_net::udp::frame::UdpFramed : std::iter::Iterator` [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 12 | use futures_util::stream::StreamExt; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stderr] --> examples/udp-codec.rs:75:58 [INFO] [stderr] | [INFO] [stderr] 75 | println!("[b] recv: {}", String::from_utf8_lossy(&bytes)); [INFO] [stderr] | ^^^^^^ doesn't have a size known at compile-time [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Sized` is not implemented for `[u8]` [INFO] [stderr] = note: to learn more, visit [INFO] [stderr] = note: all local variables must have a statically known size [INFO] [stderr] = help: unsized locals are gated as an unstable feature [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `send` found for type `&mut tokio_net::udp::frame::UdpFramed` in the current scope [INFO] [stderr] --> examples/udp-codec.rs:77:16 [INFO] [stderr] | [INFO] [stderr] 77 | socket.send((Bytes::from(&b"PONG"[..]), addr)).await?; [INFO] [stderr] | ^^^^ method not found in `&mut tokio_net::udp::frame::UdpFramed` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 12 | use futures_util::sink::SinkExt; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `next` found for type `tokio_codec::framed::Framed` in the current scope [INFO] [stderr] --> examples/tinyhttp.rs:49:41 [INFO] [stderr] | [INFO] [stderr] 49 | while let Some(request) = transport.next().await { [INFO] [stderr] | ^^^^ method not found in `tokio_codec::framed::Framed` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 16 | use futures_util::stream::StreamExt; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `send` found for type `tokio_codec::framed::Framed` in the current scope [INFO] [stderr] --> examples/tinyhttp.rs:53:27 [INFO] [stderr] | [INFO] [stderr] 53 | transport.send(response).await?; [INFO] [stderr] | ^^^^ method not found in `tokio_codec::framed::Framed` [INFO] [stderr] error: aborting due to 10 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 16 | use futures_util::sink::SinkExt; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:378:21 [INFO] [stderr] stack backtrace: [INFO] [stderr] error: could not compile `tokio`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `futures` [INFO] [stderr] --> examples/proxy.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | use futures::{future::try_join, FutureExt, StreamExt}; [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `futures` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `futures` [INFO] [stderr] --> examples/chat.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use futures::{Poll, SinkExt, Stream, StreamExt}; [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `futures` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `futures` [INFO] [stderr] --> examples/chat.rs:170:33 [INFO] [stderr] | [INFO] [stderr] 170 | let result: Option<_> = futures::ready!(self.lines.poll_next_unpin(cx)); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `futures` [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] error[E0432]: unresolved import `futures` [INFO] [stderr] --> examples/proxy.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | use futures::{future::try_join, FutureExt, StreamExt}; [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `futures` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `tokio_test` [INFO] [stderr] --> tests/drop-core.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use tokio_test::{assert_err, assert_pending, assert_ready, task}; [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `tokio_test` [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_err` [INFO] [stderr] --> tests/drop-core.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | assert_err!(listener.accept().await); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ready` [INFO] [stderr] --> tests/drop-core.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | assert_ready!(task.poll()); [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_err` [INFO] [stderr] --> tests/drop-core.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 31 | assert_err!(listener.accept().await); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_pending` [INFO] [stderr] --> tests/drop-core.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 34 | assert_pending!(task.poll()); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ready` [INFO] [stderr] --> tests/drop-core.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | assert_ready!(task.poll()); [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error[E0425]: cannot find function `try_join` in this scope [INFO] [stderr] --> examples/proxy.rs:64:5 [INFO] [stderr] | [INFO] [stderr] 64 | try_join(client_to_server, server_to_client).await?; [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 25 | use futures_util::try_future::try_join; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `tokio_test` [INFO] [stderr] --> tests/buffered.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use tokio_test::assert_ok; [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `tokio_test` [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/buffered.rs:16:19 [INFO] [stderr] | [INFO] [stderr] 16 | let mut srv = assert_ok!(TcpListener::bind("127.0.0.1:0").await); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/buffered.rs:17:16 [INFO] [stderr] | [INFO] [stderr] 17 | let addr = assert_ok!(srv.local_addr()); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/buffered.rs:22:21 [INFO] [stderr] | [INFO] [stderr] 22 | let mut s = assert_ok!(TcpStream::connect(&addr)); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/buffered.rs:25:25 [INFO] [stderr] | [INFO] [stderr] 25 | let mut s = assert_ok!(TcpStream::connect(&addr)); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/buffered.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | assert_ok!(s.read_exact(&mut b)); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/buffered.rs:34:23 [INFO] [stderr] | [INFO] [stderr] 34 | let res = assert_ok!(s.write(msg.as_bytes())); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/buffered.rs:41:22 [INFO] [stderr] | [INFO] [stderr] 41 | let (mut a, _) = assert_ok!(srv.accept().await); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/buffered.rs:42:22 [INFO] [stderr] | [INFO] [stderr] 42 | let (mut b, _) = assert_ok!(srv.accept().await); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/buffered.rs:44:13 [INFO] [stderr] | [INFO] [stderr] 44 | let n = assert_ok!(a.copy(&mut b).await); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::net::TcpListener` [INFO] [stderr] --> tests/buffered.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use tokio::net::TcpListener; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::prelude::*` [INFO] [stderr] --> tests/buffered.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use tokio::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::prelude::*` [INFO] [stderr] --> tests/buffered.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use std::io::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::net::TcpStream` [INFO] [stderr] --> tests/buffered.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use std::net::TcpStream; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `futures` [INFO] [stderr] --> benches/tcp.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | pub use futures::*; [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `futures` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `tokio::reactor` [INFO] [stderr] --> benches/tcp.rs:9:20 [INFO] [stderr] | [INFO] [stderr] 9 | pub use tokio::reactor::Reactor; [INFO] [stderr] | ^^^^^^^ could not find `reactor` in `tokio` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `tokio_io::try_nb` [INFO] [stderr] --> benches/tcp.rs:152:9 [INFO] [stderr] | [INFO] [stderr] 152 | use tokio_io::try_nb; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ no `try_nb` in the root [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `stream` [INFO] [stderr] --> benches/tcp.rs:38:28 [INFO] [stderr] | [INFO] [stderr] 38 | let connects = stream::iter_result((0..NUM).map(|_| { [INFO] [stderr] | ^^^^^^ use of undeclared type or module `stream` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `sync` [INFO] [stderr] --> benches/tcp.rs:60:42 [INFO] [stderr] | [INFO] [stderr] 60 | let (shutdown_tx, shutdown_rx) = sync::oneshot::channel(); [INFO] [stderr] | ^^^^ use of undeclared type or module `sync` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `sync` [INFO] [stderr] --> benches/tcp.rs:61:34 [INFO] [stderr] | [INFO] [stderr] 61 | let (addr_tx, addr_rx) = sync::oneshot::channel(); [INFO] [stderr] | ^^^^ use of undeclared type or module `sync` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `stream` [INFO] [stderr] --> benches/tcp.rs:105:40 [INFO] [stderr] | [INFO] [stderr] 105 | let connects = stream::iter_result((0..(NUM / n)).map(|_| { [INFO] [stderr] | ^^^^^^ use of undeclared type or module `stream` [INFO] [stderr] [INFO] [stderr] error: could not compile `tokio`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> benches/tcp.rs:170:36 [INFO] [stderr] | [INFO] [stderr] 170 | 0 => return Ok(Async::Ready(())), [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> benches/tcp.rs:196:16 [INFO] [stderr] | [INFO] [stderr] 196 | Ok(Async::Ready(())) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Future` in this scope [INFO] [stderr] --> benches/tcp.rs:161:10 [INFO] [stderr] | [INFO] [stderr] 161 | impl Future for Drain { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 150 | use core::future::Future; [INFO] [stderr] | [INFO] [stderr] 150 | use futures_core::Future; [INFO] [stderr] | [INFO] [stderr] 150 | use futures_core::core_reexport::future::Future; [INFO] [stderr] | [INFO] [stderr] 150 | use futures_core::future::Future; [INFO] [stderr] | [INFO] [stderr] and 4 other candidates [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Poll` in this scope [INFO] [stderr] --> benches/tcp.rs:165:31 [INFO] [stderr] | [INFO] [stderr] 165 | fn poll(&mut self) -> Poll<(), io::Error> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 150 | use core::task::Poll; [INFO] [stderr] | [INFO] [stderr] 150 | use futures_core::Poll; [INFO] [stderr] | [INFO] [stderr] 150 | use futures_core::core_reexport::task::Poll; [INFO] [stderr] | [INFO] [stderr] 150 | use futures_core::task::Poll; [INFO] [stderr] | [INFO] [stderr] and 3 other candidates [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Future` in this scope [INFO] [stderr] --> benches/tcp.rs:183:10 [INFO] [stderr] | [INFO] [stderr] 183 | impl Future for Transfer { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 150 | use core::future::Future; [INFO] [stderr] | [INFO] [stderr] 150 | use futures_core::Future; [INFO] [stderr] | [INFO] [stderr] 150 | use futures_core::core_reexport::future::Future; [INFO] [stderr] | [INFO] [stderr] 150 | use futures_core::future::Future; [INFO] [stderr] | [INFO] [stderr] and 4 other candidates [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Poll` in this scope [INFO] [stderr] --> benches/tcp.rs:187:31 [INFO] [stderr] | [INFO] [stderr] 187 | fn poll(&mut self) -> Poll<(), io::Error> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 150 | use core::task::Poll; [INFO] [stderr] | [INFO] [stderr] 150 | use futures_core::Poll; [INFO] [stderr] | [INFO] [stderr] 150 | use futures_core::core_reexport::task::Poll; [INFO] [stderr] | [INFO] [stderr] 150 | use futures_core::task::Poll; [INFO] [stderr] | [INFO] [stderr] and 3 other candidates [INFO] [stderr] [INFO] [stderr] error[E0603]: module `io` is private [INFO] [stderr] --> benches/tcp.rs:10:23 [INFO] [stderr] | [INFO] [stderr] 10 | pub use tokio_io::io::read_to_end; [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead [INFO] [stderr] --> benches/tcp.rs:166:48 [INFO] [stderr] | [INFO] [stderr] 166 | let mut buf: [u8; 1024] = unsafe { mem::uninitialized() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 14 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0432, E0433, E0603. [INFO] [stderr] For more information about an error, try `rustc --explain E0405`. [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `tokio`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `tokio`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to 10 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0432`. [INFO] [stderr] error[E0599]: no method named `next` found for type `tokio_net::tcp::incoming::Incoming` in the current scope [INFO] [stderr] --> examples/proxy.rs:42:44 [INFO] [stderr] | [INFO] [stderr] 42 | while let Some(Ok(inbound)) = incoming.next().await { [INFO] [stderr] | ^^^^ method not found in `tokio_net::tcp::incoming::Incoming` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 25 | use futures_util::stream::StreamExt; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `map` found for type `impl core::future::future::Future` in the current scope [INFO] [stderr] --> examples/proxy.rs:43:63 [INFO] [stderr] | [INFO] [stderr] 43 | let transfer = transfer(inbound, server_addr.clone()).map(|r| { [INFO] [stderr] | ^^^ method not found in `impl core::future::future::Future` [INFO] [stderr] error: could not compile `tokio`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] | [INFO] [stderr] = note: the method `map` exists but the following trait bounds were not satisfied: [INFO] [stderr] `&mut impl core::future::future::Future : std::iter::Iterator` [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 25 | use futures_util::future::FutureExt; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0425, E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0425`. [INFO] [stderr] error: could not compile `tokio`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0432]: unresolved import `tokio_test` [INFO] [stderr] --> tests/runtime_threaded.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use tokio_test::{assert_err, assert_ok}; [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `tokio_test` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `env_logger` [INFO] [stderr] --> tests/runtime_threaded.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use env_logger; [INFO] [stderr] | ^^^^^^^^^^ no `env_logger` external crate [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/runtime_threaded.rs:18:22 [INFO] [stderr] | [INFO] [stderr] 18 | let mut server = assert_ok!(TcpListener::bind("127.0.0.1:0").await); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/runtime_threaded.rs:21:16 [INFO] [stderr] | [INFO] [stderr] 21 | let addr = assert_ok!(server.local_addr()); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/runtime_threaded.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | assert_ok!(rx.try_recv()); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/runtime_threaded.rs:57:5 [INFO] [stderr] | [INFO] [stderr] 57 | assert_ok!(rx.try_recv()); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_err` [INFO] [stderr] --> tests/runtime_threaded.rs:58:5 [INFO] [stderr] | [INFO] [stderr] 58 | assert_err!(rx.try_recv()); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/runtime_threaded.rs:113:5 [INFO] [stderr] | [INFO] [stderr] 113 | assert_ok!(b_rx.try_recv()); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_err` [INFO] [stderr] --> tests/runtime_threaded.rs:147:9 [INFO] [stderr] | [INFO] [stderr] 147 | assert_err!(tokio_executor::enter()); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_err` [INFO] [stderr] --> tests/runtime_threaded.rs:170:9 [INFO] [stderr] | [INFO] [stderr] 170 | assert_err!(res); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `assert_ok` [INFO] [stderr] --> tests/runtime_threaded.rs:203:5 [INFO] [stderr] | [INFO] [stderr] 203 | assert_ok!(rx.try_recv()); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] warning: unused import: `AsyncWriteExt` [INFO] [stderr] --> tests/runtime_threaded.rs:5:31 [INFO] [stderr] | [INFO] [stderr] 5 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 11 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `tokio`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] 0: 0x7ff2c3d84924 - backtrace::backtrace::libunwind::trace::hf7e4e82efae30884 [INFO] [stderr] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.37/src/backtrace/libunwind.rs:88 [INFO] [stderr] 1: 0x7ff2c3d84924 - backtrace::backtrace::trace_unsynchronized::h0b0315e5422bf5c5 [INFO] [stderr] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.37/src/backtrace/mod.rs:66 [INFO] [stderr] 2: 0x7ff2c3d84924 - std::sys_common::backtrace::_print_fmt::ha6354f2d842cef76 [INFO] [stderr] at src/libstd/sys_common/backtrace.rs:77 [INFO] [stderr] 3: 0x7ff2c3d84924 - ::fmt::hd54b1f5cf3adafe0 [INFO] [stderr] at src/libstd/sys_common/backtrace.rs:61 [INFO] [stderr] 4: 0x7ff2c3dbcbac - core::fmt::write::hc967ac066a03859c [INFO] [stderr] at src/libcore/fmt/mod.rs:1028 [INFO] [stderr] 5: 0x7ff2c3d78bf7 - std::io::Write::write_fmt::h5b4ad0ea64c4a019 [INFO] [stderr] at src/libstd/io/mod.rs:1412 [INFO] [stderr] 6: 0x7ff2c3d8915e - std::sys_common::backtrace::_print::h51b22d5c4d74bb83 [INFO] [stderr] at src/libstd/sys_common/backtrace.rs:65 [INFO] [stderr] 7: 0x7ff2c3d8915e - std::sys_common::backtrace::print::h82f50a23f8a5bfab [INFO] [stderr] at src/libstd/sys_common/backtrace.rs:50 [INFO] [stderr] 8: 0x7ff2c3d8915e - std::panicking::default_hook::{{closure}}::h7ceeb6dc02a24c61 [INFO] [stderr] at src/libstd/panicking.rs:189 [INFO] [stderr] 9: 0x7ff2c3d88e61 - std::panicking::default_hook::h123f2472ae8cf2b5 [INFO] [stderr] at src/libstd/panicking.rs:206 [INFO] [stderr] 10: 0x7ff2c4288943 - rustc_driver::report_ice::h5fd310efd88ee0b4 [INFO] [stderr] 11: 0x7ff2c3d8993c - std::panicking::rust_panic_with_hook::hf57d1dbfa9883023 [INFO] [stderr] at src/libstd/panicking.rs:473 [INFO] [stderr] 12: 0x7ff2c3d893f2 - std::panicking::continue_panic_fmt::he2a5eeeb3a084826 [INFO] [stderr] at src/libstd/panicking.rs:376 [INFO] [stderr] 13: 0x7ff2c3d892e6 - rust_begin_unwind [INFO] [stderr] at src/libstd/panicking.rs:303 [INFO] [stderr] 14: 0x7ff2c3db672a - core::panicking::panic_fmt::h37f4bfee9976e4e2 [INFO] [stderr] at src/libcore/panicking.rs:84 [INFO] [stderr] 15: 0x7ff2c3db6669 - core::panicking::panic::h5e064abb2dec7e11 [INFO] [stderr] at src/libcore/panicking.rs:49 [INFO] [stderr] 16: 0x7ff2c481cd30 - rustc_typeck::check::closure::::supplied_sig_of_closure::hfa0b953e9b198d25 [INFO] [stderr] 17: 0x7ff2c481a7f6 - rustc_typeck::check::closure::::check_expr_closure::h322c77bdb2f3867f [INFO] [stderr] 18: 0x7ff2c4801cfd - rustc_typeck::check::expr::::check_expr_kind::h5f538edc186229e4 [INFO] [stderr] 19: 0x7ff2c480160b - rustc_typeck::check::expr::::check_expr_with_expectation_and_needs::hd961eec985483fc6 [INFO] [stderr] 20: 0x7ff2c483617d - rustc_typeck::check::FnCtxt::check_argument_types::h61db71662ca32ad6 [INFO] [stderr] 21: 0x7ff2c481f7ac - rustc_typeck::check::callee::::confirm_builtin_call::hec5b492fae34101f [INFO] [stderr] 22: 0x7ff2c481dc81 - rustc_typeck::check::callee::::check_call::h1812c11572cac1e9 [INFO] [stderr] 23: 0x7ff2c480214a - rustc_typeck::check::expr::::check_expr_kind::h5f538edc186229e4 [INFO] [stderr] 24: 0x7ff2c480160b - rustc_typeck::check::expr::::check_expr_with_expectation_and_needs::hd961eec985483fc6 [INFO] [stderr] 25: 0x7ff2c480bf5b - rustc_typeck::check::expr::::check_return_expr::hb4d88659d16ea98d [INFO] [stderr] 26: 0x7ff2c4826a35 - rustc_typeck::check::check_fn::hef61d8d62767ec3f [INFO] [stderr] 27: 0x7ff2c49a71db - rustc::ty::context::GlobalCtxt::enter_local::h8ff65b26405bf3f4 [INFO] [stderr] 28: 0x7ff2c4825a02 - rustc_typeck::check::typeck_tables_of::hf156dab0ad994584 [INFO] [stderr] 29: 0x7ff2c4a42e3a - rustc::ty::query::__query_compute::typeck_tables_of::h4a08a8da3b1bae36 [INFO] [stderr] 30: 0x7ff2c49093eb - rustc::ty::query::::compute::h358f82555ed30b8a [INFO] [stderr] 31: 0x7ff2c487e81a - rustc::dep_graph::graph::DepGraph::with_task_impl::hca4af7cf0d9a54e4 [INFO] [stderr] 32: 0x7ff2c4957e37 - rustc::ty::query::plumbing::::get_query::h713467ad60866177 [INFO] [stderr] 33: 0x7ff2c4a42e3a - rustc::ty::query::__query_compute::typeck_tables_of::h4a08a8da3b1bae36 [INFO] [stderr] 34: 0x7ff2c49093eb - rustc::ty::query::::compute::h358f82555ed30b8a [INFO] [stderr] 35: 0x7ff2c487e81a - rustc::dep_graph::graph::DepGraph::with_task_impl::hca4af7cf0d9a54e4 [INFO] [stderr] 36: 0x7ff2c4957e37 - rustc::ty::query::plumbing::::get_query::h713467ad60866177 [INFO] [stderr] 37: 0x7ff2c48f569b - rustc_typeck::collect::checked_type_of::ha31baf32f53a995c [INFO] [stderr] 38: 0x7ff2c48f4a7c - rustc_typeck::collect::type_of::heb646440b691043e [INFO] [stderr] 39: 0x7ff2c4a44a27 - rustc::ty::query::__query_compute::type_of::h4d1982aa75be11d9 [INFO] [stderr] 40: 0x7ff2c49090cb - rustc::ty::query::::compute::h309ad2021ab36462 [INFO] [stderr] 41: 0x7ff2c4878b1a - rustc::dep_graph::graph::DepGraph::with_task_impl::h7d36c313eff5ded9 [INFO] [stderr] 42: 0x7ff2c497e294 - rustc::ty::query::plumbing::::get_query::hbeba86ecbf01ae7e [INFO] [stderr] 43: 0x7ff2c49c9ff0 - rustc::hir::intravisit::walk_expr::h0379bf705b659208 [INFO] [stderr] 44: 0x7ff2c48d41ac - rustc::hir::intravisit::Visitor::visit_fn::hc3b9cd0d9dd02197 [INFO] [stderr] 45: 0x7ff2c49d1529 - rustc::hir::intravisit::walk_item::h6fc13642136c2ec2 [INFO] [stderr] 46: 0x7ff2c48f089d - ::visit_item::h824b6c6f551c2a59 [INFO] [stderr] 47: 0x7ff2c484d553 - rustc::hir::map::Map::visit_item_likes_in_module::hfd6520113710b699 [INFO] [stderr] 48: 0x7ff2c48f0564 - rustc_typeck::collect::collect_mod_item_types::hc2ff36dc265d88b8 [INFO] [stderr] 49: 0x7ff2c4a43dba - rustc::ty::query::__query_compute::collect_mod_item_types::h9a7924ae89460ae5 [INFO] [stderr] 50: 0x7ff2c49095db - rustc::ty::query::::compute::hf7aff371caf1e109 [INFO] [stderr] 51: 0x7ff2c48726ad - rustc::dep_graph::graph::DepGraph::with_task_impl::h253a76530a99ec44 [INFO] [stderr] 52: 0x7ff2c495f782 - rustc::ty::query::plumbing::::get_query::h7c0183395d9b5606 [INFO] [stderr] 53: 0x7ff2c490a045 - rustc::ty::query::plumbing::::ensure_query::he36c61c52c581025 [INFO] [stderr] 54: 0x7ff2c4a03739 - rustc_typeck::check_crate::{{closure}}::{{closure}}::h06a042c0fc0e3ab8 [INFO] [stderr] 55: 0x7ff2c49fca06 - rustc::util::common::time::h68c7e729c3629759 [INFO] [stderr] 56: 0x7ff2c4a2ab9d - rustc_typeck::check_crate::heda51243f34fe81b [INFO] [stderr] 57: 0x7ff2c43303eb - rustc_interface::passes::analysis::h829815deb141c81d [INFO] [stderr] 58: 0x7ff2c42cd031 - rustc::ty::query::__query_compute::analysis::h64e54a1f3896f532 [INFO] [stderr] 59: 0x7ff2c42d5e6d - rustc::dep_graph::graph::DepGraph::with_task_impl::h6608c1d8e2b83d25 [INFO] [stderr] 60: 0x7ff2c4268b3e - rustc::ty::query::plumbing::::get_query::hbe630f3ca6b058b4 [INFO] [stderr] 61: 0x7ff2c425f9fa - rustc_interface::passes::BoxedGlobalCtxt::access::{{closure}}::he5cb4df53ea34ecb [INFO] [stderr] 62: 0x7ff2c43636fa - rustc_interface::passes::create_global_ctxt::{{closure}}::hff36b611c86ae65a [INFO] [stderr] 63: 0x7ff2c425f04e - rustc_interface::passes::BoxedGlobalCtxt::enter::h9b600d105b48f24c [INFO] [stderr] 64: 0x7ff2c429671e - rustc_interface::interface::run_compiler_in_existing_thread_pool::h9f6df2d26771f234 [INFO] [stderr] 65: 0x7ff2c42a1c62 - std::thread::local::LocalKey::with::hbea3cb42db7e53eb [INFO] [stderr] 66: 0x7ff2c4292a7e - scoped_tls::ScopedKey::set::hb47873af71aacd4b [INFO] [stderr] 67: 0x7ff2c42bfb22 - syntax::with_globals::h998c8dafb0bc3836 [INFO] [stderr] 68: 0x7ff2c42c4c02 - std::sys_common::backtrace::__rust_begin_short_backtrace::h961fd20750cbf5a1 [INFO] [stderr] 69: 0x7ff2c3d9a00a - __rust_maybe_catch_panic [INFO] [stderr] at src/libpanic_unwind/lib.rs:80 [INFO] [stderr] 70: 0x7ff2c42d17f9 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h00cb7e0ce56af83d [INFO] [stderr] 71: 0x7ff2c3d6b09f - as core::ops::function::FnOnce>::call_once::h4b9accba29a8d64b [INFO] [stderr] at /rustc/446e5e57b667c841ba3ebb4b41b44fb98bd3af4b/src/liballoc/boxed.rs:932 [INFO] [stderr] 72: 0x7ff2c3d98cb0 - as core::ops::function::FnOnce>::call_once::h41cc2023c3923338 [INFO] [stderr] at /rustc/446e5e57b667c841ba3ebb4b41b44fb98bd3af4b/src/liballoc/boxed.rs:932 [INFO] [stderr] 73: 0x7ff2c3d98cb0 - std::sys_common::thread::start_thread::ha9ab30987c4ae693 [INFO] [stderr] at src/libstd/sys_common/thread.rs:13 [INFO] [stderr] 74: 0x7ff2c3d98cb0 - std::sys::unix::thread::Thread::new::thread_start::h523078a3e422fa54 [INFO] [stderr] at src/libstd/sys/unix/thread.rs:79 [INFO] [stderr] 75: 0x7ff2c3b056db - start_thread [INFO] [stderr] 76: 0x7ff2c342288f - __clone [INFO] [stderr] 77: 0x0 - [INFO] [stderr] [INFO] [stderr] error: internal compiler error: unexpected panic [INFO] [stderr] [INFO] [stderr] note: the compiler unexpectedly panicked. this is a bug. [INFO] [stderr] [INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports [INFO] [stderr] [INFO] [stderr] note: rustc 1.40.0-nightly (446e5e57b 2019-10-14) running on x86_64-unknown-linux-gnu [INFO] [stderr] [INFO] [stderr] note: compiler flags: -C debuginfo=2 --crate-type bin [INFO] [stderr] [INFO] [stderr] note: some of the compiler flags provided by cargo are hidden [INFO] [stderr] [INFO] [stderr] query stack during panic: [INFO] [stderr] #0 [typeck_tables_of] processing `respond` [INFO] [stderr] #1 [typeck_tables_of] processing `respond::{{closure}}#0` [INFO] [stderr] #2 [type_of] processing `respond::{{closure}}#0` [INFO] [stderr] #3 [collect_mod_item_types] collecting item types in top-level module [INFO] [stderr] #4 [analysis] running analysis passes on this crate [INFO] [stderr] end of query stack [INFO] [stderr] error: aborting due to 16 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `tokio`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "2e1ec789231350c31987db48d384d73fb84b04912cc81fd49fe075f9c6d76e6d"` [INFO] running `"docker" "rm" "-f" "2e1ec789231350c31987db48d384d73fb84b04912cc81fd49fe075f9c6d76e6d"` [INFO] [stdout] 2e1ec789231350c31987db48d384d73fb84b04912cc81fd49fe075f9c6d76e6d