File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1593,15 +1593,15 @@ extern "rust-intrinsic" {
15931593 /// Safe wrappers for this intrinsic are available on the integer
15941594 /// primitives via the `checked_div` method. For example,
15951595 /// [`u32::checked_div`]
1596- #[ rustc_const_unstable ( feature = "const_int_unchecked_arith" , issue = "none " ) ]
1596+ #[ rustc_const_stable ( feature = "const_int_unchecked_arith" , since = "1.51.0 " ) ]
15971597 pub fn unchecked_div < T : Copy > ( x : T , y : T ) -> T ;
15981598 /// Returns the remainder of an unchecked division, resulting in
15991599 /// undefined behavior when `y == 0` or `x == T::MIN && y == -1`
16001600 ///
16011601 /// Safe wrappers for this intrinsic are available on the integer
16021602 /// primitives via the `checked_rem` method. For example,
16031603 /// [`u32::checked_rem`]
1604- #[ rustc_const_unstable ( feature = "const_int_unchecked_arith" , issue = "none " ) ]
1604+ #[ rustc_const_stable ( feature = "const_int_unchecked_arith" , since = "1.51.0 " ) ]
16051605 pub fn unchecked_rem < T : Copy > ( x : T , y : T ) -> T ;
16061606
16071607 /// Performs an unchecked left shift, resulting in undefined behavior when
Original file line number Diff line number Diff line change @@ -514,7 +514,6 @@ macro_rules! int_impl {
514514 /// ```
515515 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
516516 #[ rustc_const_stable( feature = "const_checked_int_methods" , since = "1.51.0" ) ]
517- #[ rustc_allow_const_fn_unstable( const_int_unchecked_arith) ]
518517 #[ must_use = "this returns the result of the operation, \
519518 without modifying the original"]
520519 #[ inline]
@@ -567,7 +566,6 @@ macro_rules! int_impl {
567566 /// ```
568567 #[ stable( feature = "wrapping" , since = "1.7.0" ) ]
569568 #[ rustc_const_stable( feature = "const_checked_int_methods" , since = "1.51.0" ) ]
570- #[ rustc_allow_const_fn_unstable( const_int_unchecked_arith) ]
571569 #[ must_use = "this returns the result of the operation, \
572570 without modifying the original"]
573571 #[ inline]
Original file line number Diff line number Diff line change @@ -523,7 +523,6 @@ macro_rules! uint_impl {
523523 /// ```
524524 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
525525 #[ rustc_const_stable( feature = "const_checked_int_methods" , since = "1.51.0" ) ]
526- #[ rustc_allow_const_fn_unstable( const_int_unchecked_arith) ]
527526 #[ must_use = "this returns the result of the operation, \
528527 without modifying the original"]
529528 #[ inline]
@@ -575,7 +574,6 @@ macro_rules! uint_impl {
575574 /// ```
576575 #[ stable( feature = "wrapping" , since = "1.7.0" ) ]
577576 #[ rustc_const_stable( feature = "const_checked_int_methods" , since = "1.51.0" ) ]
578- #[ rustc_allow_const_fn_unstable( const_int_unchecked_arith) ]
579577 #[ must_use = "this returns the result of the operation, \
580578 without modifying the original"]
581579 #[ inline]
You can’t perform that action at this time.
0 commit comments