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

@ -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)
}