about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-04 22:32:46 +0000
committerbors <bors@rust-lang.org>2023-10-04 22:32:46 +0000
commitafe67fa2ef1bb0dcf9077d55cdd1c64a9969c9cf (patch)
tree31411cd9f229af71ce84300ecbe51cb04ebbf3ea /compiler/rustc_trait_selection/src/traits
parent2bbb6198933abf193c0ef1d18d9d70f99eed59ba (diff)
parenta2051dd578f70e4976e1aa3d282df399fcbcb144 (diff)
downloadrust-afe67fa2ef1bb0dcf9077d55cdd1c64a9969c9cf.tar.gz
rust-afe67fa2ef1bb0dcf9077d55cdd1c64a9969c9cf.zip
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`
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
-rw-r--r--compiler/rustc_trait_selection/src/traits/vtable.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/vtable.rs b/compiler/rustc_trait_selection/src/traits/vtable.rs
index e41073937be..f23c100a686 100644
--- a/compiler/rustc_trait_selection/src/traits/vtable.rs
+++ b/compiler/rustc_trait_selection/src/traits/vtable.rs
@@ -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