about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-01-15 12:42:07 +0100
committerGitHub <noreply@github.com>2019-01-15 12:42:07 +0100
commit77727feb180493bfce998d4fcba9dfd7ca5f0637 (patch)
treed950879bf755cfa04c54bd7d4df833be2b5f8fbd /src/liballoc
parent5fa44c4b5a31b9de0f8306336109fa0913fccfe7 (diff)
parentaa9bc68a1e50a7141ca8d6aaf90b104a435861fa (diff)
downloadrust-77727feb180493bfce998d4fcba9dfd7ca5f0637.tar.gz
rust-77727feb180493bfce998d4fcba9dfd7ca5f0637.zip
Rollup merge of #57456 - fintelia:patch-4, r=dtolnay
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
 ///