Stabilize alloc::oom (but not set_oom_hook or take_oom_hook)

This commit is contained in:
Simon Sapin 2018-05-31 19:13:57 +02:00
parent 45d6d207b0
commit 125b259b35
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ pub(crate) unsafe fn box_free<T: ?Sized>(ptr: Unique<T>) {
/// and abort the process.
/// It can be replaced with [`std::alloc::set_oom_hook`]
/// and [`std::alloc::take_oom_hook`].
#[unstable(feature = "allocator_api", issue = "32838")]
#[stable(feature = "global_alloc", since = "1.28.0")]
#[rustc_allocator_nounwind]
pub fn oom(layout: Layout) -> ! {
#[allow(improper_ctypes)]