diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2023-12-21 15:39:15 +0100 |
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2023-12-22 11:01:42 +0100 |
| commit | c00486c9bbfc9fa8f989715ea6cee1e324e2ea00 (patch) | |
| tree | 19496124d711454a62d31c7d7ce4a289a6b783c8 /library/core/src/ptr | |
| parent | ef1b78eabe713a2068a1b0451102853dd2475a7b (diff) | |
| download | rust-c00486c9bbfc9fa8f989715ea6cee1e324e2ea00.tar.gz rust-c00486c9bbfc9fa8f989715ea6cee1e324e2ea00.zip | |
update version placeholders
Diffstat (limited to 'library/core/src/ptr')
| -rw-r--r-- | library/core/src/ptr/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/core/src/ptr/mod.rs b/library/core/src/ptr/mod.rs index eed793186b9..390e0737197 100644 --- a/library/core/src/ptr/mod.rs +++ b/library/core/src/ptr/mod.rs @@ -720,8 +720,8 @@ where /// type or mutability, in particular if the code is refactored. #[inline(always)] #[must_use] -#[stable(feature = "ptr_from_ref", since = "CURRENT_RUSTC_VERSION")] -#[rustc_const_stable(feature = "ptr_from_ref", since = "CURRENT_RUSTC_VERSION")] +#[stable(feature = "ptr_from_ref", since = "1.76.0")] +#[rustc_const_stable(feature = "ptr_from_ref", since = "1.76.0")] #[rustc_never_returns_null_ptr] #[rustc_diagnostic_item = "ptr_from_ref"] pub const fn from_ref<T: ?Sized>(r: &T) -> *const T { @@ -734,8 +734,8 @@ pub const fn from_ref<T: ?Sized>(r: &T) -> *const T { /// type or mutability, in particular if the code is refactored. #[inline(always)] #[must_use] -#[stable(feature = "ptr_from_ref", since = "CURRENT_RUSTC_VERSION")] -#[rustc_const_stable(feature = "ptr_from_ref", since = "CURRENT_RUSTC_VERSION")] +#[stable(feature = "ptr_from_ref", since = "1.76.0")] +#[rustc_const_stable(feature = "ptr_from_ref", since = "1.76.0")] #[rustc_allow_const_fn_unstable(const_mut_refs)] #[rustc_never_returns_null_ptr] pub const fn from_mut<T: ?Sized>(r: &mut T) -> *mut T { @@ -1922,7 +1922,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool { /// assert!(ptr::addr_eq(whole, first)); /// assert!(!ptr::eq::<dyn std::fmt::Debug>(whole, first)); /// ``` -#[stable(feature = "ptr_addr_eq", since = "CURRENT_RUSTC_VERSION")] +#[stable(feature = "ptr_addr_eq", since = "1.76.0")] #[inline(always)] #[must_use = "pointer comparison produces a value"] pub fn addr_eq<T: ?Sized, U: ?Sized>(p: *const T, q: *const U) -> bool { |
