diff options
| author | Michael Goulet <michael@errs.io> | 2023-12-09 00:10:29 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-12-09 00:10:36 +0000 |
| commit | c980fae35cf07ed73ff52ff099c21999c1e91a15 (patch) | |
| tree | c1fa8eb1d37fc612a901d8c1406f8e40c3eb97e8 | |
| parent | 97de8fba56f762edea9c55f27207657aff065114 (diff) | |
| download | rust-c980fae35cf07ed73ff52ff099c21999c1e91a15.tar.gz rust-c980fae35cf07ed73ff52ff099c21999c1e91a15.zip | |
Lower some forgotten coroutine spans
| -rw-r--r-- | compiler/rustc_ast_lowering/src/expr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast_lowering/src/expr.rs b/compiler/rustc_ast_lowering/src/expr.rs index c287c65ff36..99691f43f91 100644 --- a/compiler/rustc_ast_lowering/src/expr.rs +++ b/compiler/rustc_ast_lowering/src/expr.rs @@ -634,7 +634,7 @@ impl<'hir> LoweringContext<'_, 'hir> { // Resume argument type: `ResumeTy` let unstable_span = self.mark_span_with_reason( DesugaringKind::Async, - span, + self.lower_span(span), Some(self.allow_gen_future.clone()), ); let resume_ty = hir::QPath::LangItem(hir::LangItem::ResumeTy, unstable_span); @@ -766,7 +766,7 @@ impl<'hir> LoweringContext<'_, 'hir> { // Resume argument type: `ResumeTy` let unstable_span = self.mark_span_with_reason( DesugaringKind::Async, - span, + self.lower_span(span), Some(self.allow_gen_future.clone()), ); let resume_ty = hir::QPath::LangItem(hir::LangItem::ResumeTy, unstable_span); |
