[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] checking ranafge/rust_tokio_async_in_depth against master#3cdcdaf31b45f8045164aae9604573d23091970b for pr-122267 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Franafge%2Frust_tokio_async_in_depth" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ranafge/rust_tokio_async_in_depth on toolchain 3cdcdaf31b45f8045164aae9604573d23091970b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3cdcdaf31b45f8045164aae9604573d23091970b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-1-tc1/source/Cargo.toml [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" "+3cdcdaf31b45f8045164aae9604573d23091970b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking ranafge/rust_tokio_async_in_depth against try#05804f728f276cf7ecedbf71c814df440d37f293 for pr-122267 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Franafge%2Frust_tokio_async_in_depth" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ranafge/rust_tokio_async_in_depth on toolchain 05804f728f276cf7ecedbf71c814df440d37f293 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+05804f728f276cf7ecedbf71c814df440d37f293" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-1-tc2/source/Cargo.toml [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" "+05804f728f276cf7ecedbf71c814df440d37f293" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tracing-log v0.1.4 [INFO] [stderr] Downloaded atoi v0.3.3 [INFO] [stderr] Downloaded mini-redis v0.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+05804f728f276cf7ecedbf71c814df440d37f293" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf77dc5e411fc2c0d4782b9db9de71ae5843d69cd50101fb2597f4c22ab9941f [INFO] running `Command { std: "docker" "start" "-a" "bf77dc5e411fc2c0d4782b9db9de71ae5843d69cd50101fb2597f4c22ab9941f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf77dc5e411fc2c0d4782b9db9de71ae5843d69cd50101fb2597f4c22ab9941f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf77dc5e411fc2c0d4782b9db9de71ae5843d69cd50101fb2597f4c22ab9941f", kill_on_drop: false }` [INFO] [stdout] bf77dc5e411fc2c0d4782b9db9de71ae5843d69cd50101fb2597f4c22ab9941f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+05804f728f276cf7ecedbf71c814df440d37f293" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 02583a70b254acec7062d75fbb8513c5ccfeb2e1e3d11ac4706ae92a3b1e17c9 [INFO] running `Command { std: "docker" "start" "-a" "02583a70b254acec7062d75fbb8513c5ccfeb2e1e3d11ac4706ae92a3b1e17c9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Compiling serde_json v1.0.111 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking ryu v1.0.16 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking iana-time-zone v0.1.59 [INFO] [stderr] Checking tracing-log v0.1.4 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Checking atoi v0.3.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking matchers v0.0.1 [INFO] [stderr] Checking tracing-serde v0.1.3 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking tokio v1.35.1 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stderr] Checking tracing-subscriber v0.2.25 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Checking mini-redis v0.4.1 [INFO] [stderr] Checking async_in_depth v0.1.0 (/opt/rustwide/workdir) [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)]` 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] warning: unused import: `Duration` [INFO] [stdout] --> examples/10_6_implementing_our_own_minitokio_to_understand_executors.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/tokio_select_modifying_a_branch.rs:1:55 [INFO] [stdout] | [INFO] [stdout] 1 | async fn action(input: Option) -> Option { [INFO] [stdout] | _______________________________________________________^ [INFO] [stdout] 2 | | let i = match input { [INFO] [stdout] 3 | | Some(input) => input, [INFO] [stdout] 4 | | None => return None, [INFO] [stdout] 5 | | }; [INFO] [stdout] 6 | | // async logic here to use i value [INFO] [stdout] 7 | | } [INFO] [stdout] | |_^ expected `Option`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Task` is never used [INFO] [stdout] --> examples/10_6_implementing_our_own_minitokio_to_understand_executors.rs:31:6 [INFO] [stdout] | [INFO] [stdout] 31 | type Task = Pin + Send>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MiniTokio` is never constructed [INFO] [stdout] --> examples/10_6_implementing_our_own_minitokio_to_understand_executors.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | struct MiniTokio { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `spawn`, and `run` are never used [INFO] [stdout] --> examples/10_6_implementing_our_own_minitokio_to_understand_executors.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 49 | impl MiniTokio { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 50 | fn new() -> MiniTokio { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn spawn(&mut self, future: F) [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn run(&mut self) { [INFO] [stdout] | ^^^ [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] | ~ ~ [INFO] [stdout] [INFO] [stdout] [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: 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] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0284]: type annotations needed [INFO] [stdout] --> examples/tokio_select_resuming_async_operation.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | let (mut tx, mut rx) = mpsc::channel(128); [INFO] [stdout] | ^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the function `channel` [INFO] [stdout] ... [INFO] [stdout] 21 | if v % 2 ==0 { [INFO] [stdout] | - type must be known at this point [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `<_ as Rem>::Output == _` [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 10 | let (mut tx, mut rx) = mpsc::channel::(128); [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] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/tokio_select_with_pattern_matching.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | let (mut tx1, mut rx1) = mpsc::channel(128); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/tokio_select_with_pattern_matching.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | let (mut tx2 , mut rx2) = mpsc::channel(128); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0284`. [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> examples/tokio_select_with_pattern_matching.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | tx1.send("one"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> examples/tokio_select_with_pattern_matching.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | tx2.send("two"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `async_in_depth` (example "tokio_select_resuming_async_operation") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/tokio_select_modifying_a_branch.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | let (mut tx, mut rx) = tokio::sync::mpsc::channel(128); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [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] [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)]` on by default [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 these generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 generic arguments [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] | ____________- [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] 18 | | tokio::spawn(async move {process(socket)}); [INFO] [stdout] 19 | | } [INFO] [stdout] 20 | | Ok::<_, io::Error(())> [INFO] [stdout] 21 | | }=> {} [INFO] [stdout] | |_________- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for fn item `fn(_) -> Result<_, futures_io::Error> {Result::<_, futures_io::Error>::Ok}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async_in_depth` (example "streams_implementation") due to 5 previous errors [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `async_in_depth` (example "tokio_select_modifying_a_branch") due to 2 previous errors; 1 warning emitted [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)]` 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] | |_____- an argument is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/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(/* future */); [INFO] [stdout] | ~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [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] [stdout] warning: unused import: `Message` [INFO] [stdout] --> examples/streams_mini-redis_broadcast.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | use mini_redis::client::{self, Message}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/tokio_select.rs:8:36 [INFO] [stdout] | [INFO] [stdout] 8 | async fn some_operation() -> String{} [INFO] [stdout] | ^^ expected `String`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `async_in_depth` (example "tokio_select_with_tcp_listener") due to 5 previous errors; 1 warning emitted [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [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 [INFO] [stdout] | [INFO] [stdout] 28 | let future = Delay { when: val }; [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] [stderr] error: could not compile `async_in_depth` (example "tokio_select_mutabally_borrowing") due to 2 previous errors; 1 warning emitted [INFO] [stdout] error[E0596]: cannot borrow `tx1` as mutable, as it is not declared as mutable [INFO] [stdout] --> examples/tokio_select.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 12 | let (tx1, rx1) = oneshot::channel(); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut tx1` [INFO] [stdout] ... [INFO] [stdout] 21 | _ = tx1.closed() => { [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/streams_mini-redis_broadcast.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | publish().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = publish().await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [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/05804f728f276cf7ecedbf71c814df440d37f293/library/core/src/future/future.rs:103: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] error: could not compile `async_in_depth` (example "tokio_select") due to 3 previous errors [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async_in_depth` (example "10_4_internals_of_calling_a_future") due to 2 previous errors [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: aborting due to 2 previous errors [INFO] [stdout] [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 3 previous errors [INFO] running `Command { std: "docker" "inspect" "02583a70b254acec7062d75fbb8513c5ccfeb2e1e3d11ac4706ae92a3b1e17c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02583a70b254acec7062d75fbb8513c5ccfeb2e1e3d11ac4706ae92a3b1e17c9", kill_on_drop: false }` [INFO] [stdout] 02583a70b254acec7062d75fbb8513c5ccfeb2e1e3d11ac4706ae92a3b1e17c9