Remove deprecated description function of TryReserveError

This commit is contained in:
Lena Wildervanck 2020-03-10 11:19:40 +01:00
parent b900de0f77
commit 88f8b88160

View File

@ -553,11 +553,7 @@ impl Error for char::ParseCharError {
} }
#[unstable(feature = "try_reserve", reason = "new API", issue = "48043")] #[unstable(feature = "try_reserve", reason = "new API", issue = "48043")]
impl Error for alloc::collections::TryReserveError { impl Error for alloc::collections::TryReserveError {}
fn description(&self) -> &str {
"memory allocation failed"
}
}
// Copied from `any.rs`. // Copied from `any.rs`.
impl dyn Error + 'static { impl dyn Error + 'static {