Skip to content

Commit 0b46f0e

Browse files
committed
bump bootstrap; adjust stage0 uses in core::ptr.
1 parent 750983d commit 0b46f0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2913,7 +2913,7 @@ impl<T: Sized> NonNull<T> {
29132913
/// some other means.
29142914
#[stable(feature = "nonnull", since = "1.25.0")]
29152915
#[inline]
2916-
#[cfg_attr(not(stage0), rustc_const_unstable(feature = "const_ptr_nonnull"))]
2916+
#[rustc_const_unstable(feature = "const_ptr_nonnull")]
29172917
pub const fn dangling() -> Self {
29182918
unsafe {
29192919
let ptr = mem::align_of::<T>() as *mut T;
@@ -2977,7 +2977,7 @@ impl<T: ?Sized> NonNull<T> {
29772977
/// Cast to a pointer of another type
29782978
#[stable(feature = "nonnull_cast", since = "1.27.0")]
29792979
#[inline]
2980-
#[cfg_attr(not(stage0), rustc_const_unstable(feature = "const_ptr_nonnull"))]
2980+
#[rustc_const_unstable(feature = "const_ptr_nonnull")]
29812981
pub const fn cast<U>(self) -> NonNull<U> {
29822982
unsafe {
29832983
NonNull::new_unchecked(self.as_ptr() as *mut U)

0 commit comments

Comments
 (0)