Skip to content

Commit 45d6d20

Browse files
committed
Stabilize alloc free functions for the global allocators.
1 parent bbaff03 commit 45d6d20

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/liballoc/alloc.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub struct Global;
5656
/// # Safety
5757
///
5858
/// See [`GlobalAlloc::alloc`].
59-
#[unstable(feature = "allocator_api", issue = "32838")]
59+
#[stable(feature = "global_alloc", since = "1.28.0")]
6060
#[inline]
6161
pub unsafe fn alloc(layout: Layout) -> *mut u8 {
6262
__rust_alloc(layout.size(), layout.align())
@@ -74,7 +74,7 @@ pub unsafe fn alloc(layout: Layout) -> *mut u8 {
7474
/// # Safety
7575
///
7676
/// See [`GlobalAlloc::dealloc`].
77-
#[unstable(feature = "allocator_api", issue = "32838")]
77+
#[stable(feature = "global_alloc", since = "1.28.0")]
7878
#[inline]
7979
pub unsafe fn dealloc(ptr: *mut u8, layout: Layout) {
8080
__rust_dealloc(ptr, layout.size(), layout.align())
@@ -92,7 +92,7 @@ pub unsafe fn dealloc(ptr: *mut u8, layout: Layout) {
9292
/// # Safety
9393
///
9494
/// See [`GlobalAlloc::realloc`].
95-
#[unstable(feature = "allocator_api", issue = "32838")]
95+
#[stable(feature = "global_alloc", since = "1.28.0")]
9696
#[inline]
9797
pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {
9898
__rust_realloc(ptr, layout.size(), layout.align(), new_size)
@@ -110,7 +110,7 @@ pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8
110110
/// # Safety
111111
///
112112
/// See [`GlobalAlloc::alloc_zeroed`].
113-
#[unstable(feature = "allocator_api", issue = "32838")]
113+
#[stable(feature = "global_alloc", since = "1.28.0")]
114114
#[inline]
115115
pub unsafe fn alloc_zeroed(layout: Layout) -> *mut u8 {
116116
__rust_alloc_zeroed(layout.size(), layout.align())

0 commit comments

Comments
 (0)