about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-07-11 11:07:03 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-07-11 11:07:03 +0000
commit8440208eb13ec1f680592b9a7793a67f2b1be15e (patch)
tree6a3b930d1fbc6dd6808473de608266c5c5ec5a75
parentfcd7207d0e5ab4a9598e3b6caf6248134e5f95d6 (diff)
downloadrust-8440208eb13ec1f680592b9a7793a67f2b1be15e.tar.gz
rust-8440208eb13ec1f680592b9a7793a67f2b1be15e.zip
tidy
-rw-r--r--src/test/ui/layout/unsafe-cell-hides-niche.rs20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/test/ui/layout/unsafe-cell-hides-niche.rs b/src/test/ui/layout/unsafe-cell-hides-niche.rs
index 2833f49a27b..1d0e1fce178 100644
--- a/src/test/ui/layout/unsafe-cell-hides-niche.rs
+++ b/src/test/ui/layout/unsafe-cell-hides-niche.rs
@@ -47,10 +47,22 @@ fn main() {
     assert_size!(Option<      Cell<&()>>, PTR_SIZE * 2); // (✗ niche opt)
     assert_size!(          RefCell<&()> , PTR_SIZE * 2);
     assert_size!(Option<   RefCell<&()>>, PTR_SIZE * 3); // (✗ niche opt)
-    assert_size!(           RwLock<&()> , if cfg!(target_pointer_width = "32") { 16 } else { 24 });
-    assert_size!(Option<    RwLock<&()>>, if cfg!(target_pointer_width = "32") { 20 } else { 32 }); // (✗ niche opt)
-    assert_size!(            Mutex<&()> , if cfg!(target_pointer_width = "32") { 12 } else { 16 });
-    assert_size!(Option<     Mutex<&()>>, if cfg!(target_pointer_width = "32") { 16 } else { 24 }); // (✗ niche opt)
+    assert_size!(
+        RwLock<&()>,
+        if cfg!(target_pointer_width = "32") { 16 } else { 24 }
+    );
+    assert_size!(
+        Option<RwLock<&()>>,
+        if cfg!(target_pointer_width = "32") { 20 } else { 32 }
+    ); // (✗ niche opt)
+    assert_size!(
+        Mutex<&()> ,
+        if cfg!(target_pointer_width = "32") { 12 } else { 16 }
+    );
+    assert_size!(
+        Option<Mutex<&()>>,
+        if cfg!(target_pointer_width = "32") { 16 } else { 24 }
+    ); // (✗ niche opt)
 
     assert_size!(       UnsafeCell<&[i32]> , PTR_SIZE * 2);
     assert_size!(Option<UnsafeCell<&[i32]>>, PTR_SIZE * 3); // (✗ niche opt)