@@ -175,7 +175,7 @@ mod copies;
175
175
mod copy_iterator;
176
176
mod create_dir;
177
177
mod dbg_macro;
178
- mod default_trait_access ;
178
+ mod default ;
179
179
mod dereference;
180
180
mod derive;
181
181
mod disallowed_method;
@@ -198,7 +198,6 @@ mod excessive_bools;
198
198
mod exit;
199
199
mod explicit_write;
200
200
mod fallible_impl_from;
201
- mod field_reassign_with_default;
202
201
mod float_equality_without_abs;
203
202
mod float_literal;
204
203
mod floating_point_arithmetic;
@@ -537,7 +536,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
537
536
& copy_iterator:: COPY_ITERATOR ,
538
537
& create_dir:: CREATE_DIR ,
539
538
& dbg_macro:: DBG_MACRO ,
540
- & default_trait_access:: DEFAULT_TRAIT_ACCESS ,
539
+ & default:: DEFAULT_TRAIT_ACCESS ,
540
+ & default:: FIELD_REASSIGN_WITH_DEFAULT ,
541
541
& dereference:: EXPLICIT_DEREF_METHODS ,
542
542
& derive:: DERIVE_HASH_XOR_EQ ,
543
543
& derive:: DERIVE_ORD_XOR_PARTIAL_ORD ,
@@ -576,7 +576,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
576
576
& exit:: EXIT ,
577
577
& explicit_write:: EXPLICIT_WRITE ,
578
578
& fallible_impl_from:: FALLIBLE_IMPL_FROM ,
579
- & field_reassign_with_default:: FIELD_REASSIGN_WITH_DEFAULT ,
580
579
& float_equality_without_abs:: FLOAT_EQUALITY_WITHOUT_ABS ,
581
580
& float_literal:: EXCESSIVE_PRECISION ,
582
581
& float_literal:: LOSSY_FLOAT_LITERAL ,
@@ -1050,7 +1049,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1050
1049
store. register_late_pass ( || box neg_cmp_op_on_partial_ord:: NoNegCompOpForPartialOrd ) ;
1051
1050
store. register_late_pass ( || box unwrap:: Unwrap ) ;
1052
1051
store. register_late_pass ( || box duration_subsec:: DurationSubsec ) ;
1053
- store. register_late_pass ( || box default_trait_access:: DefaultTraitAccess ) ;
1054
1052
store. register_late_pass ( || box indexing_slicing:: IndexingSlicing ) ;
1055
1053
store. register_late_pass ( || box non_copy_const:: NonCopyConst ) ;
1056
1054
store. register_late_pass ( || box ptr_offset_with_cast:: PtrOffsetWithCast ) ;
@@ -1101,7 +1099,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1101
1099
let enum_variant_name_threshold = conf. enum_variant_name_threshold ;
1102
1100
store. register_early_pass ( move || box enum_variants:: EnumVariantNames :: new ( enum_variant_name_threshold) ) ;
1103
1101
store. register_early_pass ( || box tabs_in_doc_comments:: TabsInDocComments ) ;
1104
- store. register_late_pass ( || box field_reassign_with_default :: FieldReassignWithDefault ) ;
1102
+ store. register_late_pass ( || box default :: Default :: default ( ) ) ;
1105
1103
store. register_late_pass ( || box unused_self:: UnusedSelf ) ;
1106
1104
store. register_late_pass ( || box mutable_debug_assertion:: DebugAssertWithMutCall ) ;
1107
1105
store. register_late_pass ( || box exit:: Exit ) ;
@@ -1214,7 +1212,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1214
1212
LintId :: of( & checked_conversions:: CHECKED_CONVERSIONS ) ,
1215
1213
LintId :: of( & copies:: SAME_FUNCTIONS_IN_IF_CONDITION ) ,
1216
1214
LintId :: of( & copy_iterator:: COPY_ITERATOR ) ,
1217
- LintId :: of( & default_trait_access :: DEFAULT_TRAIT_ACCESS ) ,
1215
+ LintId :: of( & default :: DEFAULT_TRAIT_ACCESS ) ,
1218
1216
LintId :: of( & dereference:: EXPLICIT_DEREF_METHODS ) ,
1219
1217
LintId :: of( & derive:: EXPL_IMPL_CLONE_ON_COPY ) ,
1220
1218
LintId :: of( & derive:: UNSAFE_DERIVE_DESERIALIZE ) ,
@@ -1323,6 +1321,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1323
1321
LintId :: of( & comparison_chain:: COMPARISON_CHAIN ) ,
1324
1322
LintId :: of( & copies:: IFS_SAME_COND ) ,
1325
1323
LintId :: of( & copies:: IF_SAME_THEN_ELSE ) ,
1324
+ LintId :: of( & default :: FIELD_REASSIGN_WITH_DEFAULT ) ,
1326
1325
LintId :: of( & derive:: DERIVE_HASH_XOR_EQ ) ,
1327
1326
LintId :: of( & derive:: DERIVE_ORD_XOR_PARTIAL_ORD ) ,
1328
1327
LintId :: of( & doc:: MISSING_SAFETY_DOC ) ,
@@ -1346,7 +1345,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1346
1345
LintId :: of( & eval_order_dependence:: DIVERGING_SUB_EXPRESSION ) ,
1347
1346
LintId :: of( & eval_order_dependence:: EVAL_ORDER_DEPENDENCE ) ,
1348
1347
LintId :: of( & explicit_write:: EXPLICIT_WRITE ) ,
1349
- LintId :: of( & field_reassign_with_default:: FIELD_REASSIGN_WITH_DEFAULT ) ,
1350
1348
LintId :: of( & float_equality_without_abs:: FLOAT_EQUALITY_WITHOUT_ABS ) ,
1351
1349
LintId :: of( & float_literal:: EXCESSIVE_PRECISION ) ,
1352
1350
LintId :: of( & format:: USELESS_FORMAT ) ,
@@ -1584,13 +1582,13 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1584
1582
LintId :: of( & blocks_in_if_conditions:: BLOCKS_IN_IF_CONDITIONS ) ,
1585
1583
LintId :: of( & collapsible_if:: COLLAPSIBLE_IF ) ,
1586
1584
LintId :: of( & comparison_chain:: COMPARISON_CHAIN ) ,
1585
+ LintId :: of( & default :: FIELD_REASSIGN_WITH_DEFAULT ) ,
1587
1586
LintId :: of( & doc:: MISSING_SAFETY_DOC ) ,
1588
1587
LintId :: of( & doc:: NEEDLESS_DOCTEST_MAIN ) ,
1589
1588
LintId :: of( & enum_variants:: ENUM_VARIANT_NAMES ) ,
1590
1589
LintId :: of( & enum_variants:: MODULE_INCEPTION ) ,
1591
1590
LintId :: of( & eq_op:: OP_REF ) ,
1592
1591
LintId :: of( & eta_reduction:: REDUNDANT_CLOSURE ) ,
1593
- LintId :: of( & field_reassign_with_default:: FIELD_REASSIGN_WITH_DEFAULT ) ,
1594
1592
LintId :: of( & float_literal:: EXCESSIVE_PRECISION ) ,
1595
1593
LintId :: of( & formatting:: SUSPICIOUS_ASSIGNMENT_FORMATTING ) ,
1596
1594
LintId :: of( & formatting:: SUSPICIOUS_ELSE_FORMATTING ) ,
0 commit comments