about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-08-29 18:03:13 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2014-08-31 02:25:19 +1000
commitb79930eeb94ebc0422f919eab4fdf910d2d0fc3c (patch)
tree08cd6e6a2090d6ea68bf95c691c96f0efa6caf52 /src
parent8fe47bc3bb34d7a1ce7bbd2c6fc5ea7a6dbf57a4 (diff)
downloadrust-b79930eeb94ebc0422f919eab4fdf910d2d0fc3c.tar.gz
rust-b79930eeb94ebc0422f919eab4fdf910d2d0fc3c.zip
Fix grammar of the accepted feature warning.
Diffstat (limited to 'src')
-rw-r--r--src/librustc/front/feature_gate.rs2
-rw-r--r--src/test/compile-fail/gated-bad-feature.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/front/feature_gate.rs b/src/librustc/front/feature_gate.rs
index 931f0312f57..ec680eaa49c 100644
--- a/src/librustc/front/feature_gate.rs
+++ b/src/librustc/front/feature_gate.rs
@@ -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 => {
diff --git a/src/test/compile-fail/gated-bad-feature.rs b/src/test/compile-fail/gated-bad-feature.rs
index 5a68afaceb9..39cd3e3b86a 100644
--- a/src/test/compile-fail/gated-bad-feature.rs
+++ b/src/test/compile-fail/gated-bad-feature.rs
@@ -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