about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src/polymorphize.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-08-01 13:05:17 -0400
committerMichael Goulet <michael@errs.io>2024-08-26 18:44:19 -0400
commit4609841c078cde37c0e2ffb481059cb1bd330233 (patch)
treea0dd66a30e8cb09c5a1a75d08a0e7e870ddc1aab /compiler/rustc_monomorphize/src/polymorphize.rs
parent515395af0efdbdd657ff08a1f6d28e553856654f (diff)
downloadrust-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_monomorphize/src/polymorphize.rs')
-rw-r--r--compiler/rustc_monomorphize/src/polymorphize.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/polymorphize.rs b/compiler/rustc_monomorphize/src/polymorphize.rs
index 5a24202db65..b59c7bcffa9 100644
--- a/compiler/rustc_monomorphize/src/polymorphize.rs
+++ b/compiler/rustc_monomorphize/src/polymorphize.rs
@@ -127,7 +127,7 @@ fn mark_used_by_default_parameters<'tcx>(
     unused_parameters: &mut UnusedGenericParams,
 ) {
     match tcx.def_kind(def_id) {
-        DefKind::Closure => {
+        DefKind::Closure | DefKind::SyntheticCoroutineBody => {
             for param in &generics.own_params {
                 debug!(?param, "(closure/gen)");
                 unused_parameters.mark_used(param.index);