We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0de96d3 commit ffbde9fCopy full SHA for ffbde9f
src/librustc/middle/region.rs
@@ -1221,7 +1221,14 @@ fn resolve_local<'tcx>(
1221
is_binding_pat(&subpat)
1222
}
1223
1224
- _ => false,
+ 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,
1232
1233
1234
0 commit comments