@@ -469,17 +469,15 @@ macro_rules! int_impl {
469469 /// # Examples
470470 ///
471471 /// ```
472- /// #![feature(strict_overflow_ops)]
473472 #[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MAX - 2).strict_add(1), " , stringify!( $SelfT) , "::MAX - 1);" ) ]
474473 /// ```
475474 ///
476475 /// The following panics because of overflow:
477476 ///
478477 /// ```should_panic
479- /// #![feature(strict_overflow_ops)]
480478 #[ doc = concat!( "let _ = (" , stringify!( $SelfT) , "::MAX - 2).strict_add(3);" ) ]
481479 /// ```
482- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
480+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
483481 #[ must_use = "this returns the result of the operation, \
484482 without modifying the original"]
485483 #[ inline]
@@ -560,17 +558,15 @@ macro_rules! int_impl {
560558 /// # Examples
561559 ///
562560 /// ```
563- /// #![feature(strict_overflow_ops)]
564561 #[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".strict_add_unsigned(2), 3);" ) ]
565562 /// ```
566563 ///
567564 /// The following panics because of overflow:
568565 ///
569566 /// ```should_panic
570- /// #![feature(strict_overflow_ops)]
571567 #[ doc = concat!( "let _ = (" , stringify!( $SelfT) , "::MAX - 2).strict_add_unsigned(3);" ) ]
572568 /// ```
573- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
569+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
574570 #[ must_use = "this returns the result of the operation, \
575571 without modifying the original"]
576572 #[ inline]
@@ -611,17 +607,15 @@ macro_rules! int_impl {
611607 /// # Examples
612608 ///
613609 /// ```
614- /// #![feature(strict_overflow_ops)]
615610 #[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MIN + 2).strict_sub(1), " , stringify!( $SelfT) , "::MIN + 1);" ) ]
616611 /// ```
617612 ///
618613 /// The following panics because of overflow:
619614 ///
620615 /// ```should_panic
621- /// #![feature(strict_overflow_ops)]
622616 #[ doc = concat!( "let _ = (" , stringify!( $SelfT) , "::MIN + 2).strict_sub(3);" ) ]
623617 /// ```
624- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
618+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
625619 #[ must_use = "this returns the result of the operation, \
626620 without modifying the original"]
627621 #[ inline]
@@ -702,17 +696,15 @@ macro_rules! int_impl {
702696 /// # Examples
703697 ///
704698 /// ```
705- /// #![feature(strict_overflow_ops)]
706699 #[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".strict_sub_unsigned(2), -1);" ) ]
707700 /// ```
708701 ///
709702 /// The following panics because of overflow:
710703 ///
711704 /// ```should_panic
712- /// #![feature(strict_overflow_ops)]
713705 #[ doc = concat!( "let _ = (" , stringify!( $SelfT) , "::MIN + 2).strict_sub_unsigned(3);" ) ]
714706 /// ```
715- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
707+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
716708 #[ must_use = "this returns the result of the operation, \
717709 without modifying the original"]
718710 #[ inline]
@@ -753,17 +745,15 @@ macro_rules! int_impl {
753745 /// # Examples
754746 ///
755747 /// ```
756- /// #![feature(strict_overflow_ops)]
757748 #[ doc = concat!( "assert_eq!(" , stringify!( $SelfT) , "::MAX.strict_mul(1), " , stringify!( $SelfT) , "::MAX);" ) ]
758749 /// ```
759750 ///
760751 /// The following panics because of overflow:
761752 ///
762753 /// ``` should_panic
763- /// #![feature(strict_overflow_ops)]
764754 #[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MAX.strict_mul(2);" ) ]
765755 /// ```
766- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
756+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
767757 #[ must_use = "this returns the result of the operation, \
768758 without modifying the original"]
769759 #[ inline]
@@ -855,24 +845,21 @@ macro_rules! int_impl {
855845 /// # Examples
856846 ///
857847 /// ```
858- /// #![feature(strict_overflow_ops)]
859848 #[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MIN + 1).strict_div(-1), " , stringify!( $Max) , ");" ) ]
860849 /// ```
861850 ///
862851 /// The following panics because of overflow:
863852 ///
864853 /// ```should_panic
865- /// #![feature(strict_overflow_ops)]
866854 #[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_div(-1);" ) ]
867855 /// ```
868856 ///
869857 /// The following panics because of division by zero:
870858 ///
871859 /// ```should_panic
872- /// #![feature(strict_overflow_ops)]
873860 #[ doc = concat!( "let _ = (1" , stringify!( $SelfT) , ").strict_div(0);" ) ]
874861 /// ```
875- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
862+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
876863 #[ must_use = "this returns the result of the operation, \
877864 without modifying the original"]
878865 #[ inline]
@@ -924,24 +911,21 @@ macro_rules! int_impl {
924911 /// # Examples
925912 ///
926913 /// ```
927- /// #![feature(strict_overflow_ops)]
928914 #[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MIN + 1).strict_div_euclid(-1), " , stringify!( $Max) , ");" ) ]
929915 /// ```
930916 ///
931917 /// The following panics because of overflow:
932918 ///
933919 /// ```should_panic
934- /// #![feature(strict_overflow_ops)]
935920 #[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_div_euclid(-1);" ) ]
936921 /// ```
937922 ///
938923 /// The following panics because of division by zero:
939924 ///
940925 /// ```should_panic
941- /// #![feature(strict_overflow_ops)]
942926 #[ doc = concat!( "let _ = (1" , stringify!( $SelfT) , ").strict_div_euclid(0);" ) ]
943927 /// ```
944- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
928+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
945929 #[ must_use = "this returns the result of the operation, \
946930 without modifying the original"]
947931 #[ inline]
@@ -1092,24 +1076,21 @@ macro_rules! int_impl {
10921076 /// # Examples
10931077 ///
10941078 /// ```
1095- /// #![feature(strict_overflow_ops)]
10961079 #[ doc = concat!( "assert_eq!(5" , stringify!( $SelfT) , ".strict_rem(2), 1);" ) ]
10971080 /// ```
10981081 ///
10991082 /// The following panics because of division by zero:
11001083 ///
11011084 /// ```should_panic
1102- /// #![feature(strict_overflow_ops)]
11031085 #[ doc = concat!( "let _ = 5" , stringify!( $SelfT) , ".strict_rem(0);" ) ]
11041086 /// ```
11051087 ///
11061088 /// The following panics because of overflow:
11071089 ///
11081090 /// ```should_panic
1109- /// #![feature(strict_overflow_ops)]
11101091 #[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_rem(-1);" ) ]
11111092 /// ```
1112- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
1093+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
11131094 #[ must_use = "this returns the result of the operation, \
11141095 without modifying the original"]
11151096 #[ inline]
@@ -1160,24 +1141,21 @@ macro_rules! int_impl {
11601141 /// # Examples
11611142 ///
11621143 /// ```
1163- /// #![feature(strict_overflow_ops)]
11641144 #[ doc = concat!( "assert_eq!(5" , stringify!( $SelfT) , ".strict_rem_euclid(2), 1);" ) ]
11651145 /// ```
11661146 ///
11671147 /// The following panics because of division by zero:
11681148 ///
11691149 /// ```should_panic
1170- /// #![feature(strict_overflow_ops)]
11711150 #[ doc = concat!( "let _ = 5" , stringify!( $SelfT) , ".strict_rem_euclid(0);" ) ]
11721151 /// ```
11731152 ///
11741153 /// The following panics because of overflow:
11751154 ///
11761155 /// ```should_panic
1177- /// #![feature(strict_overflow_ops)]
11781156 #[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_rem_euclid(-1);" ) ]
11791157 /// ```
1180- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
1158+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
11811159 #[ must_use = "this returns the result of the operation, \
11821160 without modifying the original"]
11831161 #[ inline]
@@ -1249,17 +1227,15 @@ macro_rules! int_impl {
12491227 /// # Examples
12501228 ///
12511229 /// ```
1252- /// #![feature(strict_overflow_ops)]
12531230 #[ doc = concat!( "assert_eq!(5" , stringify!( $SelfT) , ".strict_neg(), -5);" ) ]
12541231 /// ```
12551232 ///
12561233 /// The following panics because of overflow:
12571234 ///
12581235 /// ```should_panic
1259- /// #![feature(strict_overflow_ops)]
12601236 #[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_neg();" ) ]
12611237 ///
1262- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
1238+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
12631239 #[ must_use = "this returns the result of the operation, \
12641240 without modifying the original"]
12651241 #[ inline]
@@ -1306,17 +1282,15 @@ macro_rules! int_impl {
13061282 /// # Examples
13071283 ///
13081284 /// ```
1309- /// #![feature(strict_overflow_ops)]
13101285 #[ doc = concat!( "assert_eq!(0x1" , stringify!( $SelfT) , ".strict_shl(4), 0x10);" ) ]
13111286 /// ```
13121287 ///
13131288 /// The following panics because of overflow:
13141289 ///
13151290 /// ```should_panic
1316- /// #![feature(strict_overflow_ops)]
13171291 #[ doc = concat!( "let _ = 0x1" , stringify!( $SelfT) , ".strict_shl(129);" ) ]
13181292 /// ```
1319- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
1293+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
13201294 #[ must_use = "this returns the result of the operation, \
13211295 without modifying the original"]
13221296 #[ inline]
@@ -1422,17 +1396,15 @@ macro_rules! int_impl {
14221396 /// # Examples
14231397 ///
14241398 /// ```
1425- /// #![feature(strict_overflow_ops)]
14261399 #[ doc = concat!( "assert_eq!(0x10" , stringify!( $SelfT) , ".strict_shr(4), 0x1);" ) ]
14271400 /// ```
14281401 ///
14291402 /// The following panics because of overflow:
14301403 ///
14311404 /// ```should_panic
1432- /// #![feature(strict_overflow_ops)]
14331405 #[ doc = concat!( "let _ = 0x10" , stringify!( $SelfT) , ".strict_shr(128);" ) ]
14341406 /// ```
1435- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
1407+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
14361408 #[ must_use = "this returns the result of the operation, \
14371409 without modifying the original"]
14381410 #[ inline]
@@ -1542,17 +1514,15 @@ macro_rules! int_impl {
15421514 /// # Examples
15431515 ///
15441516 /// ```
1545- /// #![feature(strict_overflow_ops)]
15461517 #[ doc = concat!( "assert_eq!((-5" , stringify!( $SelfT) , ").strict_abs(), 5);" ) ]
15471518 /// ```
15481519 ///
15491520 /// The following panics because of overflow:
15501521 ///
15511522 /// ```should_panic
1552- /// #![feature(strict_overflow_ops)]
15531523 #[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_abs();" ) ]
15541524 /// ```
1555- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
1525+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
15561526 #[ must_use = "this returns the result of the operation, \
15571527 without modifying the original"]
15581528 #[ inline]
@@ -1612,17 +1582,15 @@ macro_rules! int_impl {
16121582 /// # Examples
16131583 ///
16141584 /// ```
1615- /// #![feature(strict_overflow_ops)]
16161585 #[ doc = concat!( "assert_eq!(8" , stringify!( $SelfT) , ".strict_pow(2), 64);" ) ]
16171586 /// ```
16181587 ///
16191588 /// The following panics because of overflow:
16201589 ///
16211590 /// ```should_panic
1622- /// #![feature(strict_overflow_ops)]
16231591 #[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MAX.strict_pow(2);" ) ]
16241592 /// ```
1625- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
1593+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
16261594 #[ must_use = "this returns the result of the operation, \
16271595 without modifying the original"]
16281596 #[ inline]
0 commit comments