]> git.lizzy.rs Git - rust.git/commitdiff
add tracking issue, fix typo
authorRalf Jung <post@ralfj.de>
Sat, 24 Dec 2022 09:47:31 +0000 (10:47 +0100)
committerRalf Jung <post@ralfj.de>
Sat, 24 Dec 2022 09:47:31 +0000 (10:47 +0100)
library/core/src/ptr/mod.rs

index 2d793d43e62e743726007c9cbad7ba58de4a04ec..eaa421d187adfe2d8bc2541b9af5ebe4a9d6afd2 100644 (file)
@@ -690,18 +690,18 @@ pub fn from_exposed_addr_mut<T>(addr: usize) -> *mut T
 /// type or mutability, in particular if the code is refactored.
 #[inline(always)]
 #[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 {
     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
 /// type or mutability, in particular if the code is refactored.
 #[inline(always)]
 #[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 {
     r
 }