@@ -412,7 +412,7 @@ pub const unsafe fn size_of_val_raw<T: ?Sized>(val: *const T) -> usize {
412412#[ stable( feature = "rust1" , since = "1.0.0" ) ]
413413#[ deprecated( note = "use `align_of` instead" , since = "1.2.0" , suggestion = "align_of" ) ]
414414pub fn min_align_of < T > ( ) -> usize {
415- intrinsics:: min_align_of :: < T > ( )
415+ intrinsics:: align_of :: < T > ( )
416416}
417417
418418/// Returns the [ABI]-required minimum alignment of the type of the value that `val` points to in
@@ -436,7 +436,7 @@ pub fn min_align_of<T>() -> usize {
436436#[ deprecated( note = "use `align_of_val` instead" , since = "1.2.0" , suggestion = "align_of_val" ) ]
437437pub fn min_align_of_val < T : ?Sized > ( val : & T ) -> usize {
438438 // SAFETY: val is a reference, so it's a valid raw pointer
439- unsafe { intrinsics:: min_align_of_val ( val) }
439+ unsafe { intrinsics:: align_of_val ( val) }
440440}
441441
442442/// Returns the [ABI]-required minimum alignment of a type in bytes.
@@ -458,7 +458,7 @@ pub fn min_align_of_val<T: ?Sized>(val: &T) -> usize {
458458#[ rustc_promotable]
459459#[ rustc_const_stable( feature = "const_align_of" , since = "1.24.0" ) ]
460460pub const fn align_of < T > ( ) -> usize {
461- intrinsics:: min_align_of :: < T > ( )
461+ intrinsics:: align_of :: < T > ( )
462462}
463463
464464/// Returns the [ABI]-required minimum alignment of the type of the value that `val` points to in
@@ -477,10 +477,9 @@ pub const fn align_of<T>() -> usize {
477477#[ must_use]
478478#[ stable( feature = "rust1" , since = "1.0.0" ) ]
479479#[ rustc_const_stable( feature = "const_align_of_val" , since = "1.85.0" ) ]
480- #[ allow( deprecated) ]
481480pub const fn align_of_val < T : ?Sized > ( val : & T ) -> usize {
482481 // SAFETY: val is a reference, so it's a valid raw pointer
483- unsafe { intrinsics:: min_align_of_val ( val) }
482+ unsafe { intrinsics:: align_of_val ( val) }
484483}
485484
486485/// Returns the [ABI]-required minimum alignment of the type of the value that `val` points to in
@@ -527,7 +526,7 @@ pub const fn align_of_val<T: ?Sized>(val: &T) -> usize {
527526#[ unstable( feature = "layout_for_ptr" , issue = "69835" ) ]
528527pub const unsafe fn align_of_val_raw < T : ?Sized > ( val : * const T ) -> usize {
529528 // SAFETY: the caller must provide a valid raw pointer
530- unsafe { intrinsics:: min_align_of_val ( val) }
529+ unsafe { intrinsics:: align_of_val ( val) }
531530}
532531
533532/// Returns `true` if dropping values of type `T` matters.
@@ -637,8 +636,6 @@ pub const fn needs_drop<T: ?Sized>() -> bool {
637636#[ inline( always) ]
638637#[ must_use]
639638#[ stable( feature = "rust1" , since = "1.0.0" ) ]
640- #[ allow( deprecated_in_future) ]
641- #[ allow( deprecated) ]
642639#[ rustc_diagnostic_item = "mem_zeroed" ]
643640#[ track_caller]
644641#[ rustc_const_stable( feature = "const_mem_zeroed" , since = "1.75.0" ) ]
@@ -677,8 +674,6 @@ pub const unsafe fn zeroed<T>() -> T {
677674#[ must_use]
678675#[ deprecated( since = "1.39.0" , note = "use `mem::MaybeUninit` instead" ) ]
679676#[ stable( feature = "rust1" , since = "1.0.0" ) ]
680- #[ allow( deprecated_in_future) ]
681- #[ allow( deprecated) ]
682677#[ rustc_diagnostic_item = "mem_uninitialized" ]
683678#[ track_caller]
684679pub unsafe fn uninitialized < T > ( ) -> T {
0 commit comments