Skip to content

Commit 5f00d65

Browse files
committed
Move set_oom_hook and take_oom_hook to a dedicated tracking issue
1 parent d4c25b9 commit 5f00d65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/alloc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static HOOK: AtomicPtr<()> = AtomicPtr::new(ptr::null_mut());
3636
/// about the allocation that failed.
3737
///
3838
/// The OOM hook is a global resource.
39-
#[unstable(feature = "allocator_api", issue = "32838")]
39+
#[unstable(feature = "oom_hook", issue = "51245")]
4040
pub fn set_oom_hook(hook: fn(Layout) -> !) {
4141
HOOK.store(hook as *mut (), Ordering::SeqCst);
4242
}
@@ -46,7 +46,7 @@ pub fn set_oom_hook(hook: fn(Layout) -> !) {
4646
/// *See also the function [`set_oom_hook`].*
4747
///
4848
/// If no custom hook is registered, the default hook will be returned.
49-
#[unstable(feature = "allocator_api", issue = "32838")]
49+
#[unstable(feature = "oom_hook", issue = "51245")]
5050
pub fn take_oom_hook() -> fn(Layout) -> ! {
5151
let hook = HOOK.swap(ptr::null_mut(), Ordering::SeqCst);
5252
if hook.is_null() {

0 commit comments

Comments
 (0)