@@ -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;
@@ -531,7 +530,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
531
530
& copy_iterator:: COPY_ITERATOR ,
532
531
& create_dir:: CREATE_DIR ,
533
532
& dbg_macro:: DBG_MACRO ,
534
- & default_trait_access:: DEFAULT_TRAIT_ACCESS ,
533
+ & default:: DEFAULT_TRAIT_ACCESS ,
534
+ & default:: FIELD_REASSIGN_WITH_DEFAULT ,
535
535
& dereference:: EXPLICIT_DEREF_METHODS ,
536
536
& derive:: DERIVE_HASH_XOR_EQ ,
537
537
& derive:: DERIVE_ORD_XOR_PARTIAL_ORD ,
@@ -570,7 +570,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
570
570
& exit:: EXIT ,
571
571
& explicit_write:: EXPLICIT_WRITE ,
572
572
& fallible_impl_from:: FALLIBLE_IMPL_FROM ,
573
- & field_reassign_with_default:: FIELD_REASSIGN_WITH_DEFAULT ,
574
573
& float_equality_without_abs:: FLOAT_EQUALITY_WITHOUT_ABS ,
575
574
& float_literal:: EXCESSIVE_PRECISION ,
576
575
& float_literal:: LOSSY_FLOAT_LITERAL ,
@@ -1033,7 +1032,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1033
1032
store. register_late_pass ( || box neg_cmp_op_on_partial_ord:: NoNegCompOpForPartialOrd ) ;
1034
1033
store. register_late_pass ( || box unwrap:: Unwrap ) ;
1035
1034
store. register_late_pass ( || box duration_subsec:: DurationSubsec ) ;
1036
- store. register_late_pass ( || box default_trait_access:: DefaultTraitAccess ) ;
1037
1035
store. register_late_pass ( || box indexing_slicing:: IndexingSlicing ) ;
1038
1036
store. register_late_pass ( || box non_copy_const:: NonCopyConst ) ;
1039
1037
store. register_late_pass ( || box ptr_offset_with_cast:: PtrOffsetWithCast ) ;
@@ -1084,7 +1082,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1084
1082
let enum_variant_name_threshold = conf. enum_variant_name_threshold ;
1085
1083
store. register_early_pass ( move || box enum_variants:: EnumVariantNames :: new ( enum_variant_name_threshold) ) ;
1086
1084
store. register_early_pass ( || box tabs_in_doc_comments:: TabsInDocComments ) ;
1087
- store. register_late_pass ( || box field_reassign_with_default :: FieldReassignWithDefault ) ;
1085
+ store. register_late_pass ( || box default :: DefaultPass :: default ( ) ) ;
1088
1086
store. register_late_pass ( || box unused_self:: UnusedSelf ) ;
1089
1087
store. register_late_pass ( || box mutable_debug_assertion:: DebugAssertWithMutCall ) ;
1090
1088
store. register_late_pass ( || box exit:: Exit ) ;
@@ -1197,7 +1195,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1197
1195
LintId :: of( & copies:: MATCH_SAME_ARMS ) ,
1198
1196
LintId :: of( & copies:: SAME_FUNCTIONS_IN_IF_CONDITION ) ,
1199
1197
LintId :: of( & copy_iterator:: COPY_ITERATOR ) ,
1200
- LintId :: of( & default_trait_access :: DEFAULT_TRAIT_ACCESS ) ,
1198
+ LintId :: of( & default :: DEFAULT_TRAIT_ACCESS ) ,
1201
1199
LintId :: of( & dereference:: EXPLICIT_DEREF_METHODS ) ,
1202
1200
LintId :: of( & derive:: EXPL_IMPL_CLONE_ON_COPY ) ,
1203
1201
LintId :: of( & derive:: UNSAFE_DERIVE_DESERIALIZE ) ,
@@ -1301,6 +1299,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1301
1299
LintId :: of( & comparison_chain:: COMPARISON_CHAIN ) ,
1302
1300
LintId :: of( & copies:: IFS_SAME_COND ) ,
1303
1301
LintId :: of( & copies:: IF_SAME_THEN_ELSE ) ,
1302
+ LintId :: of( & default :: FIELD_REASSIGN_WITH_DEFAULT ) ,
1304
1303
LintId :: of( & derive:: DERIVE_HASH_XOR_EQ ) ,
1305
1304
LintId :: of( & derive:: DERIVE_ORD_XOR_PARTIAL_ORD ) ,
1306
1305
LintId :: of( & doc:: MISSING_SAFETY_DOC ) ,
@@ -1324,7 +1323,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1324
1323
LintId :: of( & eval_order_dependence:: DIVERGING_SUB_EXPRESSION ) ,
1325
1324
LintId :: of( & eval_order_dependence:: EVAL_ORDER_DEPENDENCE ) ,
1326
1325
LintId :: of( & explicit_write:: EXPLICIT_WRITE ) ,
1327
- LintId :: of( & field_reassign_with_default:: FIELD_REASSIGN_WITH_DEFAULT ) ,
1328
1326
LintId :: of( & float_equality_without_abs:: FLOAT_EQUALITY_WITHOUT_ABS ) ,
1329
1327
LintId :: of( & float_literal:: EXCESSIVE_PRECISION ) ,
1330
1328
LintId :: of( & format:: USELESS_FORMAT ) ,
@@ -1556,13 +1554,13 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1556
1554
LintId :: of( & blocks_in_if_conditions:: BLOCKS_IN_IF_CONDITIONS ) ,
1557
1555
LintId :: of( & collapsible_if:: COLLAPSIBLE_IF ) ,
1558
1556
LintId :: of( & comparison_chain:: COMPARISON_CHAIN ) ,
1557
+ LintId :: of( & default :: FIELD_REASSIGN_WITH_DEFAULT ) ,
1559
1558
LintId :: of( & doc:: MISSING_SAFETY_DOC ) ,
1560
1559
LintId :: of( & doc:: NEEDLESS_DOCTEST_MAIN ) ,
1561
1560
LintId :: of( & enum_variants:: ENUM_VARIANT_NAMES ) ,
1562
1561
LintId :: of( & enum_variants:: MODULE_INCEPTION ) ,
1563
1562
LintId :: of( & eq_op:: OP_REF ) ,
1564
1563
LintId :: of( & eta_reduction:: REDUNDANT_CLOSURE ) ,
1565
- LintId :: of( & field_reassign_with_default:: FIELD_REASSIGN_WITH_DEFAULT ) ,
1566
1564
LintId :: of( & float_literal:: EXCESSIVE_PRECISION ) ,
1567
1565
LintId :: of( & formatting:: SUSPICIOUS_ASSIGNMENT_FORMATTING ) ,
1568
1566
LintId :: of( & formatting:: SUSPICIOUS_ELSE_FORMATTING ) ,
0 commit comments