Skip to content

Commit 33766ae

Browse files
authored
Impl Error for FromSecsError without foreign type
Using it through the crate-local path in `std` means that it shouldn't make an "Implementations on Foreign Types" section in the `std::error::Error` docs.
1 parent e7958d3 commit 33766ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/std/src/error.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ use crate::num;
3131
use crate::str;
3232
use crate::string;
3333
use crate::sync::Arc;
34+
use crate::time;
3435

3536
/// `Error` is a trait representing the basic expectations for error values,
3637
/// i.e., values of type `E` in [`Result<T, E>`].
@@ -598,7 +599,7 @@ impl Error for char::ParseCharError {
598599
impl Error for alloc::collections::TryReserveError {}
599600

600601
#[unstable(feature = "duration_checked_float", issue = "83400")]
601-
impl Error for core::time::FromSecsError {}
602+
impl Error for time::FromSecsError {}
602603

603604
// Copied from `any.rs`.
604605
impl dyn Error + 'static {

0 commit comments

Comments
 (0)