Skip to content

Commit 7954c22

Browse files
committed
unknown: make lint adhere to lint message convention
1 parent b36a6c9 commit 7954c22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/utils/attrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub fn get_attr<'a>(
7575
})
7676
.map_or_else(
7777
|| {
78-
sess.span_err(attr_segments[1].ident.span, "Usage of unknown attribute");
78+
sess.span_err(attr_segments[1].ident.span, "usage of unknown attribute");
7979
false
8080
},
8181
|deprecation_status| {

tests/ui/unknown_attribute.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: Usage of unknown attribute
1+
error: usage of unknown attribute
22
--> $DIR/unknown_attribute.rs:1:11
33
|
44
LL | #[clippy::unknown]

0 commit comments

Comments
 (0)