Optimize some alloc_from_iter call sites.
There's no need to collect an iterator into a `Vec`, or to call `into_iter` at the call sites.
This commit is contained in:
@@ -192,5 +192,5 @@ fn variance_of_opaque(tcx: TyCtxt<'_>, item_def_id: LocalDefId) -> &[ty::Varianc
|
||||
}
|
||||
}
|
||||
}
|
||||
tcx.arena.alloc_from_iter(collector.variances.into_iter())
|
||||
tcx.arena.alloc_from_iter(collector.variances)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user