11mod builtin_type_shadow;
22mod double_neg;
3+ mod literal_suffix;
34mod mixed_case_hex_literals;
45mod redundant_pattern;
56mod unneeded_field_pattern;
67mod unneeded_wildcard_pattern;
7- mod unseparated_literal_suffix;
88mod zero_prefixed_literal;
99
1010use clippy_utils:: diagnostics:: span_lint;
@@ -142,7 +142,7 @@ declare_clippy_lint! {
142142 /// // Good
143143 /// let y = 123832i32;
144144 /// ```
145- pub UNSEPARATED_LITERAL_SUFFIX ,
145+ pub LITERAL_SUFFIX ,
146146 restriction,
147147 "literals whose suffix is not separated by an underscore"
148148}
@@ -279,7 +279,7 @@ impl_lint_pass!(MiscEarlyLints => [
279279 DUPLICATE_UNDERSCORE_ARGUMENT ,
280280 DOUBLE_NEG ,
281281 MIXED_CASE_HEX_LITERALS ,
282- UNSEPARATED_LITERAL_SUFFIX ,
282+ LITERAL_SUFFIX ,
283283 ZERO_PREFIXED_LITERAL ,
284284 BUILTIN_TYPE_SHADOW ,
285285 REDUNDANT_PATTERN ,
@@ -369,7 +369,7 @@ impl MiscEarlyLints {
369369 LitIntType :: Unsigned ( ty) => ty. name_str ( ) ,
370370 LitIntType :: Unsuffixed => "" ,
371371 } ;
372- unseparated_literal_suffix :: check ( cx, lit, & lit_snip, suffix, "integer" , self . literal_suffix_style ) ;
372+ literal_suffix :: check ( cx, lit, & lit_snip, suffix, "integer" , self . literal_suffix_style ) ;
373373 if lit_snip. starts_with ( "0x" ) {
374374 mixed_case_hex_literals:: check ( cx, lit, suffix, & lit_snip) ;
375375 } else if lit_snip. starts_with ( "0b" ) || lit_snip. starts_with ( "0o" ) {
@@ -379,7 +379,7 @@ impl MiscEarlyLints {
379379 }
380380 } else if let LitKind :: Float ( _, LitFloatType :: Suffixed ( float_ty) ) = lit. kind {
381381 let suffix = float_ty. name_str ( ) ;
382- unseparated_literal_suffix :: check ( cx, lit, & lit_snip, suffix, "float" , self . literal_suffix_style ) ;
382+ literal_suffix :: check ( cx, lit, & lit_snip, suffix, "float" , self . literal_suffix_style ) ;
383383 }
384384 }
385385}
0 commit comments