File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ test = false
13
13
14
14
[dependencies ]
15
15
core = { path = " ../../../libcore" }
16
+ alloc = { path = " ../../../liballoc" }
Original file line number Diff line number Diff line change 1
1
//! Kernel Mode Allocator
2
2
3
- // The compiler needs to be instructed that this crate is an allocator in order
4
- // to realize that when this is linked in another allocator like jemalloc should
5
- // not be linked in
6
- #![ feature( allocator) ]
7
- #![ allocator]
3
+ #![ crate_name = "alloc_system" ]
4
+ #![ crate_type = "rlib" ]
8
5
9
6
// Allocators are not allowed to depend on the standard library which in turn
10
7
// requires an allocator in order to avoid circular dependencies. This crate,
11
8
// however, can use all of libcore.
12
9
#![ no_std]
13
10
14
- #![ crate_name = "alloc_system" ]
15
- #![ crate_type = "rlib" ]
11
+ // The compiler needs to be instructed that this crate is an allocator in order
12
+ // to realize that when this is linked in another allocator like jemalloc should
13
+ // not be linked in
14
+ #![ feature( global_allocator) ]
15
+ #![ feature( default_lib_allocator) ]
16
+ //#![allocator]
17
+
18
+
16
19
17
20
mod pool;
18
21
You can’t perform that action at this time.
0 commit comments