1
Fork 0

Fix more new for_loops_over_fallibles hits in compiler.

This commit is contained in:
Zachary S 2024-05-15 12:17:25 -05:00
parent ea549fd176
commit 0e467596ff
2 changed files with 3 additions and 3 deletions

View file

@ -925,7 +925,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
for subpattern in prefix.iter() {
self.visit_primary_bindings(subpattern, pattern_user_ty.clone().index(), f);
}
for subpattern in slice {
if let Some(subpattern) = slice {
self.visit_primary_bindings(
subpattern,
pattern_user_ty.clone().subslice(from, to),