[INFO] crate broker-tokio 0.2.16 is already in cache [INFO] testing broker-tokio-0.2.16 against beta-2020-06-03 for beta-1.45-1 [INFO] extracting crate broker-tokio 0.2.16 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate broker-tokio 0.2.16 on toolchain beta-2020-06-03 [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "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-0/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-06-03" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e06bc79dc9ebfc20afb733c6af237ffabb003eb6d5d143f47681548982202a05 [INFO] running `"docker" "start" "-a" "e06bc79dc9ebfc20afb733c6af237ffabb003eb6d5d143f47681548982202a05"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling broker-tokio v0.2.16 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.26s [INFO] running `"docker" "inspect" "e06bc79dc9ebfc20afb733c6af237ffabb003eb6d5d143f47681548982202a05"` [INFO] running `"docker" "rm" "-f" "e06bc79dc9ebfc20afb733c6af237ffabb003eb6d5d143f47681548982202a05"` [INFO] [stdout] e06bc79dc9ebfc20afb733c6af237ffabb003eb6d5d143f47681548982202a05 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-06-03" "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] 25c1cdedc1103dd1811d1f3bcfe2586ff2be9cfc68b5b0c8b3099f49afb3c8de [INFO] running `"docker" "start" "-a" "25c1cdedc1103dd1811d1f3bcfe2586ff2be9cfc68b5b0c8b3099f49afb3c8de"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling bit-vec v0.6.2 [INFO] [stderr] Compiling scoped-tls v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling tokio v0.2.21 [INFO] [stderr] Compiling generator v0.6.20 [INFO] [stderr] Compiling wait-timeout v0.2.0 [INFO] [stderr] Compiling serde_json v1.0.53 [INFO] [stderr] Compiling rusty-fork v0.2.2 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling proptest v0.9.6 [INFO] [stderr] Compiling tokio-test v0.2.1 [INFO] [stderr] Compiling futures-executor v0.3.5 [INFO] [stderr] Compiling loom v0.2.15 [INFO] [stderr] Compiling futures v0.3.5 [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: 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 32.49s [INFO] running `"docker" "inspect" "25c1cdedc1103dd1811d1f3bcfe2586ff2be9cfc68b5b0c8b3099f49afb3c8de"` [INFO] running `"docker" "rm" "-f" "25c1cdedc1103dd1811d1f3bcfe2586ff2be9cfc68b5b0c8b3099f49afb3c8de"` [INFO] [stdout] 25c1cdedc1103dd1811d1f3bcfe2586ff2be9cfc68b5b0c8b3099f49afb3c8de [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-06-03" "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] 0b2e26b2923fdd81e5a9172ae746b5cd915ac7e491f241394c3f337dca65e10c [INFO] running `"docker" "start" "-a" "0b2e26b2923fdd81e5a9172ae746b5cd915ac7e491f241394c3f337dca65e10c"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [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.22s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/broker_tokio-d29b0fe19f3c7d1c [INFO] [stderr] Doc-tests broker-tokio [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] [stdout] [INFO] [stdout] running 20 tests [INFO] [stdout] test src/runtime/builder.rs - runtime::builder::Builder (line 24) ... FAILED [INFO] [stdout] test src/prelude.rs - prelude (line 9) ... FAILED [INFO] [stdout] test src/runtime/builder.rs - runtime::builder::Builder::build (line 298) ... 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::thread_stack_size (line 225) ... 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_name (line 201) ... FAILED [INFO] [stdout] test src/runtime/mod.rs - runtime (line 65) ... FAILED [INFO] [stdout] test src/runtime/mod.rs - runtime (line 22) ... FAILED [INFO] [stdout] test src/lib.rs - (line 248) ... FAILED [INFO] [stdout] test src/runtime/mod.rs - runtime (line 140) ... FAILED [INFO] [stdout] test src/runtime/mod.rs - runtime (line 120) ... FAILED [INFO] [stdout] test src/runtime/mod.rs - runtime::Runtime::handle (line 431) ... 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::new (line 321) ... 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/io/mod.rs - io (line 40) ... 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] [INFO] [stdout] failures: [INFO] [stdout] [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/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::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/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::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/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_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/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 (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/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/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/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/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::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::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::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/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/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] ---- 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] [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" "0b2e26b2923fdd81e5a9172ae746b5cd915ac7e491f241394c3f337dca65e10c"` [INFO] running `"docker" "rm" "-f" "0b2e26b2923fdd81e5a9172ae746b5cd915ac7e491f241394c3f337dca65e10c"` [INFO] [stdout] 0b2e26b2923fdd81e5a9172ae746b5cd915ac7e491f241394c3f337dca65e10c