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
6 changed files with 74 additions and 128 deletions

View File

@@ -316,7 +316,7 @@ fn vtable_entries<'tcx>(
dump_vtable_entries(tcx, sp, trait_ref, &entries);
}
tcx.arena.alloc_from_iter(entries.into_iter())
tcx.arena.alloc_from_iter(entries)
}
/// Find slot base for trait methods within vtable entries of another trait