Skip to content

Commit 2d51e74

Browse files
committed
Remove a deprecated (renamed) and unstable method of NonNull
1 parent c97c1f7 commit 2d51e74

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/libcore/ptr.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2557,13 +2557,6 @@ impl<T: ?Sized> NonNull<T> {
25572557
pub unsafe fn as_mut(&mut self) -> &mut T {
25582558
&mut *self.as_ptr()
25592559
}
2560-
2561-
/// Acquires the underlying pointer as a `*mut` pointer.
2562-
#[rustc_deprecated(since = "1.19", reason = "renamed to `as_ptr` for ergonomics/consistency")]
2563-
#[unstable(feature = "nonnull", issue = "27730")]
2564-
pub unsafe fn as_mut_ptr(&self) -> *mut T {
2565-
self.as_ptr()
2566-
}
25672560
}
25682561

25692562
#[unstable(feature = "nonnull", issue = "27730")]

0 commit comments

Comments
 (0)