We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97de8fb commit c980faeCopy full SHA for c980fae
compiler/rustc_ast_lowering/src/expr.rs
@@ -634,7 +634,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
634
// Resume argument type: `ResumeTy`
635
let unstable_span = self.mark_span_with_reason(
636
DesugaringKind::Async,
637
- span,
+ self.lower_span(span),
638
Some(self.allow_gen_future.clone()),
639
);
640
let resume_ty = hir::QPath::LangItem(hir::LangItem::ResumeTy, unstable_span);
@@ -766,7 +766,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
766
767
768
769
770
771
772
0 commit comments