We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8801d89 commit 886482fCopy full SHA for 886482f
src/librustc/middle/lint.rs
@@ -1063,7 +1063,7 @@ fn check_attrs_usage(cx: &Context, attrs: &[ast::Attribute]) {
1063
if name.equiv(crate_attr) {
1064
let msg = match attr.node.style {
1065
ast::AttrOuter => "crate-level attribute should be an inner attribute: \
1066
- add semicolon at end",
+ add an exclamation mark: #![foo]",
1067
ast::AttrInner => "crate-level attribute should be in the root module",
1068
};
1069
cx.span_lint(AttributeUsage, attr.span, msg);
0 commit comments