@@ -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;
@@ -531,7 +530,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
531530 & copy_iterator:: COPY_ITERATOR ,
532531 & create_dir:: CREATE_DIR ,
533532 & dbg_macro:: DBG_MACRO ,
534- & default_trait_access:: DEFAULT_TRAIT_ACCESS ,
533+ & default:: DEFAULT_TRAIT_ACCESS ,
534+ & default:: FIELD_REASSIGN_WITH_DEFAULT ,
535535 & dereference:: EXPLICIT_DEREF_METHODS ,
536536 & derive:: DERIVE_HASH_XOR_EQ ,
537537 & derive:: DERIVE_ORD_XOR_PARTIAL_ORD ,
@@ -570,7 +570,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
570570 & exit:: EXIT ,
571571 & explicit_write:: EXPLICIT_WRITE ,
572572 & fallible_impl_from:: FALLIBLE_IMPL_FROM ,
573- & field_reassign_with_default:: FIELD_REASSIGN_WITH_DEFAULT ,
574573 & float_equality_without_abs:: FLOAT_EQUALITY_WITHOUT_ABS ,
575574 & float_literal:: EXCESSIVE_PRECISION ,
576575 & float_literal:: LOSSY_FLOAT_LITERAL ,
@@ -1033,7 +1032,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10331032 store. register_late_pass ( || box neg_cmp_op_on_partial_ord:: NoNegCompOpForPartialOrd ) ;
10341033 store. register_late_pass ( || box unwrap:: Unwrap ) ;
10351034 store. register_late_pass ( || box duration_subsec:: DurationSubsec ) ;
1036- store. register_late_pass ( || box default_trait_access:: DefaultTraitAccess ) ;
10371035 store. register_late_pass ( || box indexing_slicing:: IndexingSlicing ) ;
10381036 store. register_late_pass ( || box non_copy_const:: NonCopyConst ) ;
10391037 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:
10841082 let enum_variant_name_threshold = conf. enum_variant_name_threshold ;
10851083 store. register_early_pass ( move || box enum_variants:: EnumVariantNames :: new ( enum_variant_name_threshold) ) ;
10861084 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 :: Default :: default ( ) ) ;
10881086 store. register_late_pass ( || box unused_self:: UnusedSelf ) ;
10891087 store. register_late_pass ( || box mutable_debug_assertion:: DebugAssertWithMutCall ) ;
10901088 store. register_late_pass ( || box exit:: Exit ) ;
@@ -1197,7 +1195,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11971195 LintId :: of( & copies:: MATCH_SAME_ARMS ) ,
11981196 LintId :: of( & copies:: SAME_FUNCTIONS_IN_IF_CONDITION ) ,
11991197 LintId :: of( & copy_iterator:: COPY_ITERATOR ) ,
1200- LintId :: of( & default_trait_access :: DEFAULT_TRAIT_ACCESS ) ,
1198+ LintId :: of( & default :: DEFAULT_TRAIT_ACCESS ) ,
12011199 LintId :: of( & dereference:: EXPLICIT_DEREF_METHODS ) ,
12021200 LintId :: of( & derive:: EXPL_IMPL_CLONE_ON_COPY ) ,
12031201 LintId :: of( & derive:: UNSAFE_DERIVE_DESERIALIZE ) ,
@@ -1301,6 +1299,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13011299 LintId :: of( & comparison_chain:: COMPARISON_CHAIN ) ,
13021300 LintId :: of( & copies:: IFS_SAME_COND ) ,
13031301 LintId :: of( & copies:: IF_SAME_THEN_ELSE ) ,
1302+ LintId :: of( & default :: FIELD_REASSIGN_WITH_DEFAULT ) ,
13041303 LintId :: of( & derive:: DERIVE_HASH_XOR_EQ ) ,
13051304 LintId :: of( & derive:: DERIVE_ORD_XOR_PARTIAL_ORD ) ,
13061305 LintId :: of( & doc:: MISSING_SAFETY_DOC ) ,
@@ -1324,7 +1323,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13241323 LintId :: of( & eval_order_dependence:: DIVERGING_SUB_EXPRESSION ) ,
13251324 LintId :: of( & eval_order_dependence:: EVAL_ORDER_DEPENDENCE ) ,
13261325 LintId :: of( & explicit_write:: EXPLICIT_WRITE ) ,
1327- LintId :: of( & field_reassign_with_default:: FIELD_REASSIGN_WITH_DEFAULT ) ,
13281326 LintId :: of( & float_equality_without_abs:: FLOAT_EQUALITY_WITHOUT_ABS ) ,
13291327 LintId :: of( & float_literal:: EXCESSIVE_PRECISION ) ,
13301328 LintId :: of( & format:: USELESS_FORMAT ) ,
@@ -1556,13 +1554,13 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15561554 LintId :: of( & blocks_in_if_conditions:: BLOCKS_IN_IF_CONDITIONS ) ,
15571555 LintId :: of( & collapsible_if:: COLLAPSIBLE_IF ) ,
15581556 LintId :: of( & comparison_chain:: COMPARISON_CHAIN ) ,
1557+ LintId :: of( & default :: FIELD_REASSIGN_WITH_DEFAULT ) ,
15591558 LintId :: of( & doc:: MISSING_SAFETY_DOC ) ,
15601559 LintId :: of( & doc:: NEEDLESS_DOCTEST_MAIN ) ,
15611560 LintId :: of( & enum_variants:: ENUM_VARIANT_NAMES ) ,
15621561 LintId :: of( & enum_variants:: MODULE_INCEPTION ) ,
15631562 LintId :: of( & eq_op:: OP_REF ) ,
15641563 LintId :: of( & eta_reduction:: REDUNDANT_CLOSURE ) ,
1565- LintId :: of( & field_reassign_with_default:: FIELD_REASSIGN_WITH_DEFAULT ) ,
15661564 LintId :: of( & float_literal:: EXCESSIVE_PRECISION ) ,
15671565 LintId :: of( & formatting:: SUSPICIOUS_ASSIGNMENT_FORMATTING ) ,
15681566 LintId :: of( & formatting:: SUSPICIOUS_ELSE_FORMATTING ) ,
0 commit comments