about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-07-20 15:50:33 -0700
committerAlex Crichton <alex@alexcrichton.com>2017-07-25 07:09:31 -0700
commit20b4f86d13b177bf66d1fa4fefbfcc1bb552cb94 (patch)
treec53a883de937df40bc562f244fef8c5e5dddc903 /src/test
parentdaeb6077c87dab99f2d301d06965558b8d064c28 (diff)
downloadrust-20b4f86d13b177bf66d1fa4fefbfcc1bb552cb94.tar.gz
rust-20b4f86d13b177bf66d1fa4fefbfcc1bb552cb94.zip
Stabilize the `compile_error_macro` feature
Stabilizes:

* `compile_error!` as a macro defined by rustc

Closes #40872
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/compile_error_macro.rs2
-rw-r--r--src/test/compile-fail/feature-gate-compile_error.rs13
2 files changed, 0 insertions, 15 deletions
diff --git a/src/test/compile-fail/compile_error_macro.rs b/src/test/compile-fail/compile_error_macro.rs
index 2a2c3fd8092..e9c5993098c 100644
--- a/src/test/compile-fail/compile_error_macro.rs
+++ b/src/test/compile-fail/compile_error_macro.rs
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(compile_error)]
-
 fn main() {
     compile_error!("a very descriptive error message"); //~ ERROR: a very descriptive error message
 }
diff --git a/src/test/compile-fail/feature-gate-compile_error.rs b/src/test/compile-fail/feature-gate-compile_error.rs
deleted file mode 100644
index 545c6852961..00000000000
--- a/src/test/compile-fail/feature-gate-compile_error.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-fn main() {
-    compile_error!("test"); //~ ERROR: `compile_error` is not stable enough
-}