[INFO] cloning repository https://github.com/kishiguro/async-test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kishiguro/async-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkishiguro%2Fasync-test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkishiguro%2Fasync-test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a97ada01738b53fdc8581eb4f44385a610faf07e [INFO] testing kishiguro/async-test against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkishiguro%2Fasync-test" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kishiguro/async-test [INFO] finished tweaking git repo https://github.com/kishiguro/async-test [INFO] tweaked toml for git repo https://github.com/kishiguro/async-test written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kishiguro/async-test on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kishiguro/async-test 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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-macros v1.0.0 [INFO] [stderr] Downloaded futures-task v0.3.8 [INFO] [stderr] Downloaded pin-project-internal v1.0.2 [INFO] [stderr] Downloaded futures v0.3.8 [INFO] [stderr] Downloaded futures-macro v0.3.8 [INFO] [stderr] Downloaded bytes v1.0.0 [INFO] [stderr] Downloaded smallvec v1.5.1 [INFO] [stderr] Downloaded futures-executor v0.3.8 [INFO] [stderr] Downloaded pin-project v1.0.2 [INFO] [stderr] Downloaded futures-sink v0.3.8 [INFO] [stderr] Downloaded mio v0.7.6 [INFO] [stderr] Downloaded futures-util v0.3.8 [INFO] [stderr] Downloaded tokio v1.0.1 [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 50145b36a7445c32a96a2e49fef718ae9a2a8dbcaaddf35ef690429bb196ea2a [INFO] running `Command { std: "docker" "start" "-a" "50145b36a7445c32a96a2e49fef718ae9a2a8dbcaaddf35ef690429bb196ea2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "50145b36a7445c32a96a2e49fef718ae9a2a8dbcaaddf35ef690429bb196ea2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50145b36a7445c32a96a2e49fef718ae9a2a8dbcaaddf35ef690429bb196ea2a", kill_on_drop: false }` [INFO] [stdout] 50145b36a7445c32a96a2e49fef718ae9a2a8dbcaaddf35ef690429bb196ea2a [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] df72c32e78008226ec16cc9cfc7ca66eb8eb415a46c612886dd3ffca66db53f5 [INFO] running `Command { std: "docker" "start" "-a" "df72c32e78008226ec16cc9cfc7ca66eb8eb415a46c612886dd3ffca66db53f5", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.56 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling futures-core v0.3.8 [INFO] [stderr] Compiling futures-sink v0.3.8 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling adler v0.2.3 [INFO] [stderr] Compiling futures-io v0.3.8 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling gimli v0.23.0 [INFO] [stderr] Compiling smallvec v1.5.1 [INFO] [stderr] Compiling tokio v1.0.1 [INFO] [stderr] Compiling futures-channel v0.3.8 [INFO] [stderr] Compiling object v0.22.0 [INFO] [stderr] Compiling rustc-demangle v0.1.18 [INFO] [stderr] Compiling pin-project-lite v0.2.0 [INFO] [stderr] Compiling futures-task v0.3.8 [INFO] [stderr] Compiling bytes v1.0.0 [INFO] [stderr] Compiling parking_lot_core v0.8.2 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling mio v0.7.6 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling addr2line v0.14.0 [INFO] [stderr] Compiling backtrace v0.3.55 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling tokio-macros v1.0.0 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling pin-project v1.0.2 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling futures-executor v0.3.8 [INFO] [stderr] Compiling futures v0.3.8 [INFO] [stderr] Compiling async-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.61s [INFO] running `Command { std: "docker" "inspect" "df72c32e78008226ec16cc9cfc7ca66eb8eb415a46c612886dd3ffca66db53f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df72c32e78008226ec16cc9cfc7ca66eb8eb415a46c612886dd3ffca66db53f5", kill_on_drop: false }` [INFO] [stdout] df72c32e78008226ec16cc9cfc7ca66eb8eb415a46c612886dd3ffca66db53f5 [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1e015b4a448acf812181ea1daf4d89f3e70942b51ca525254c44078b1bf0309 [INFO] running `Command { std: "docker" "start" "-a" "e1e015b4a448acf812181ea1daf4d89f3e70942b51ca525254c44078b1bf0309", kill_on_drop: false }` [INFO] [stderr] Compiling async-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `async_closure` has been stable since 1.85.0 and no longer requires an attribute to enable [INFO] [stdout] --> examples/05-async-closure.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | #![feature(async_closure)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::stream::StreamExt` [INFO] [stdout] --> examples/10-select-stream.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::stream::{self, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ no `StreamExt` in `stream` [INFO] [stdout] | [INFO] [stdout] = help: consider importing this trait instead: [INFO] [stdout] futures::StreamExt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `iter` in module `stream` [INFO] [stdout] --> examples/10-select-stream.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | let mut stream1 = stream::iter(vec![1, 2, 3]); [INFO] [stdout] | ^^^^ not found in `stream` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use futures::stream::iter; [INFO] [stdout] | [INFO] [stdout] help: if you import `iter`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 5 - let mut stream1 = stream::iter(vec![1, 2, 3]); [INFO] [stdout] 5 + let mut stream1 = iter(vec![1, 2, 3]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `iter` in module `stream` [INFO] [stdout] --> examples/10-select-stream.rs:6:31 [INFO] [stdout] | [INFO] [stdout] 6 | let mut stream2 = stream::iter(vec![4, 5, 6]); [INFO] [stdout] | ^^^^ not found in `stream` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use futures::stream::iter; [INFO] [stdout] | [INFO] [stdout] help: if you import `iter`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 6 - let mut stream2 = stream::iter(vec![4, 5, 6]); [INFO] [stdout] 6 + let mut stream2 = iter(vec![4, 5, 6]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `tokio::stream::Stream`, `tokio::stream::StreamExt` [INFO] [stdout] --> examples/11-select-connect.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::stream::{Stream, StreamExt}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ no `StreamExt` in `stream` [INFO] [stdout] | | [INFO] [stdout] | no `Stream` in `stream` [INFO] [stdout] | [INFO] [stdout] = help: consider importing this trait instead: [INFO] [stdout] futures::Stream [INFO] [stdout] = help: consider importing this trait instead: [INFO] [stdout] futures::StreamExt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::time::DelayQueue` [INFO] [stdout] --> examples/11-select-connect.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::time::{DelayQueue, Duration}; [INFO] [stdout] | ^^^^^^^^^^ no `DelayQueue` in `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `delay_queue` in `time` [INFO] [stdout] --> examples/11-select-connect.rs:19:79 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn insert(&mut self, value: Event, timeout: Duration) -> tokio::time::delay_queue::Key { [INFO] [stdout] | ^^^^^^^^^^^ could not find `delay_queue` in `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/10-select-stream.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | let next = tokio::select! { [INFO] [stdout] | ________________^ [INFO] [stdout] 9 | | v = stream1.next() => { [INFO] [stdout] 10 | | println!("stream1"); [INFO] [stdout] 11 | | v.unwrap() [INFO] [stdout] ... | [INFO] [stdout] 16 | | }, [INFO] [stdout] 17 | | }; [INFO] [stdout] | |_____^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::select` which comes from the expansion of the macro `tokio::select` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/10-select-stream.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | v.unwrap() [INFO] [stdout] | ^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/10-select-stream.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | v.unwrap() [INFO] [stdout] | ^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `async-test` (example "10-select-stream") due to 6 previous errors [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] warning: the feature `async_closure` has been stable since 1.85.0 and no longer requires an attribute to enable [INFO] [stdout] --> examples/06-join-all.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(async_closure)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `async-test` (example "11-select-connect") due to 3 previous errors [INFO] [stdout] error[E0432]: unresolved imports `tokio::stream::Stream`, `tokio::stream::StreamExt` [INFO] [stdout] --> examples/08-connect.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::stream::{Stream, StreamExt}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ no `StreamExt` in `stream` [INFO] [stdout] | | [INFO] [stdout] | no `Stream` in `stream` [INFO] [stdout] | [INFO] [stdout] = help: consider importing this trait instead: [INFO] [stdout] futures::Stream [INFO] [stdout] = help: consider importing this trait instead: [INFO] [stdout] futures::StreamExt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::time::DelayQueue` [INFO] [stdout] --> examples/08-connect.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::time::{DelayQueue, Duration}; [INFO] [stdout] | ^^^^^^^^^^ no `DelayQueue` in `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `tokio::stream::Stream`, `tokio::stream::StreamExt` [INFO] [stdout] --> examples/07-timer-stream.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::stream::{Stream, StreamExt}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ no `StreamExt` in `stream` [INFO] [stdout] | | [INFO] [stdout] | no `Stream` in `stream` [INFO] [stdout] | [INFO] [stdout] = help: consider importing this trait instead: [INFO] [stdout] futures::Stream [INFO] [stdout] = help: consider importing this trait instead: [INFO] [stdout] futures::StreamExt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::time::DelayQueue` [INFO] [stdout] --> examples/07-timer-stream.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio::time::DelayQueue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `DelayQueue` in `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio_util` [INFO] [stdout] --> examples/07-timer-stream.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use tokio_util::codec::{Decoder, Encoder, Framed}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `tokio_util` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio_util`, use `cargo add tokio_util` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bytes` [INFO] [stdout] --> examples/07-timer-stream.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use bytes::BytesMut; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `bytes` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `bytes`, use `cargo add bytes` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `delay_queue` in `time` [INFO] [stdout] --> examples/08-connect.rs:21:79 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn insert(&mut self, value: Event, timeout: Duration) -> tokio::time::delay_queue::Key { [INFO] [stdout] | ^^^^^^^^^^^ could not find `delay_queue` in `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async-test` (example "07-timer-stream") due to 4 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `mio` [INFO] [stdout] --> examples/08-connect.rs:39:36 [INFO] [stdout] | [INFO] [stdout] 39 | pub io: tokio::io::PollEvented, [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `mio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `mio`, use `cargo add mio` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 1 + use std::net; [INFO] [stdout] | [INFO] [stdout] 1 + use tokio::net; [INFO] [stdout] | [INFO] [stdout] help: if you import `net`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 39 - pub io: tokio::io::PollEvented, [INFO] [stdout] 39 + pub io: tokio::io::PollEvented, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `mio` [INFO] [stdout] --> examples/08-connect.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | let sys = mio::net::TcpStream::connect(&addr)?; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `mio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `mio`, use `cargo add mio` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::net::TcpStream; [INFO] [stdout] | [INFO] [stdout] 1 + use tokio::net::TcpStream; [INFO] [stdout] | [INFO] [stdout] help: if you import `TcpStream`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 44 - let sys = mio::net::TcpStream::connect(&addr)?; [INFO] [stdout] 44 + let sys = TcpStream::connect(&addr)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `mio` [INFO] [stdout] --> examples/08-connect.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | fn new(connected: mio::net::TcpStream) -> std::io::Result { [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `mio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `mio`, use `cargo add mio` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 1 + use std::net; [INFO] [stdout] | [INFO] [stdout] 1 + use tokio::net; [INFO] [stdout] | [INFO] [stdout] help: if you import `net`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 49 - fn new(connected: mio::net::TcpStream) -> std::io::Result { [INFO] [stdout] 49 + fn new(connected: net::TcpStream) -> std::io::Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct `PollEvented` is private [INFO] [stdout] --> examples/08-connect.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | pub io: tokio::io::PollEvented, [INFO] [stdout] | ^^^^^^^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `PollEvented` is defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.0.1/src/io/mod.rs:217:20 [INFO] [stdout] | [INFO] [stdout] 217 | pub(crate) use poll_evented::PollEvented; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct `PollEvented` is private [INFO] [stdout] --> examples/08-connect.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | let io = tokio::io::PollEvented::new(connected)?; [INFO] [stdout] | ^^^^^^^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `PollEvented` is defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.0.1/src/io/mod.rs:217:20 [INFO] [stdout] | [INFO] [stdout] 217 | pub(crate) use poll_evented::PollEvented; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async-test` (example "08-connect") due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "e1e015b4a448acf812181ea1daf4d89f3e70942b51ca525254c44078b1bf0309", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1e015b4a448acf812181ea1daf4d89f3e70942b51ca525254c44078b1bf0309", kill_on_drop: false }` [INFO] [stdout] e1e015b4a448acf812181ea1daf4d89f3e70942b51ca525254c44078b1bf0309