@@ -205,10 +205,10 @@ pub mod escape;
205205pub mod eta_reduction;
206206pub mod eval_order_dependence;
207207pub mod excessive_bools;
208- pub mod excessive_precision;
209208pub mod exit;
210209pub mod explicit_write;
211210pub mod fallible_impl_from;
211+ pub mod float_literal;
212212pub mod format;
213213pub mod formatting;
214214pub mod functions;
@@ -534,10 +534,11 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
534534 & eval_order_dependence:: EVAL_ORDER_DEPENDENCE ,
535535 & excessive_bools:: FN_PARAMS_EXCESSIVE_BOOLS ,
536536 & excessive_bools:: STRUCT_EXCESSIVE_BOOLS ,
537- & excessive_precision:: EXCESSIVE_PRECISION ,
538537 & exit:: EXIT ,
539538 & explicit_write:: EXPLICIT_WRITE ,
540539 & fallible_impl_from:: FALLIBLE_IMPL_FROM ,
540+ & float_literal:: EXCESSIVE_PRECISION ,
541+ & float_literal:: LOSSY_FLOAT_LITERAL ,
541542 & format:: USELESS_FORMAT ,
542543 & formatting:: POSSIBLE_MISSING_COMMA ,
543544 & formatting:: SUSPICIOUS_ASSIGNMENT_FORMATTING ,
@@ -836,7 +837,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
836837 store. register_late_pass ( || box eq_op:: EqOp ) ;
837838 store. register_late_pass ( || box enum_glob_use:: EnumGlobUse ) ;
838839 store. register_late_pass ( || box enum_clike:: UnportableVariant ) ;
839- store. register_late_pass ( || box excessive_precision :: ExcessivePrecision ) ;
840+ store. register_late_pass ( || box float_literal :: FloatLiteral ) ;
840841 let verbose_bit_mask_threshold = conf. verbose_bit_mask_threshold ;
841842 store. register_late_pass ( move || box bit_mask:: BitMask :: new ( verbose_bit_mask_threshold) ) ;
842843 store. register_late_pass ( || box ptr:: Ptr ) ;
@@ -1016,6 +1017,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10161017 LintId :: of( & dbg_macro:: DBG_MACRO ) ,
10171018 LintId :: of( & else_if_without_else:: ELSE_IF_WITHOUT_ELSE ) ,
10181019 LintId :: of( & exit:: EXIT ) ,
1020+ LintId :: of( & float_literal:: LOSSY_FLOAT_LITERAL ) ,
10191021 LintId :: of( & implicit_return:: IMPLICIT_RETURN ) ,
10201022 LintId :: of( & indexing_slicing:: INDEXING_SLICING ) ,
10211023 LintId :: of( & inherent_impl:: MULTIPLE_INHERENT_IMPL ) ,
@@ -1160,8 +1162,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11601162 LintId :: of( & eta_reduction:: REDUNDANT_CLOSURE ) ,
11611163 LintId :: of( & eval_order_dependence:: DIVERGING_SUB_EXPRESSION ) ,
11621164 LintId :: of( & eval_order_dependence:: EVAL_ORDER_DEPENDENCE ) ,
1163- LintId :: of( & excessive_precision:: EXCESSIVE_PRECISION ) ,
11641165 LintId :: of( & explicit_write:: EXPLICIT_WRITE ) ,
1166+ LintId :: of( & float_literal:: EXCESSIVE_PRECISION ) ,
11651167 LintId :: of( & format:: USELESS_FORMAT ) ,
11661168 LintId :: of( & formatting:: POSSIBLE_MISSING_COMMA ) ,
11671169 LintId :: of( & formatting:: SUSPICIOUS_ASSIGNMENT_FORMATTING ) ,
@@ -1386,6 +1388,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13861388 LintId :: of( & enum_variants:: MODULE_INCEPTION ) ,
13871389 LintId :: of( & eq_op:: OP_REF ) ,
13881390 LintId :: of( & eta_reduction:: REDUNDANT_CLOSURE ) ,
1391+ LintId :: of( & float_literal:: EXCESSIVE_PRECISION ) ,
13891392 LintId :: of( & formatting:: SUSPICIOUS_ASSIGNMENT_FORMATTING ) ,
13901393 LintId :: of( & formatting:: SUSPICIOUS_ELSE_FORMATTING ) ,
13911394 LintId :: of( & formatting:: SUSPICIOUS_UNARY_OP_FORMATTING ) ,
@@ -1565,7 +1568,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15651568 LintId :: of( & enum_clike:: ENUM_CLIKE_UNPORTABLE_VARIANT ) ,
15661569 LintId :: of( & eq_op:: EQ_OP ) ,
15671570 LintId :: of( & erasing_op:: ERASING_OP ) ,
1568- LintId :: of( & excessive_precision:: EXCESSIVE_PRECISION ) ,
15691571 LintId :: of( & formatting:: POSSIBLE_MISSING_COMMA ) ,
15701572 LintId :: of( & functions:: NOT_UNSAFE_PTR_ARG_DEREF ) ,
15711573 LintId :: of( & indexing_slicing:: OUT_OF_BOUNDS_INDEXING ) ,
0 commit comments