Skip to content

Commit d5dcd85

Browse files
More nits
1 parent 8361a72 commit d5dcd85

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
177177
} else {
178178
[sym::gen_future].into()
179179
},
180-
// FIXME(gen_blocks): how does `closure_track_caller`
180+
// FIXME(gen_blocks): how does `closure_track_caller`/`async_fn_track_caller`
181+
// interact with `gen`/`async gen` blocks
181182
allow_async_iterator: [sym::gen_future, sym::async_iterator].into(),
182183
generics_def_id_map: Default::default(),
183184
host_param_id: None,

compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3144,10 +3144,9 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
31443144
let what = match self.tcx.coroutine_kind(coroutine_def_id) {
31453145
None
31463146
| Some(hir::CoroutineKind::Coroutine)
3147-
| Some(hir::CoroutineKind::Gen(_))
3148-
// FIXME(gen_blocks): This could be yield or await...
3149-
| Some(hir::CoroutineKind::AsyncGen(_)) => "yield",
3147+
| Some(hir::CoroutineKind::Gen(_)) => "yield",
31503148
Some(hir::CoroutineKind::Async(..)) => "await",
3149+
Some(hir::CoroutineKind::AsyncGen(_)) => "yield`/`await",
31513150
};
31523151
err.note(format!(
31533152
"all values live across `{what}` must have a statically known size"

0 commit comments

Comments
 (0)