@@ -939,17 +939,23 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
939939 & zero_div_zero:: ZERO_DIVIDED_BY_ZERO ,
940940 ] ) ;
941941 // end register lints, do not remove this comment, it’s used in `update_lints`
942- store . register_late_pass ( || box await_holding_invalid :: AwaitHolding ) ;
943- store . register_late_pass ( || box serde_api :: SerdeAPI ) ;
942+
943+ // all the internal lints
944944 #[ cfg( feature = "internal-lints" ) ]
945945 {
946+ store. register_early_pass ( || box utils:: internal_lints:: ClippyLintsInternal ) ;
947+ store. register_early_pass ( || box utils:: internal_lints:: ProduceIce ) ;
948+ store. register_late_pass ( || box utils:: inspector:: DeepCodeInspector ) ;
949+ store. register_late_pass ( || box utils:: internal_lints:: CollapsibleCalls ) ;
946950 store. register_late_pass ( || box utils:: internal_lints:: CompilerLintFunctions :: new ( ) ) ;
951+ store. register_late_pass ( || box utils:: internal_lints:: InvalidPaths ) ;
947952 store. register_late_pass ( || box utils:: internal_lints:: LintWithoutLintPass :: default ( ) ) ;
953+ store. register_late_pass ( || box utils:: internal_lints:: MatchTypeOnDiagItem ) ;
948954 store. register_late_pass ( || box utils:: internal_lints:: OuterExpnDataPass ) ;
949- store. register_late_pass ( || box utils:: internal_lints:: InvalidPaths ) ;
950- store. register_late_pass ( || box utils:: inspector:: DeepCodeInspector ) ;
951955 }
952956 store. register_late_pass ( || box utils:: author:: Author ) ;
957+ store. register_late_pass ( || box await_holding_invalid:: AwaitHolding ) ;
958+ store. register_late_pass ( || box serde_api:: SerdeAPI ) ;
953959 let vec_box_size_threshold = conf. vec_box_size_threshold ;
954960 store. register_late_pass ( move || box types:: Types :: new ( vec_box_size_threshold) ) ;
955961 store. register_late_pass ( || box booleans:: NonminimalBool ) ;
@@ -1134,8 +1140,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11341140 store. register_early_pass ( || box literal_representation:: LiteralDigitGrouping ) ;
11351141 let literal_representation_threshold = conf. literal_representation_threshold ;
11361142 store. register_early_pass ( move || box literal_representation:: DecimalLiteralRepresentation :: new ( literal_representation_threshold) ) ;
1137- #[ cfg( feature = "internal-lints" ) ]
1138- store. register_early_pass ( || box utils:: internal_lints:: ClippyLintsInternal ) ;
11391143 let enum_variant_name_threshold = conf. enum_variant_name_threshold ;
11401144 store. register_early_pass ( move || box enum_variants:: EnumVariantNames :: new ( enum_variant_name_threshold) ) ;
11411145 store. register_early_pass ( || box tabs_in_doc_comments:: TabsInDocComments ) ;
@@ -1149,8 +1153,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11491153 store. register_late_pass ( move || box large_const_arrays:: LargeConstArrays :: new ( array_size_threshold) ) ;
11501154 store. register_late_pass ( || box floating_point_arithmetic:: FloatingPointArithmetic ) ;
11511155 store. register_early_pass ( || box as_conversions:: AsConversions ) ;
1152- #[ cfg( feature = "internal-lints" ) ]
1153- store. register_early_pass ( || box utils:: internal_lints:: ProduceIce ) ;
11541156 store. register_late_pass ( || box let_underscore:: LetUnderscore ) ;
11551157 store. register_late_pass ( || box atomic_ordering:: AtomicOrdering ) ;
11561158 store. register_early_pass ( || box single_component_path_imports:: SingleComponentPathImports ) ;
@@ -1166,16 +1168,13 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11661168 store. register_late_pass ( || box dereference:: Dereferencing ) ;
11671169 store. register_late_pass ( || box option_if_let_else:: OptionIfLetElse ) ;
11681170 store. register_late_pass ( || box future_not_send:: FutureNotSend ) ;
1169- #[ cfg( feature = "internal-lints" ) ]
1170- store. register_late_pass ( || box utils:: internal_lints:: CollapsibleCalls ) ;
11711171 store. register_late_pass ( || box if_let_mutex:: IfLetMutex ) ;
11721172 store. register_late_pass ( || box mut_mutex_lock:: MutMutexLock ) ;
11731173 store. register_late_pass ( || box match_on_vec_items:: MatchOnVecItems ) ;
11741174 store. register_late_pass ( || box manual_async_fn:: ManualAsyncFn ) ;
11751175 store. register_early_pass ( || box redundant_field_names:: RedundantFieldNames ) ;
11761176 store. register_late_pass ( || box vec_resize_to_zero:: VecResizeToZero ) ;
11771177 store. register_late_pass ( || box panic_in_result_fn:: PanicInResultFn ) ;
1178-
11791178 let single_char_binding_names_threshold = conf. single_char_binding_names_threshold ;
11801179 store. register_early_pass ( move || box non_expressive_names:: NonExpressiveNames {
11811180 single_char_binding_names_threshold,
@@ -1192,8 +1191,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11921191 store. register_late_pass ( || box manual_ok_or:: ManualOkOr ) ;
11931192 store. register_late_pass ( || box float_equality_without_abs:: FloatEqualityWithoutAbs ) ;
11941193 store. register_late_pass ( || box async_yields_async:: AsyncYieldsAsync ) ;
1195- #[ cfg( feature = "internal-lints" ) ]
1196- store. register_late_pass ( || box utils:: internal_lints:: MatchTypeOnDiagItem ) ;
11971194 let disallowed_methods = conf. disallowed_methods . iter ( ) . cloned ( ) . collect :: < FxHashSet < _ > > ( ) ;
11981195 store. register_late_pass ( move || box disallowed_method:: DisallowedMethod :: new ( & disallowed_methods) ) ;
11991196 store. register_early_pass ( || box asm_syntax:: InlineAsmX86AttSyntax ) ;
@@ -1202,7 +1199,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12021199 store. register_late_pass ( || box strings:: StrToString ) ;
12031200 store. register_late_pass ( || box strings:: StringToString ) ;
12041201
1205-
12061202 store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
12071203 LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
12081204 LintId :: of( & arithmetic:: INTEGER_ARITHMETIC ) ,
@@ -1333,6 +1329,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13331329 LintId :: of( & wildcard_imports:: ENUM_GLOB_USE ) ,
13341330 LintId :: of( & wildcard_imports:: WILDCARD_IMPORTS ) ,
13351331 ] ) ;
1332+
13361333 #[ cfg( feature = "internal-lints" ) ]
13371334 store. register_group ( true , "clippy::internal" , Some ( "clippy_internal" ) , vec ! [
13381335 LintId :: of( & utils:: internal_lints:: CLIPPY_LINTS_INTERNAL ) ,
0 commit comments