mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Remove some '#[feature]' attributes for stabilized features
This commit is contained in:
parent
999690ce5d
commit
fd6e08a1e6
@ -61,7 +61,6 @@ crate.io’s `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;
|
||||||
|
@ -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)]
|
||||||
|
@ -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]
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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]
|
||||||
|
@ -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)]
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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:
|
||||||
|
@ -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]
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user