jemallocator = "0.1"
```
```rust,ignore
-#![feature(global_allocator)]
#![crate_type = "dylib"]
extern crate jemallocator;
reason = "this library is unlikely to be stabilized in its current \
form or name",
issue = "32838")]
-#![feature(global_allocator)]
#![feature(allocator_api)]
#![feature(core_intrinsics)]
#![feature(staged_api)]
#![sanitizer_runtime]
#![feature(alloc_system)]
-#![feature(allocator_api)]
-#![feature(global_allocator)]
+#![cfg_attr(stage0, feature(global_allocator))]
#![feature(sanitizer_runtime)]
#![feature(staged_api)]
#![no_std]
// except according to those terms.
#![sanitizer_runtime]
-#![feature(sanitizer_runtime)]
#![feature(alloc_system)]
-#![feature(allocator_api)]
-#![feature(global_allocator)]
+#![cfg_attr(stage0, feature(global_allocator))]
+#![feature(sanitizer_runtime)]
#![feature(staged_api)]
#![no_std]
#![unstable(feature = "sanitizer_runtime_lib",
// except according to those terms.
#![sanitizer_runtime]
-#![feature(sanitizer_runtime)]
#![feature(alloc_system)]
-#![feature(allocator_api)]
-#![feature(global_allocator)]
+#![cfg_attr(stage0, feature(global_allocator))]
+#![feature(sanitizer_runtime)]
#![feature(staged_api)]
#![no_std]
#![unstable(feature = "sanitizer_runtime_lib",
#![sanitizer_runtime]
#![feature(alloc_system)]
-#![feature(allocator_api)]
-#![feature(global_allocator)]
+#![cfg_attr(stage0, feature(global_allocator))]
#![feature(sanitizer_runtime)]
#![feature(staged_api)]
#![no_std]
#![feature(fnbox)]
#![feature(futures_api)]
#![feature(hashmap_internals)]
-#![feature(heap_api)]
#![feature(int_error_internals)]
#![feature(integer_atomics)]
#![feature(into_cow)]
// no-prefer-dynamic
-#![feature(global_allocator, allocator_api)]
#![crate_type = "rlib"]
use std::alloc::System;
// no-prefer-dynamic
-#![feature(global_allocator, allocator_api)]
#![crate_type = "rlib"]
use std::alloc::System;
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(global_allocator)]
#[global_allocator]
fn foo() {} //~ ERROR: allocators must be statics
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(global_allocator, heap_api)]
-
#[global_allocator]
static A: usize = 0;
//~^ the trait bound `usize:
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(global_allocator, allocator_api)]
-
use std::alloc::System;
#[global_allocator]
// no-prefer-dynamic
// error-pattern: the #[global_allocator] in
-#![feature(global_allocator, allocator_api)]
-
extern crate system_allocator;
use std::alloc::System;
// no-prefer-dynamic
// error-pattern: the #[global_allocator] in
-#![feature(global_allocator)]
extern crate system_allocator;
extern crate system_allocator2;
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(global_allocator)]
#![crate_type = "cdylib"]
extern crate bar;
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(global_allocator, alloc_system, allocator_api)]
-extern crate alloc_system;
-
+use std::alloc::System;
use std::collections::VecDeque;
-use alloc_system::System;
#[global_allocator]
static ALLOCATOR: System = System;
// no-prefer-dynamic
-#![feature(global_allocator)]
#![crate_type = "rlib"]
extern crate custom;
// aux-build:helper.rs
// no-prefer-dynamic
-#![feature(global_allocator, heap_api, allocator_api)]
+#![feature(allocator_api)]
extern crate helper;
// aux-build:helper.rs
// no-prefer-dynamic
-#![feature(global_allocator, heap_api, allocator_api)]
+#![feature(allocator_api)]
extern crate custom;
extern crate helper;
// compile-flags: -Z thinlto -C codegen-units=2
// min-llvm-version 4.0
-#![feature(allocator_api, global_allocator)]
-
#[global_allocator]
static A: std::alloc::System = std::alloc::System;