also change "deprecated-attribute" message
This commit is contained in:
parent
fe37ddbd11
commit
5d69ca5e11
@ -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 New Issue
Block a user