Skip to content

Commit

Permalink
Fix grammar of the accepted feature warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
huonw committed Aug 30, 2014
1 parent 8fe47bc commit b79930e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc/front/feature_gate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/gated-bad-feature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b79930e

Please # to comment.