@@ -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 {
@@ -4070,7 +4062,6 @@ pub const unsafe fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize)
40704062/// of not prematurely commiting at compile-time to whether contract
40714063/// checking is turned on, so that we can specify contracts in libstd
40724064/// and let an end user opt into turning them on.
4073- #[ cfg( not( bootstrap) ) ]
40744065#[ rustc_const_unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
40754066#[ unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
40764067#[ inline( always) ]
@@ -4086,7 +4077,6 @@ pub const fn contract_checks() -> bool {
40864077///
40874078/// By default, if `contract_checks` is enabled, this will panic with no unwind if the condition
40884079/// returns false.
4089- #[ cfg( not( bootstrap) ) ]
40904080#[ unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
40914081#[ lang = "contract_check_requires" ]
40924082#[ rustc_intrinsic]
@@ -4101,7 +4091,6 @@ pub fn contract_check_requires<C: Fn() -> bool>(cond: C) {
41014091///
41024092/// By default, if `contract_checks` is enabled, this will panic with no unwind if the condition
41034093/// returns false.
4104- #[ cfg( not( bootstrap) ) ]
41054094#[ unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
41064095#[ rustc_intrinsic]
41074096pub 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
44004389/// [`Vec::append`]: ../../std/vec/struct.Vec.html#method.append
44014390#[ doc( alias = "memcpy" ) ]
44024391#[ 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" ]
44084393#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.83.0" ) ]
44094394#[ inline( always) ]
44104395#[ 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
45084493/// ```
45094494#[ doc( alias = "memmove" ) ]
45104495#[ 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" ]
45164497#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.83.0" ) ]
45174498#[ inline( always) ]
45184499#[ 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) {
45954576/// ```
45964577#[ doc( alias = "memset" ) ]
45974578#[ 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" ]
46034580#[ rustc_const_stable( feature = "const_ptr_write" , since = "1.83.0" ) ]
46044581#[ inline( always) ]
46054582#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
0 commit comments