diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2025-01-06 20:28:08 +0100 | 
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2025-01-08 20:02:18 +0100 | 
| commit | 4ae92b7adbafd018bf0c829a4691ffbb3933d8f0 (patch) | |
| tree | 31d6f0fb67aca34f04bbf65a9b4ef57bc454e62f /library/core/src/mem/mod.rs | |
| parent | 6afee111c2faf86ba884ea748967130abad37b52 (diff) | |
| download | rust-4ae92b7adbafd018bf0c829a4691ffbb3933d8f0.tar.gz rust-4ae92b7adbafd018bf0c829a4691ffbb3933d8f0.zip | |
update version placeholders
Diffstat (limited to 'library/core/src/mem/mod.rs')
| -rw-r--r-- | library/core/src/mem/mod.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/library/core/src/mem/mod.rs b/library/core/src/mem/mod.rs index 2d66e5c2f2a..b9bb6d6a13f 100644 --- a/library/core/src/mem/mod.rs +++ b/library/core/src/mem/mod.rs @@ -333,7 +333,7 @@ pub const fn size_of<T>() -> usize { #[inline] #[must_use] #[stable(feature = "rust1", since = "1.0.0")] -#[rustc_const_stable(feature = "const_size_of_val", since = "CURRENT_RUSTC_VERSION")] +#[rustc_const_stable(feature = "const_size_of_val", since = "1.85.0")] #[cfg_attr(not(test), rustc_diagnostic_item = "mem_size_of_val")] pub const fn size_of_val<T: ?Sized>(val: &T) -> usize { // SAFETY: `val` is a reference, so it's a valid raw pointer @@ -484,7 +484,7 @@ pub const fn align_of<T>() -> usize { #[inline] #[must_use] #[stable(feature = "rust1", since = "1.0.0")] -#[rustc_const_stable(feature = "const_align_of_val", since = "CURRENT_RUSTC_VERSION")] +#[rustc_const_stable(feature = "const_align_of_val", since = "1.85.0")] #[allow(deprecated)] pub const fn align_of_val<T: ?Sized>(val: &T) -> usize { // SAFETY: val is a reference, so it's a valid raw pointer @@ -725,7 +725,7 @@ pub unsafe fn uninitialized<T>() -> T { /// ``` #[inline] #[stable(feature = "rust1", since = "1.0.0")] -#[rustc_const_stable(feature = "const_swap", since = "CURRENT_RUSTC_VERSION")] +#[rustc_const_stable(feature = "const_swap", since = "1.85.0")] #[rustc_diagnostic_item = "mem_swap"] pub const fn swap<T>(x: &mut T, y: &mut T) { // SAFETY: `&mut` guarantees these are typed readable and writable | 
