Remove some '#[feature]' attributes for stabilized features

This commit is contained in:
Simon Sapin 2018-05-31 19:31:00 +02:00
parent 999690ce5d
commit fd6e08a1e6
20 changed files with 9 additions and 33 deletions

View File

@ -61,7 +61,6 @@ crate.ios `jemallocator` crate provides equivalent functionality.)
jemallocator = "0.1" jemallocator = "0.1"
``` ```
```rust,ignore ```rust,ignore
#![feature(global_allocator)]
#![crate_type = "dylib"] #![crate_type = "dylib"]
extern crate jemallocator; extern crate jemallocator;

View File

@ -14,7 +14,6 @@
reason = "this library is unlikely to be stabilized in its current \ reason = "this library is unlikely to be stabilized in its current \
form or name", form or name",
issue = "32838")] issue = "32838")]
#![feature(global_allocator)]
#![feature(allocator_api)] #![feature(allocator_api)]
#![feature(core_intrinsics)] #![feature(core_intrinsics)]
#![feature(staged_api)] #![feature(staged_api)]

View File

@ -10,8 +10,7 @@
#![sanitizer_runtime] #![sanitizer_runtime]
#![feature(alloc_system)] #![feature(alloc_system)]
#![feature(allocator_api)] #![cfg_attr(stage0, feature(global_allocator))]
#![feature(global_allocator)]
#![feature(sanitizer_runtime)] #![feature(sanitizer_runtime)]
#![feature(staged_api)] #![feature(staged_api)]
#![no_std] #![no_std]

View File

@ -9,10 +9,9 @@
// except according to those terms. // except according to those terms.
#![sanitizer_runtime] #![sanitizer_runtime]
#![feature(sanitizer_runtime)]
#![feature(alloc_system)] #![feature(alloc_system)]
#![feature(allocator_api)] #![cfg_attr(stage0, feature(global_allocator))]
#![feature(global_allocator)] #![feature(sanitizer_runtime)]
#![feature(staged_api)] #![feature(staged_api)]
#![no_std] #![no_std]
#![unstable(feature = "sanitizer_runtime_lib", #![unstable(feature = "sanitizer_runtime_lib",

View File

@ -9,10 +9,9 @@
// except according to those terms. // except according to those terms.
#![sanitizer_runtime] #![sanitizer_runtime]
#![feature(sanitizer_runtime)]
#![feature(alloc_system)] #![feature(alloc_system)]
#![feature(allocator_api)] #![cfg_attr(stage0, feature(global_allocator))]
#![feature(global_allocator)] #![feature(sanitizer_runtime)]
#![feature(staged_api)] #![feature(staged_api)]
#![no_std] #![no_std]
#![unstable(feature = "sanitizer_runtime_lib", #![unstable(feature = "sanitizer_runtime_lib",

View File

@ -10,8 +10,7 @@
#![sanitizer_runtime] #![sanitizer_runtime]
#![feature(alloc_system)] #![feature(alloc_system)]
#![feature(allocator_api)] #![cfg_attr(stage0, feature(global_allocator))]
#![feature(global_allocator)]
#![feature(sanitizer_runtime)] #![feature(sanitizer_runtime)]
#![feature(staged_api)] #![feature(staged_api)]
#![no_std] #![no_std]

View File

@ -263,7 +263,6 @@
#![feature(fnbox)] #![feature(fnbox)]
#![feature(futures_api)] #![feature(futures_api)]
#![feature(hashmap_internals)] #![feature(hashmap_internals)]
#![feature(heap_api)]
#![feature(int_error_internals)] #![feature(int_error_internals)]
#![feature(integer_atomics)] #![feature(integer_atomics)]
#![feature(into_cow)] #![feature(into_cow)]

View File

@ -10,7 +10,6 @@
// no-prefer-dynamic // no-prefer-dynamic
#![feature(global_allocator, allocator_api)]
#![crate_type = "rlib"] #![crate_type = "rlib"]
use std::alloc::System; use std::alloc::System;

View File

@ -10,7 +10,6 @@
// no-prefer-dynamic // no-prefer-dynamic
#![feature(global_allocator, allocator_api)]
#![crate_type = "rlib"] #![crate_type = "rlib"]
use std::alloc::System; use std::alloc::System;

View File

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(global_allocator)]
#[global_allocator] #[global_allocator]
fn foo() {} //~ ERROR: allocators must be statics fn foo() {} //~ ERROR: allocators must be statics

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(global_allocator, heap_api)]
#[global_allocator] #[global_allocator]
static A: usize = 0; static A: usize = 0;
//~^ the trait bound `usize: //~^ the trait bound `usize:

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(global_allocator, allocator_api)]
use std::alloc::System; use std::alloc::System;
#[global_allocator] #[global_allocator]

View File

@ -12,8 +12,6 @@
// no-prefer-dynamic // no-prefer-dynamic
// error-pattern: the #[global_allocator] in // error-pattern: the #[global_allocator] in
#![feature(global_allocator, allocator_api)]
extern crate system_allocator; extern crate system_allocator;
use std::alloc::System; use std::alloc::System;

View File

@ -13,7 +13,6 @@
// no-prefer-dynamic // no-prefer-dynamic
// error-pattern: the #[global_allocator] in // error-pattern: the #[global_allocator] in
#![feature(global_allocator)]
extern crate system_allocator; extern crate system_allocator;
extern crate system_allocator2; extern crate system_allocator2;

View File

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(global_allocator)]
#![crate_type = "cdylib"] #![crate_type = "cdylib"]
extern crate bar; extern crate bar;

View File

@ -8,11 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(global_allocator, alloc_system, allocator_api)] use std::alloc::System;
extern crate alloc_system;
use std::collections::VecDeque; use std::collections::VecDeque;
use alloc_system::System;
#[global_allocator] #[global_allocator]
static ALLOCATOR: System = System; static ALLOCATOR: System = System;

View File

@ -10,7 +10,6 @@
// no-prefer-dynamic // no-prefer-dynamic
#![feature(global_allocator)]
#![crate_type = "rlib"] #![crate_type = "rlib"]
extern crate custom; extern crate custom;

View File

@ -11,7 +11,7 @@
// aux-build:helper.rs // aux-build:helper.rs
// no-prefer-dynamic // no-prefer-dynamic
#![feature(global_allocator, heap_api, allocator_api)] #![feature(allocator_api)]
extern crate helper; extern crate helper;

View File

@ -12,7 +12,7 @@
// aux-build:helper.rs // aux-build:helper.rs
// no-prefer-dynamic // no-prefer-dynamic
#![feature(global_allocator, heap_api, allocator_api)] #![feature(allocator_api)]
extern crate custom; extern crate custom;
extern crate helper; extern crate helper;

View File

@ -11,8 +11,6 @@
// compile-flags: -Z thinlto -C codegen-units=2 // compile-flags: -Z thinlto -C codegen-units=2
// min-llvm-version 4.0 // min-llvm-version 4.0
#![feature(allocator_api, global_allocator)]
#[global_allocator] #[global_allocator]
static A: std::alloc::System = std::alloc::System; static A: std::alloc::System = std::alloc::System;