about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThe Miri Conjob Bot <miri@cron.bot>2023-08-02 05:45:02 +0000
committerThe Miri Conjob Bot <miri@cron.bot>2023-08-02 05:45:02 +0000
commit2d01258c122f2218ca79bfd75ae6cd2354e12cb1 (patch)
tree535cb16a7a96d1046a48966e8a5a0812b0a63ac3
parent743be666d4bc8c387a7c03515605203943b2c540 (diff)
downloadrust-2d01258c122f2218ca79bfd75ae6cd2354e12cb1.tar.gz
rust-2d01258c122f2218ca79bfd75ae6cd2354e12cb1.zip
fmt
-rw-r--r--src/tools/miri/tests/pass/align_repeat_into_packed_field.rs20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/tools/miri/tests/pass/align_repeat_into_packed_field.rs b/src/tools/miri/tests/pass/align_repeat_into_packed_field.rs
index 3affb204205..fb028627d9d 100644
--- a/src/tools/miri/tests/pass/align_repeat_into_packed_field.rs
+++ b/src/tools/miri/tests/pass/align_repeat_into_packed_field.rs
@@ -2,17 +2,21 @@
 use std::intrinsics::mir::*;
 
 #[repr(packed)]
-struct S { field: [u32; 2] }
+struct S {
+    field: [u32; 2],
+}
 
 #[custom_mir(dialect = "runtime", phase = "optimized")]
-fn test() { mir! {
-    let s: S;
-    {
-        // Store a repeat expression directly into a field of a packed struct.
-        s.field = [0; 2];
-        Return()
+fn test() {
+    mir! {
+        let s: S;
+        {
+            // Store a repeat expression directly into a field of a packed struct.
+            s.field = [0; 2];
+            Return()
+        }
     }
-} }
+}
 
 fn main() {
     // Run this a bunch of time to make sure it doesn't pass by chance.