diff options
| author | bors <bors@rust-lang.org> | 2023-10-04 22:32:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-10-04 22:32:46 +0000 |
| commit | afe67fa2ef1bb0dcf9077d55cdd1c64a9969c9cf (patch) | |
| tree | 31411cd9f229af71ce84300ecbe51cb04ebbf3ea /compiler/rustc_ty_utils/src | |
| parent | 2bbb6198933abf193c0ef1d18d9d70f99eed59ba (diff) | |
| parent | a2051dd578f70e4976e1aa3d282df399fcbcb144 (diff) | |
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_ty_utils/src')
| -rw-r--r-- | compiler/rustc_ty_utils/src/consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/consts.rs b/compiler/rustc_ty_utils/src/consts.rs index 383cc996b9e..35487d3b698 100644 --- a/compiler/rustc_ty_utils/src/consts.rs +++ b/compiler/rustc_ty_utils/src/consts.rs @@ -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 } } |
