@@ -980,22 +980,7 @@ extern "rust-intrinsic" {
980
980
///
981
981
/// The stabilized version of this intrinsic is
982
982
/// [`std::mem::size_of_val`](../../std/mem/fn.size_of_val.html).
983
- #[ cfg( bootstrap) ]
984
- pub fn size_of_val < T : ?Sized > ( _: & T ) -> usize ;
985
- /// The minimum alignment of the type of the value that `val` points to.
986
- ///
987
- /// The stabilized version of this intrinsic is
988
- /// [`std::mem::min_align_of_val`](../../std/mem/fn.min_align_of_val.html).
989
- #[ cfg( bootstrap) ]
990
- pub fn min_align_of_val < T : ?Sized > ( _: & T ) -> usize ;
991
-
992
- /// The size of the referenced value in bytes.
993
- ///
994
- /// The stabilized version of this intrinsic is
995
- /// [`std::mem::size_of_val`](../../std/mem/fn.size_of_val.html).
996
- #[ cfg( not( bootstrap) ) ]
997
983
pub fn size_of_val < T : ?Sized > ( _: * const T ) -> usize ;
998
- #[ cfg( not( bootstrap) ) ]
999
984
pub fn min_align_of_val < T : ?Sized > ( _: * const T ) -> usize ;
1000
985
1001
986
/// Gets a static string slice containing the name of a type.
@@ -1016,22 +1001,14 @@ extern "rust-intrinsic" {
1016
1001
1017
1002
/// A guard for unsafe functions that cannot ever be executed if `T` is uninhabited:
1018
1003
/// This will statically either panic, or do nothing.
1019
- #[ cfg( bootstrap) ]
1020
- pub fn panic_if_uninhabited < T > ( ) ;
1021
-
1022
- /// A guard for unsafe functions that cannot ever be executed if `T` is uninhabited:
1023
- /// This will statically either panic, or do nothing.
1024
- #[ cfg( not( bootstrap) ) ]
1025
1004
pub fn assert_inhabited < T > ( ) ;
1026
1005
1027
1006
/// A guard for unsafe functions that cannot ever be executed if `T` does not permit
1028
1007
/// zero-initialization: This will statically either panic, or do nothing.
1029
- #[ cfg( not( bootstrap) ) ]
1030
1008
pub fn assert_zero_valid < T > ( ) ;
1031
1009
1032
1010
/// A guard for unsafe functions that cannot ever be executed if `T` has invalid
1033
1011
/// bit patterns: This will statically either panic, or do nothing.
1034
- #[ cfg( not( bootstrap) ) ]
1035
1012
pub fn assert_uninit_valid < T > ( ) ;
1036
1013
1037
1014
/// Gets a reference to a static `Location` indicating where it was called.
@@ -1597,17 +1574,10 @@ extern "rust-intrinsic" {
1597
1574
/// May assume inputs are finite.
1598
1575
pub fn frem_fast < T : Copy > ( a : T , b : T ) -> T ;
1599
1576
1600
- /// Convert with LLVM’s fptoui/fptosi, which may return undef for values out of range
1601
- /// (<https://github.com/rust-lang/rust/issues/10184>)
1602
- /// This is under stabilization at <https://github.com/rust-lang/rust/issues/67058>
1603
- #[ cfg( bootstrap) ]
1604
- pub fn float_to_int_approx_unchecked < Float : Copy , Int : Copy > ( value : Float ) -> Int ;
1605
-
1606
1577
/// Convert with LLVM’s fptoui/fptosi, which may return undef for values out of range
1607
1578
/// (<https://github.com/rust-lang/rust/issues/10184>)
1608
1579
///
1609
1580
/// Stabilized as `f32::to_int_unchecked` and `f64::to_int_unchecked`.
1610
- #[ cfg( not( bootstrap) ) ]
1611
1581
pub fn float_to_int_unchecked < Float : Copy , Int : Copy > ( value : Float ) -> Int ;
1612
1582
1613
1583
/// Returns the number of bits set in an integer type `T`
@@ -1877,10 +1847,7 @@ extern "rust-intrinsic" {
1877
1847
/// takes the data pointer and a pointer to the target-specific exception
1878
1848
/// object that was caught. For more information see the compiler's
1879
1849
/// source as well as std's catch implementation.
1880
- #[ cfg( not( bootstrap) ) ]
1881
1850
pub fn r#try ( try_fn : fn ( * mut u8 ) , data : * mut u8 , catch_fn : fn ( * mut u8 , * mut u8 ) ) -> i32 ;
1882
- #[ cfg( bootstrap) ]
1883
- pub fn r#try ( f : fn ( * mut u8 ) , data : * mut u8 , local_ptr : * mut u8 ) -> i32 ;
1884
1851
1885
1852
/// Emits a `!nontemporal` store according to LLVM (see their docs).
1886
1853
/// Probably will never become stable.
0 commit comments