@@ -939,17 +939,24 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
939
939
& zero_div_zero:: ZERO_DIVIDED_BY_ZERO ,
940
940
] ) ;
941
941
// 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
944
944
#[ cfg( feature = "internal-lints" ) ]
945
945
{
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 ) ;
946
950
store. register_late_pass ( || box utils:: internal_lints:: CompilerLintFunctions :: new ( ) ) ;
951
+ store. register_late_pass ( || box utils:: internal_lints:: InvalidPaths ) ;
947
952
store. register_late_pass ( || box utils:: internal_lints:: LintWithoutLintPass :: default ( ) ) ;
953
+ store. register_late_pass ( || box utils:: internal_lints:: MatchTypeOnDiagItem ) ;
948
954
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 ) ;
951
955
}
952
956
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 ) ;
959
+
953
960
let vec_box_size_threshold = conf. vec_box_size_threshold ;
954
961
store. register_late_pass ( move || box types:: Types :: new ( vec_box_size_threshold) ) ;
955
962
store. register_late_pass ( || box booleans:: NonminimalBool ) ;
@@ -1134,8 +1141,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1134
1141
store. register_early_pass ( || box literal_representation:: LiteralDigitGrouping ) ;
1135
1142
let literal_representation_threshold = conf. literal_representation_threshold ;
1136
1143
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 ) ;
1144
+
1139
1145
let enum_variant_name_threshold = conf. enum_variant_name_threshold ;
1140
1146
store. register_early_pass ( move || box enum_variants:: EnumVariantNames :: new ( enum_variant_name_threshold) ) ;
1141
1147
store. register_early_pass ( || box tabs_in_doc_comments:: TabsInDocComments ) ;
@@ -1149,8 +1155,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1149
1155
store. register_late_pass ( move || box large_const_arrays:: LargeConstArrays :: new ( array_size_threshold) ) ;
1150
1156
store. register_late_pass ( || box floating_point_arithmetic:: FloatingPointArithmetic ) ;
1151
1157
store. register_early_pass ( || box as_conversions:: AsConversions ) ;
1152
- #[ cfg( feature = "internal-lints" ) ]
1153
- store. register_early_pass ( || box utils:: internal_lints:: ProduceIce ) ;
1158
+
1154
1159
store. register_late_pass ( || box let_underscore:: LetUnderscore ) ;
1155
1160
store. register_late_pass ( || box atomic_ordering:: AtomicOrdering ) ;
1156
1161
store. register_early_pass ( || box single_component_path_imports:: SingleComponentPathImports ) ;
@@ -1166,8 +1171,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1166
1171
store. register_late_pass ( || box dereference:: Dereferencing ) ;
1167
1172
store. register_late_pass ( || box option_if_let_else:: OptionIfLetElse ) ;
1168
1173
store. register_late_pass ( || box future_not_send:: FutureNotSend ) ;
1169
- #[ cfg( feature = "internal-lints" ) ]
1170
- store. register_late_pass ( || box utils:: internal_lints:: CollapsibleCalls ) ;
1174
+
1171
1175
store. register_late_pass ( || box if_let_mutex:: IfLetMutex ) ;
1172
1176
store. register_late_pass ( || box mut_mutex_lock:: MutMutexLock ) ;
1173
1177
store. register_late_pass ( || box match_on_vec_items:: MatchOnVecItems ) ;
@@ -1192,8 +1196,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1192
1196
store. register_late_pass ( || box manual_ok_or:: ManualOkOr ) ;
1193
1197
store. register_late_pass ( || box float_equality_without_abs:: FloatEqualityWithoutAbs ) ;
1194
1198
store. register_late_pass ( || box async_yields_async:: AsyncYieldsAsync ) ;
1195
- #[ cfg( feature = "internal-lints" ) ]
1196
- store. register_late_pass ( || box utils:: internal_lints:: MatchTypeOnDiagItem ) ;
1197
1199
let disallowed_methods = conf. disallowed_methods . iter ( ) . cloned ( ) . collect :: < FxHashSet < _ > > ( ) ;
1198
1200
store. register_late_pass ( move || box disallowed_method:: DisallowedMethod :: new ( & disallowed_methods) ) ;
1199
1201
store. register_early_pass ( || box asm_syntax:: InlineAsmX86AttSyntax ) ;
0 commit comments