]> git.lizzy.rs Git - rust.git/commitdiff
Remove some '#[feature]' attributes for stabilized features
authorSimon Sapin <simon.sapin@exyr.org>
Thu, 31 May 2018 17:31:00 +0000 (19:31 +0200)
committerSimon Sapin <simon.sapin@exyr.org>
Mon, 11 Jun 2018 20:48:57 +0000 (13:48 -0700)
20 files changed:
src/doc/unstable-book/src/library-features/alloc-system.md
src/liballoc_system/lib.rs
src/librustc_asan/lib.rs
src/librustc_lsan/lib.rs
src/librustc_msan/lib.rs
src/librustc_tsan/lib.rs
src/libstd/lib.rs
src/test/compile-fail/allocator/auxiliary/system-allocator.rs
src/test/compile-fail/allocator/auxiliary/system-allocator2.rs
src/test/compile-fail/allocator/function-allocator.rs
src/test/compile-fail/allocator/not-an-allocator.rs
src/test/compile-fail/allocator/two-allocators.rs
src/test/compile-fail/allocator/two-allocators2.rs
src/test/compile-fail/allocator/two-allocators3.rs
src/test/run-make-fulldeps/std-core-cycle/foo.rs
src/test/run-pass-valgrind/issue-44800.rs
src/test/run-pass/allocator/auxiliary/custom-as-global.rs
src/test/run-pass/allocator/custom.rs
src/test/run-pass/allocator/xcrate-use.rs
src/test/run-pass/thin-lto-global-allocator.rs

index 9effab202cabd909b8c270110f2ff1df5f7fa568..5663b354ac1004e452a48c735652dd452fb7b12d 100644 (file)
@@ -61,7 +61,6 @@ crate.io’s `jemallocator` crate provides equivalent functionality.)
 jemallocator = "0.1"
 ```
 ```rust,ignore
-#![feature(global_allocator)]
 #![crate_type = "dylib"]
 
 extern crate jemallocator;
index a592868cbefc113797ffcf5bae439221a8bc4e0d..2b748c4702d114c2b27f68eddfff1604f22170c6 100644 (file)
@@ -14,7 +14,6 @@
             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)]
index 3429e3bda0f6770bfcb49f84be94a35bc0e23312..a7aeed76309591c2bf38a23620502844fd774dcd 100644 (file)
@@ -10,8 +10,7 @@
 
 #![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]
index 81a09e7e21a642b6d8cefd8d9c177940496ea59b..a7aeed76309591c2bf38a23620502844fd774dcd 100644 (file)
@@ -9,10 +9,9 @@
 // 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",
index 81a09e7e21a642b6d8cefd8d9c177940496ea59b..a7aeed76309591c2bf38a23620502844fd774dcd 100644 (file)
@@ -9,10 +9,9 @@
 // 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",
index 3429e3bda0f6770bfcb49f84be94a35bc0e23312..a7aeed76309591c2bf38a23620502844fd774dcd 100644 (file)
@@ -10,8 +10,7 @@
 
 #![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]
index 3972763a051f5e884432db43230293fb2ed6d371..fa3d39cb1d82f28a622437ac4c382246b7197ff5 100644 (file)
 #![feature(fnbox)]
 #![feature(futures_api)]
 #![feature(hashmap_internals)]
-#![feature(heap_api)]
 #![feature(int_error_internals)]
 #![feature(integer_atomics)]
 #![feature(into_cow)]
index 37e64ba7ea1e094610bf4254b62d47170555fa5a..e5650d5b7b0994d67a74255901110bd1c18812ef 100644 (file)
@@ -10,7 +10,6 @@
 
 // no-prefer-dynamic
 
-#![feature(global_allocator, allocator_api)]
 #![crate_type = "rlib"]
 
 use std::alloc::System;
index 37e64ba7ea1e094610bf4254b62d47170555fa5a..e5650d5b7b0994d67a74255901110bd1c18812ef 100644 (file)
@@ -10,7 +10,6 @@
 
 // no-prefer-dynamic
 
-#![feature(global_allocator, allocator_api)]
 #![crate_type = "rlib"]
 
 use std::alloc::System;
index 50f82607b53f6c3d3789a2ad2b89329932e2e457..989c102b86e699e72c15b4530862844d6d5a3cee 100644 (file)
@@ -8,7 +8,6 @@
 // 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
index 140cad22f34e42ae52b5b94ffe1b071fd9c3ff41..6559335960ac5e1804c40d6304ee87c18c7d804a 100644 (file)
@@ -8,8 +8,6 @@
 // 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:
index 5aa6b5d67773f4eae277d18505e1cd1a41839a2b..7a97a11df20334d7e88e1de082249393cfba59c2 100644 (file)
@@ -8,8 +8,6 @@
 // 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]
index ec5d985a94383cc4de3123fcc7cff1776725b7c3..e747140dfe560f2c3c140282a1ba94d55bf0445e 100644 (file)
@@ -12,8 +12,6 @@
 // no-prefer-dynamic
 // error-pattern: the #[global_allocator] in
 
-#![feature(global_allocator, allocator_api)]
-
 extern crate system_allocator;
 
 use std::alloc::System;
index c310d94f6dfd87efb23da2607fcaf7f7b4a80fe9..dd86b02bd20ec98c2fe1041bc7d9d126aac2c6a6 100644 (file)
@@ -13,7 +13,6 @@
 // no-prefer-dynamic
 // error-pattern: the #[global_allocator] in
 
-#![feature(global_allocator)]
 
 extern crate system_allocator;
 extern crate system_allocator2;
index 04742bba3c8773ebac939aac51e0e24e2cd078f1..46047fb835d757242a52257babc410f4c19099cd 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(global_allocator)]
 #![crate_type = "cdylib"]
 
 extern crate bar;
index cfde6f32f666f39a103d8041fb941a823a6b53aa..29cfae1692924a089214da02fd97c4e31e2646ef 100644 (file)
@@ -8,11 +8,8 @@
 // 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;
index 538f36faadf2c4f67796f4b135602d7231c152f4..a3f05a01c5ad0d47bbbd13d37ddcea50e5a09aac 100644 (file)
@@ -10,7 +10,6 @@
 
 // no-prefer-dynamic
 
-#![feature(global_allocator)]
 #![crate_type = "rlib"]
 
 extern crate custom;
index 5da13bd4cb9ab51dc092cfc91eaaf53b723e9665..3a7f8fa86209401e72f73f110ccd8bce78d02f94 100644 (file)
@@ -11,7 +11,7 @@
 // aux-build:helper.rs
 // no-prefer-dynamic
 
-#![feature(global_allocator, heap_api, allocator_api)]
+#![feature(allocator_api)]
 
 extern crate helper;
 
index 78d604a710857370e55107997ab1851bf46d8ea2..482e3b04aae2dbe363e5262e7cb65eae196e1df2 100644 (file)
@@ -12,7 +12,7 @@
 // aux-build:helper.rs
 // no-prefer-dynamic
 
-#![feature(global_allocator, heap_api, allocator_api)]
+#![feature(allocator_api)]
 
 extern crate custom;
 extern crate helper;
index a0534ff6735a50a166889173b5d720ccef0fb897..3a0e2fe01db055ce62388095eca1225f80ae01a6 100644 (file)
@@ -11,8 +11,6 @@
 // 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;