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")]
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 {