macro_rules! no_allocator {
() => { ... };
}Expand description
Set up a no-op global allocator that aborts on allocation.
Useful for no_std programs that must not allocate. Any attempt to
allocate will immediately abort the program rather than returning a
null pointer (which violates the GlobalAlloc contract).