From b79930eeb94ebc0422f919eab4fdf910d2d0fc3c Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Fri, 29 Aug 2014 18:03:13 +1000 Subject: [PATCH] Fix grammar of the accepted feature warning. --- src/librustc/front/feature_gate.rs | 2 +- src/test/compile-fail/gated-bad-feature.rs | 2 +- 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