also change "deprecated-attribute" message

This commit is contained in:
Matthias Krüger 2020-07-23 23:46:52 +02:00
parent fe37ddbd11
commit 5d69ca5e11
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -1,4 +1,4 @@
error: Usage of deprecated attribute
error: usage of deprecated attribute
--> $DIR/renamed_builtin_attr.rs:3:11
|
LL | #[clippy::cyclomatic_complexity = "1"]