]> git.lizzy.rs Git - rust.git/commitdiff
Move set_oom_hook and take_oom_hook to a dedicated tracking issue
authorSimon Sapin <simon.sapin@exyr.org>
Thu, 31 May 2018 17:15:11 +0000 (19:15 +0200)
committerSimon Sapin <simon.sapin@exyr.org>
Mon, 11 Jun 2018 20:48:39 +0000 (13:48 -0700)
src/libstd/alloc.rs

index 55325006e748f869f36d46d72a0c34c0d023fc8e..fd829bfe753147da9ade0df05c5b53ae44b4f39e 100644 (file)
@@ -37,7 +37,7 @@
 /// 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() {