mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00

A lot of places had special handling just in case they would get an allocator module even though most of these places could never get one or would have a trivial implementation for the allocator module. Moving all handling of the allocator module to a single place simplifies things a fair bit.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.