More nits
This commit is contained in:
parent
8361a7288e
commit
d5dcd85376
2 changed files with 4 additions and 4 deletions
|
@ -177,7 +177,8 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
||||||
} else {
|
} else {
|
||||||
[sym::gen_future].into()
|
[sym::gen_future].into()
|
||||||
},
|
},
|
||||||
// FIXME(gen_blocks): how does `closure_track_caller`
|
// FIXME(gen_blocks): how does `closure_track_caller`/`async_fn_track_caller`
|
||||||
|
// interact with `gen`/`async gen` blocks
|
||||||
allow_async_iterator: [sym::gen_future, sym::async_iterator].into(),
|
allow_async_iterator: [sym::gen_future, sym::async_iterator].into(),
|
||||||
generics_def_id_map: Default::default(),
|
generics_def_id_map: Default::default(),
|
||||||
host_param_id: None,
|
host_param_id: None,
|
||||||
|
|
|
@ -3144,10 +3144,9 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
|
||||||
let what = match self.tcx.coroutine_kind(coroutine_def_id) {
|
let what = match self.tcx.coroutine_kind(coroutine_def_id) {
|
||||||
None
|
None
|
||||||
| Some(hir::CoroutineKind::Coroutine)
|
| Some(hir::CoroutineKind::Coroutine)
|
||||||
| Some(hir::CoroutineKind::Gen(_))
|
| Some(hir::CoroutineKind::Gen(_)) => "yield",
|
||||||
// FIXME(gen_blocks): This could be yield or await...
|
|
||||||
| Some(hir::CoroutineKind::AsyncGen(_)) => "yield",
|
|
||||||
Some(hir::CoroutineKind::Async(..)) => "await",
|
Some(hir::CoroutineKind::Async(..)) => "await",
|
||||||
|
Some(hir::CoroutineKind::AsyncGen(_)) => "yield`/`await",
|
||||||
};
|
};
|
||||||
err.note(format!(
|
err.note(format!(
|
||||||
"all values live across `{what}` must have a statically known size"
|
"all values live across `{what}` must have a statically known size"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue