@@ -205,10 +205,10 @@ pub mod escape;
205
205
pub mod eta_reduction;
206
206
pub mod eval_order_dependence;
207
207
pub mod excessive_bools;
208
- pub mod excessive_precision;
209
208
pub mod exit;
210
209
pub mod explicit_write;
211
210
pub mod fallible_impl_from;
211
+ pub mod float_literal;
212
212
pub mod format;
213
213
pub mod formatting;
214
214
pub mod functions;
@@ -534,10 +534,11 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
534
534
& eval_order_dependence:: EVAL_ORDER_DEPENDENCE ,
535
535
& excessive_bools:: FN_PARAMS_EXCESSIVE_BOOLS ,
536
536
& excessive_bools:: STRUCT_EXCESSIVE_BOOLS ,
537
- & excessive_precision:: EXCESSIVE_PRECISION ,
538
537
& exit:: EXIT ,
539
538
& explicit_write:: EXPLICIT_WRITE ,
540
539
& fallible_impl_from:: FALLIBLE_IMPL_FROM ,
540
+ & float_literal:: EXCESSIVE_PRECISION ,
541
+ & float_literal:: LOSSY_FLOAT_LITERAL ,
541
542
& format:: USELESS_FORMAT ,
542
543
& formatting:: POSSIBLE_MISSING_COMMA ,
543
544
& formatting:: SUSPICIOUS_ASSIGNMENT_FORMATTING ,
@@ -836,7 +837,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
836
837
store. register_late_pass ( || box eq_op:: EqOp ) ;
837
838
store. register_late_pass ( || box enum_glob_use:: EnumGlobUse ) ;
838
839
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 ) ;
840
841
let verbose_bit_mask_threshold = conf. verbose_bit_mask_threshold ;
841
842
store. register_late_pass ( move || box bit_mask:: BitMask :: new ( verbose_bit_mask_threshold) ) ;
842
843
store. register_late_pass ( || box ptr:: Ptr ) ;
@@ -1016,6 +1017,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1016
1017
LintId :: of( & dbg_macro:: DBG_MACRO ) ,
1017
1018
LintId :: of( & else_if_without_else:: ELSE_IF_WITHOUT_ELSE ) ,
1018
1019
LintId :: of( & exit:: EXIT ) ,
1020
+ LintId :: of( & float_literal:: LOSSY_FLOAT_LITERAL ) ,
1019
1021
LintId :: of( & implicit_return:: IMPLICIT_RETURN ) ,
1020
1022
LintId :: of( & indexing_slicing:: INDEXING_SLICING ) ,
1021
1023
LintId :: of( & inherent_impl:: MULTIPLE_INHERENT_IMPL ) ,
@@ -1160,8 +1162,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1160
1162
LintId :: of( & eta_reduction:: REDUNDANT_CLOSURE ) ,
1161
1163
LintId :: of( & eval_order_dependence:: DIVERGING_SUB_EXPRESSION ) ,
1162
1164
LintId :: of( & eval_order_dependence:: EVAL_ORDER_DEPENDENCE ) ,
1163
- LintId :: of( & excessive_precision:: EXCESSIVE_PRECISION ) ,
1164
1165
LintId :: of( & explicit_write:: EXPLICIT_WRITE ) ,
1166
+ LintId :: of( & float_literal:: EXCESSIVE_PRECISION ) ,
1165
1167
LintId :: of( & format:: USELESS_FORMAT ) ,
1166
1168
LintId :: of( & formatting:: POSSIBLE_MISSING_COMMA ) ,
1167
1169
LintId :: of( & formatting:: SUSPICIOUS_ASSIGNMENT_FORMATTING ) ,
@@ -1386,6 +1388,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1386
1388
LintId :: of( & enum_variants:: MODULE_INCEPTION ) ,
1387
1389
LintId :: of( & eq_op:: OP_REF ) ,
1388
1390
LintId :: of( & eta_reduction:: REDUNDANT_CLOSURE ) ,
1391
+ LintId :: of( & float_literal:: EXCESSIVE_PRECISION ) ,
1389
1392
LintId :: of( & formatting:: SUSPICIOUS_ASSIGNMENT_FORMATTING ) ,
1390
1393
LintId :: of( & formatting:: SUSPICIOUS_ELSE_FORMATTING ) ,
1391
1394
LintId :: of( & formatting:: SUSPICIOUS_UNARY_OP_FORMATTING ) ,
@@ -1565,7 +1568,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1565
1568
LintId :: of( & enum_clike:: ENUM_CLIKE_UNPORTABLE_VARIANT ) ,
1566
1569
LintId :: of( & eq_op:: EQ_OP ) ,
1567
1570
LintId :: of( & erasing_op:: ERASING_OP ) ,
1568
- LintId :: of( & excessive_precision:: EXCESSIVE_PRECISION ) ,
1569
1571
LintId :: of( & formatting:: POSSIBLE_MISSING_COMMA ) ,
1570
1572
LintId :: of( & functions:: NOT_UNSAFE_PTR_ARG_DEREF ) ,
1571
1573
LintId :: of( & indexing_slicing:: OUT_OF_BOUNDS_INDEXING ) ,
0 commit comments