Skip to content

Commit 5ce2466

Browse files
committed
fix for FieldPlacement rename
1 parent 165dfd7 commit 5ce2466

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/helpers.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,19 +324,19 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
324324
fields: impl Iterator<Item = InterpResult<'tcx, MPlaceTy<'tcx, Tag>>>,
325325
) -> InterpResult<'tcx> {
326326
match place.layout.fields {
327-
layout::FieldPlacement::Array { .. } => {
327+
layout::FieldsShape::Array { .. } => {
328328
// For the array layout, we know the iterator will yield sorted elements so
329329
// we can avoid the allocation.
330330
self.walk_aggregate(place, fields)
331331
}
332-
layout::FieldPlacement::Arbitrary { .. } => {
332+
layout::FieldsShape::Arbitrary { .. } => {
333333
// Gather the subplaces and sort them before visiting.
334334
let mut places =
335335
fields.collect::<InterpResult<'tcx, Vec<MPlaceTy<'tcx, Tag>>>>()?;
336336
places.sort_by_key(|place| place.ptr.assert_ptr().offset);
337337
self.walk_aggregate(place, places.into_iter().map(Ok))
338338
}
339-
layout::FieldPlacement::Union { .. } => {
339+
layout::FieldsShape::Union { .. } => {
340340
// Uh, what?
341341
bug!("a union is not an aggregate we should ever visit")
342342
}

0 commit comments

Comments
 (0)