[INFO] fetching crate async-scoped 0.9.0... [INFO] checking async-scoped-0.9.0 against try#1d0e7c032bf9b905a3165592072b5cc63c491d50 for pr-133502-5 [INFO] extracting crate async-scoped 0.9.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate async-scoped 0.9.0 on toolchain 1d0e7c032bf9b905a3165592072b5cc63c491d50 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1d0e7c032bf9b905a3165592072b5cc63c491d50" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate async-scoped 0.9.0 [INFO] finished tweaking crates.io crate async-scoped 0.9.0 [INFO] tweaked toml for crates.io crate async-scoped 0.9.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1d0e7c032bf9b905a3165592072b5cc63c491d50" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 104 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1d0e7c032bf9b905a3165592072b5cc63c491d50" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1d0e7c032bf9b905a3165592072b5cc63c491d50" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 17d83ee92cb6f010b4ac544b7cb50f1c6351f50276ce3695af01bd24c84d1007 [INFO] running `Command { std: "docker" "start" "-a" "17d83ee92cb6f010b4ac544b7cb50f1c6351f50276ce3695af01bd24c84d1007", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "17d83ee92cb6f010b4ac544b7cb50f1c6351f50276ce3695af01bd24c84d1007", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17d83ee92cb6f010b4ac544b7cb50f1c6351f50276ce3695af01bd24c84d1007", kill_on_drop: false }` [INFO] [stdout] 17d83ee92cb6f010b4ac544b7cb50f1c6351f50276ce3695af01bd24c84d1007 [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1d0e7c032bf9b905a3165592072b5cc63c491d50" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 99c024981c0d63c9ef9208c0f54eb144b47eef1580ad55b4bc30ca8c01cb315b [INFO] running `Command { std: "docker" "start" "-a" "99c024981c0d63c9ef9208c0f54eb144b47eef1580ad55b4bc30ca8c01cb315b", kill_on_drop: false }` [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking parking v2.2.1 [INFO] [stderr] Compiling typeid v1.0.3 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking async-task v4.7.1 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Checking futures-lite v2.6.0 [INFO] [stderr] Checking piper v0.2.4 [INFO] [stderr] Checking event-listener v5.4.0 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Checking async-channel v2.3.1 [INFO] [stderr] Checking async-lock v3.4.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking blocking v1.6.1 [INFO] [stderr] Checking async-executor v1.13.1 [INFO] [stderr] Checking polling v3.7.4 [INFO] [stderr] Checking async-io v2.4.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking async-global-executor v2.4.1 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking async-scoped v0.9.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `cfg_async_std` [INFO] [stdout] --> src/utils.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | macro_rules! cfg_async_std { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `cfg_tokio` [INFO] [stdout] --> src/utils.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | macro_rules! cfg_tokio { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `cfg_any_spawner` [INFO] [stdout] --> src/utils.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | macro_rules! cfg_any_spawner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking erased-serde v0.4.6 [INFO] [stderr] Checking serde_fmt v1.0.3 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking value-bag-serde1 v1.11.1 [INFO] [stderr] Checking value-bag v1.11.1 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking femme v2.2.1 [INFO] [stderr] Checking async-std v1.13.1 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scope` [INFO] [stdout] --> src/tests.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | let (stream, _) = unsafe { Scope::scope(|s| { [INFO] [stdout] | ^^^^^ use of undeclared type `Scope` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Scope; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Scope; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scope` [INFO] [stdout] --> src/tests.rs:62:35 [INFO] [stdout] | [INFO] [stdout] 62 | let ((), vals) = unsafe { Scope::scope_and_collect(|s| { [INFO] [stdout] | ^^^^^ use of undeclared type `Scope` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Scope; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Scope; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scope` [INFO] [stdout] --> src/tests.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 81 | let mut s = Scope::create(Default::default()); [INFO] [stdout] | ^^^^^ use of undeclared type `Scope` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Scope; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Scope; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scope` [INFO] [stdout] --> src/tests.rs:111:34 [INFO] [stdout] | [INFO] [stdout] 111 | let (_, vals) = unsafe { Scope::scope_and_collect(|s| { [INFO] [stdout] | ^^^^^ use of undeclared type `Scope` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Scope; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Scope; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scope` [INFO] [stdout] --> src/tests.rs:126:26 [INFO] [stdout] | [INFO] [stdout] 126 | let ((), vals) = Scope::scope_and_block(|s| { [INFO] [stdout] | ^^^^^ use of undeclared type `Scope` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Scope; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Scope; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scope` [INFO] [stdout] --> src/tests.rs:142:26 [INFO] [stdout] | [INFO] [stdout] 142 | let ((), vals) = Scope::scope_and_block(|s| { [INFO] [stdout] | ^^^^^ use of undeclared type `Scope` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Scope; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Scope; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scope` [INFO] [stdout] --> src/tests.rs:167:27 [INFO] [stdout] | [INFO] [stdout] 167 | let ((), items) = Scope::scope_and_block(|scope| { [INFO] [stdout] | ^^^^^ use of undeclared type `Scope` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Scope; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Scope; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scope` [INFO] [stdout] --> src/tests.rs:189:27 [INFO] [stdout] | [INFO] [stdout] 189 | let ((), items) = Scope::scope_and_block(|scope| { [INFO] [stdout] | ^^^^^ use of undeclared type `Scope` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Scope; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Scope; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scope` [INFO] [stdout] --> src/tests.rs:218:26 [INFO] [stdout] | [INFO] [stdout] 218 | unsafe { Scope::scope_and_collect(|scope| { [INFO] [stdout] | ^^^^^ use of undeclared type `Scope` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Scope; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Scope; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scope` [INFO] [stdout] --> src/tests.rs:257:30 [INFO] [stdout] | [INFO] [stdout] 257 | let mut s = unsafe { Scope::create(Default::default()) }; [INFO] [stdout] | ^^^^^ use of undeclared type `Scope` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Scope; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Scope; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scope` [INFO] [stdout] --> src/tests.rs:312:17 [INFO] [stdout] | [INFO] [stdout] 312 | Scope::scope_and_block(|scope| { [INFO] [stdout] | ^^^^^ use of undeclared type `Scope` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Scope; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Scope; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scope` [INFO] [stdout] --> src/tests.rs:332:22 [INFO] [stdout] | [INFO] [stdout] 332 | let (_, r) = Scope::scope_and_block(|scope| { [INFO] [stdout] | ^^^^^ use of undeclared type `Scope` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Scope; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Scope; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `cfg_tokio` [INFO] [stdout] --> src/utils.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | macro_rules! cfg_tokio { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `cfg_any_spawner` [INFO] [stdout] --> src/utils.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | macro_rules! cfg_any_spawner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `()` is not an iterator [INFO] [stdout] --> benches/spawner.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | r.into_iter().for_each(|v| { [INFO] [stdout] | ^^^^^^^^^ `()` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `(): Iterator` [INFO] [stdout] which is required by `(): IntoIterator` [INFO] [stdout] `(): Iterator` [INFO] [stdout] `&(): Iterator` [INFO] [stdout] which is required by `&(): IntoIterator` [INFO] [stdout] `&(): Iterator` [INFO] [stdout] `(): Iterator` [INFO] [stdout] which is required by `&mut (): IntoIterator` [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-scoped` (bench "spawner") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:31:50 [INFO] [stdout] | [INFO] [stdout] 31 | let (stream, _) = unsafe { Scope::scope(|s| { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 36 | s.spawn(proc()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 31 | let (stream, _) = unsafe { Scope::scope(|s: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:45:28 [INFO] [stdout] | [INFO] [stdout] 45 | let count = stream.collect::>().await.len(); [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:45:54 [INFO] [stdout] | [INFO] [stdout] 45 | let count = stream.collect::>().await.len(); [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:62:61 [INFO] [stdout] | [INFO] [stdout] 62 | let ((), vals) = unsafe { Scope::scope_and_collect(|s| { [INFO] [stdout] | ^ [INFO] [stdout] 63 | s.spawn(static_fut); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 62 | let ((), vals) = unsafe { Scope::scope_and_collect(|s: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `((), _)` [INFO] [stdout] --> src/tests.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let ((), vals) = unsafe { Scope::scope_and_collect(|s| { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | assert_eq!(vals.len(), 11); [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this pattern a type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 62 | let ((), vals): (_, _) = unsafe { Scope::scope_and_collect(|s| { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:99:54 [INFO] [stdout] | [INFO] [stdout] 99 | let count = stream.collect::>().await.len(); [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:111:60 [INFO] [stdout] | [INFO] [stdout] 111 | let (_, vals) = unsafe { Scope::scope_and_collect(|s| { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 116 | s.spawn(proc()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 111 | let (_, vals) = unsafe { Scope::scope_and_collect(|s: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `(_, _)` [INFO] [stdout] --> src/tests.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | let (_, vals) = unsafe { Scope::scope_and_collect(|s| { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | assert_eq!(vals.len(), 10); [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this pattern a type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 111 | let (_, vals): (_, _) = unsafe { Scope::scope_and_collect(|s| { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:126:50 [INFO] [stdout] | [INFO] [stdout] 126 | let ((), vals) = Scope::scope_and_block(|s| { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 131 | s.spawn(proc()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 126 | let ((), vals) = Scope::scope_and_block(|s: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:135:25 [INFO] [stdout] | [INFO] [stdout] 135 | assert_eq!(vals.len(), 10); [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:142:50 [INFO] [stdout] | [INFO] [stdout] 142 | let ((), vals) = Scope::scope_and_block(|s| { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 147 | s.spawn_blocking(proc); [INFO] [stdout] | -------------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 142 | let ((), vals) = Scope::scope_and_block(|s: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:151:25 [INFO] [stdout] | [INFO] [stdout] 151 | assert_eq!(vals.len(), 10); [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:167:51 [INFO] [stdout] | [INFO] [stdout] 167 | let ((), items) = Scope::scope_and_block(|scope| { [INFO] [stdout] | ^^^^^ [INFO] [stdout] 168 | scope.spawn_cancellable(proc(), || false); [INFO] [stdout] | ----------------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 167 | let ((), items) = Scope::scope_and_block(|scope: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:170:26 [INFO] [stdout] | [INFO] [stdout] 170 | assert_eq!(items.len(), 1); [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `future_value` in this scope [INFO] [stdout] --> src/tests.rs:172:24 [INFO] [stdout] | [INFO] [stdout] 172 | assert_eq!(future_value(i), true); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:189:51 [INFO] [stdout] | [INFO] [stdout] 189 | let ((), items) = Scope::scope_and_block(|scope| { [INFO] [stdout] | ^^^^^ [INFO] [stdout] 190 | scope.spawn_cancellable(proc(), || false); [INFO] [stdout] | ----------------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 189 | let ((), items) = Scope::scope_and_block(|scope: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:193:26 [INFO] [stdout] | [INFO] [stdout] 193 | assert_eq!(items.len(), 1); [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `future_value` in this scope [INFO] [stdout] --> src/tests.rs:195:24 [INFO] [stdout] | [INFO] [stdout] 195 | assert_eq!(future_value(i), false); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:218:52 [INFO] [stdout] | [INFO] [stdout] 218 | unsafe { Scope::scope_and_collect(|scope| { [INFO] [stdout] | ^^^^^ [INFO] [stdout] 219 | scope.spawn_cancellable(async { [INFO] [stdout] | ----------------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 218 | unsafe { Scope::scope_and_collect(|scope: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:312:41 [INFO] [stdout] | [INFO] [stdout] 312 | Scope::scope_and_block(|scope| { [INFO] [stdout] | ^^^^^ [INFO] [stdout] 313 | if n > 0 { [INFO] [stdout] 314 | scope.spawn(async { [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 312 | Scope::scope_and_block(|scope: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:315:50 [INFO] [stdout] | [INFO] [stdout] 315 | ... let rec = { nth(n-1).boxed() }.await; [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:332:46 [INFO] [stdout] | [INFO] [stdout] 332 | let (_, r) = Scope::scope_and_block(|scope| { [INFO] [stdout] | ^^^^^ [INFO] [stdout] 333 | for i in 0..N { [INFO] [stdout] 334 | scope.spawn(async move { [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 332 | let (_, r) = Scope::scope_and_block(|scope: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:343:19 [INFO] [stdout] | [INFO] [stdout] 343 | let r = r.into_iter().map(|v| { [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async-scoped` (lib test) due to 35 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "99c024981c0d63c9ef9208c0f54eb144b47eef1580ad55b4bc30ca8c01cb315b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99c024981c0d63c9ef9208c0f54eb144b47eef1580ad55b4bc30ca8c01cb315b", kill_on_drop: false }` [INFO] [stdout] 99c024981c0d63c9ef9208c0f54eb144b47eef1580ad55b4bc30ca8c01cb315b