@@ -848,7 +848,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
848848 move_spans. var_subdiag ( None , & mut err, None , |kind, var_span| {
849849 use crate :: session_diagnostics:: CaptureVarCause :: * ;
850850 match kind {
851- hir:: ClosureKind :: Coroutine ( _, _ ) => MoveUseInCoroutine { var_span } ,
851+ hir:: ClosureKind :: Coroutine ( _) => MoveUseInCoroutine { var_span } ,
852852 hir:: ClosureKind :: Closure => MoveUseInClosure { var_span } ,
853853 }
854854 } ) ;
@@ -893,7 +893,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
893893 let place = & borrow. borrowed_place ;
894894 let desc_place = self . describe_any_place ( place. as_ref ( ) ) ;
895895 match kind {
896- hir:: ClosureKind :: Coroutine ( _, _ ) => {
896+ hir:: ClosureKind :: Coroutine ( _) => {
897897 BorrowUsePlaceCoroutine { place : desc_place, var_span, is_single_var : true }
898898 }
899899 hir:: ClosureKind :: Closure => {
@@ -1042,7 +1042,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
10421042 |kind, var_span| {
10431043 use crate :: session_diagnostics:: CaptureVarCause :: * ;
10441044 match kind {
1045- hir:: ClosureKind :: Coroutine ( _, _ ) => BorrowUsePlaceCoroutine {
1045+ hir:: ClosureKind :: Coroutine ( _) => BorrowUsePlaceCoroutine {
10461046 place : desc_place,
10471047 var_span,
10481048 is_single_var : true ,
@@ -1126,7 +1126,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
11261126 borrow_spans. var_subdiag ( None , & mut err, Some ( gen_borrow_kind) , |kind, var_span| {
11271127 use crate :: session_diagnostics:: CaptureVarCause :: * ;
11281128 match kind {
1129- hir:: ClosureKind :: Coroutine ( _, _ ) => BorrowUsePlaceCoroutine {
1129+ hir:: ClosureKind :: Coroutine ( _) => BorrowUsePlaceCoroutine {
11301130 place : desc_place,
11311131 var_span,
11321132 is_single_var : false ,
@@ -1146,7 +1146,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
11461146 let borrow_place = & issued_borrow. borrowed_place ;
11471147 let borrow_place_desc = self . describe_any_place ( borrow_place. as_ref ( ) ) ;
11481148 match kind {
1149- hir:: ClosureKind :: Coroutine ( _, _ ) => {
1149+ hir:: ClosureKind :: Coroutine ( _) => {
11501150 FirstBorrowUsePlaceCoroutine { place : borrow_place_desc, var_span }
11511151 }
11521152 hir:: ClosureKind :: Closure => {
@@ -1163,7 +1163,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
11631163 |kind, var_span| {
11641164 use crate :: session_diagnostics:: CaptureVarCause :: * ;
11651165 match kind {
1166- hir:: ClosureKind :: Coroutine ( _, _ ) => {
1166+ hir:: ClosureKind :: Coroutine ( _) => {
11671167 SecondBorrowUsePlaceCoroutine { place : desc_place, var_span }
11681168 }
11691169 hir:: ClosureKind :: Closure => {
@@ -2549,7 +2549,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
25492549 }
25502550 }
25512551 }
2552- CoroutineKind :: Coroutine => "coroutine" ,
2552+ CoroutineKind :: Coroutine ( _ ) => "coroutine" ,
25532553 } ,
25542554 None => "closure" ,
25552555 } ;
@@ -2850,7 +2850,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
28502850 loan_spans. var_subdiag ( None , & mut err, Some ( loan. kind ) , |kind, var_span| {
28512851 use crate :: session_diagnostics:: CaptureVarCause :: * ;
28522852 match kind {
2853- hir:: ClosureKind :: Coroutine ( _, _ ) => BorrowUseInCoroutine { var_span } ,
2853+ hir:: ClosureKind :: Coroutine ( _) => BorrowUseInCoroutine { var_span } ,
28542854 hir:: ClosureKind :: Closure => BorrowUseInClosure { var_span } ,
28552855 }
28562856 } ) ;
@@ -2866,7 +2866,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
28662866 loan_spans. var_subdiag ( None , & mut err, Some ( loan. kind ) , |kind, var_span| {
28672867 use crate :: session_diagnostics:: CaptureVarCause :: * ;
28682868 match kind {
2869- hir:: ClosureKind :: Coroutine ( _, _ ) => BorrowUseInCoroutine { var_span } ,
2869+ hir:: ClosureKind :: Coroutine ( _) => BorrowUseInCoroutine { var_span } ,
28702870 hir:: ClosureKind :: Closure => BorrowUseInClosure { var_span } ,
28712871 }
28722872 } ) ;
0 commit comments