mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 23:06:23 +00:00
Remove a deprecated (renamed) and unstable method of NonNull
This commit is contained in:
parent
c97c1f7dc3
commit
2d51e74580
@ -2557,13 +2557,6 @@ impl<T: ?Sized> NonNull<T> {
|
||||
pub unsafe fn as_mut(&mut self) -> &mut T {
|
||||
&mut *self.as_ptr()
|
||||
}
|
||||
|
||||
/// Acquires the underlying pointer as a `*mut` pointer.
|
||||
#[rustc_deprecated(since = "1.19", reason = "renamed to `as_ptr` for ergonomics/consistency")]
|
||||
#[unstable(feature = "nonnull", issue = "27730")]
|
||||
pub unsafe fn as_mut_ptr(&self) -> *mut T {
|
||||
self.as_ptr()
|
||||
}
|
||||
}
|
||||
|
||||
#[unstable(feature = "nonnull", issue = "27730")]
|
||||
|
Loading…
Reference in New Issue
Block a user