Skip to content

Commit 90d1972

Browse files
committed
Move set_oom_hook and take_oom_hook to a dedicated tracking issue
1 parent 125b259 commit 90d1972

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/alloc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static HOOK: AtomicPtr<()> = AtomicPtr::new(ptr::null_mut());
3737
/// about the allocation that failed.
3838
///
3939
/// The OOM hook is a global resource.
40-
#[unstable(feature = "allocator_api", issue = "32838")]
40+
#[unstable(feature = "oom_hook", issue = "51245")]
4141
pub fn set_oom_hook(hook: fn(Layout)) {
4242
HOOK.store(hook as *mut (), Ordering::SeqCst);
4343
}
@@ -47,7 +47,7 @@ pub fn set_oom_hook(hook: fn(Layout)) {
4747
/// *See also the function [`set_oom_hook`].*
4848
///
4949
/// If no custom hook is registered, the default hook will be returned.
50-
#[unstable(feature = "allocator_api", issue = "32838")]
50+
#[unstable(feature = "oom_hook", issue = "51245")]
5151
pub fn take_oom_hook() -> fn(Layout) {
5252
let hook = HOOK.swap(ptr::null_mut(), Ordering::SeqCst);
5353
if hook.is_null() {

0 commit comments

Comments
 (0)