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