diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-11-03 11:15:48 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-11-11 09:22:28 -0800 |
| commit | cc7590341a6ac213909d0ef56a7ebc2834274c8b (patch) | |
| tree | 12aef157ad50b7c1161027a33f4a028e1628fabd /src/librustc_tsan | |
| parent | d3939322e3273059bdfedec52cb8d6f78476af7c (diff) | |
| download | rust-cc7590341a6ac213909d0ef56a7ebc2834274c8b.tar.gz rust-cc7590341a6ac213909d0ef56a7ebc2834274c8b.zip | |
std: Delete the `alloc_system` crate
This commit deletes the `alloc_system` crate from the standard distribution. This unstable crate is no longer needed in the modern stable global allocator world, but rather its functionality is folded directly into the standard library. The standard library was already the only stable location to access this crate, and as a result this should not affect any stable code.
Diffstat (limited to 'src/librustc_tsan')
| -rw-r--r-- | src/librustc_tsan/Cargo.toml | 1 | ||||
| -rw-r--r-- | src/librustc_tsan/lib.rs | 8 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/librustc_tsan/Cargo.toml b/src/librustc_tsan/Cargo.toml index 8bb67c0bbac..baadb64511a 100644 --- a/src/librustc_tsan/Cargo.toml +++ b/src/librustc_tsan/Cargo.toml @@ -15,6 +15,5 @@ cmake = "0.1.18" [dependencies] alloc = { path = "../liballoc" } -alloc_system = { path = "../liballoc_system" } core = { path = "../libcore" } compiler_builtins = { path = "../rustc/compiler_builtins_shim" } diff --git a/src/librustc_tsan/lib.rs b/src/librustc_tsan/lib.rs index 7b845e631ff..47f917e40c1 100644 --- a/src/librustc_tsan/lib.rs +++ b/src/librustc_tsan/lib.rs @@ -9,7 +9,6 @@ // except according to those terms. #![sanitizer_runtime] -#![feature(alloc_system)] #![feature(nll)] #![feature(sanitizer_runtime)] #![feature(staged_api)] @@ -17,10 +16,3 @@ #![unstable(feature = "sanitizer_runtime_lib", reason = "internal implementation detail of sanitizers", issue = "0")] - -extern crate alloc_system; - -use alloc_system::System; - -#[global_allocator] -static ALLOC: System = System; |
