diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2018-05-31 19:15:11 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2018-06-11 13:48:39 -0700 |
| commit | 90d19728fc93157465c1a586dbd35c6dc4cf78c9 (patch) | |
| tree | b9071e30fcb41bee4e93f7d6ac632e8017dbefcf | |
| parent | 125b259b3567f6370d5c242eb102ca0957ffe017 (diff) | |
| download | rust-90d19728fc93157465c1a586dbd35c6dc4cf78c9.tar.gz rust-90d19728fc93157465c1a586dbd35c6dc4cf78c9.zip | |
Move set_oom_hook and take_oom_hook to a dedicated tracking issue
| -rw-r--r-- | src/libstd/alloc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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() { |
