]> git.lizzy.rs Git - rust.git/commitdiff
RawVec doesn't always abort on allocation errors
authorJonathan Behrens <fintelia@gmail.com>
Tue, 8 Jan 2019 22:21:30 +0000 (17:21 -0500)
committerGitHub <noreply@github.com>
Tue, 8 Jan 2019 22:21:30 +0000 (17:21 -0500)
src/liballoc/raw_vec.rs

index c05452bcf4d5d0c21442869f10ec6f2c2195d41e..5e4aac9ce7871bc45a3276a4e732b5d11d153566 100644 (file)
@@ -22,7 +22,7 @@
 /// * Catches all overflows in capacity computations (promotes them to "capacity overflow" panics)
 /// * Guards against 32-bit systems allocating more than isize::MAX bytes
 /// * Guards against overflowing your length
-/// * Aborts on OOM
+/// * Aborts on OOM or calls handle_alloc_error as applicable
 /// * Avoids freeing Unique::empty()
 /// * Contains a ptr::Unique and thus endows the user with all related benefits
 ///