@@ -333,7 +333,7 @@ pub const fn size_of<T>() -> usize {
333
333
#[ inline]
334
334
#[ must_use]
335
335
#[ 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 " ) ]
337
337
#[ cfg_attr( not( test) , rustc_diagnostic_item = "mem_size_of_val" ) ]
338
338
pub const fn size_of_val < T : ?Sized > ( val : & T ) -> usize {
339
339
// 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 {
390
390
#[ inline]
391
391
#[ must_use]
392
392
#[ unstable( feature = "layout_for_ptr" , issue = "69835" ) ]
393
- #[ rustc_const_unstable( feature = "const_size_of_val_raw" , issue = "46571" ) ]
394
393
pub const unsafe fn size_of_val_raw < T : ?Sized > ( val : * const T ) -> usize {
395
394
// SAFETY: the caller must provide a valid raw pointer
396
395
unsafe { intrinsics:: size_of_val ( val) }
@@ -485,7 +484,7 @@ pub const fn align_of<T>() -> usize {
485
484
#[ inline]
486
485
#[ must_use]
487
486
#[ 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 " ) ]
489
488
#[ allow( deprecated) ]
490
489
pub const fn align_of_val < T : ?Sized > ( val : & T ) -> usize {
491
490
// 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 {
534
533
#[ inline]
535
534
#[ must_use]
536
535
#[ unstable( feature = "layout_for_ptr" , issue = "69835" ) ]
537
- #[ rustc_const_unstable( feature = "const_align_of_val_raw" , issue = "46571" ) ]
538
536
pub const unsafe fn align_of_val_raw < T : ?Sized > ( val : * const T ) -> usize {
539
537
// SAFETY: the caller must provide a valid raw pointer
540
538
unsafe { intrinsics:: min_align_of_val ( val) }
0 commit comments