[INFO] crate broker-tokio 0.2.16 is already in cache [INFO] testing broker-tokio-0.2.16 against 1.45.2 for beta-1.46-1 [INFO] extracting crate broker-tokio 0.2.16 into /workspace/builds/worker-8/source [INFO] validating manifest of crates.io crate broker-tokio 0.2.16 on toolchain 1.45.2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-8/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e92af245fce380e7ca9e1616eeec080c4a1dbe0d519f0fb83c9e327c60031f2c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e92af245fce380e7ca9e1616eeec080c4a1dbe0d519f0fb83c9e327c60031f2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e92af245fce380e7ca9e1616eeec080c4a1dbe0d519f0fb83c9e327c60031f2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e92af245fce380e7ca9e1616eeec080c4a1dbe0d519f0fb83c9e327c60031f2c", kill_on_drop: false }` [INFO] [stdout] e92af245fce380e7ca9e1616eeec080c4a1dbe0d519f0fb83c9e327c60031f2c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e01d96994daf63aa471d34f8eaaba0feeb9546d43630209f419bb01dca3f8b1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1e01d96994daf63aa471d34f8eaaba0feeb9546d43630209f419bb01dca3f8b1", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling broker-tokio v0.2.16 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.07s [INFO] running `Command { std: "docker" "inspect" "1e01d96994daf63aa471d34f8eaaba0feeb9546d43630209f419bb01dca3f8b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e01d96994daf63aa471d34f8eaaba0feeb9546d43630209f419bb01dca3f8b1", kill_on_drop: false }` [INFO] [stdout] 1e01d96994daf63aa471d34f8eaaba0feeb9546d43630209f419bb01dca3f8b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 34a243d3b37e8e6fd57b1fb22fa63445b494ee6e966e8ec2341be6efcfcb8fda [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "34a243d3b37e8e6fd57b1fb22fa63445b494ee6e966e8ec2341be6efcfcb8fda", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.38 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling bit-vec v0.6.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling tokio v0.2.22 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling wait-timeout v0.2.0 [INFO] [stderr] Compiling generator v0.6.21 [INFO] [stderr] Compiling rusty-fork v0.2.2 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling proptest v0.9.6 [INFO] [stderr] Compiling tokio-test v0.2.1 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling pin-project v0.4.23 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling futures-executor v0.3.5 [INFO] [stderr] Compiling futures v0.3.5 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling loom v0.2.15 [INFO] [stderr] Compiling broker-tokio v0.2.16 (/opt/rustwide/workdir) [INFO] [stdout] warning: function is never used: `backoff` [INFO] [stdout] --> src/tests/backoff.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) fn backoff(n: usize) -> impl Future { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `backoff_clone` [INFO] [stdout] --> src/tests/backoff.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) fn backoff_clone(n: usize) -> impl Future { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `track_drop` [INFO] [stdout] --> src/tests/track_drop.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) fn track_drop( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ref` [INFO] [stdout] --> src/tests/track_drop.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) fn get_ref(&self) -> &T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `did_drop_future` [INFO] [stdout] --> src/tests/track_drop.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn did_drop_future(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `did_drop_output` [INFO] [stdout] --> src/tests/track_drop.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn did_drop_output(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1m 15s [INFO] running `Command { std: "docker" "inspect" "34a243d3b37e8e6fd57b1fb22fa63445b494ee6e966e8ec2341be6efcfcb8fda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34a243d3b37e8e6fd57b1fb22fa63445b494ee6e966e8ec2341be6efcfcb8fda", kill_on_drop: false }` [INFO] [stdout] 34a243d3b37e8e6fd57b1fb22fa63445b494ee6e966e8ec2341be6efcfcb8fda [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a24ce58df4e8392711b8dd07e4efd6ae8e21ab3b517a35a449d94efca7cf739c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a24ce58df4e8392711b8dd07e4efd6ae8e21ab3b517a35a449d94efca7cf739c", kill_on_drop: false }` [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: associated function is never used: `get_ref` [INFO] [stderr] --> src/tests/track_drop.rs:29:19 [INFO] [stderr] | [INFO] [stderr] 29 | pub(crate) fn get_ref(&self) -> &T { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `did_drop_future` [INFO] [stderr] --> src/tests/track_drop.rs:50:19 [INFO] [stderr] | [INFO] [stderr] 50 | pub(crate) fn did_drop_future(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `did_drop_output` [INFO] [stderr] --> src/tests/track_drop.rs:54:19 [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.58s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/broker_tokio-7570a334a1e07e5f [INFO] [stdout] [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] [stderr] Doc-tests broker-tokio [INFO] [stdout] [INFO] [stdout] running 20 tests [INFO] [stdout] test src/runtime/builder.rs - runtime::builder::Builder::build (line 298) ... FAILED [INFO] [stdout] test src/runtime/builder.rs - runtime::builder::Builder::enable_all (line 121) ... FAILED [INFO] [stdout] test src/prelude.rs - prelude (line 9) ... FAILED [INFO] [stdout] test src/lib.rs - (line 248) ... FAILED [INFO] [stdout] test src/runtime/handle.rs - runtime::handle::Handle::current (line 47) ... FAILED [INFO] [stdout] test src/io/mod.rs - io (line 98) ... FAILED [INFO] [stdout] test src/runtime/mod.rs - runtime (line 65) ... FAILED [INFO] [stdout] test src/runtime/builder.rs - runtime::builder::Builder (line 24) ... FAILED [INFO] [stdout] test src/runtime/mod.rs - runtime::Runtime::new (line 321) ... FAILED [INFO] [stdout] test src/runtime/mod.rs - runtime::Runtime::handle (line 431) ... 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/mod.rs - runtime (line 140) ... FAILED [INFO] [stdout] test src/runtime/builder.rs - runtime::builder::Builder::core_threads (line 161) ... FAILED [INFO] [stdout] test src/runtime/mod.rs - runtime (line 22) ... 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 40) ... 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 120) ... FAILED [INFO] [stdout] test src/io/mod.rs - io (line 77) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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/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/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/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[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:253:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0698, E0752. [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/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[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/io/mod.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0752. [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 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/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/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/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/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/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/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/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[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/runtime/mod.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0698, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [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 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[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/io/mod.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0698, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [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 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/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[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/io/mod.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0752. [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 `Command { std: "docker" "inspect" "a24ce58df4e8392711b8dd07e4efd6ae8e21ab3b517a35a449d94efca7cf739c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a24ce58df4e8392711b8dd07e4efd6ae8e21ab3b517a35a449d94efca7cf739c", kill_on_drop: false }` [INFO] [stdout] a24ce58df4e8392711b8dd07e4efd6ae8e21ab3b517a35a449d94efca7cf739c