about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-02-11 14:13:33 +0100
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-02-11 14:13:33 +0100
commitcdd8a5ad743338d246e3db31ab0b5b0d448a2146 (patch)
tree4ce0ec089d5011ea1c72f7d8f70832d69601bd5c
parentdbe082869925a62adf58c40984b0329a57425b08 (diff)
downloadrust-cdd8a5ad743338d246e3db31ab0b5b0d448a2146.tar.gz
rust-cdd8a5ad743338d246e3db31ab0b5b0d448a2146.zip
Generalize all error messages with "experimental in alpha release" to
just say "experimental."
-rw-r--r--src/libsyntax/feature_gate.rs2
-rw-r--r--src/test/compile-fail/feature-gate-box-expr.rs6
-rw-r--r--src/test/compile-fail/feature-gate-box-pat.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index 9f10c156518..1a328f87c19 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -430,7 +430,7 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
             ast::ExprBox(..) | ast::ExprUnary(ast::UnOp::UnUniq, _) => {
                 self.gate_feature("box_syntax",
                                   e.span,
-                                  "box expression syntax is experimental in alpha release; \
+                                  "box expression syntax is experimental; \
                                    you can call `Box::new` instead.");
             }
             ast::ExprLit(ref lit) => {
diff --git a/src/test/compile-fail/feature-gate-box-expr.rs b/src/test/compile-fail/feature-gate-box-expr.rs
index bc7a70471cd..39f54be4561 100644
--- a/src/test/compile-fail/feature-gate-box-expr.rs
+++ b/src/test/compile-fail/feature-gate-box-expr.rs
@@ -11,13 +11,13 @@
 fn main() {
     use std::boxed::HEAP;
 
-    let x = box 'c'; //~ ERROR box expression syntax is experimental in alpha release
+    let x = box 'c'; //~ ERROR box expression syntax is experimental
     println!("x: {}", x);
 
-    let x = box () 'c'; //~ ERROR box expression syntax is experimental in alpha release
+    let x = box () 'c'; //~ ERROR box expression syntax is experimental
     println!("x: {}", x);
 
-    let x = box (HEAP) 'c'; //~ ERROR box expression syntax is experimental in alpha release
+    let x = box (HEAP) 'c'; //~ ERROR box expression syntax is experimental
     println!("x: {}", x);
 }
 
diff --git a/src/test/compile-fail/feature-gate-box-pat.rs b/src/test/compile-fail/feature-gate-box-pat.rs
index b36bc22b9dc..e64081823e7 100644
--- a/src/test/compile-fail/feature-gate-box-pat.rs
+++ b/src/test/compile-fail/feature-gate-box-pat.rs
@@ -9,6 +9,6 @@
 // except according to those terms.
 
 fn main() {
-    let box x = Box::new('c'); //~ ERROR box pattern syntax is experimental in alpha release
+    let box x = Box::new('c'); //~ ERROR box pattern syntax is experimental
     println!("x: {}", x);
 }