Skip to content

Commit 49080e3

Browse files
committed
Auto merge of #150177 - matthiaskrgr:rollup-4cw3gdw, r=matthiaskrgr
Rollup of 6 pull requests Successful merges: - rust-lang/rust#149633 (Enable `outline-atomics` by default on AArch64 FreeBSD) - rust-lang/rust#149788 (Move shared offload globals and define per-kernel globals once) - rust-lang/rust#149989 (Improve filenames encoding and misc) - rust-lang/rust#150012 (rustc_target: Add `efiapi` ABI support for LoongArch) - rust-lang/rust#150116 (layout: Store inverse memory index in `FieldsShape::Arbitrary`) - rust-lang/rust#150159 (Split eii macro expansion code) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 2ebfe7b + c77f294 commit 49080e3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/helpers.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -584,10 +584,9 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
584584
}
585585

586586
fn aggregate_field_iter(
587-
memory_index: &IndexVec<FieldIdx, u32>,
588-
) -> impl Iterator<Item = FieldIdx> + 'static {
589-
let inverse_memory_index = memory_index.invert_bijective_mapping();
590-
inverse_memory_index.into_iter()
587+
in_memory_order: &IndexVec<u32, FieldIdx>,
588+
) -> impl Iterator<Item = FieldIdx> {
589+
in_memory_order.iter().copied()
591590
}
592591

593592
// Hook to detect `UnsafeCell`.

0 commit comments

Comments
 (0)