about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorRyan Lopopolo <rjl@hyperbo.la>2022-09-25 09:52:44 -0700
committerRyan Lopopolo <rjl@hyperbo.la>2022-10-15 12:02:13 -0700
commit95040a70d7098b208aa31a7ec86f15d8bf4f0dc8 (patch)
tree776968e320723cd0bea0445c10b8f2dce705bf97 /library/std/src
parentb8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1 (diff)
downloadrust-95040a70d7098b208aa31a7ec86f15d8bf4f0dc8.tar.gz
rust-95040a70d7098b208aa31a7ec86f15d8bf4f0dc8.zip
Stabilize `duration_checked_float`
Tracking issue:

- https://github.com/rust-lang/rust/issues/83400
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/lib.rs1
-rw-r--r--library/std/src/time.rs4
2 files changed, 2 insertions, 3 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs
index 78838adb8dd..385585dada8 100644
--- a/library/std/src/lib.rs
+++ b/library/std/src/lib.rs
@@ -280,7 +280,6 @@
 #![feature(core_intrinsics)]
 #![feature(cstr_from_bytes_until_nul)]
 #![feature(cstr_internals)]
-#![feature(duration_checked_float)]
 #![feature(duration_constants)]
 #![feature(error_generic_member_access)]
 #![feature(error_in_core)]
diff --git a/library/std/src/time.rs b/library/std/src/time.rs
index 759a59e1f98..c7c413da060 100644
--- a/library/std/src/time.rs
+++ b/library/std/src/time.rs
@@ -43,8 +43,8 @@ use crate::sys_common::{FromInner, IntoInner};
 #[stable(feature = "time", since = "1.3.0")]
 pub use core::time::Duration;
 
-#[unstable(feature = "duration_checked_float", issue = "83400")]
-pub use core::time::FromFloatSecsError;
+#[stable(feature = "duration_checked_float", since = "CURRENT_RUSTC_VERSION")]
+pub use core::time::TryFromFloatSecsError;
 
 /// A measurement of a monotonically nondecreasing clock.
 /// Opaque and useful only with [`Duration`].