From ba59ed05e334d70b50fca18befa1790f509dbee1 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 30 Nov 2015 23:16:28 +0530 Subject: [PATCH] Rust upgrade to rustc 1.6.0-nightly (52d95e644 2015-11-30) --- src/matches.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matches.rs b/src/matches.rs index ec118052fbc..b6a7fc7fa5b 100644 --- a/src/matches.rs +++ b/src/matches.rs @@ -140,7 +140,7 @@ fn is_unit_expr(expr: &Expr) -> bool { fn has_only_ref_pats(arms: &[Arm]) -> bool { let mapped = arms.iter().flat_map(|a| &a.pats).map(|p| match p.node { PatRegion(..) => Some(true), // &-patterns - PatWild(..) => Some(false), // an "anything" wildcard is also fine + PatWild => Some(false), // an "anything" wildcard is also fine _ => None, // any other pattern is not fine }).collect::>>(); // look for Some(v) where there's at least one true element