You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#122732 - compiler-errors:coroutine-captures-note, r=nnethercote
Remove redundant coroutine captures note
This note is redundant, since we'll always be printing this "captures the following types..." between *more* descriptive `BuiltinDerivedObligationCause`s.
Please review with whitespace disabled, since I also removed an unnecessary labeled break.
Copy file name to clipboardExpand all lines: tests/ui/async-await/issues/issue-67893.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,6 @@ LL | pub async fn run() {
12
12
| ------------------ within this `impl Future<Output = ()>`
13
13
|
14
14
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`, which is required by `impl Future<Output = ()>: Send`
15
-
= note: required because it captures the following types: `Arc<Mutex<()>>`, `MutexGuard<'_, ()>`, `impl Future<Output = ()>`
16
15
note: required because it's used within this `async` fn body
= note: required because it captures the following types: `Opaque(DefId(0:36 ~ coroutine_print_verbose_1[75fb]::make_non_send_coroutine2::{opaque#0}), [])`
47
46
note: required because it's used within this coroutine
0 commit comments