@@ -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 {
@@ -4070,7 +4062,6 @@ pub const unsafe fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize)
4070
4062
/// of not prematurely commiting at compile-time to whether contract
4071
4063
/// checking is turned on, so that we can specify contracts in libstd
4072
4064
/// and let an end user opt into turning them on.
4073
- #[ cfg( not( bootstrap) ) ]
4074
4065
#[ rustc_const_unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
4075
4066
#[ unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
4076
4067
#[ inline( always) ]
@@ -4086,7 +4077,6 @@ pub const fn contract_checks() -> bool {
4086
4077
///
4087
4078
/// By default, if `contract_checks` is enabled, this will panic with no unwind if the condition
4088
4079
/// returns false.
4089
- #[ cfg( not( bootstrap) ) ]
4090
4080
#[ unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
4091
4081
#[ lang = "contract_check_requires" ]
4092
4082
#[ rustc_intrinsic]
@@ -4101,7 +4091,6 @@ pub fn contract_check_requires<C: Fn() -> bool>(cond: C) {
4101
4091
///
4102
4092
/// By default, if `contract_checks` is enabled, this will panic with no unwind if the condition
4103
4093
/// returns false.
4104
- #[ cfg( not( bootstrap) ) ]
4105
4094
#[ unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
4106
4095
#[ rustc_intrinsic]
4107
4096
pub fn contract_check_ensures < ' a , Ret , C : Fn ( & ' a Ret ) -> bool > ( ret : & ' a Ret , cond : C ) {
@@ -4400,11 +4389,7 @@ pub const fn ptr_metadata<P: ptr::Pointee<Metadata = M> + ?Sized, M>(_ptr: *cons
4400
4389
/// [`Vec::append`]: ../../std/vec/struct.Vec.html#method.append
4401
4390
#[ doc( alias = "memcpy" ) ]
4402
4391
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
4403
- #[ cfg_attr( bootstrap, rustc_allowed_through_unstable_modules) ]
4404
- #[ cfg_attr(
4405
- not( bootstrap) ,
4406
- rustc_allowed_through_unstable_modules = "import this function via `std::mem` instead"
4407
- ) ]
4392
+ #[ rustc_allowed_through_unstable_modules = "import this function via `std::mem` instead" ]
4408
4393
#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.83.0" ) ]
4409
4394
#[ inline( always) ]
4410
4395
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
@@ -4508,11 +4493,7 @@ pub const unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: us
4508
4493
/// ```
4509
4494
#[ doc( alias = "memmove" ) ]
4510
4495
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
4511
- #[ cfg_attr( bootstrap, rustc_allowed_through_unstable_modules) ]
4512
- #[ cfg_attr(
4513
- not( bootstrap) ,
4514
- rustc_allowed_through_unstable_modules = "import this function via `std::mem` instead"
4515
- ) ]
4496
+ #[ rustc_allowed_through_unstable_modules = "import this function via `std::mem` instead" ]
4516
4497
#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.83.0" ) ]
4517
4498
#[ inline( always) ]
4518
4499
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
@@ -4595,11 +4576,7 @@ pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
4595
4576
/// ```
4596
4577
#[ doc( alias = "memset" ) ]
4597
4578
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
4598
- #[ cfg_attr( bootstrap, rustc_allowed_through_unstable_modules) ]
4599
- #[ cfg_attr(
4600
- not( bootstrap) ,
4601
- rustc_allowed_through_unstable_modules = "import this function via `std::mem` instead"
4602
- ) ]
4579
+ #[ rustc_allowed_through_unstable_modules = "import this function via `std::mem` instead" ]
4603
4580
#[ rustc_const_stable( feature = "const_ptr_write" , since = "1.83.0" ) ]
4604
4581
#[ inline( always) ]
4605
4582
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
0 commit comments