Fix Binding for rustc update

This commit is contained in:
Daniel Wagner-Hall 2019-02-18 23:16:53 +00:00
parent bcefd688c9
commit 4009a44118

View file

@ -482,7 +482,7 @@ fn check_wild_enum_match(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm]) {
for pat in &arm.pats {
if let PatKind::Wild = pat.node {
wildcard_span = Some(pat.span);
} else if let PatKind::Binding(_, _, ident, None) = pat.node {
} else if let PatKind::Binding(_, _, _, ident, None) = pat.node {
wildcard_span = Some(pat.span);
wildcard_ident = Some(ident);
}