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:
commit
afe67fa2ef
6 changed files with 74 additions and 128 deletions
|
@ -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 }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue