Skip to content

Commit 88f8b88

Browse files
committed
Remove deprecated description function of TryReserveError
1 parent b900de0 commit 88f8b88

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libstd/error.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -553,11 +553,7 @@ impl Error for char::ParseCharError {
553553
}
554554

555555
#[unstable(feature = "try_reserve", reason = "new API", issue = "48043")]
556-
impl Error for alloc::collections::TryReserveError {
557-
fn description(&self) -> &str {
558-
"memory allocation failed"
559-
}
560-
}
556+
impl Error for alloc::collections::TryReserveError {}
561557

562558
// Copied from `any.rs`.
563559
impl dyn Error + 'static {

0 commit comments

Comments
 (0)