Skip to content

Commit 77727fe

Browse files
authored
Rollup merge of #57456 - fintelia:patch-4, r=dtolnay
RawVec doesn't always abort on allocation errors
2 parents 5fa44c4 + aa9bc68 commit 77727fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/raw_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use boxed::Box;
2222
/// * Catches all overflows in capacity computations (promotes them to "capacity overflow" panics)
2323
/// * Guards against 32-bit systems allocating more than isize::MAX bytes
2424
/// * Guards against overflowing your length
25-
/// * Aborts on OOM
25+
/// * Aborts on OOM or calls handle_alloc_error as applicable
2626
/// * Avoids freeing Unique::empty()
2727
/// * Contains a ptr::Unique and thus endows the user with all related benefits
2828
///

0 commit comments

Comments
 (0)