diff options
| author | Ralf Jung <post@ralfj.de> | 2022-12-24 10:47:31 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-12-24 10:47:31 +0100 |
| commit | 15f72dd29d083bfcade93ec2b57350c2b37feed6 (patch) | |
| tree | e1e107fbaff73e7556e8db8cc4acbba58d2c9a05 | |
| parent | 9ae26c86c202bd8fdada1141055e1e4bc026a60b (diff) | |
| download | rust-15f72dd29d083bfcade93ec2b57350c2b37feed6.tar.gz rust-15f72dd29d083bfcade93ec2b57350c2b37feed6.zip | |
add tracking issue, fix typo
| -rw-r--r-- | library/core/src/ptr/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/ptr/mod.rs b/library/core/src/ptr/mod.rs index 2d793d43e62..eaa421d187a 100644 --- a/library/core/src/ptr/mod.rs +++ b/library/core/src/ptr/mod.rs @@ -690,18 +690,18 @@ where /// 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 } |
