@@ -1305,9 +1305,11 @@ extern "rust-intrinsic" {
1305
1305
1306
1306
/// Performs an unchecked division, resulting in undefined behavior
1307
1307
/// where y = 0 or x = `T::min_value()` and y = -1
1308
+ #[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1308
1309
pub fn unchecked_div < T > ( x : T , y : T ) -> T ;
1309
1310
/// Returns the remainder of an unchecked division, resulting in
1310
1311
/// undefined behavior where y = 0 or x = `T::min_value()` and y = -1
1312
+ #[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1311
1313
pub fn unchecked_rem < T > ( x : T , y : T ) -> T ;
1312
1314
1313
1315
/// Performs an unchecked left shift, resulting in undefined behavior when
@@ -1321,14 +1323,17 @@ extern "rust-intrinsic" {
1321
1323
1322
1324
/// Returns the result of an unchecked addition, resulting in
1323
1325
/// undefined behavior when `x + y > T::max_value()` or `x + y < T::min_value()`.
1326
+ #[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1324
1327
pub fn unchecked_add < T > ( x : T , y : T ) -> T ;
1325
1328
1326
1329
/// Returns the result of an unchecked subtraction, resulting in
1327
1330
/// undefined behavior when `x - y > T::max_value()` or `x - y < T::min_value()`.
1331
+ #[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1328
1332
pub fn unchecked_sub < T > ( x : T , y : T ) -> T ;
1329
1333
1330
1334
/// Returns the result of an unchecked multiplication, resulting in
1331
1335
/// undefined behavior when `x * y > T::max_value()` or `x * y < T::min_value()`.
1336
+ #[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
1332
1337
pub fn unchecked_mul < T > ( x : T , y : T ) -> T ;
1333
1338
1334
1339
/// Performs rotate left.
0 commit comments