diff --git a/src/libstd/error.rs b/src/libstd/error.rs index 081fff0562b16..7cb830e751a77 100644 --- a/src/libstd/error.rs +++ b/src/libstd/error.rs @@ -197,7 +197,10 @@ pub trait Error: Debug + Display { fn source(&self) -> Option<&(dyn Error + 'static)> { None } /// Gets the `TypeId` of `self` - #[stable(feature = "error_type_id", since = "1.34.0")] + #[doc(hidden)] + #[unstable(feature = "error_type_id", + reason = "this is memory unsafe to override in user code", + issue = "60784")] fn type_id(&self) -> TypeId where Self: 'static { TypeId::of::() }