Make StdError identical to core::error::Error on feature="unstable"

This commit is contained in:
David Tolnay
2022-12-16 10:11:37 -08:00
parent e7060ba83d
commit df40f80fcf
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -115,10 +115,13 @@ mod impossible;
pub use self::impossible::Impossible;
#[cfg(all(feature = "unstable", not(feature = "std")))]
#[doc(inline)]
pub use core::error::Error as StdError;
#[cfg(feature = "std")]
#[doc(no_inline)]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
#[cfg(not(any(feature = "std", feature = "unstable")))]
#[doc(no_inline)]
pub use std_error::Error as StdError;