mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
also change "deprecated-attribute" message
This commit is contained in:
parent
fe37ddbd11
commit
5d69ca5e11
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue