about summary refs log tree commit diff
path: root/src/libcore/ptr/non_null.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/ptr/non_null.rs')
-rw-r--r--src/libcore/ptr/non_null.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ptr/non_null.rs b/src/libcore/ptr/non_null.rs
index 46dde7c1da5..ad3d1ce396a 100644
--- a/src/libcore/ptr/non_null.rs
+++ b/src/libcore/ptr/non_null.rs
@@ -38,7 +38,7 @@ use crate::cmp::Ordering;
 #[stable(feature = "nonnull", since = "1.25.0")]
 #[repr(transparent)]
 #[rustc_layout_scalar_valid_range_start(1)]
-#[cfg_attr(not(bootstrap), rustc_nonnull_optimization_guaranteed)]
+#[rustc_nonnull_optimization_guaranteed]
 pub struct NonNull<T: ?Sized> {
     pointer: *const T,
 }