Remove deprecated description function of TryReserveError
This commit is contained in:
parent
b900de0f77
commit
88f8b88160
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user