Stabilize Pin::as_deref_mut

This commit is contained in:
Noa 2024-08-22 14:42:46 -05:00
parent 10a9ee0607
commit 5db54bee68
No known key found for this signature in database
GPG Key ID: 7F9F7DB1768C59CF

View File

@ -1422,7 +1422,7 @@ pub fn as_mut(&mut self) -> Pin<&mut Ptr::Target> {
/// move in the future, and this method does not enable the pointee to move. "Malicious"
/// implementations of `Ptr::DerefMut` are likewise ruled out by the contract of
/// `Pin::new_unchecked`.
#[unstable(feature = "pin_deref_mut", issue = "86918")]
#[stable(feature = "pin_deref_mut", since = "CURRENT_RUSTC_VERSION")]
#[must_use = "`self` will be dropped if the result is not used"]
#[inline(always)]
pub fn as_deref_mut(self: Pin<&mut Pin<Ptr>>) -> Pin<&mut Ptr::Target> {