Skip to content

Commit c980fae

Browse files
Lower some forgotten coroutine spans
1 parent 97de8fb commit c980fae

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+2
-2
lines changed

compiler/rustc_ast_lowering/src/expr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
634634
// Resume argument type: `ResumeTy`
635635
let unstable_span = self.mark_span_with_reason(
636636
DesugaringKind::Async,
637-
span,
637+
self.lower_span(span),
638638
Some(self.allow_gen_future.clone()),
639639
);
640640
let resume_ty = hir::QPath::LangItem(hir::LangItem::ResumeTy, unstable_span);
@@ -766,7 +766,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
766766
// Resume argument type: `ResumeTy`
767767
let unstable_span = self.mark_span_with_reason(
768768
DesugaringKind::Async,
769-
span,
769+
self.lower_span(span),
770770
Some(self.allow_gen_future.clone()),
771771
);
772772
let resume_ty = hir::QPath::LangItem(hir::LangItem::ResumeTy, unstable_span);

0 commit comments

Comments
 (0)