Merge remote-tracking branch 'upstream/master' into rustup

This commit is contained in:
flip1995
2021-01-15 10:02:28 +01:00
105 changed files with 2300 additions and 270 deletions

View File

@@ -202,7 +202,7 @@ fn check_final_expr<'tcx>(
check_final_expr(cx, &arm.body, Some(arm.body.span), RetReplacement::Block);
}
},
| MatchSource::IfLetDesugar {
MatchSource::IfLetDesugar {
contains_else_clause: true,
} => {
if let ExprKind::Block(ref ifblock, _) = arms[0].body.kind {