Skip to content

Commit fd6e08a

Browse files
committed
Remove some '#[feature]' attributes for stabilized features
1 parent 999690c commit fd6e08a

File tree

20 files changed

+9
-33
lines changed

20 files changed

+9
-33
lines changed

src/doc/unstable-book/src/library-features/alloc-system.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ crate.io’s `jemallocator` crate provides equivalent functionality.)
6161
jemallocator = "0.1"
6262
```
6363
```rust,ignore
64-
#![feature(global_allocator)]
6564
#![crate_type = "dylib"]
6665
6766
extern crate jemallocator;

src/liballoc_system/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
reason = "this library is unlikely to be stabilized in its current \
1515
form or name",
1616
issue = "32838")]
17-
#![feature(global_allocator)]
1817
#![feature(allocator_api)]
1918
#![feature(core_intrinsics)]
2019
#![feature(staged_api)]

src/librustc_asan/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111
#![sanitizer_runtime]
1212
#![feature(alloc_system)]
13-
#![feature(allocator_api)]
14-
#![feature(global_allocator)]
13+
#![cfg_attr(stage0, feature(global_allocator))]
1514
#![feature(sanitizer_runtime)]
1615
#![feature(staged_api)]
1716
#![no_std]

src/librustc_lsan/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
// except according to those terms.
1010

1111
#![sanitizer_runtime]
12-
#![feature(sanitizer_runtime)]
1312
#![feature(alloc_system)]
14-
#![feature(allocator_api)]
15-
#![feature(global_allocator)]
13+
#![cfg_attr(stage0, feature(global_allocator))]
14+
#![feature(sanitizer_runtime)]
1615
#![feature(staged_api)]
1716
#![no_std]
1817
#![unstable(feature = "sanitizer_runtime_lib",

src/librustc_msan/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
// except according to those terms.
1010

1111
#![sanitizer_runtime]
12-
#![feature(sanitizer_runtime)]
1312
#![feature(alloc_system)]
14-
#![feature(allocator_api)]
15-
#![feature(global_allocator)]
13+
#![cfg_attr(stage0, feature(global_allocator))]
14+
#![feature(sanitizer_runtime)]
1615
#![feature(staged_api)]
1716
#![no_std]
1817
#![unstable(feature = "sanitizer_runtime_lib",

src/librustc_tsan/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111
#![sanitizer_runtime]
1212
#![feature(alloc_system)]
13-
#![feature(allocator_api)]
14-
#![feature(global_allocator)]
13+
#![cfg_attr(stage0, feature(global_allocator))]
1514
#![feature(sanitizer_runtime)]
1615
#![feature(staged_api)]
1716
#![no_std]

src/libstd/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@
263263
#![feature(fnbox)]
264264
#![feature(futures_api)]
265265
#![feature(hashmap_internals)]
266-
#![feature(heap_api)]
267266
#![feature(int_error_internals)]
268267
#![feature(integer_atomics)]
269268
#![feature(into_cow)]

src/test/compile-fail/allocator/auxiliary/system-allocator.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
// no-prefer-dynamic
1212

13-
#![feature(global_allocator, allocator_api)]
1413
#![crate_type = "rlib"]
1514

1615
use std::alloc::System;

src/test/compile-fail/allocator/auxiliary/system-allocator2.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
// no-prefer-dynamic
1212

13-
#![feature(global_allocator, allocator_api)]
1413
#![crate_type = "rlib"]
1514

1615
use std::alloc::System;

src/test/compile-fail/allocator/function-allocator.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(global_allocator)]
1211

1312
#[global_allocator]
1413
fn foo() {} //~ ERROR: allocators must be statics

0 commit comments

Comments
 (0)