1717 issue = "32838" ) ]
1818#![ feature( global_allocator) ]
1919#![ feature( allocator_api) ]
20- #![ feature( alloc) ]
2120#![ feature( core_intrinsics) ]
2221#![ feature( staged_api) ]
2322#![ feature( rustc_attrs) ]
@@ -43,9 +42,7 @@ const MIN_ALIGN: usize = 8;
4342#[ allow( dead_code) ]
4443const MIN_ALIGN : usize = 16 ;
4544
46- extern crate alloc;
47-
48- use self :: alloc:: heap:: { Alloc , AllocErr , Layout , Excess , CannotReallocInPlace } ;
45+ use core:: heap:: { Alloc , AllocErr , Layout , Excess , CannotReallocInPlace } ;
4946
5047#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
5148pub struct System ;
@@ -125,7 +122,7 @@ mod platform {
125122
126123 use MIN_ALIGN ;
127124 use System ;
128- use alloc :: heap:: { Alloc , AllocErr , Layout } ;
125+ use core :: heap:: { Alloc , AllocErr , Layout } ;
129126
130127 #[ unstable( feature = "allocator_api" , issue = "32838" ) ]
131128 unsafe impl < ' a > Alloc for & ' a System {
@@ -279,7 +276,7 @@ mod platform {
279276
280277 use MIN_ALIGN ;
281278 use System ;
282- use alloc :: heap:: { Alloc , AllocErr , Layout , CannotReallocInPlace } ;
279+ use core :: heap:: { Alloc , AllocErr , Layout , CannotReallocInPlace } ;
283280
284281 type LPVOID = * mut u8 ;
285282 type HANDLE = LPVOID ;
@@ -491,7 +488,7 @@ mod platform {
491488mod platform {
492489 extern crate dlmalloc;
493490
494- use alloc :: heap:: { Alloc , AllocErr , Layout , Excess , CannotReallocInPlace } ;
491+ use core :: heap:: { Alloc , AllocErr , Layout , Excess , CannotReallocInPlace } ;
495492 use System ;
496493 use self :: dlmalloc:: GlobalDlmalloc ;
497494
0 commit comments