]> git.lizzy.rs Git - rust.git/commit
rustc: Clean up allocator injection logic
authorAlex Crichton <alex@alexcrichton.com>
Sat, 3 Nov 2018 17:51:31 +0000 (10:51 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 11 Nov 2018 17:22:28 +0000 (09:22 -0800)
commitd3939322e3273059bdfedec52cb8d6f78476af7c
treee9b40cb8689d67f3dac071622b2d0f7c1f9b32cc
parenta88613c86901083dd9f87c43f41d6c0f84f88dee
rustc: Clean up allocator injection logic

This commit cleans up allocator injection logic found in the compiler
around selecting the global allocator. It turns out that now that
jemalloc is gone the compiler never actually injects anything! This
means that basically everything around loading crates here and there can
be easily pruned.

This also removes the `exe_allocation_crate` option from custom target
specs as it's no longer used by the compiler anywhere.
29 files changed:
src/liballoc_system/lib.rs
src/librustc/middle/dependency_format.rs
src/librustc/session/mod.rs
src/librustc_metadata/creader.rs
src/librustc_target/spec/aarch64_unknown_freebsd.rs
src/librustc_target/spec/aarch64_unknown_linux_gnu.rs
src/librustc_target/spec/aarch64_unknown_linux_musl.rs
src/librustc_target/spec/hermit_base.rs
src/librustc_target/spec/l4re_base.rs
src/librustc_target/spec/mips64_unknown_linux_gnuabi64.rs
src/librustc_target/spec/mips64el_unknown_linux_gnuabi64.rs
src/librustc_target/spec/mips_unknown_linux_gnu.rs
src/librustc_target/spec/mips_unknown_linux_musl.rs
src/librustc_target/spec/mips_unknown_linux_uclibc.rs
src/librustc_target/spec/mipsel_unknown_linux_gnu.rs
src/librustc_target/spec/mipsel_unknown_linux_musl.rs
src/librustc_target/spec/mipsel_unknown_linux_uclibc.rs
src/librustc_target/spec/mod.rs
src/librustc_target/spec/powerpc64_unknown_linux_gnu.rs
src/librustc_target/spec/powerpc64le_unknown_linux_gnu.rs
src/librustc_target/spec/powerpc64le_unknown_linux_musl.rs
src/librustc_target/spec/powerpc_unknown_linux_gnu.rs
src/librustc_target/spec/powerpc_unknown_linux_gnuspe.rs
src/librustc_target/spec/powerpc_unknown_netbsd.rs
src/librustc_target/spec/s390x_unknown_linux_gnu.rs
src/librustc_target/spec/sparc64_unknown_linux_gnu.rs
src/librustc_target/spec/sparc_unknown_linux_gnu.rs
src/librustc_target/spec/sparcv9_sun_solaris.rs
src/librustc_target/spec/x86_64_rumprun_netbsd.rs