about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEduard Bopp <eduard.bopp@aepsil0n.de>2014-04-09 20:16:44 +0200
committerAlex Crichton <alex@alexcrichton.com>2014-04-10 15:21:58 -0700
commit342e8b59be97c28be38d54bec10e511ae17da129 (patch)
treea3159dcb7fe42243fb4d9511d26c4243f327309c /src
parent81350327790fa7bfacb7c32603ca61eb0004b5b2 (diff)
downloadrust-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.rs2
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);