pub macro global_allocator($item:item) {
    ...
}
Available on non-crate feature miri-test-libstd only.
Expand description

Attribute macro applied to a static to register it as a global allocator.

See also std::alloc::GlobalAlloc.