about summary refs log tree commit diff
path: root/library/core/src/ptr/unique.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/core/src/ptr/unique.rs')
-rw-r--r--library/core/src/ptr/unique.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/library/core/src/ptr/unique.rs b/library/core/src/ptr/unique.rs
index ebdc918a729..4810ebe01f9 100644
--- a/library/core/src/ptr/unique.rs
+++ b/library/core/src/ptr/unique.rs
@@ -92,8 +92,6 @@ impl<T: ?Sized> Unique<T> {
 
     /// Creates a new `Unique` if `ptr` is non-null.
     #[inline]
-    // rustc_const_unstable attribute can be removed when `const_nonnull_new` is stable
-    #[rustc_const_unstable(feature = "ptr_internals", issue = "none")]
     pub const fn new(ptr: *mut T) -> Option<Self> {
         if let Some(pointer) = NonNull::new(ptr) {
             Some(Unique { pointer, _marker: PhantomData })