about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libstd/error.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libstd/error.rs b/src/libstd/error.rs
index 61944edf142..ba13a8a06df 100644
--- a/src/libstd/error.rs
+++ b/src/libstd/error.rs
@@ -553,11 +553,7 @@ impl Error for char::ParseCharError {
 }
 
 #[unstable(feature = "try_reserve", reason = "new API", issue = "48043")]
-impl Error for alloc::collections::TryReserveError {
-    fn description(&self) -> &str {
-        "memory allocation failed"
-    }
-}
+impl Error for alloc::collections::TryReserveError {}
 
 // Copied from `any.rs`.
 impl dyn Error + 'static {