@@ -412,7 +412,7 @@ pub const unsafe fn size_of_val_raw<T: ?Sized>(val: *const T) -> usize {
412
412
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
413
413
#[ deprecated( note = "use `align_of` instead" , since = "1.2.0" , suggestion = "align_of" ) ]
414
414
pub fn min_align_of < T > ( ) -> usize {
415
- intrinsics:: min_align_of :: < T > ( )
415
+ intrinsics:: align_of :: < T > ( )
416
416
}
417
417
418
418
/// 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 {
436
436
#[ deprecated( note = "use `align_of_val` instead" , since = "1.2.0" , suggestion = "align_of_val" ) ]
437
437
pub fn min_align_of_val < T : ?Sized > ( val : & T ) -> usize {
438
438
// 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) }
440
440
}
441
441
442
442
/// 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 {
458
458
#[ rustc_promotable]
459
459
#[ rustc_const_stable( feature = "const_align_of" , since = "1.24.0" ) ]
460
460
pub const fn align_of < T > ( ) -> usize {
461
- intrinsics:: min_align_of :: < T > ( )
461
+ intrinsics:: align_of :: < T > ( )
462
462
}
463
463
464
464
/// 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 {
477
477
#[ must_use]
478
478
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
479
479
#[ rustc_const_stable( feature = "const_align_of_val" , since = "1.85.0" ) ]
480
- #[ allow( deprecated) ]
481
480
pub const fn align_of_val < T : ?Sized > ( val : & T ) -> usize {
482
481
// 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) }
484
483
}
485
484
486
485
/// 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 {
527
526
#[ unstable( feature = "layout_for_ptr" , issue = "69835" ) ]
528
527
pub const unsafe fn align_of_val_raw < T : ?Sized > ( val : * const T ) -> usize {
529
528
// SAFETY: the caller must provide a valid raw pointer
530
- unsafe { intrinsics:: min_align_of_val ( val) }
529
+ unsafe { intrinsics:: align_of_val ( val) }
531
530
}
532
531
533
532
/// Returns `true` if dropping values of type `T` matters.
@@ -637,8 +636,6 @@ pub const fn needs_drop<T: ?Sized>() -> bool {
637
636
#[ inline( always) ]
638
637
#[ must_use]
639
638
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
640
- #[ allow( deprecated_in_future) ]
641
- #[ allow( deprecated) ]
642
639
#[ rustc_diagnostic_item = "mem_zeroed" ]
643
640
#[ track_caller]
644
641
#[ rustc_const_stable( feature = "const_mem_zeroed" , since = "1.75.0" ) ]
@@ -677,8 +674,6 @@ pub const unsafe fn zeroed<T>() -> T {
677
674
#[ must_use]
678
675
#[ deprecated( since = "1.39.0" , note = "use `mem::MaybeUninit` instead" ) ]
679
676
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
680
- #[ allow( deprecated_in_future) ]
681
- #[ allow( deprecated) ]
682
677
#[ rustc_diagnostic_item = "mem_uninitialized" ]
683
678
#[ track_caller]
684
679
pub unsafe fn uninitialized < T > ( ) -> T {
0 commit comments