1
Fork 0

Auto merge of #116370 - nnethercote:more-arena-stuff, r=cjgillot

Remove the `TypedArena::alloc_from_iter` specialization.

It was added in #78569. It's complicated and doesn't actually help
performance.

r? `@cjgillot`
This commit is contained in:
bors 2023-10-04 22:32:46 +00:00
commit afe67fa2ef
6 changed files with 74 additions and 128 deletions

View file

@ -71,7 +71,7 @@ pub(crate) fn destructure_const<'tcx>(
_ => bug!("cannot destructure constant {:?}", const_),
};
let fields = tcx.arena.alloc_from_iter(fields.into_iter());
let fields = tcx.arena.alloc_from_iter(fields);
ty::DestructuredConst { variant, fields }
}