Unify Rvalue::Aggregate paths in cg_ssa

This commit is contained in:
Scott McMurray
2024-05-10 22:00:57 -07:00
parent ee97564e3a
commit dcab06d7d2
4 changed files with 31 additions and 23 deletions

View File

@@ -1255,7 +1255,7 @@ impl<FieldIdx: Idx> FieldsShape<FieldIdx> {
/// Gets source indices of the fields by increasing offsets.
#[inline]
pub fn index_by_increasing_offset(&self) -> impl Iterator<Item = usize> + '_ {
pub fn index_by_increasing_offset(&self) -> impl ExactSizeIterator<Item = usize> + '_ {
let mut inverse_small = [0u8; 64];
let mut inverse_big = IndexVec::new();
let use_small = self.count() <= inverse_small.len();