]> git.lizzy.rs Git - rust.git/commitdiff
Fix grammar of the accepted feature warning.
authorHuon Wilson <dbau.pp+github@gmail.com>
Fri, 29 Aug 2014 08:03:13 +0000 (18:03 +1000)
committerHuon Wilson <dbau.pp+github@gmail.com>
Sat, 30 Aug 2014 16:25:19 +0000 (02:25 +1000)
src/librustc/front/feature_gate.rs
src/test/compile-fail/gated-bad-feature.rs

index 931f0312f579c809686a3e7d76c223c06e7acbd1..ec680eaa49c94622fd53b5dff4b43d2182b70697 100644 (file)
@@ -403,7 +403,7 @@ pub fn check_crate(sess: &Session, krate: &ast::Crate) {
                             sess.span_err(mi.span, "feature has been removed");
                         }
                         Some(&(_, Accepted)) => {
-                            sess.span_warn(mi.span, "feature has added to rust, \
+                            sess.span_warn(mi.span, "feature has been added to Rust, \
                                                      directive not necessary");
                         }
                         None => {
index 5a68afaceb93a59f3f694ea13d8a82f43ae271b5..39cd3e3b86afefb7857816323cb2dad10abf979e 100644 (file)
@@ -20,4 +20,4 @@
 #![feature = "foo"] //~ ERROR: malformed feature
 
 #![feature(test_removed_feature)] //~ ERROR: feature has been removed
-#![feature(test_accepted_feature)] //~ WARNING: feature has added
+#![feature(test_accepted_feature)] //~ WARNING: feature has been added