@@ -78,11 +78,7 @@ pub mod simd;
7878use crate :: sync:: atomic:: { self , AtomicBool , AtomicI32 , AtomicIsize , AtomicU32 , Ordering } ;
7979
8080#[ 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" ]
8682#[ deprecated( note = "no longer an intrinsic - use `ptr::drop_in_place` directly" , since = "1.52.0" ) ]
8783#[ inline]
8884pub unsafe fn drop_in_place < T : ?Sized > ( to_drop : * mut T ) {
@@ -1901,11 +1897,7 @@ pub const fn forget<T: ?Sized>(_: T) {
19011897/// }
19021898/// ```
19031899#[ 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" ]
19091901#[ rustc_const_stable( feature = "const_transmute" , since = "1.56.0" ) ]
19101902#[ rustc_diagnostic_item = "transmute" ]
19111903#[ rustc_nounwind]
@@ -3260,7 +3252,7 @@ pub const fn three_way_compare<T: Copy>(_lhs: T, _rhss: T) -> crate::cmp::Orderi
32603252/// Otherwise it's immediate UB.
32613253#[ rustc_const_unstable( feature = "disjoint_bitor" , issue = "135758" ) ]
32623254#[ rustc_nounwind]
3263- #[ cfg_attr ( not ( bootstrap ) , rustc_intrinsic) ]
3255+ #[ rustc_intrinsic]
32643256#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
32653257#[ miri:: intrinsic_fallback_is_spec] // the fallbacks all `assume` to tell Miri
32663258pub 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)
40714063/// of not prematurely commiting at compile-time to whether contract
40724064/// checking is turned on, so that we can specify contracts in libstd
40734065/// and let an end user opt into turning them on.
4074- #[ cfg( not( bootstrap) ) ]
40754066#[ rustc_const_unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
40764067#[ unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
40774068#[ inline( always) ]
@@ -4087,7 +4078,6 @@ pub const fn contract_checks() -> bool {
40874078///
40884079/// By default, if `contract_checks` is enabled, this will panic with no unwind if the condition
40894080/// returns false.
4090- #[ cfg( not( bootstrap) ) ]
40914081#[ unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
40924082#[ lang = "contract_check_requires" ]
40934083#[ rustc_intrinsic]
@@ -4102,7 +4092,6 @@ pub fn contract_check_requires<C: Fn() -> bool>(cond: C) {
41024092///
41034093/// By default, if `contract_checks` is enabled, this will panic with no unwind if the condition
41044094/// returns false.
4105- #[ cfg( not( bootstrap) ) ]
41064095#[ unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
41074096#[ rustc_intrinsic]
41084097pub 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
44014390/// [`Vec::append`]: ../../std/vec/struct.Vec.html#method.append
44024391#[ doc( alias = "memcpy" ) ]
44034392#[ 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" ]
44094394#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.83.0" ) ]
44104395#[ inline( always) ]
44114396#[ 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
45094494/// ```
45104495#[ doc( alias = "memmove" ) ]
45114496#[ 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" ]
45174498#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.83.0" ) ]
45184499#[ inline( always) ]
45194500#[ 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) {
45964577/// ```
45974578#[ doc( alias = "memset" ) ]
45984579#[ 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" ]
46044581#[ rustc_const_stable( feature = "const_ptr_write" , since = "1.83.0" ) ]
46054582#[ inline( always) ]
46064583#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
0 commit comments