Skip to content

Commit 5d69ca5

Browse files
committed
also change "deprecated-attribute" message
1 parent fe37ddb commit 5d69ca5

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
@@ -80,7 +80,7 @@ pub fn get_attr<'a>(
8080
},
8181
|deprecation_status| {
8282
let mut diag =
83-
sess.struct_span_err(attr_segments[1].ident.span, "Usage of deprecated attribute");
83+
sess.struct_span_err(attr_segments[1].ident.span, "usage of deprecated attribute");
8484
match *deprecation_status {
8585
DeprecationStatus::Deprecated => {
8686
diag.emit();

tests/ui/renamed_builtin_attr.stderr

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

0 commit comments

Comments
 (0)