@@ -45,7 +45,7 @@ use core::alloc::{Alloc, GlobalAlloc, AllocErr, Layout};
45
45
use core:: ptr:: NonNull ;
46
46
47
47
/// The default memory allocator provided by the operating system.
48
- #[ unstable ( feature = "allocator_api " , issue = "32838 " ) ]
48
+ #[ stable ( feature = "alloc_system_type " , since = "1.28.0 " ) ]
49
49
pub struct System ;
50
50
51
51
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
@@ -107,7 +107,7 @@ mod platform {
107
107
use System ;
108
108
use core:: alloc:: { GlobalAlloc , Layout } ;
109
109
110
- #[ unstable ( feature = "allocator_api " , issue = "32838 " ) ]
110
+ #[ stable ( feature = "alloc_system_type " , since = "1.28.0 " ) ]
111
111
unsafe impl GlobalAlloc for System {
112
112
#[ inline]
113
113
unsafe fn alloc ( & self , layout : Layout ) -> * mut u8 {
@@ -240,7 +240,7 @@ mod platform {
240
240
ptr as * mut u8
241
241
}
242
242
243
- #[ unstable ( feature = "allocator_api " , issue = "32838 " ) ]
243
+ #[ stable ( feature = "alloc_system_type " , since = "1.28.0 " ) ]
244
244
unsafe impl GlobalAlloc for System {
245
245
#[ inline]
246
246
unsafe fn alloc ( & self , layout : Layout ) -> * mut u8 {
@@ -304,7 +304,7 @@ mod platform {
304
304
// No need for synchronization here as wasm is currently single-threaded
305
305
static mut DLMALLOC : dlmalloc:: Dlmalloc = dlmalloc:: DLMALLOC_INIT ;
306
306
307
- #[ unstable ( feature = "allocator_api " , issue = "32838 " ) ]
307
+ #[ stable ( feature = "alloc_system_type " , since = "1.28.0 " ) ]
308
308
unsafe impl GlobalAlloc for System {
309
309
#[ inline]
310
310
unsafe fn alloc ( & self , layout : Layout ) -> * mut u8 {
0 commit comments