]> git.lizzy.rs Git - rust.git/commitdiff
Fix outdated lint warning about inner attribute
authorEduard Bopp <eduard.bopp@aepsil0n.de>
Wed, 9 Apr 2014 18:16:44 +0000 (20:16 +0200)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 10 Apr 2014 22:21:58 +0000 (15:21 -0700)
It suggested adding a semicolon instead of the new syntax using an exclamation
mark.

src/librustc/middle/lint.rs

index 22182d7e87e13bcda571bb26db21eefbaee20945..24dea77c17019e486af4fb6157aad73a8fc6001c 100644 (file)
@@ -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);