1
Fork 0

add tracking issue, fix typo

This commit is contained in:
Ralf Jung 2022-12-24 10:47:31 +01:00
parent 9ae26c86c2
commit 15f72dd29d

View file

@ -690,18 +690,18 @@ where
/// type or mutability, in particular if the code is refactored. /// type or mutability, in particular if the code is refactored.
#[inline(always)] #[inline(always)]
#[must_use] #[must_use]
#[unstable(feature = "ptr_from_ref", issue = "999999")] // FIXME #[unstable(feature = "ptr_from_ref", issue = "106116")]
pub fn from_ref<T: ?Sized>(r: &T) -> *const T { pub fn from_ref<T: ?Sized>(r: &T) -> *const T {
r r
} }
/// Convert a mutble reference to a raw pointer. /// Convert a mutable reference to a raw pointer.
/// ///
/// This is equivalent to `r as *mut T`, but is a bit safer since it will never silently change /// This is equivalent to `r as *mut T`, but is a bit safer since it will never silently change
/// type or mutability, in particular if the code is refactored. /// type or mutability, in particular if the code is refactored.
#[inline(always)] #[inline(always)]
#[must_use] #[must_use]
#[unstable(feature = "ptr_from_ref", issue = "999999")] // FIXME #[unstable(feature = "ptr_from_ref", issue = "106116")]
pub fn from_mut<T: ?Sized>(r: &mut T) -> *mut T { pub fn from_mut<T: ?Sized>(r: &mut T) -> *mut T {
r r
} }