builtin-type-shadow: make lint adhere to lint message convention

This commit is contained in:
Matthias Krüger 2020-07-23 15:16:10 +02:00
parent 0876f17d77
commit fd379a889e
2 changed files with 2 additions and 2 deletions

View file

@ -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),
);
}
}

View file

@ -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 {