about summary refs log tree commit diff
diff options
context:
space:
mode:
authorАртём Павлов [Artyom Pavlov] <newpavlov@gmail.com>2024-05-03 17:42:34 +0300
committerАртём Павлов [Artyom Pavlov] <newpavlov@gmail.com>2024-05-03 17:42:34 +0300
commit6d223bb6a1f54eacd57e14d5fc323f97f12e5005 (patch)
tree3e1edee71c9ead984e2868452d5607fc4bdecfe8
parent1f1653c3283deca450ee84a01562ef9a914e4478 (diff)
downloadrust-6d223bb6a1f54eacd57e14d5fc323f97f12e5005.tar.gz
rust-6d223bb6a1f54eacd57e14d5fc323f97f12e5005.zip
Use `CURRENT_RUSTC_VERSION`
-rw-r--r--library/core/src/time.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/time.rs b/library/core/src/time.rs
index e2cf0cb6215..a4de3d099b3 100644
--- a/library/core/src/time.rs
+++ b/library/core/src/time.rs
@@ -1068,7 +1068,7 @@ impl Duration {
     /// let dur2 = Duration::new(5, 400_000_000);
     /// assert_eq!(dur1.div_duration_f64(dur2), 0.5);
     /// ```
-    #[stable(feature = "div_duration", since = "1.80.0")]
+    #[stable(feature = "div_duration", since = "CURRENT_RUSTC_VERSION")]
     #[must_use = "this returns the result of the operation, \
                   without modifying the original"]
     #[inline]
@@ -1087,7 +1087,7 @@ impl Duration {
     /// let dur2 = Duration::new(5, 400_000_000);
     /// assert_eq!(dur1.div_duration_f32(dur2), 0.5);
     /// ```
-    #[stable(feature = "div_duration", since = "1.80.0")]
+    #[stable(feature = "div_duration", since = "CURRENT_RUSTC_VERSION")]
     #[must_use = "this returns the result of the operation, \
                   without modifying the original"]
     #[inline]