Use the now available implementation of IntoIterator for arrays

This commit is contained in:
LeSeulArtichaut 2021-06-14 23:40:09 +02:00
parent a216131c35
commit e3ca81fd5a
17 changed files with 34 additions and 34 deletions

View file

@ -674,7 +674,7 @@ impl<'tcx> RegionConstraintCollector<'_, 'tcx> {
self.combine_map(t).insert(vars, c);
self.undo_log.push(AddCombination(t, vars));
let new_r = tcx.mk_region(ReVar(c));
for &old_r in &[a, b] {
for old_r in [a, b] {
match t {
Glb => self.make_subregion(origin.clone(), new_r, old_r),
Lub => self.make_subregion(origin.clone(), old_r, new_r),