Skip to content

Commit

Permalink
Fix outdated lint warning about inner attribute
Browse files Browse the repository at this point in the history
It suggested adding a semicolon instead of the new syntax using an exclamation
mark.
  • Loading branch information
milibopp authored and alexcrichton committed Apr 10, 2014
1 parent 8135032 commit 342e8b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/middle/lint.rs
Expand Up @@ -1063,7 +1063,7 @@ fn check_attrs_usage(cx: &Context, attrs: &[ast::Attribute]) {
if name.equiv(crate_attr) {
let msg = match attr.node.style {
ast::AttrOuter => "crate-level attribute should be an inner attribute: \
add semicolon at end",
add an exclamation mark: #![foo]",
ast::AttrInner => "crate-level attribute should be in the root module",
};
cx.span_lint(AttributeUsage, attr.span, msg);
Expand Down

0 comments on commit 342e8b5

Please sign in to comment.