From 95040a70d7098b208aa31a7ec86f15d8bf4f0dc8 Mon Sep 17 00:00:00 2001 From: Ryan Lopopolo Date: Sun, 25 Sep 2022 09:52:44 -0700 Subject: Stabilize `duration_checked_float` Tracking issue: - https://github.com/rust-lang/rust/issues/83400 --- library/std/src/lib.rs | 1 - library/std/src/time.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'library/std/src') 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`]. -- cgit 1.4.1-3-g733a5