Skip to content

Commit 125b259

Browse files
committed
Stabilize alloc::oom (but not set_oom_hook or take_oom_hook)
1 parent 45d6d20 commit 125b259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/alloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ pub(crate) unsafe fn box_free<T: ?Sized>(ptr: Unique<T>) {
186186
/// and abort the process.
187187
/// It can be replaced with [`std::alloc::set_oom_hook`]
188188
/// and [`std::alloc::take_oom_hook`].
189-
#[unstable(feature = "allocator_api", issue = "32838")]
189+
#[stable(feature = "global_alloc", since = "1.28.0")]
190190
#[rustc_allocator_nounwind]
191191
pub fn oom(layout: Layout) -> ! {
192192
#[allow(improper_ctypes)]

0 commit comments

Comments
 (0)