@@ -657,7 +657,7 @@ impl EarlyLintPass for AnonymousParameters {
657657 )
658658 . span_suggestion (
659659 arg. pat . span ,
660- "Try naming the parameter or explicitly \
660+ "try naming the parameter or explicitly \
661661 ignoring it",
662662 format ! ( "_: {}" , ty_snip) ,
663663 appl,
@@ -1934,21 +1934,21 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for InvalidValue {
19341934 use rustc:: ty:: TyKind :: * ;
19351935 match ty. kind {
19361936 // Primitive types that don't like 0 as a value.
1937- Ref ( ..) => Some ( ( format ! ( "References must be non-null" ) , None ) ) ,
1937+ Ref ( ..) => Some ( ( format ! ( "references must be non-null" ) , None ) ) ,
19381938 Adt ( ..) if ty. is_box ( ) => Some ( ( format ! ( "`Box` must be non-null" ) , None ) ) ,
1939- FnPtr ( ..) => Some ( ( format ! ( "Function pointers must be non-null" ) , None ) ) ,
1940- Never => Some ( ( format ! ( "The never type ( `!`) has no valid value" ) , None ) ) ,
1939+ FnPtr ( ..) => Some ( ( format ! ( "function pointers must be non-null" ) , None ) ) ,
1940+ Never => Some ( ( format ! ( "the `!` type has no valid value" ) , None ) ) ,
19411941 RawPtr ( tm) if matches ! ( tm. ty. kind, Dynamic ( ..) ) =>
19421942 // raw ptr to dyn Trait
19431943 {
1944- Some ( ( format ! ( "The vtable of a wide raw pointer must be non-null" ) , None ) )
1944+ Some ( ( format ! ( "the vtable of a wide raw pointer must be non-null" ) , None ) )
19451945 }
19461946 // Primitive types with other constraints.
19471947 Bool if init == InitKind :: Uninit => {
1948- Some ( ( format ! ( "Booleans must be `true` or `false`" ) , None ) )
1948+ Some ( ( format ! ( "booleans must be either `true` or `false`" ) , None ) )
19491949 }
19501950 Char if init == InitKind :: Uninit => {
1951- Some ( ( format ! ( "Characters must be a valid unicode codepoint" ) , None ) )
1951+ Some ( ( format ! ( "characters must be a valid Unicode codepoint" ) , None ) )
19521952 }
19531953 // Recurse and checks for some compound types.
19541954 Adt ( adt_def, substs) if !adt_def. is_union ( ) => {
0 commit comments