@@ -717,13 +717,12 @@ returning `None` if `rhs == 0` or the division results in overflow.
717
717
Basic usage:
718
718
719
719
```
720
- #![feature(euclidean_division)]
721
720
assert_eq!((" , stringify!( $SelfT) ,
722
721
"::min_value() + 1).checked_div_euclid(-1), Some(" , stringify!( $Max) , "));
723
722
assert_eq!(" , stringify!( $SelfT) , "::min_value().checked_div_euclid(-1), None);
724
723
assert_eq!((1" , stringify!( $SelfT) , ").checked_div_euclid(0), None);
725
724
```" ) ,
726
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
725
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
727
726
#[ must_use = "this returns the result of the operation, \
728
727
without modifying the original"]
729
728
#[ inline]
@@ -774,14 +773,13 @@ if `rhs == 0` or the division results in overflow.
774
773
Basic usage:
775
774
776
775
```
777
- #![feature(euclidean_division)]
778
776
use std::" , stringify!( $SelfT) , ";
779
777
780
778
assert_eq!(5" , stringify!( $SelfT) , ".checked_rem_euclid(2), Some(1));
781
779
assert_eq!(5" , stringify!( $SelfT) , ".checked_rem_euclid(0), None);
782
780
assert_eq!(" , stringify!( $SelfT) , "::MIN.checked_rem_euclid(-1), None);
783
781
```" ) ,
784
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
782
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
785
783
#[ must_use = "this returns the result of the operation, \
786
784
without modifying the original"]
787
785
#[ inline]
@@ -1210,11 +1208,10 @@ This function will panic if `rhs` is 0.
1210
1208
Basic usage:
1211
1209
1212
1210
```
1213
- #![feature(euclidean_division)]
1214
1211
assert_eq!(100" , stringify!( $SelfT) , ".wrapping_div_euclid(10), 10);
1215
1212
assert_eq!((-128i8).wrapping_div_euclid(-1), -128);
1216
1213
```" ) ,
1217
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
1214
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
1218
1215
#[ must_use = "this returns the result of the operation, \
1219
1216
without modifying the original"]
1220
1217
#[ inline]
@@ -1269,11 +1266,10 @@ This function will panic if `rhs` is 0.
1269
1266
Basic usage:
1270
1267
1271
1268
```
1272
- #![feature(euclidean_division)]
1273
1269
assert_eq!(100" , stringify!( $SelfT) , ".wrapping_rem_euclid(10), 0);
1274
1270
assert_eq!((-128i8).wrapping_rem_euclid(-1), 0);
1275
1271
```" ) ,
1276
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
1272
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
1277
1273
#[ must_use = "this returns the result of the operation, \
1278
1274
without modifying the original"]
1279
1275
#[ inline]
@@ -1566,15 +1562,14 @@ This function will panic if `rhs` is 0.
1566
1562
Basic usage:
1567
1563
1568
1564
```
1569
- #![feature(euclidean_division)]
1570
1565
use std::" , stringify!( $SelfT) , ";
1571
1566
1572
1567
assert_eq!(5" , stringify!( $SelfT) , ".overflowing_div_euclid(2), (2, false));
1573
1568
assert_eq!(" , stringify!( $SelfT) , "::MIN.overflowing_div_euclid(-1), (" , stringify!( $SelfT) ,
1574
1569
"::MIN, true));
1575
1570
```" ) ,
1576
1571
#[ inline]
1577
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
1572
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
1578
1573
#[ must_use = "this returns the result of the operation, \
1579
1574
without modifying the original"]
1580
1575
pub fn overflowing_div_euclid( self , rhs: Self ) -> ( Self , bool ) {
@@ -1636,13 +1631,12 @@ This function will panic if `rhs` is 0.
1636
1631
Basic usage:
1637
1632
1638
1633
```
1639
- #![feature(euclidean_division)]
1640
1634
use std::" , stringify!( $SelfT) , ";
1641
1635
1642
1636
assert_eq!(5" , stringify!( $SelfT) , ".overflowing_rem_euclid(2), (1, false));
1643
1637
assert_eq!(" , stringify!( $SelfT) , "::MIN.overflowing_rem_euclid(-1), (0, true));
1644
1638
```" ) ,
1645
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
1639
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
1646
1640
#[ must_use = "this returns the result of the operation, \
1647
1641
without modifying the original"]
1648
1642
#[ inline]
@@ -1873,7 +1867,6 @@ This function will panic if `rhs` is 0.
1873
1867
Basic usage:
1874
1868
1875
1869
```
1876
- #![feature(euclidean_division)]
1877
1870
let a: " , stringify!( $SelfT) , " = 7; // or any other integer type
1878
1871
let b = 4;
1879
1872
@@ -1882,7 +1875,7 @@ assert_eq!(a.div_euclid(-b), -1); // 7 >= -4 * -1
1882
1875
assert_eq!((-a).div_euclid(b), -2); // -7 >= 4 * -2
1883
1876
assert_eq!((-a).div_euclid(-b), 2); // -7 >= -4 * 2
1884
1877
```" ) ,
1885
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
1878
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
1886
1879
#[ must_use = "this returns the result of the operation, \
1887
1880
without modifying the original"]
1888
1881
#[ inline]
@@ -1913,7 +1906,6 @@ This function will panic if `rhs` is 0.
1913
1906
Basic usage:
1914
1907
1915
1908
```
1916
- #![feature(euclidean_division)]
1917
1909
let a: " , stringify!( $SelfT) , " = 7; // or any other integer type
1918
1910
let b = 4;
1919
1911
@@ -1922,7 +1914,7 @@ assert_eq!((-a).rem_euclid(b), 1);
1922
1914
assert_eq!(a.rem_euclid(-b), 3);
1923
1915
assert_eq!((-a).rem_euclid(-b), 1);
1924
1916
```" ) ,
1925
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
1917
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
1926
1918
#[ must_use = "this returns the result of the operation, \
1927
1919
without modifying the original"]
1928
1920
#[ inline]
@@ -2753,11 +2745,10 @@ if `rhs == 0`.
2753
2745
Basic usage:
2754
2746
2755
2747
```
2756
- #![feature(euclidean_division)]
2757
2748
assert_eq!(128" , stringify!( $SelfT) , ".checked_div_euclid(2), Some(64));
2758
2749
assert_eq!(1" , stringify!( $SelfT) , ".checked_div_euclid(0), None);
2759
2750
```" ) ,
2760
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
2751
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
2761
2752
#[ must_use = "this returns the result of the operation, \
2762
2753
without modifying the original"]
2763
2754
#[ inline]
@@ -2805,11 +2796,10 @@ if `rhs == 0`.
2805
2796
Basic usage:
2806
2797
2807
2798
```
2808
- #![feature(euclidean_division)]
2809
2799
assert_eq!(5" , stringify!( $SelfT) , ".checked_rem_euclid(2), Some(1));
2810
2800
assert_eq!(5" , stringify!( $SelfT) , ".checked_rem_euclid(0), None);
2811
2801
```" ) ,
2812
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
2802
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
2813
2803
#[ must_use = "this returns the result of the operation, \
2814
2804
without modifying the original"]
2815
2805
#[ inline]
@@ -3127,10 +3117,9 @@ is exactly equal to `self.wrapping_div(rhs)`.
3127
3117
Basic usage:
3128
3118
3129
3119
```
3130
- #![feature(euclidean_division)]
3131
3120
assert_eq!(100" , stringify!( $SelfT) , ".wrapping_div_euclid(10), 10);
3132
3121
```" ) ,
3133
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
3122
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
3134
3123
#[ must_use = "this returns the result of the operation, \
3135
3124
without modifying the original"]
3136
3125
#[ inline]
@@ -3179,10 +3168,9 @@ is exactly equal to `self.wrapping_rem(rhs)`.
3179
3168
Basic usage:
3180
3169
3181
3170
```
3182
- #![feature(euclidean_division)]
3183
3171
assert_eq!(100" , stringify!( $SelfT) , ".wrapping_rem_euclid(10), 0);
3184
3172
```" ) ,
3185
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
3173
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
3186
3174
#[ must_use = "this returns the result of the operation, \
3187
3175
without modifying the original"]
3188
3176
#[ inline]
@@ -3448,11 +3436,10 @@ This function will panic if `rhs` is 0.
3448
3436
Basic usage
3449
3437
3450
3438
```
3451
- #![feature(euclidean_division)]
3452
3439
assert_eq!(5" , stringify!( $SelfT) , ".overflowing_div_euclid(2), (2, false));
3453
3440
```" ) ,
3454
3441
#[ inline]
3455
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
3442
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
3456
3443
#[ must_use = "this returns the result of the operation, \
3457
3444
without modifying the original"]
3458
3445
pub fn overflowing_div_euclid( self , rhs: Self ) -> ( Self , bool ) {
@@ -3508,11 +3495,10 @@ This function will panic if `rhs` is 0.
3508
3495
Basic usage
3509
3496
3510
3497
```
3511
- #![feature(euclidean_division)]
3512
3498
assert_eq!(5" , stringify!( $SelfT) , ".overflowing_rem_euclid(2), (1, false));
3513
3499
```" ) ,
3514
3500
#[ inline]
3515
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
3501
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
3516
3502
#[ must_use = "this returns the result of the operation, \
3517
3503
without modifying the original"]
3518
3504
pub fn overflowing_rem_euclid( self , rhs: Self ) -> ( Self , bool ) {
@@ -3696,10 +3682,9 @@ is exactly equal to `self / rhs`.
3696
3682
Basic usage:
3697
3683
3698
3684
```
3699
- #![feature(euclidean_division)]
3700
3685
assert_eq!(7" , stringify!( $SelfT) , ".div_euclid(4), 1); // or any other integer type
3701
3686
```" ) ,
3702
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
3687
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
3703
3688
#[ must_use = "this returns the result of the operation, \
3704
3689
without modifying the original"]
3705
3690
#[ inline]
@@ -3722,10 +3707,9 @@ is exactly equal to `self % rhs`.
3722
3707
Basic usage:
3723
3708
3724
3709
```
3725
- #![feature(euclidean_division)]
3726
3710
assert_eq!(7" , stringify!( $SelfT) , ".rem_euclid(4), 3); // or any other integer type
3727
3711
```" ) ,
3728
- #[ unstable ( feature = "euclidean_division" , issue = "49048 " ) ]
3712
+ #[ stable ( feature = "euclidean_division" , since = "1.38.0 " ) ]
3729
3713
#[ must_use = "this returns the result of the operation, \
3730
3714
without modifying the original"]
3731
3715
#[ inline]
0 commit comments