multiple_inherent_impl: make lint adhere to lint message convention

This commit is contained in:
Matthias Krüger 2020-08-11 15:28:51 +02:00
parent bdf4dc3abd
commit 1f17c3b02b
2 changed files with 6 additions and 6 deletions

View File

@ -81,9 +81,9 @@ impl<'tcx> LateLintPass<'tcx> for MultipleInherentImpl {
cx,
MULTIPLE_INHERENT_IMPL,
*additional_span,
"Multiple implementations of this structure",
"multiple implementations of this structure",
|diag| {
diag.span_note(*initial_span, "First implementation here");
diag.span_note(*initial_span, "first implementation here");
},
)
})

View File

@ -1,4 +1,4 @@
error: Multiple implementations of this structure
error: multiple implementations of this structure
--> $DIR/impl.rs:10:1
|
LL | / impl MyStruct {
@ -7,7 +7,7 @@ LL | | }
| |_^
|
= note: `-D clippy::multiple-inherent-impl` implied by `-D warnings`
note: First implementation here
note: first implementation here
--> $DIR/impl.rs:6:1
|
LL | / impl MyStruct {
@ -15,7 +15,7 @@ LL | | fn first() {}
LL | | }
| |_^
error: Multiple implementations of this structure
error: multiple implementations of this structure
--> $DIR/impl.rs:24:5
|
LL | / impl super::MyStruct {
@ -23,7 +23,7 @@ LL | | fn third() {}
LL | | }
| |_____^
|
note: First implementation here
note: first implementation here
--> $DIR/impl.rs:6:1
|
LL | / impl MyStruct {