]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir_build/src/thir/cx/expr.rs
Implement lowering of if-let guards to MIR
[rust.git] / compiler / rustc_mir_build / src / thir / cx / expr.rs
index 310673f5efc852e9594648e17c8d6a62c527ef66..aac1e505b653b748916f64cbc42eaacde83a2cc4 100644 (file)
@@ -778,7 +778,7 @@ fn convert_arm<'tcx>(cx: &mut Cx<'_, 'tcx>, arm: &'tcx hir::Arm<'tcx>) -> Arm<'t
         pattern: cx.pattern_from_hir(&arm.pat),
         guard: arm.guard.as_ref().map(|g| match g {
             hir::Guard::If(ref e) => Guard::If(e.to_ref()),
-            hir::Guard::IfLet(ref pat, ref e) => Guard::IfLet(cx.pattern_from_hir(pat), e.to_ref())
+            hir::Guard::IfLet(ref pat, ref e) => Guard::IfLet(cx.pattern_from_hir(pat), e.to_ref()),
         }),
         body: arm.body.to_ref(),
         lint_level: LintLevel::Explicit(arm.hir_id),