mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 13:43:17 +00:00
builtin-type-shadow: make lint adhere to lint message convention
This commit is contained in:
parent
0876f17d77
commit
fd379a889e
2 changed files with 2 additions and 2 deletions
|
@ -271,7 +271,7 @@ impl EarlyLintPass for MiscEarlyLints {
|
|||
cx,
|
||||
BUILTIN_TYPE_SHADOW,
|
||||
param.ident.span,
|
||||
&format!("This generic shadows the built-in type `{}`", name),
|
||||
&format!("this generic shadows the built-in type `{}`", name),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
error: This generic shadows the built-in type `u32`
|
||||
error: this generic shadows the built-in type `u32`
|
||||
--> $DIR/builtin-type-shadow.rs:4:8
|
||||
|
|
||||
LL | fn foo<u32>(a: u32) -> u32 {
|
||||
|
|
Loading…
Reference in a new issue