File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_ast_lowering/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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) ;
You can’t perform that action at this time.
0 commit comments