From 90d19728fc93157465c1a586dbd35c6dc4cf78c9 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Thu, 31 May 2018 19:15:11 +0200 Subject: Move set_oom_hook and take_oom_hook to a dedicated tracking issue --- src/libstd/alloc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/alloc.rs b/src/libstd/alloc.rs index 55325006e74..fd829bfe753 100644 --- a/src/libstd/alloc.rs +++ b/src/libstd/alloc.rs @@ -37,7 +37,7 @@ static HOOK: AtomicPtr<()> = AtomicPtr::new(ptr::null_mut()); /// about the allocation that failed. /// /// The OOM hook is a global resource. -#[unstable(feature = "allocator_api", issue = "32838")] +#[unstable(feature = "oom_hook", issue = "51245")] pub fn set_oom_hook(hook: fn(Layout)) { HOOK.store(hook as *mut (), Ordering::SeqCst); } @@ -47,7 +47,7 @@ pub fn set_oom_hook(hook: fn(Layout)) { /// *See also the function [`set_oom_hook`].* /// /// If no custom hook is registered, the default hook will be returned. -#[unstable(feature = "allocator_api", issue = "32838")] +#[unstable(feature = "oom_hook", issue = "51245")] pub fn take_oom_hook() -> fn(Layout) { let hook = HOOK.swap(ptr::null_mut(), Ordering::SeqCst); if hook.is_null() { -- cgit 1.4.1-3-g733a5