Skip to content

Commit ffbde9f

Browse files
committed
is_binding_pat: don't use _ arm
1 parent 0de96d3 commit ffbde9f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/librustc/middle/region.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,14 @@ fn resolve_local<'tcx>(
12211221
is_binding_pat(&subpat)
12221222
}
12231223

1224-
_ => false,
1224+
PatKind::Or(_) |
1225+
PatKind::Ref(_, _) |
1226+
PatKind::Binding(hir::BindingAnnotation::Unannotated, ..) |
1227+
PatKind::Binding(hir::BindingAnnotation::Mutable, ..) |
1228+
PatKind::Wild |
1229+
PatKind::Path(_) |
1230+
PatKind::Lit(_) |
1231+
PatKind::Range(_, _, _) => false,
12251232
}
12261233
}
12271234

0 commit comments

Comments
 (0)