mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-31 00:53:48 +00:00
multiple_inherent_impl: make lint adhere to lint message convention
This commit is contained in:
parent
bdf4dc3abd
commit
1f17c3b02b
@ -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");
|
||||
},
|
||||
)
|
||||
})
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user