File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ static HOOK: AtomicPtr<()> = AtomicPtr::new(ptr::null_mut());
37
37
/// about the allocation that failed.
38
38
///
39
39
/// The OOM hook is a global resource.
40
- #[ unstable( feature = "allocator_api " , issue = "32838 " ) ]
40
+ #[ unstable( feature = "oom_hook " , issue = "51245 " ) ]
41
41
pub fn set_oom_hook ( hook : fn ( Layout ) ) {
42
42
HOOK . store ( hook as * mut ( ) , Ordering :: SeqCst ) ;
43
43
}
@@ -47,7 +47,7 @@ pub fn set_oom_hook(hook: fn(Layout)) {
47
47
/// *See also the function [`set_oom_hook`].*
48
48
///
49
49
/// 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 " ) ]
51
51
pub fn take_oom_hook ( ) -> fn ( Layout ) {
52
52
let hook = HOOK . swap ( ptr:: null_mut ( ) , Ordering :: SeqCst ) ;
53
53
if hook. is_null ( ) {
You can’t perform that action at this time.
0 commit comments