@@ -413,38 +413,7 @@ pub unsafe fn atomic_cxchgweak_seqcst_seqcst<T: Copy>(dst: *mut T, old: T, src:
413
413
/// [`atomic`] types via the `load` method. For example, [`AtomicBool::load`].
414
414
#[ rustc_intrinsic]
415
415
#[ rustc_nounwind]
416
- #[ cfg( not( bootstrap) ) ]
417
416
pub unsafe fn atomic_load < T : Copy , const ORD : AtomicOrdering > ( src : * const T ) -> T ;
418
- /// Loads the current value of the pointer.
419
- /// `T` must be an integer or pointer type.
420
- ///
421
- /// The stabilized version of this intrinsic is available on the
422
- /// [`atomic`] types via the `load` method by passing
423
- /// [`Ordering::SeqCst`] as the `order`. For example, [`AtomicBool::load`].
424
- #[ rustc_intrinsic]
425
- #[ rustc_nounwind]
426
- #[ cfg( bootstrap) ]
427
- pub unsafe fn atomic_load_seqcst < T : Copy > ( src : * const T ) -> T ;
428
- /// Loads the current value of the pointer.
429
- /// `T` must be an integer or pointer type.
430
- ///
431
- /// The stabilized version of this intrinsic is available on the
432
- /// [`atomic`] types via the `load` method by passing
433
- /// [`Ordering::Acquire`] as the `order`. For example, [`AtomicBool::load`].
434
- #[ rustc_intrinsic]
435
- #[ rustc_nounwind]
436
- #[ cfg( bootstrap) ]
437
- pub unsafe fn atomic_load_acquire < T : Copy > ( src : * const T ) -> T ;
438
- /// Loads the current value of the pointer.
439
- /// `T` must be an integer or pointer type.
440
- ///
441
- /// The stabilized version of this intrinsic is available on the
442
- /// [`atomic`] types via the `load` method by passing
443
- /// [`Ordering::Relaxed`] as the `order`. For example, [`AtomicBool::load`].
444
- #[ rustc_intrinsic]
445
- #[ rustc_nounwind]
446
- #[ cfg( bootstrap) ]
447
- pub unsafe fn atomic_load_relaxed < T : Copy > ( src : * const T ) -> T ;
448
417
449
418
/// Stores the value at the specified memory location.
450
419
/// `T` must be an integer or pointer type.
@@ -1767,7 +1736,6 @@ pub const unsafe fn arith_offset<T>(dst: *const T, offset: isize) -> *const T;
1767
1736
/// - `index < PtrMetadata(slice_ptr)`, so the indexing is in-bounds for the slice
1768
1737
/// - the resulting offsetting is in-bounds of the allocated object, which is
1769
1738
/// always the case for references, but needs to be upheld manually for pointers
1770
- #[ cfg( not( bootstrap) ) ]
1771
1739
#[ rustc_nounwind]
1772
1740
#[ rustc_intrinsic]
1773
1741
pub const unsafe fn slice_get_unchecked <
@@ -3710,7 +3678,7 @@ pub const fn minnumf128(x: f128, y: f128) -> f128;
3710
3678
/// Therefore, implementations must not require the user to uphold
3711
3679
/// any safety invariants.
3712
3680
#[ rustc_nounwind]
3713
- #[ cfg_attr ( not ( bootstrap ) , rustc_intrinsic) ]
3681
+ #[ rustc_intrinsic]
3714
3682
pub const fn minimumf16 ( x : f16 , y : f16 ) -> f16 {
3715
3683
if x < y {
3716
3684
x
@@ -3731,7 +3699,7 @@ pub const fn minimumf16(x: f16, y: f16) -> f16 {
3731
3699
/// Therefore, implementations must not require the user to uphold
3732
3700
/// any safety invariants.
3733
3701
#[ rustc_nounwind]
3734
- #[ cfg_attr ( not ( bootstrap ) , rustc_intrinsic) ]
3702
+ #[ rustc_intrinsic]
3735
3703
pub const fn minimumf32 ( x : f32 , y : f32 ) -> f32 {
3736
3704
if x < y {
3737
3705
x
@@ -3752,7 +3720,7 @@ pub const fn minimumf32(x: f32, y: f32) -> f32 {
3752
3720
/// Therefore, implementations must not require the user to uphold
3753
3721
/// any safety invariants.
3754
3722
#[ rustc_nounwind]
3755
- #[ cfg_attr ( not ( bootstrap ) , rustc_intrinsic) ]
3723
+ #[ rustc_intrinsic]
3756
3724
pub const fn minimumf64 ( x : f64 , y : f64 ) -> f64 {
3757
3725
if x < y {
3758
3726
x
@@ -3773,7 +3741,7 @@ pub const fn minimumf64(x: f64, y: f64) -> f64 {
3773
3741
/// Therefore, implementations must not require the user to uphold
3774
3742
/// any safety invariants.
3775
3743
#[ rustc_nounwind]
3776
- #[ cfg_attr ( not ( bootstrap ) , rustc_intrinsic) ]
3744
+ #[ rustc_intrinsic]
3777
3745
pub const fn minimumf128 ( x : f128 , y : f128 ) -> f128 {
3778
3746
if x < y {
3779
3747
x
@@ -3848,7 +3816,7 @@ pub const fn maxnumf128(x: f128, y: f128) -> f128;
3848
3816
/// Therefore, implementations must not require the user to uphold
3849
3817
/// any safety invariants.
3850
3818
#[ rustc_nounwind]
3851
- #[ cfg_attr ( not ( bootstrap ) , rustc_intrinsic) ]
3819
+ #[ rustc_intrinsic]
3852
3820
pub const fn maximumf16 ( x : f16 , y : f16 ) -> f16 {
3853
3821
if x > y {
3854
3822
x
@@ -3868,7 +3836,7 @@ pub const fn maximumf16(x: f16, y: f16) -> f16 {
3868
3836
/// Therefore, implementations must not require the user to uphold
3869
3837
/// any safety invariants.
3870
3838
#[ rustc_nounwind]
3871
- #[ cfg_attr ( not ( bootstrap ) , rustc_intrinsic) ]
3839
+ #[ rustc_intrinsic]
3872
3840
pub const fn maximumf32 ( x : f32 , y : f32 ) -> f32 {
3873
3841
if x > y {
3874
3842
x
@@ -3888,7 +3856,7 @@ pub const fn maximumf32(x: f32, y: f32) -> f32 {
3888
3856
/// Therefore, implementations must not require the user to uphold
3889
3857
/// any safety invariants.
3890
3858
#[ rustc_nounwind]
3891
- #[ cfg_attr ( not ( bootstrap ) , rustc_intrinsic) ]
3859
+ #[ rustc_intrinsic]
3892
3860
pub const fn maximumf64 ( x : f64 , y : f64 ) -> f64 {
3893
3861
if x > y {
3894
3862
x
@@ -3908,7 +3876,7 @@ pub const fn maximumf64(x: f64, y: f64) -> f64 {
3908
3876
/// Therefore, implementations must not require the user to uphold
3909
3877
/// any safety invariants.
3910
3878
#[ rustc_nounwind]
3911
- #[ cfg_attr ( not ( bootstrap ) , rustc_intrinsic) ]
3879
+ #[ rustc_intrinsic]
3912
3880
pub const fn maximumf128 ( x : f128 , y : f128 ) -> f128 {
3913
3881
if x > y {
3914
3882
x
0 commit comments