[INFO] cloning repository https://github.com/ranafge/rust_tokio_async_in_depth [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ranafge/rust_tokio_async_in_depth" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Franafge%2Frust_tokio_async_in_depth", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Franafge%2Frust_tokio_async_in_depth'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c2e2b037ea75b0beda7f4871c67b0b42ea88c0c1 [INFO] testing ranafge/rust_tokio_async_in_depth against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Franafge%2Frust_tokio_async_in_depth" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ranafge/rust_tokio_async_in_depth [INFO] finished tweaking git repo https://github.com/ranafge/rust_tokio_async_in_depth [INFO] tweaked toml for git repo https://github.com/ranafge/rust_tokio_async_in_depth written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ranafge/rust_tokio_async_in_depth on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ranafge/rust_tokio_async_in_depth already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 55033ab0d80b58fe99e1320ee9bd41f936be714a2c259cb9e841f57931068428 [INFO] running `Command { std: "docker" "start" "-a" "55033ab0d80b58fe99e1320ee9bd41f936be714a2c259cb9e841f57931068428", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "55033ab0d80b58fe99e1320ee9bd41f936be714a2c259cb9e841f57931068428", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55033ab0d80b58fe99e1320ee9bd41f936be714a2c259cb9e841f57931068428", kill_on_drop: false }` [INFO] [stdout] 55033ab0d80b58fe99e1320ee9bd41f936be714a2c259cb9e841f57931068428 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 633ac8955b4194cea14213ddb36fc22106400bf0b6de44815d28c3431026754b [INFO] running `Command { std: "docker" "start" "-a" "633ac8955b4194cea14213ddb36fc22106400bf0b6de44815d28c3431026754b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling serde_json v1.0.111 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling iana-time-zone v0.1.59 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling thread_local v1.1.7 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling tracing-log v0.1.4 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling mio v0.8.10 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling atoi v0.3.3 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling matchers v0.0.1 [INFO] [stderr] Compiling tracing-serde v0.1.3 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling structopt v0.3.26 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling async-stream v0.3.5 [INFO] [stderr] Compiling tokio v1.35.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tracing-subscriber v0.2.25 [INFO] [stderr] Compiling pin-project v1.1.3 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Compiling mini-redis v0.4.1 [INFO] [stderr] Compiling async_in_depth v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 33.07s [INFO] running `Command { std: "docker" "inspect" "633ac8955b4194cea14213ddb36fc22106400bf0b6de44815d28c3431026754b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "633ac8955b4194cea14213ddb36fc22106400bf0b6de44815d28c3431026754b", kill_on_drop: false }` [INFO] [stdout] 633ac8955b4194cea14213ddb36fc22106400bf0b6de44815d28c3431026754b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 607b0d88e938a17c439dfcf3cbb760eef5ed78c756b043f256dda93ddd7f721a [INFO] running `Command { std: "docker" "start" "-a" "607b0d88e938a17c439dfcf3cbb760eef5ed78c756b043f256dda93ddd7f721a", kill_on_drop: false }` [INFO] [stderr] Compiling async_in_depth v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `Delay` [INFO] [stdout] --> examples/async_fn_as_a_future.rs:28:34 [INFO] [stdout] | [INFO] [stdout] 6 | / struct Delay { [INFO] [stdout] 7 | | when: Instant, [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- `Delay` defined here [INFO] [stdout] ... [INFO] [stdout] 28 | let future = Delay(when); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use struct literal syntax instead of calling [INFO] [stdout] | [INFO] [stdout] 28 - let future = Delay(when); [INFO] [stdout] 28 + let future = Delay{when: when}; [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant instead [INFO] [stdout] | [INFO] [stdout] 1 + use tokio::time::MissedTickBehavior::Delay; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Output` [INFO] [stdout] --> examples/tokio_select_mutabally_borrowing.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::process::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> examples/tokio_select_mutabally_borrowing.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | tokio::spawn( [INFO] [stdout] | _____^^^^^^^^^^^^- [INFO] [stdout] 12 | | // println!("somethig"); [INFO] [stdout] 13 | | ); [INFO] [stdout] | |_____- argument #1 is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.35.1/src/task/spawn.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 11 - tokio::spawn( [INFO] [stdout] 12 - // println!("somethig"); [INFO] [stdout] 13 - ); [INFO] [stdout] 11 + tokio::spawn(/* future */); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> examples/10_8_implementing_waker_in_a_future.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0214]: parenthesized type parameters may only be used with a `Fn` trait [INFO] [stdout] --> examples/tokio_select_with_tcp_listener.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 20 | Ok::<_, io::Error(())> [INFO] [stdout] | ^^^^^^^^^ only `Fn` traits may use parentheses [INFO] [stdout] | [INFO] [stdout] help: use angle brackets instead [INFO] [stdout] | [INFO] [stdout] 20 - Ok::<_, io::Error(())> [INFO] [stdout] 20 + Ok::<_, io::Error<()>> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Delay` is never constructed [INFO] [stdout] --> examples/10_8_implementing_waker_in_a_future.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Delay { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] warning: struct `Delay` is never constructed [INFO] [stdout] --> examples/async_wakers.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Delay { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `async_in_depth` (example "tokio_select_mutabally_borrowing") due to 1 previous error; 1 warning emitted [INFO] [stdout] error[E0599]: no method named `poll` found for struct `Pin<&Delay>` in the current scope [INFO] [stdout] --> examples/10_4_internals_of_calling_a_future.rs:63:47 [INFO] [stdout] | [INFO] [stdout] 63 | match Pin::new(my_future).poll(cx) { [INFO] [stdout] | ^^^^ method not found in `Pin<&Delay>` [INFO] [stdout] | [INFO] [stdout] note: method is available for `Pin<&mut Delay>` [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/future/future.rs:113:5 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `poll`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0425]: cannot find function `process` in this scope [INFO] [stdout] --> examples/tokio_select_with_tcp_listener.rs:18:42 [INFO] [stdout] | [INFO] [stdout] 18 | tokio::spawn(async move {process(socket)}); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> examples/tokio_select_with_tcp_listener.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 16 | / loop { [INFO] [stdout] 17 | | let (socket, _) = listener.accept().await?; [INFO] [stdout] 18 | | tokio::spawn(async move {process(socket)}); [INFO] [stdout] 19 | | } [INFO] [stdout] | |_____________- any code following this expression is unreachable [INFO] [stdout] 20 | Ok::<_, io::Error(())> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `recv` found for struct `tokio::sync::oneshot::Receiver` in the current scope [INFO] [stdout] --> examples/tokio_select_using_loops.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | Some(msg) = rx1.recv() => msg, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `try_recv` with a similar name [INFO] [stdout] | [INFO] [stdout] 15 | Some(msg) = rx1.try_recv() => msg, [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `recv` found for struct `tokio::sync::oneshot::Receiver` in the current scope [INFO] [stdout] --> examples/tokio_select_using_loops.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | Some(msg) = rx2.recv() => msg, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `try_recv` with a similar name [INFO] [stdout] | [INFO] [stdout] 16 | Some(msg) = rx2.try_recv() => msg, [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `task` [INFO] [stdout] --> examples/mini_tokio.rs:60:21 [INFO] [stdout] | [INFO] [stdout] 60 | let waker = task::waker(self.clone()); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `task` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `task`, use `cargo add task` to add it to your `Cargo.toml` [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 60 - let waker = task::waker(self.clone()); [INFO] [stdout] 60 + let waker = Task::waker(self.clone()); [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use futures::task; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `async_in_depth` (example "10_4_internals_of_calling_a_future") due to 1 previous error [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> examples/mini_tokio.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Poll` [INFO] [stdout] --> examples/mini_tokio.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use std::task::{Context, Poll}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx1` [INFO] [stdout] --> examples/tokio_select_future_implementation.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | let (tx1, rx1) = oneshot::channel(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tx1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx2` [INFO] [stdout] --> examples/tokio_select_future_implementation.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | let (tx2, rx2) = oneshot::channel(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> examples/tokio_select_with_tcp_listener.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 20 | Ok::<_, io::Error(())> [INFO] [stdout] | ^^^^^---- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 generic arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll` found for struct `Pin<&mut Delay>` in the current scope [INFO] [stdout] --> examples/async_fn_as_a_future.rs:31:72 [INFO] [stdout] | [INFO] [stdout] 31 | State1(ref mut my_future) => match Pin::new(my_future).poll(cx) { [INFO] [stdout] | ^^^^ method not found in `Pin<&mut Delay>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `poll`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `recv` found for struct `tokio::sync::oneshot::Receiver` in the current scope [INFO] [stdout] --> examples/tokio_select_using_loops.rs:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | Some(msg) = rx3.recv() => msg, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `try_recv` with a similar name [INFO] [stdout] | [INFO] [stdout] 17 | Some(msg) = rx3.try_recv() => msg, [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Delay` is not a future [INFO] [stdout] --> examples/mini_tokio.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | let out = future.await; [INFO] [stdout] | ^^^^^ `Delay` is not a future [INFO] [stdout] | [INFO] [stdout] help: the trait `futures::Future` is not implemented for `Delay` [INFO] [stdout] --> examples/mini_tokio.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | struct Delay { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: Delay must be a future or must implement `IntoFuture` to be awaited [INFO] [stdout] = note: required for `Delay` to implement `std::future::IntoFuture` [INFO] [stdout] help: remove the `.await` [INFO] [stdout] | [INFO] [stdout] 19 - let out = future.await; [INFO] [stdout] 19 + let out = future; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> examples/tokio_select_with_tcp_listener.rs:17:58 [INFO] [stdout] | [INFO] [stdout] 15 | _= async { [INFO] [stdout] | ----- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 16 | loop { [INFO] [stdout] 17 | let (socket, _) = listener.accept().await?; [INFO] [stdout] | ^ cannot use the `?` operator in an async block that returns `fn(_) -> Result<_, futures_io::Error> {Result::<_, futures_io::Error>::Ok}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `race` is never used [INFO] [stdout] --> examples/tokio_select_borrowing.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | async fn race(data: &[u8], addr1: SocketAddr, addr2: SocketAddr) -> io::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async_in_depth` (example "async_fn_as_a_future") due to 2 previous errors [INFO] [stdout] Some errors have detailed explanations: E0107, E0214, E0277, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async_in_depth` (example "tokio_select_with_tcp_listener") due to 4 previous errors; 1 warning emitted [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async_in_depth` (example "tokio_select_using_loops") due to 3 previous errors [INFO] [stdout] error[E0412]: cannot find type `Delay` in this scope [INFO] [stdout] --> examples/streams_implementation.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | delay: Delay [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `tokio::time::MissedTickBehavior::Delay`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 8 - delay: Delay [INFO] [stdout] 8 + delay: tokio::time::MissedTickBehavior [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Delay` in this scope [INFO] [stdout] --> examples/streams_implementation.rs:13:30 [INFO] [stdout] | [INFO] [stdout] 13 | Self {rem: 3, delay: Delay {when: Instant::now()}} [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 1 + use tokio::time::MissedTickBehavior::Delay; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Delay` in this scope [INFO] [stdout] --> examples/streams_implementation.rs:35:30 [INFO] [stdout] | [INFO] [stdout] 35 | self.delay = Delay {when}; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 1 + use tokio::time::MissedTickBehavior::Delay; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `streams_implementation` [INFO] [stdout] --> examples/streams_implementation.rs:45:2 [INFO] [stdout] | [INFO] [stdout] 45 | } [INFO] [stdout] | ^ consider adding a `main` function to `examples/streams_implementation.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `async_in_depth` (example "mini_tokio") due to 2 previous errors; 2 warnings emitted [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async_in_depth` (example "streams_implementation") due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "607b0d88e938a17c439dfcf3cbb760eef5ed78c756b043f256dda93ddd7f721a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "607b0d88e938a17c439dfcf3cbb760eef5ed78c756b043f256dda93ddd7f721a", kill_on_drop: false }` [INFO] [stdout] 607b0d88e938a17c439dfcf3cbb760eef5ed78c756b043f256dda93ddd7f721a