diff options
| author | Michael Goulet <michael@errs.io> | 2024-08-01 13:05:17 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-08-26 18:44:19 -0400 |
| commit | 4609841c078cde37c0e2ffb481059cb1bd330233 (patch) | |
| tree | a0dd66a30e8cb09c5a1a75d08a0e7e870ddc1aab /compiler/rustc_ty_utils/src/implied_bounds.rs | |
| parent | 515395af0efdbdd657ff08a1f6d28e553856654f (diff) | |
| download | rust-4609841c078cde37c0e2ffb481059cb1bd330233.tar.gz rust-4609841c078cde37c0e2ffb481059cb1bd330233.zip | |
Stop using a special inner body for the coroutine by-move body for async closures
Diffstat (limited to 'compiler/rustc_ty_utils/src/implied_bounds.rs')
| -rw-r--r-- | compiler/rustc_ty_utils/src/implied_bounds.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/implied_bounds.rs b/compiler/rustc_ty_utils/src/implied_bounds.rs index 8812260b3af..70321a071a2 100644 --- a/compiler/rustc_ty_utils/src/implied_bounds.rs +++ b/compiler/rustc_ty_utils/src/implied_bounds.rs @@ -144,7 +144,8 @@ fn assumed_wf_types<'tcx>(tcx: TyCtxt<'tcx>, def_id: LocalDefId) -> &'tcx [(Ty<' | DefKind::Field | DefKind::LifetimeParam | DefKind::GlobalAsm - | DefKind::Closure => ty::List::empty(), + | DefKind::Closure + | DefKind::SyntheticCoroutineBody => ty::List::empty(), } } |
