Skip to content

Commit bf317ce

Browse files
miliboppalexcrichton
authored andcommitted
---
yaml --- r: 110569 b: refs/heads/master c: 342e8b5 h: refs/heads/master i: 110567: 035db89 v: v3
1 parent a6012fa commit bf317ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 81350327790fa7bfacb7c32603ca61eb0004b5b2
2+
refs/heads/master: 342e8b59be97c28be38d54bec10e511ae17da129
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: e263ef1df7b892ed29e53313565eb05ab75e52f4
55
refs/heads/try: 597a645456b55e1c886ce15d23a192abdf4d55cf

trunk/src/librustc/middle/lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ fn check_attrs_usage(cx: &Context, attrs: &[ast::Attribute]) {
10631063
if name.equiv(crate_attr) {
10641064
let msg = match attr.node.style {
10651065
ast::AttrOuter => "crate-level attribute should be an inner attribute: \
1066-
add semicolon at end",
1066+
add an exclamation mark: #![foo]",
10671067
ast::AttrInner => "crate-level attribute should be in the root module",
10681068
};
10691069
cx.span_lint(AttributeUsage, attr.span, msg);

0 commit comments

Comments
 (0)