diff options
Diffstat (limited to 'src/libstd/error.rs')
| -rw-r--r-- | src/libstd/error.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/error.rs b/src/libstd/error.rs index aec85b660ca..41891e2a4c2 100644 --- a/src/libstd/error.rs +++ b/src/libstd/error.rs @@ -196,7 +196,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::<Self>() } |
