@@ -78,11 +78,7 @@ pub mod simd;
78
78
use crate :: sync:: atomic:: { self , AtomicBool , AtomicI32 , AtomicIsize , AtomicU32 , Ordering } ;
79
79
80
80
#[ stable( feature = "drop_in_place" , since = "1.8.0" ) ]
81
- #[ cfg_attr( bootstrap, rustc_allowed_through_unstable_modules) ]
82
- #[ cfg_attr(
83
- not( bootstrap) ,
84
- rustc_allowed_through_unstable_modules = "import this function via `std::ptr` instead"
85
- ) ]
81
+ #[ rustc_allowed_through_unstable_modules = "import this function via `std::ptr` instead" ]
86
82
#[ deprecated( note = "no longer an intrinsic - use `ptr::drop_in_place` directly" , since = "1.52.0" ) ]
87
83
#[ inline]
88
84
pub unsafe fn drop_in_place < T : ?Sized > ( to_drop : * mut T ) {
@@ -1901,11 +1897,7 @@ pub const fn forget<T: ?Sized>(_: T) {
1901
1897
/// }
1902
1898
/// ```
1903
1899
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1904
- #[ cfg_attr( bootstrap, rustc_allowed_through_unstable_modules) ]
1905
- #[ cfg_attr(
1906
- not( bootstrap) ,
1907
- rustc_allowed_through_unstable_modules = "import this function via `std::mem` instead"
1908
- ) ]
1900
+ #[ rustc_allowed_through_unstable_modules = "import this function via `std::mem` instead" ]
1909
1901
#[ rustc_const_stable( feature = "const_transmute" , since = "1.56.0" ) ]
1910
1902
#[ rustc_diagnostic_item = "transmute" ]
1911
1903
#[ rustc_nounwind]
@@ -3260,7 +3252,7 @@ pub const fn three_way_compare<T: Copy>(_lhs: T, _rhss: T) -> crate::cmp::Orderi
3260
3252
/// Otherwise it's immediate UB.
3261
3253
#[ rustc_const_unstable( feature = "disjoint_bitor" , issue = "135758" ) ]
3262
3254
#[ rustc_nounwind]
3263
- #[ cfg_attr ( not ( bootstrap ) , rustc_intrinsic) ]
3255
+ #[ rustc_intrinsic]
3264
3256
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
3265
3257
#[ miri:: intrinsic_fallback_is_spec] // the fallbacks all `assume` to tell Miri
3266
3258
pub const unsafe fn disjoint_bitor < T : ~const fallback:: DisjointBitOr > ( a : T , b : T ) -> T {
@@ -4071,7 +4063,6 @@ pub const unsafe fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize)
4071
4063
/// of not prematurely commiting at compile-time to whether contract
4072
4064
/// checking is turned on, so that we can specify contracts in libstd
4073
4065
/// and let an end user opt into turning them on.
4074
- #[ cfg( not( bootstrap) ) ]
4075
4066
#[ rustc_const_unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
4076
4067
#[ unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
4077
4068
#[ inline( always) ]
@@ -4087,7 +4078,6 @@ pub const fn contract_checks() -> bool {
4087
4078
///
4088
4079
/// By default, if `contract_checks` is enabled, this will panic with no unwind if the condition
4089
4080
/// returns false.
4090
- #[ cfg( not( bootstrap) ) ]
4091
4081
#[ unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
4092
4082
#[ lang = "contract_check_requires" ]
4093
4083
#[ rustc_intrinsic]
@@ -4102,7 +4092,6 @@ pub fn contract_check_requires<C: Fn() -> bool>(cond: C) {
4102
4092
///
4103
4093
/// By default, if `contract_checks` is enabled, this will panic with no unwind if the condition
4104
4094
/// returns false.
4105
- #[ cfg( not( bootstrap) ) ]
4106
4095
#[ unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
4107
4096
#[ rustc_intrinsic]
4108
4097
pub fn contract_check_ensures < ' a , Ret , C : Fn ( & ' a Ret ) -> bool > ( ret : & ' a Ret , cond : C ) {
@@ -4401,11 +4390,7 @@ pub const fn ptr_metadata<P: ptr::Pointee<Metadata = M> + ?Sized, M>(_ptr: *cons
4401
4390
/// [`Vec::append`]: ../../std/vec/struct.Vec.html#method.append
4402
4391
#[ doc( alias = "memcpy" ) ]
4403
4392
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
4404
- #[ cfg_attr( bootstrap, rustc_allowed_through_unstable_modules) ]
4405
- #[ cfg_attr(
4406
- not( bootstrap) ,
4407
- rustc_allowed_through_unstable_modules = "import this function via `std::mem` instead"
4408
- ) ]
4393
+ #[ rustc_allowed_through_unstable_modules = "import this function via `std::mem` instead" ]
4409
4394
#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.83.0" ) ]
4410
4395
#[ inline( always) ]
4411
4396
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
@@ -4509,11 +4494,7 @@ pub const unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: us
4509
4494
/// ```
4510
4495
#[ doc( alias = "memmove" ) ]
4511
4496
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
4512
- #[ cfg_attr( bootstrap, rustc_allowed_through_unstable_modules) ]
4513
- #[ cfg_attr(
4514
- not( bootstrap) ,
4515
- rustc_allowed_through_unstable_modules = "import this function via `std::mem` instead"
4516
- ) ]
4497
+ #[ rustc_allowed_through_unstable_modules = "import this function via `std::mem` instead" ]
4517
4498
#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.83.0" ) ]
4518
4499
#[ inline( always) ]
4519
4500
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
@@ -4596,11 +4577,7 @@ pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
4596
4577
/// ```
4597
4578
#[ doc( alias = "memset" ) ]
4598
4579
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
4599
- #[ cfg_attr( bootstrap, rustc_allowed_through_unstable_modules) ]
4600
- #[ cfg_attr(
4601
- not( bootstrap) ,
4602
- rustc_allowed_through_unstable_modules = "import this function via `std::mem` instead"
4603
- ) ]
4580
+ #[ rustc_allowed_through_unstable_modules = "import this function via `std::mem` instead" ]
4604
4581
#[ rustc_const_stable( feature = "const_ptr_write" , since = "1.83.0" ) ]
4605
4582
#[ inline( always) ]
4606
4583
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
0 commit comments