From: Jonathan Behrens Date: Tue, 8 Jan 2019 22:21:30 +0000 (-0500) Subject: RawVec doesn't always abort on allocation errors X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=aa9bc68a1e50a7141ca8d6aaf90b104a435861fa;p=rust.git RawVec doesn't always abort on allocation errors --- 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 @@ /// * 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 ///