Skip to content

Commit ba59ed0

Browse files
committed
Rust upgrade to rustc 1.6.0-nightly (52d95e6 2015-11-30)
1 parent 2ce2bc3 commit ba59ed0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/matches.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ fn is_unit_expr(expr: &Expr) -> bool {
140140
fn has_only_ref_pats(arms: &[Arm]) -> bool {
141141
let mapped = arms.iter().flat_map(|a| &a.pats).map(|p| match p.node {
142142
PatRegion(..) => Some(true), // &-patterns
143-
PatWild(..) => Some(false), // an "anything" wildcard is also fine
143+
PatWild => Some(false), // an "anything" wildcard is also fine
144144
_ => None, // any other pattern is not fine
145145
}).collect::<Option<Vec<bool>>>();
146146
// look for Some(v) where there's at least one true element

0 commit comments

Comments
 (0)