about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorJonathan Behrens <fintelia@gmail.com>2019-01-08 17:21:30 -0500
committerGitHub <noreply@github.com>2019-01-08 17:21:30 -0500
commitaa9bc68a1e50a7141ca8d6aaf90b104a435861fa (patch)
treeaafd7df749bb85f436b7e304026a2f18cbcf763c /src/liballoc
parentd22fa2d87d03d19fdb1359faab9ec5e74eff26b3 (diff)
downloadrust-aa9bc68a1e50a7141ca8d6aaf90b104a435861fa.tar.gz
rust-aa9bc68a1e50a7141ca8d6aaf90b104a435861fa.zip
RawVec doesn't always abort on allocation errors
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/raw_vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/raw_vec.rs b/src/liballoc/raw_vec.rs
index c05452bcf4d..5e4aac9ce78 100644
--- a/src/liballoc/raw_vec.rs
+++ b/src/liballoc/raw_vec.rs
@@ -22,7 +22,7 @@ use boxed::Box;
 /// * 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
 ///