@@ -333,7 +333,7 @@ pub const fn size_of<T>() -> usize {
333333#[ inline]
334334#[ must_use]
335335#[ stable( feature = "rust1" , since = "1.0.0" ) ]
336- #[ rustc_const_unstable ( feature = "const_size_of_val" , issue = "46571 " ) ]
336+ #[ rustc_const_stable ( feature = "const_size_of_val" , since = "CURRENT_RUSTC_VERSION " ) ]
337337#[ cfg_attr( not( test) , rustc_diagnostic_item = "mem_size_of_val" ) ]
338338pub const fn size_of_val < T : ?Sized > ( val : & T ) -> usize {
339339 // SAFETY: `val` is a reference, so it's a valid raw pointer
@@ -390,7 +390,6 @@ pub const fn size_of_val<T: ?Sized>(val: &T) -> usize {
390390#[ inline]
391391#[ must_use]
392392#[ unstable( feature = "layout_for_ptr" , issue = "69835" ) ]
393- #[ rustc_const_unstable( feature = "const_size_of_val_raw" , issue = "46571" ) ]
394393pub const unsafe fn size_of_val_raw < T : ?Sized > ( val : * const T ) -> usize {
395394 // SAFETY: the caller must provide a valid raw pointer
396395 unsafe { intrinsics:: size_of_val ( val) }
@@ -485,7 +484,7 @@ pub const fn align_of<T>() -> usize {
485484#[ inline]
486485#[ must_use]
487486#[ stable( feature = "rust1" , since = "1.0.0" ) ]
488- #[ rustc_const_unstable ( feature = "const_align_of_val" , issue = "46571 " ) ]
487+ #[ rustc_const_stable ( feature = "const_align_of_val" , since = "CURRENT_RUSTC_VERSION " ) ]
489488#[ allow( deprecated) ]
490489pub const fn align_of_val < T : ?Sized > ( val : & T ) -> usize {
491490 // SAFETY: val is a reference, so it's a valid raw pointer
@@ -534,7 +533,6 @@ pub const fn align_of_val<T: ?Sized>(val: &T) -> usize {
534533#[ inline]
535534#[ must_use]
536535#[ unstable( feature = "layout_for_ptr" , issue = "69835" ) ]
537- #[ rustc_const_unstable( feature = "const_align_of_val_raw" , issue = "46571" ) ]
538536pub const unsafe fn align_of_val_raw < T : ?Sized > ( val : * const T ) -> usize {
539537 // SAFETY: the caller must provide a valid raw pointer
540538 unsafe { intrinsics:: min_align_of_val ( val) }
0 commit comments