Stabilize div_duration · model-checking/verify-rust-std@9eb77db (original) (raw)

Original file line number Diff line number Diff line change
@@ -1062,14 +1062,13 @@ impl Duration {
1062 1062 ///
1063 1063 /// # Examples
1064 1064 /// ```
1065 - /// #![feature(div_duration)]
1066 1065 /// use std::time::Duration;
1067 1066 ///
1068 1067 /// let dur1 = Duration::new(2, 700_000_000);
1069 1068 /// let dur2 = Duration::new(5, 400_000_000);
1070 1069 /// assert_eq!(dur1.div_duration_f64(dur2), 0.5);
1071 1070 /// ```
1072 - #[unstable(feature = "div_duration", issue = "63139")]
1071 + #[stable(feature = "div_duration", since = "1.80.0")]
1073 1072 #[must_use = "this returns the result of the operation, \
1074 1073 without modifying the original"]
1075 1074 #[inline]
@@ -1082,14 +1081,13 @@ impl Duration {
1082 1081 ///
1083 1082 /// # Examples
1084 1083 /// ```
1085 - /// #![feature(div_duration)]
1086 1084 /// use std::time::Duration;
1087 1085 ///
1088 1086 /// let dur1 = Duration::new(2, 700_000_000);
1089 1087 /// let dur2 = Duration::new(5, 400_000_000);
1090 1088 /// assert_eq!(dur1.div_duration_f32(dur2), 0.5);
1091 1089 /// ```
1092 - #[unstable(feature = "div_duration", issue = "63139")]
1090 + #[stable(feature = "div_duration", since = "1.80.0")]
1093 1091 #[must_use = "this returns the result of the operation, \
1094 1092 without modifying the original"]
1095 1093 #[inline]