@@ -6,11 +6,6 @@ LL | #[global_allocator]
66LL | static A: usize = 0;
77 | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
88 |
9- note: required by `std::alloc::GlobalAlloc::alloc`
10- --> $SRC_DIR/core/src/alloc/global.rs:LL:COL
11- |
12- LL | unsafe fn alloc(&self, layout: Layout) -> *mut u8;
13- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
149 = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
1510
1611error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
@@ -21,11 +16,6 @@ LL | #[global_allocator]
2116LL | static A: usize = 0;
2217 | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
2318 |
24- note: required by `std::alloc::GlobalAlloc::dealloc`
25- --> $SRC_DIR/core/src/alloc/global.rs:LL:COL
26- |
27- LL | unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout);
28- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2919 = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
3020
3121error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
@@ -36,11 +26,6 @@ LL | #[global_allocator]
3626LL | static A: usize = 0;
3727 | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
3828 |
39- note: required by `std::alloc::GlobalAlloc::realloc`
40- --> $SRC_DIR/core/src/alloc/global.rs:LL:COL
41- |
42- LL | unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {
43- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4429 = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
4530
4631error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
@@ -51,11 +36,6 @@ LL | #[global_allocator]
5136LL | static A: usize = 0;
5237 | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
5338 |
54- note: required by `std::alloc::GlobalAlloc::alloc_zeroed`
55- --> $SRC_DIR/core/src/alloc/global.rs:LL:COL
56- |
57- LL | unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 {
58- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5939 = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
6040
6141error: aborting due to 4 previous errors
0 commit comments