]> git.lizzy.rs Git - rust.git/commitdiff
fix for FieldPlacement rename
authorRalf Jung <post@ralfj.de>
Thu, 2 Apr 2020 07:19:56 +0000 (09:19 +0200)
committerRalf Jung <post@ralfj.de>
Thu, 2 Apr 2020 07:19:56 +0000 (09:19 +0200)
src/helpers.rs

index 827bf1f9dde028aa4c0cb5a6a2a3bd2ad259edde..7b1ac1aacfc8be50acf0e790df18e7040734a47e 100644 (file)
@@ -324,19 +324,19 @@ fn visit_aggregate(
                 fields: impl Iterator<Item = InterpResult<'tcx, MPlaceTy<'tcx, Tag>>>,
             ) -> InterpResult<'tcx> {
                 match place.layout.fields {
-                    layout::FieldPlacement::Array { .. } => {
+                    layout::FieldsShape::Array { .. } => {
                         // For the array layout, we know the iterator will yield sorted elements so
                         // we can avoid the allocation.
                         self.walk_aggregate(place, fields)
                     }
-                    layout::FieldPlacement::Arbitrary { .. } => {
+                    layout::FieldsShape::Arbitrary { .. } => {
                         // Gather the subplaces and sort them before visiting.
                         let mut places =
                             fields.collect::<InterpResult<'tcx, Vec<MPlaceTy<'tcx, Tag>>>>()?;
                         places.sort_by_key(|place| place.ptr.assert_ptr().offset);
                         self.walk_aggregate(place, places.into_iter().map(Ok))
                     }
-                    layout::FieldPlacement::Union { .. } => {
+                    layout::FieldsShape::Union { .. } => {
                         // Uh, what?
                         bug!("a union is not an aggregate we should ever visit")
                     }