@@ -1374,17 +1374,17 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
1374
1374
candidates : & mut [ & mut Candidate < ' _ , ' tcx > ] ,
1375
1375
) -> BasicBlock {
1376
1376
ensure_sufficient_stack ( || {
1377
- self . match_candidates_with_enough_stack ( span, scrutinee_span, start_block, candidates)
1377
+ self . match_candidates_inner ( span, scrutinee_span, start_block, candidates)
1378
1378
} )
1379
1379
}
1380
1380
1381
1381
/// Construct the decision tree for `candidates`. Don't call this, call `match_candidates`
1382
1382
/// instead to reserve sufficient stack space.
1383
- fn match_candidates_with_enough_stack (
1383
+ fn match_candidates_inner (
1384
1384
& mut self ,
1385
1385
span : Span ,
1386
1386
scrutinee_span : Span ,
1387
- start_block : BasicBlock ,
1387
+ mut start_block : BasicBlock ,
1388
1388
candidates : & mut [ & mut Candidate < ' _ , ' tcx > ] ,
1389
1389
) -> BasicBlock {
1390
1390
if let [ first, ..] = candidates {
@@ -1417,7 +1417,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
1417
1417
} ;
1418
1418
1419
1419
// Process any candidates that remain.
1420
- let BlockAnd ( start_block, remaining_candidates ) = rest;
1420
+ let remaining_candidates = unpack ! ( start_block = rest) ;
1421
1421
self . match_candidates ( span, scrutinee_span, start_block, remaining_candidates)
1422
1422
}
1423
1423
0 commit comments