diff options
| author | Eduard Bopp <eduard.bopp@aepsil0n.de> | 2014-04-09 20:16:44 +0200 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-04-10 15:21:58 -0700 |
| commit | 342e8b59be97c28be38d54bec10e511ae17da129 (patch) | |
| tree | a3159dcb7fe42243fb4d9511d26c4243f327309c /src | |
| parent | 81350327790fa7bfacb7c32603ca61eb0004b5b2 (diff) | |
| download | rust-342e8b59be97c28be38d54bec10e511ae17da129.tar.gz rust-342e8b59be97c28be38d54bec10e511ae17da129.zip | |
Fix outdated lint warning about inner attribute
It suggested adding a semicolon instead of the new syntax using an exclamation mark.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/middle/lint.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/middle/lint.rs b/src/librustc/middle/lint.rs index 22182d7e87e..24dea77c170 100644 --- a/src/librustc/middle/lint.rs +++ b/src/librustc/middle/lint.rs @@ -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); |
