Re: [PATCH v6 25/26] kbuild: rust: remove the `alloc` crate and `GlobalAlloc`

From: Benno Lossin
Date: Wed Aug 21 2024 - 17:35:28 EST


On 16.08.24 02:11, Danilo Krummrich wrote:
> @@ -204,9 +152,6 @@ unsafe fn realloc(
> }
> }
>
> -#[global_allocator]
> -static ALLOCATOR: Kmalloc = Kmalloc;
> -
> // See <https://github.com/rust-lang/rust/pull/86844>.
> #[no_mangle]
> static __rust_no_alloc_shim_is_unstable: u8 = 0;

I think Bjorn already mentioned this, but you can also remove this
static, since it was also something that alloc needed.

---
Cheers,
Benno