[INFO] crate broker-tokio 0.2.16 is already in cache [INFO] testing broker-tokio-0.2.16 against try#41997647ba6a77908f6ef64401414feb00bccf16 for pr-71274 [INFO] extracting crate broker-tokio 0.2.16 into /workspace/builds/worker-13/source [INFO] validating manifest of crates.io crate broker-tokio 0.2.16 on toolchain 41997647ba6a77908f6ef64401414feb00bccf16 [INFO] running `"/workspace/cargo-home/bin/cargo" "+41997647ba6a77908f6ef64401414feb00bccf16" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate broker-tokio 0.2.16 [INFO] finished tweaking crates.io crate broker-tokio 0.2.16 [INFO] tweaked toml for crates.io crate broker-tokio 0.2.16 written to /workspace/builds/worker-13/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+41997647ba6a77908f6ef64401414feb00bccf16" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+41997647ba6a77908f6ef64401414feb00bccf16" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "+41997647ba6a77908f6ef64401414feb00bccf16" "build" "--frozen"` [INFO] [stdout] 14a4d970c5c91e0dc1f6922edb9f4da47e17815ca2ba7c8277d34b689ea96989 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "14a4d970c5c91e0dc1f6922edb9f4da47e17815ca2ba7c8277d34b689ea96989"` [INFO] [stderr] Compiling bytes v0.5.4 [INFO] [stderr] Compiling pin-project-lite v0.1.4 [INFO] [stderr] Compiling broker-tokio v0.2.16 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.30s [INFO] running `"docker" "inspect" "14a4d970c5c91e0dc1f6922edb9f4da47e17815ca2ba7c8277d34b689ea96989"` [INFO] running `"docker" "rm" "-f" "14a4d970c5c91e0dc1f6922edb9f4da47e17815ca2ba7c8277d34b689ea96989"` [INFO] [stdout] 14a4d970c5c91e0dc1f6922edb9f4da47e17815ca2ba7c8277d34b689ea96989 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "+41997647ba6a77908f6ef64401414feb00bccf16" "test" "--frozen" "--no-run"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b53a5d895ac02c90e917c8a3e03925b0d4e674201d337eb1b4e0e753453dacc5 [INFO] running `"docker" "start" "-a" "b53a5d895ac02c90e917c8a3e03925b0d4e674201d337eb1b4e0e753453dacc5"` [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling futures-core v0.3.4 [INFO] [stderr] Compiling proc-macro-nested v0.1.4 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.15 [INFO] [stderr] Compiling ppv-lite86 v0.2.6 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Compiling ryu v1.0.3 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling futures-task v0.3.4 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Compiling pin-utils v0.1.0-alpha.4 [INFO] [stderr] Compiling futures-io v0.3.4 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling remove_dir_all v0.5.2 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling scoped-tls v0.1.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling futures-channel v0.3.4 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling tokio v0.2.18 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling generator v0.6.20 [INFO] [stderr] Compiling wait-timeout v0.2.0 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling tokio-test v0.2.1 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling rusty-fork v0.2.2 [INFO] [stderr] Compiling proptest v0.9.6 [INFO] [stderr] Compiling futures-macro v0.3.4 [INFO] [stderr] Compiling serde_derive v1.0.106 [INFO] [stderr] Compiling futures-util v0.3.4 [INFO] [stderr] Compiling futures-executor v0.3.4 [INFO] [stderr] Compiling futures v0.3.4 [INFO] [stderr] Compiling serde_json v1.0.51 [INFO] [stderr] Compiling loom v0.2.15 [INFO] [stderr] Compiling broker-tokio v0.2.16 (/opt/rustwide/workdir) [INFO] [stderr] warning: function is never used: `backoff` [INFO] [stderr] --> src/tests/backoff.rs:7:15 [INFO] [stderr] | [INFO] [stderr] 7 | pub(crate) fn backoff(n: usize) -> impl Future { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `backoff_clone` [INFO] [stderr] --> src/tests/backoff.rs:12:15 [INFO] [stderr] | [INFO] [stderr] 12 | pub(crate) fn backoff_clone(n: usize) -> impl Future { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `track_drop` [INFO] [stderr] --> src/tests/track_drop.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | pub(crate) fn track_drop( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `get_ref` [INFO] [stderr] --> src/tests/track_drop.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | pub(crate) fn get_ref(&self) -> &T { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `did_drop_future` [INFO] [stderr] --> src/tests/track_drop.rs:50:5 [INFO] [stderr] | [INFO] [stderr] 50 | pub(crate) fn did_drop_future(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `did_drop_output` [INFO] [stderr] --> src/tests/track_drop.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | pub(crate) fn did_drop_output(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 6 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1m 36s [INFO] running `"docker" "inspect" "b53a5d895ac02c90e917c8a3e03925b0d4e674201d337eb1b4e0e753453dacc5"` [INFO] running `"docker" "rm" "-f" "b53a5d895ac02c90e917c8a3e03925b0d4e674201d337eb1b4e0e753453dacc5"` [INFO] [stdout] b53a5d895ac02c90e917c8a3e03925b0d4e674201d337eb1b4e0e753453dacc5 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "+41997647ba6a77908f6ef64401414feb00bccf16" "test" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ba5683a221a9136a80535b4b177d4d7e8312cf2f1f9c09db95475e5c0a42ee50 [INFO] running `"docker" "start" "-a" "ba5683a221a9136a80535b4b177d4d7e8312cf2f1f9c09db95475e5c0a42ee50"` [INFO] [stderr] warning: function is never used: `backoff` [INFO] [stderr] --> src/tests/backoff.rs:7:15 [INFO] [stderr] | [INFO] [stderr] 7 | pub(crate) fn backoff(n: usize) -> impl Future { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `backoff_clone` [INFO] [stderr] --> src/tests/backoff.rs:12:15 [INFO] [stderr] | [INFO] [stderr] 12 | pub(crate) fn backoff_clone(n: usize) -> impl Future { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `track_drop` [INFO] [stderr] --> src/tests/track_drop.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | pub(crate) fn track_drop( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `get_ref` [INFO] [stderr] --> src/tests/track_drop.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | pub(crate) fn get_ref(&self) -> &T { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `did_drop_future` [INFO] [stderr] --> src/tests/track_drop.rs:50:5 [INFO] [stderr] | [INFO] [stderr] 50 | pub(crate) fn did_drop_future(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `did_drop_output` [INFO] [stderr] --> src/tests/track_drop.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | pub(crate) fn did_drop_output(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 6 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.37s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/broker_tokio-1bfa06022372ecfd [INFO] [stdout] [INFO] [stderr] Doc-tests broker-tokio [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 20 tests [INFO] [stdout] test src/prelude.rs - prelude (line 9) ... FAILED [INFO] [stdout] test src/runtime/builder.rs - runtime::builder::Builder (line 24) ... FAILED [INFO] [stdout] test src/runtime/builder.rs - runtime::builder::Builder::build (line 298) ... FAILED [INFO] [stdout] test src/lib.rs - (line 248) ... FAILED [INFO] [stdout] test src/runtime/mod.rs - runtime (line 22) ... FAILED [INFO] [stdout] test src/runtime/handle.rs - runtime::handle::Handle::current (line 47) ... FAILED [INFO] [stdout] test src/runtime/builder.rs - runtime::builder::Builder::enable_all (line 121) ... FAILED [INFO] [stdout] test src/runtime/mod.rs - runtime::Runtime::handle (line 431) ... FAILED [INFO] [stdout] test src/runtime/mod.rs - runtime (line 65) ... FAILED [INFO] [stdout] test src/runtime/mod.rs - runtime::Runtime::new (line 321) ... FAILED [INFO] [stdout] test src/runtime/builder.rs - runtime::builder::Builder::thread_name (line 201) ... FAILED [INFO] [stdout] test src/io/mod.rs - io (line 77) ... FAILED [INFO] [stdout] test src/io/mod.rs - io (line 98) ... FAILED [INFO] [stdout] test src/runtime/mod.rs - runtime (line 120) ... FAILED [INFO] [stdout] test src/runtime/builder.rs - runtime::builder::Builder::on_thread_stop (line 272) ... FAILED [INFO] [stdout] test src/runtime/builder.rs - runtime::builder::Builder::on_thread_start (line 246) ... FAILED [INFO] [stdout] test src/runtime/builder.rs - runtime::builder::Builder::core_threads (line 161) ... FAILED [INFO] [stdout] test src/runtime/builder.rs - runtime::builder::Builder::thread_stack_size (line 225) ... FAILED [INFO] [stdout] test src/runtime/mod.rs - runtime (line 140) ... FAILED [INFO] [stdout] test src/io/mod.rs - io (line 40) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/prelude.rs - prelude (line 9) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/prelude.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::prelude::*; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runtime/builder.rs - runtime::builder::Builder (line 24) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/runtime/builder.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::runtime::Builder; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Builder` [INFO] [stdout] --> src/runtime/builder.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 7 | let runtime = Builder::new() [INFO] [stdout] | ^^^^^^^ use of undeclared type or module `Builder` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runtime/builder.rs - runtime::builder::Builder::build (line 298) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/runtime/builder.rs:299:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::runtime::Builder; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Builder` [INFO] [stdout] --> src/runtime/builder.rs:301:14 [INFO] [stdout] | [INFO] [stdout] 6 | let mut rt = Builder::new().build().unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type or module `Builder` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 248) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/lib.rs:250:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::prelude::*; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/lib.rs:249:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpListener` [INFO] [stdout] --> src/lib.rs:249:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/lib.rs:252:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `TcpListener` [INFO] [stdout] --> src/lib.rs:254:24 [INFO] [stdout] | [INFO] [stdout] 8 | let mut listener = TcpListener::bind("127.0.0.1:8080").await?; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type or module `TcpListener` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/lib.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 13 | tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0277]: `main` has invalid return type `impl std::future::Future` [INFO] [stdout] --> src/lib.rs:253:20 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` can only return types that implement `std::process::Termination` [INFO] [stdout] | [INFO] [stdout] = help: consider using `()`, or a `Result` [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/lib.rs:260:17 [INFO] [stdout] | [INFO] [stdout] 14 | let mut buf = [0; 1024]; [INFO] [stdout] | ^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/lib.rs:275:33 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/lib.rs:264:48 [INFO] [stdout] | [INFO] [stdout] 18 | let n = match socket.read(&mut buf).await { [INFO] [stdout] | ^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/lib.rs:264:31 [INFO] [stdout] | [INFO] [stdout] 18 | let n = match socket.read(&mut buf).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/lib.rs:264:43 [INFO] [stdout] | [INFO] [stdout] 18 | let n = match socket.read(&mut buf).await { [INFO] [stdout] | ^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/lib.rs:264:31 [INFO] [stdout] | [INFO] [stdout] 18 | let n = match socket.read(&mut buf).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/lib.rs:275:51 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/lib.rs:275:33 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/lib.rs:275:51 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/lib.rs:275:33 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/lib.rs:275:50 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/lib.rs:275:33 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0698. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runtime/mod.rs - runtime (line 22) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/runtime/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::prelude::*; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/runtime/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpListener` [INFO] [stdout] --> src/runtime/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/runtime/mod.rs:26:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `TcpListener` [INFO] [stdout] --> src/runtime/mod.rs:28:24 [INFO] [stdout] | [INFO] [stdout] 8 | let mut listener = TcpListener::bind("127.0.0.1:8080").await?; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type or module `TcpListener` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/runtime/mod.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 13 | tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0277]: `main` has invalid return type `impl std::future::Future` [INFO] [stdout] --> src/runtime/mod.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` can only return types that implement `std::process::Termination` [INFO] [stdout] | [INFO] [stdout] = help: consider using `()`, or a `Result` [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/runtime/mod.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 14 | let mut buf = [0; 1024]; [INFO] [stdout] | ^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/runtime/mod.rs:49:33 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/runtime/mod.rs:38:48 [INFO] [stdout] | [INFO] [stdout] 18 | let n = match socket.read(&mut buf).await { [INFO] [stdout] | ^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/runtime/mod.rs:38:31 [INFO] [stdout] | [INFO] [stdout] 18 | let n = match socket.read(&mut buf).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/runtime/mod.rs:38:43 [INFO] [stdout] | [INFO] [stdout] 18 | let n = match socket.read(&mut buf).await { [INFO] [stdout] | ^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/runtime/mod.rs:38:31 [INFO] [stdout] | [INFO] [stdout] 18 | let n = match socket.read(&mut buf).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/runtime/mod.rs:49:51 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/runtime/mod.rs:49:33 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/runtime/mod.rs:49:51 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/runtime/mod.rs:49:33 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/runtime/mod.rs:49:50 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/runtime/mod.rs:49:33 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0698. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runtime/handle.rs - runtime::handle::Handle::current (line 47) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/runtime/handle.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::runtime::Runtime; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/runtime/handle.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::runtime::Handle; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Runtime` [INFO] [stdout] --> src/runtime/handle.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 7 | let rt = Runtime::new().unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type or module `Runtime` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Handle` [INFO] [stdout] --> src/runtime/handle.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 11 | let handle = Handle::current(); [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Handle` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runtime/builder.rs - runtime::builder::Builder::enable_all (line 121) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> src/runtime/builder.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::runtime; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runtime/mod.rs - runtime::Runtime::handle (line 431) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/runtime/mod.rs:432:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::runtime::Runtime; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Runtime` [INFO] [stdout] --> src/runtime/mod.rs:434:10 [INFO] [stdout] | [INFO] [stdout] 6 | let rt = Runtime::new() [INFO] [stdout] | ^^^^^^^ use of undeclared type or module `Runtime` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runtime/mod.rs - runtime (line 65) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/runtime/mod.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::prelude::*; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/runtime/mod.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/runtime/mod.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::runtime::Runtime; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `tokio::net::TcpListener`, `tokio::runtime::Runtime` [INFO] [stdout] --> src/runtime/mod.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | use tokio::prelude::*; [INFO] [stdout] 5 | use tokio::runtime::Runtime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Runtime` [INFO] [stdout] --> src/runtime/mod.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 9 | let mut rt = Runtime::new()?; [INFO] [stdout] | ^^^^^^^ use of undeclared type or module `Runtime` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `TcpListener` [INFO] [stdout] --> src/runtime/mod.rs:76:28 [INFO] [stdout] | [INFO] [stdout] 13 | let mut listener = TcpListener::bind("127.0.0.1:8080").await?; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type or module `TcpListener` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/runtime/mod.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 18 | tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/runtime/mod.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 19 | let mut buf = [0; 1024]; [INFO] [stdout] | ^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/runtime/mod.rs:97:37 [INFO] [stdout] | [INFO] [stdout] 34 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/runtime/mod.rs:86:52 [INFO] [stdout] | [INFO] [stdout] 23 | let n = match socket.read(&mut buf).await { [INFO] [stdout] | ^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/runtime/mod.rs:86:35 [INFO] [stdout] | [INFO] [stdout] 23 | let n = match socket.read(&mut buf).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/runtime/mod.rs:86:47 [INFO] [stdout] | [INFO] [stdout] 23 | let n = match socket.read(&mut buf).await { [INFO] [stdout] | ^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/runtime/mod.rs:86:35 [INFO] [stdout] | [INFO] [stdout] 23 | let n = match socket.read(&mut buf).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/runtime/mod.rs:97:55 [INFO] [stdout] | [INFO] [stdout] 34 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/runtime/mod.rs:97:37 [INFO] [stdout] | [INFO] [stdout] 34 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/runtime/mod.rs:97:55 [INFO] [stdout] | [INFO] [stdout] 34 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/runtime/mod.rs:97:37 [INFO] [stdout] | [INFO] [stdout] 34 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/runtime/mod.rs:97:54 [INFO] [stdout] | [INFO] [stdout] 34 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/runtime/mod.rs:97:37 [INFO] [stdout] | [INFO] [stdout] 34 | if let Err(e) = socket.write_all(&buf[0..n]).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0698. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runtime/mod.rs - runtime::Runtime::new (line 321) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/runtime/mod.rs:322:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::runtime::Runtime; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Runtime` [INFO] [stdout] --> src/runtime/mod.rs:324:10 [INFO] [stdout] | [INFO] [stdout] 6 | let rt = Runtime::new() [INFO] [stdout] | ^^^^^^^ use of undeclared type or module `Runtime` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runtime/builder.rs - runtime::builder::Builder::thread_name (line 201) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> src/runtime/builder.rs:202:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::runtime; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/io/mod.rs - io (line 77) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/io/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::io::{self, BufReader, AsyncBufReadExt}; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/io/mod.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::fs::File; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> src/io/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::io::{self, BufReader, AsyncBufReadExt}; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/io/mod.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `File` [INFO] [stdout] --> src/io/mod.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 8 | let f = File::open("foo.txt").await?; [INFO] [stdout] | ^^^^ use of undeclared type or module `File` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `BufReader` [INFO] [stdout] --> src/io/mod.rs:84:22 [INFO] [stdout] | [INFO] [stdout] 9 | let mut reader = BufReader::new(f); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type or module `BufReader` [INFO] [stdout] [INFO] [stdout] error[E0277]: `main` has invalid return type `impl futures_core::Future` [INFO] [stdout] --> src/io/mod.rs:82:20 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ `main` can only return types that implement `std::process::Termination` [INFO] [stdout] | [INFO] [stdout] = help: consider using `()`, or a `Result` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/io/mod.rs - io (line 98) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/io/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::io::{self, BufWriter, AsyncWriteExt}; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/io/mod.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::fs::File; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> src/io/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::io::{self, BufWriter, AsyncWriteExt}; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/io/mod.rs:102:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `File` [INFO] [stdout] --> src/io/mod.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 8 | let f = File::create("foo.txt").await?; [INFO] [stdout] | ^^^^ use of undeclared type or module `File` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `BufWriter` [INFO] [stdout] --> src/io/mod.rs:106:26 [INFO] [stdout] | [INFO] [stdout] 10 | let mut writer = BufWriter::new(f); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type or module `BufWriter` [INFO] [stdout] [INFO] [stdout] error[E0277]: `main` has invalid return type `impl futures_core::Future` [INFO] [stdout] --> src/io/mod.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ `main` can only return types that implement `std::process::Termination` [INFO] [stdout] | [INFO] [stdout] = help: consider using `()`, or a `Result` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runtime/mod.rs - runtime (line 120) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> src/runtime/mod.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::runtime; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runtime/builder.rs - runtime::builder::Builder::on_thread_stop (line 272) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> src/runtime/builder.rs:273:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::runtime; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runtime/builder.rs - runtime::builder::Builder::on_thread_start (line 246) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> src/runtime/builder.rs:247:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::runtime; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runtime/builder.rs - runtime::builder::Builder::core_threads (line 161) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> src/runtime/builder.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::runtime; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runtime/builder.rs - runtime::builder::Builder::thread_stack_size (line 225) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> src/runtime/builder.rs:226:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::runtime; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runtime/mod.rs - runtime (line 140) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> src/runtime/mod.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::runtime; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/io/mod.rs - io (line 40) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/io/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::io::{self, AsyncReadExt}; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/io/mod.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::fs::File; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> src/io/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::io::{self, AsyncReadExt}; [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tokio` [INFO] [stdout] --> src/io/mod.rs:44:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared type or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `File` [INFO] [stdout] --> src/io/mod.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 8 | let mut f = File::open("foo.txt").await?; [INFO] [stdout] | ^^^^ use of undeclared type or module `File` [INFO] [stdout] [INFO] [stdout] error[E0277]: `main` has invalid return type `impl futures_core::Future` [INFO] [stdout] --> src/io/mod.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ `main` can only return types that implement `std::process::Termination` [INFO] [stdout] | [INFO] [stdout] = help: consider using `()`, or a `Result` [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/io/mod.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut buffer = [0; 10]; [INFO] [stdout] | ^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/io/mod.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 12 | let n = f.read(&mut buffer).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/io/mod.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 12 | let n = f.read(&mut buffer).await?; [INFO] [stdout] | ^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/io/mod.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 12 | let n = f.read(&mut buffer).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/io/mod.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 12 | let n = f.read(&mut buffer).await?; [INFO] [stdout] | ^^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/io/mod.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 12 | let n = f.read(&mut buffer).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0698. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/io/mod.rs - io (line 40) [INFO] [stdout] src/io/mod.rs - io (line 77) [INFO] [stdout] src/io/mod.rs - io (line 98) [INFO] [stdout] src/lib.rs - (line 248) [INFO] [stdout] src/prelude.rs - prelude (line 9) [INFO] [stdout] src/runtime/builder.rs - runtime::builder::Builder (line 24) [INFO] [stdout] src/runtime/builder.rs - runtime::builder::Builder::build (line 298) [INFO] [stdout] src/runtime/builder.rs - runtime::builder::Builder::core_threads (line 161) [INFO] [stdout] src/runtime/builder.rs - runtime::builder::Builder::enable_all (line 121) [INFO] [stdout] src/runtime/builder.rs - runtime::builder::Builder::on_thread_start (line 246) [INFO] [stdout] src/runtime/builder.rs - runtime::builder::Builder::on_thread_stop (line 272) [INFO] [stdout] src/runtime/builder.rs - runtime::builder::Builder::thread_name (line 201) [INFO] [stdout] src/runtime/builder.rs - runtime::builder::Builder::thread_stack_size (line 225) [INFO] [stdout] src/runtime/handle.rs - runtime::handle::Handle::current (line 47) [INFO] [stdout] src/runtime/mod.rs - runtime (line 120) [INFO] [stdout] src/runtime/mod.rs - runtime (line 140) [INFO] [stdout] src/runtime/mod.rs - runtime (line 22) [INFO] [stdout] src/runtime/mod.rs - runtime (line 65) [INFO] [stdout] src/runtime/mod.rs - runtime::Runtime::handle (line 431) [INFO] [stdout] src/runtime/mod.rs - runtime::Runtime::new (line 321) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 20 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "ba5683a221a9136a80535b4b177d4d7e8312cf2f1f9c09db95475e5c0a42ee50"` [INFO] running `"docker" "rm" "-f" "ba5683a221a9136a80535b4b177d4d7e8312cf2f1f9c09db95475e5c0a42ee50"` [INFO] [stdout] ba5683a221a9136a80535b4b177d4d7e8312cf2f1f9c09db95475e5c0a42ee50