add support for `#[global_allocator]` This PR adds support for custom global allocators. Unfortunately, the code given in #1207 still causes errors when used with box. I believe this is because Box is special-cased in miri and stacked borrows.
rustc_mir
rustc_const_eval
rustc_target::abi::LayoutOf
rustc_middle::ty::layout::LayoutOf