]> git.lizzy.rs Git - rust.git/commitdiff
Generalize all error messages with "experimental in alpha release" to
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Wed, 11 Feb 2015 13:13:33 +0000 (14:13 +0100)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Wed, 11 Feb 2015 13:13:33 +0000 (14:13 +0100)
just say "experimental."

src/libsyntax/feature_gate.rs
src/test/compile-fail/feature-gate-box-expr.rs
src/test/compile-fail/feature-gate-box-pat.rs

index 9f10c156518647212e616482bd7f6f5de0545c92..1a328f87c19681a0ab4f6cb809fbb1de2f77a1b5 100644 (file)
@@ -430,7 +430,7 @@ fn visit_expr(&mut self, e: &ast::Expr) {
             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) => {
index bc7a70471cd8a7b8c6b874b0c370092d30f57ebf..39f54be4561692b21185563ff02d1ea47c138124 100644 (file)
 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);
 }
 
index b36bc22b9dcce7da38b82c5ae8651ef1309687fa..e64081823e74c444ba225ee9fc5853e190e0ee2a 100644 (file)
@@ -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);
 }