@@ -175,7 +175,7 @@ mod copies;
175175mod copy_iterator;
176176mod create_dir;
177177mod dbg_macro;
178- mod default_trait_access ;
178+ mod default ;
179179mod dereference;
180180mod derive;
181181mod disallowed_method;
@@ -198,7 +198,6 @@ mod excessive_bools;
198198mod exit;
199199mod explicit_write;
200200mod fallible_impl_from;
201- mod field_reassign_with_default;
202201mod float_equality_without_abs;
203202mod float_literal;
204203mod floating_point_arithmetic;
@@ -537,7 +536,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
537536 & copy_iterator:: COPY_ITERATOR ,
538537 & create_dir:: CREATE_DIR ,
539538 & dbg_macro:: DBG_MACRO ,
540- & default_trait_access:: DEFAULT_TRAIT_ACCESS ,
539+ & default:: DEFAULT_TRAIT_ACCESS ,
540+ & default:: FIELD_REASSIGN_WITH_DEFAULT ,
541541 & dereference:: EXPLICIT_DEREF_METHODS ,
542542 & derive:: DERIVE_HASH_XOR_EQ ,
543543 & derive:: DERIVE_ORD_XOR_PARTIAL_ORD ,
@@ -576,7 +576,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
576576 & exit:: EXIT ,
577577 & explicit_write:: EXPLICIT_WRITE ,
578578 & fallible_impl_from:: FALLIBLE_IMPL_FROM ,
579- & field_reassign_with_default:: FIELD_REASSIGN_WITH_DEFAULT ,
580579 & float_equality_without_abs:: FLOAT_EQUALITY_WITHOUT_ABS ,
581580 & float_literal:: EXCESSIVE_PRECISION ,
582581 & float_literal:: LOSSY_FLOAT_LITERAL ,
@@ -1050,7 +1049,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10501049 store. register_late_pass ( || box neg_cmp_op_on_partial_ord:: NoNegCompOpForPartialOrd ) ;
10511050 store. register_late_pass ( || box unwrap:: Unwrap ) ;
10521051 store. register_late_pass ( || box duration_subsec:: DurationSubsec ) ;
1053- store. register_late_pass ( || box default_trait_access:: DefaultTraitAccess ) ;
10541052 store. register_late_pass ( || box indexing_slicing:: IndexingSlicing ) ;
10551053 store. register_late_pass ( || box non_copy_const:: NonCopyConst ) ;
10561054 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:
11011099 let enum_variant_name_threshold = conf. enum_variant_name_threshold ;
11021100 store. register_early_pass ( move || box enum_variants:: EnumVariantNames :: new ( enum_variant_name_threshold) ) ;
11031101 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 ( ) ) ;
11051103 store. register_late_pass ( || box unused_self:: UnusedSelf ) ;
11061104 store. register_late_pass ( || box mutable_debug_assertion:: DebugAssertWithMutCall ) ;
11071105 store. register_late_pass ( || box exit:: Exit ) ;
@@ -1214,7 +1212,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12141212 LintId :: of( & checked_conversions:: CHECKED_CONVERSIONS ) ,
12151213 LintId :: of( & copies:: SAME_FUNCTIONS_IN_IF_CONDITION ) ,
12161214 LintId :: of( & copy_iterator:: COPY_ITERATOR ) ,
1217- LintId :: of( & default_trait_access :: DEFAULT_TRAIT_ACCESS ) ,
1215+ LintId :: of( & default :: DEFAULT_TRAIT_ACCESS ) ,
12181216 LintId :: of( & dereference:: EXPLICIT_DEREF_METHODS ) ,
12191217 LintId :: of( & derive:: EXPL_IMPL_CLONE_ON_COPY ) ,
12201218 LintId :: of( & derive:: UNSAFE_DERIVE_DESERIALIZE ) ,
@@ -1323,6 +1321,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13231321 LintId :: of( & comparison_chain:: COMPARISON_CHAIN ) ,
13241322 LintId :: of( & copies:: IFS_SAME_COND ) ,
13251323 LintId :: of( & copies:: IF_SAME_THEN_ELSE ) ,
1324+ LintId :: of( & default :: FIELD_REASSIGN_WITH_DEFAULT ) ,
13261325 LintId :: of( & derive:: DERIVE_HASH_XOR_EQ ) ,
13271326 LintId :: of( & derive:: DERIVE_ORD_XOR_PARTIAL_ORD ) ,
13281327 LintId :: of( & doc:: MISSING_SAFETY_DOC ) ,
@@ -1346,7 +1345,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13461345 LintId :: of( & eval_order_dependence:: DIVERGING_SUB_EXPRESSION ) ,
13471346 LintId :: of( & eval_order_dependence:: EVAL_ORDER_DEPENDENCE ) ,
13481347 LintId :: of( & explicit_write:: EXPLICIT_WRITE ) ,
1349- LintId :: of( & field_reassign_with_default:: FIELD_REASSIGN_WITH_DEFAULT ) ,
13501348 LintId :: of( & float_equality_without_abs:: FLOAT_EQUALITY_WITHOUT_ABS ) ,
13511349 LintId :: of( & float_literal:: EXCESSIVE_PRECISION ) ,
13521350 LintId :: of( & format:: USELESS_FORMAT ) ,
@@ -1584,13 +1582,13 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15841582 LintId :: of( & blocks_in_if_conditions:: BLOCKS_IN_IF_CONDITIONS ) ,
15851583 LintId :: of( & collapsible_if:: COLLAPSIBLE_IF ) ,
15861584 LintId :: of( & comparison_chain:: COMPARISON_CHAIN ) ,
1585+ LintId :: of( & default :: FIELD_REASSIGN_WITH_DEFAULT ) ,
15871586 LintId :: of( & doc:: MISSING_SAFETY_DOC ) ,
15881587 LintId :: of( & doc:: NEEDLESS_DOCTEST_MAIN ) ,
15891588 LintId :: of( & enum_variants:: ENUM_VARIANT_NAMES ) ,
15901589 LintId :: of( & enum_variants:: MODULE_INCEPTION ) ,
15911590 LintId :: of( & eq_op:: OP_REF ) ,
15921591 LintId :: of( & eta_reduction:: REDUNDANT_CLOSURE ) ,
1593- LintId :: of( & field_reassign_with_default:: FIELD_REASSIGN_WITH_DEFAULT ) ,
15941592 LintId :: of( & float_literal:: EXCESSIVE_PRECISION ) ,
15951593 LintId :: of( & formatting:: SUSPICIOUS_ASSIGNMENT_FORMATTING ) ,
15961594 LintId :: of( & formatting:: SUSPICIOUS_ELSE_FORMATTING ) ,
0 commit comments