]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/hair/cx/expr.rs
Auto merge of #64513 - varkor:sty-begone, r=eddyb
[rust.git] / src / librustc_mir / hair / cx / expr.rs
index d57b68c48ee5865460a840a58938171850f5c28a..a24b14598eb5908a2113af9f6961b037d1e4fe23 100644 (file)
@@ -860,9 +860,9 @@ fn to_borrow_kind(&self) -> BorrowKind {
     }
 }
 
-fn convert_arm<'a, 'tcx>(cx: &mut Cx<'a, 'tcx>, arm: &'tcx hir::Arm) -> Arm<'tcx> {
+fn convert_arm<'tcx>(cx: &mut Cx<'_, 'tcx>, arm: &'tcx hir::Arm) -> Arm<'tcx> {
     Arm {
-        patterns: arm.pats.iter().map(|p| cx.pattern_from_hir(p)).collect(),
+        pattern: cx.pattern_from_hir(&arm.pat),
         guard: match arm.guard {
                 Some(hir::Guard::If(ref e)) => Some(Guard::If(e.to_ref())),
                 _ => None,