diff --git a/src/libstd/error.rs b/src/libstd/error.rs index ec1c444bcf8c8..8040a5323e726 100644 --- a/src/libstd/error.rs +++ b/src/libstd/error.rs @@ -67,6 +67,7 @@ pub trait Error: Debug + Display { /// } /// ``` #[stable(feature = "rust1", since = "1.0.0")] + #[doc(hidden)] fn description(&self) -> &str { "description() is deprecated; use Display" } @@ -132,6 +133,7 @@ pub trait Error: Debug + Display { #[stable(feature = "rust1", since = "1.0.0")] #[rustc_deprecated(since = "1.33.0", reason = "replaced by Error::source, which can support \ downcasting")] + #[doc(hidden)] fn cause(&self) -> Option<&dyn Error> { self.source() }