@@ -1017,45 +1017,6 @@ extern "rust-intrinsic" {
1017
1017
#[ rustc_nounwind]
1018
1018
pub fn breakpoint ( ) ;
1019
1019
1020
- #[ cfg( bootstrap) ]
1021
- #[ rustc_const_stable( feature = "const_size_of" , since = "1.40.0" ) ]
1022
- #[ rustc_safe_intrinsic]
1023
- #[ rustc_nounwind]
1024
- pub fn size_of < T > ( ) -> usize ;
1025
-
1026
- #[ cfg( bootstrap) ]
1027
- #[ rustc_const_stable( feature = "const_min_align_of" , since = "1.40.0" ) ]
1028
- #[ rustc_safe_intrinsic]
1029
- #[ rustc_nounwind]
1030
- pub fn min_align_of < T > ( ) -> usize ;
1031
-
1032
- #[ cfg( bootstrap) ]
1033
- #[ rustc_const_unstable( feature = "const_pref_align_of" , issue = "91971" ) ]
1034
- #[ rustc_nounwind]
1035
- pub fn pref_align_of < T > ( ) -> usize ;
1036
-
1037
- #[ cfg( bootstrap) ]
1038
- #[ rustc_const_unstable( feature = "const_size_of_val" , issue = "46571" ) ]
1039
- #[ rustc_nounwind]
1040
- pub fn size_of_val < T : ?Sized > ( _: * const T ) -> usize ;
1041
-
1042
- #[ cfg( bootstrap) ]
1043
- #[ rustc_const_unstable( feature = "const_align_of_val" , issue = "46571" ) ]
1044
- #[ rustc_nounwind]
1045
- pub fn min_align_of_val < T : ?Sized > ( _: * const T ) -> usize ;
1046
-
1047
- #[ cfg( bootstrap) ]
1048
- #[ rustc_const_unstable( feature = "const_type_name" , issue = "63084" ) ]
1049
- #[ rustc_safe_intrinsic]
1050
- #[ rustc_nounwind]
1051
- pub fn type_name < T : ?Sized > ( ) -> & ' static str ;
1052
-
1053
- #[ cfg( bootstrap) ]
1054
- #[ rustc_const_unstable( feature = "const_type_id" , issue = "77125" ) ]
1055
- #[ rustc_safe_intrinsic]
1056
- #[ rustc_nounwind]
1057
- pub fn type_id < T : ?Sized + ' static > ( ) -> u128 ;
1058
-
1059
1020
/// A guard for unsafe functions that cannot ever be executed if `T` is uninhabited:
1060
1021
/// This will statically either panic, or do nothing.
1061
1022
///
@@ -2385,12 +2346,6 @@ extern "rust-intrinsic" {
2385
2346
#[ rustc_nounwind]
2386
2347
pub fn discriminant_value < T > ( v : & T ) -> <T as DiscriminantKind >:: Discriminant ;
2387
2348
2388
- #[ cfg( bootstrap) ]
2389
- #[ rustc_const_unstable( feature = "variant_count" , issue = "73662" ) ]
2390
- #[ rustc_safe_intrinsic]
2391
- #[ rustc_nounwind]
2392
- pub fn variant_count < T > ( ) -> usize ;
2393
-
2394
2349
/// Rust's "try catch" construct for unwinding. Invokes the function pointer `try_fn` with the
2395
2350
/// data pointer `data`, and calls `catch_fn` if unwinding occurs while `try_fn` runs.
2396
2351
///
@@ -2768,7 +2723,6 @@ pub unsafe fn vtable_align(_ptr: *const ()) -> usize {
2768
2723
#[ rustc_const_stable( feature = "const_size_of" , since = "1.40.0" ) ]
2769
2724
#[ rustc_intrinsic]
2770
2725
#[ rustc_intrinsic_must_be_overridden]
2771
- #[ cfg( not( bootstrap) ) ]
2772
2726
pub const fn size_of < T > ( ) -> usize {
2773
2727
unreachable ! ( )
2774
2728
}
@@ -2786,7 +2740,6 @@ pub const fn size_of<T>() -> usize {
2786
2740
#[ rustc_const_stable( feature = "const_min_align_of" , since = "1.40.0" ) ]
2787
2741
#[ rustc_intrinsic]
2788
2742
#[ rustc_intrinsic_must_be_overridden]
2789
- #[ cfg( not( bootstrap) ) ]
2790
2743
pub const fn min_align_of < T > ( ) -> usize {
2791
2744
unreachable ! ( )
2792
2745
}
@@ -2800,7 +2753,6 @@ pub const fn min_align_of<T>() -> usize {
2800
2753
#[ rustc_const_unstable( feature = "const_pref_align_of" , issue = "91971" ) ]
2801
2754
#[ rustc_intrinsic]
2802
2755
#[ rustc_intrinsic_must_be_overridden]
2803
- #[ cfg( not( bootstrap) ) ]
2804
2756
pub const unsafe fn pref_align_of < T > ( ) -> usize {
2805
2757
unreachable ! ( )
2806
2758
}
@@ -2819,7 +2771,6 @@ pub const unsafe fn pref_align_of<T>() -> usize {
2819
2771
#[ rustc_const_unstable( feature = "variant_count" , issue = "73662" ) ]
2820
2772
#[ rustc_intrinsic]
2821
2773
#[ rustc_intrinsic_must_be_overridden]
2822
- #[ cfg( not( bootstrap) ) ]
2823
2774
pub const fn variant_count < T > ( ) -> usize {
2824
2775
unreachable ! ( )
2825
2776
}
@@ -2836,7 +2787,6 @@ pub const fn variant_count<T>() -> usize {
2836
2787
#[ rustc_const_unstable( feature = "const_size_of_val" , issue = "46571" ) ]
2837
2788
#[ rustc_intrinsic]
2838
2789
#[ rustc_intrinsic_must_be_overridden]
2839
- #[ cfg( not( bootstrap) ) ]
2840
2790
pub const unsafe fn size_of_val < T : ?Sized > ( _ptr : * const T ) -> usize {
2841
2791
unreachable ! ( )
2842
2792
}
@@ -2853,7 +2803,6 @@ pub const unsafe fn size_of_val<T: ?Sized>(_ptr: *const T) -> usize {
2853
2803
#[ rustc_const_unstable( feature = "const_align_of_val" , issue = "46571" ) ]
2854
2804
#[ rustc_intrinsic]
2855
2805
#[ rustc_intrinsic_must_be_overridden]
2856
- #[ cfg( not( bootstrap) ) ]
2857
2806
pub const unsafe fn min_align_of_val < T : ?Sized > ( _ptr : * const T ) -> usize {
2858
2807
unreachable ! ( )
2859
2808
}
@@ -2871,7 +2820,6 @@ pub const unsafe fn min_align_of_val<T: ?Sized>(_ptr: *const T) -> usize {
2871
2820
#[ rustc_const_unstable( feature = "const_type_name" , issue = "63084" ) ]
2872
2821
#[ rustc_intrinsic]
2873
2822
#[ rustc_intrinsic_must_be_overridden]
2874
- #[ cfg( not( bootstrap) ) ]
2875
2823
pub const fn type_name < T : ?Sized > ( ) -> & ' static str {
2876
2824
unreachable ! ( )
2877
2825
}
@@ -2891,7 +2839,6 @@ pub const fn type_name<T: ?Sized>() -> &'static str {
2891
2839
#[ rustc_const_unstable( feature = "const_type_id" , issue = "77125" ) ]
2892
2840
#[ rustc_intrinsic]
2893
2841
#[ rustc_intrinsic_must_be_overridden]
2894
- #[ cfg( not( bootstrap) ) ]
2895
2842
pub const fn type_id < T : ?Sized + ' static > ( ) -> u128 {
2896
2843
unreachable ! ( )
2897
2844
}
0 commit comments