@@ -499,6 +499,24 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
499
499
500
500
// begin register lints, do not remove this comment, it’s used in `update_lints`
501
501
store. register_lints ( & [
502
+ #[ cfg( feature = "internal-lints" ) ]
503
+ & utils:: internal_lints:: CLIPPY_LINTS_INTERNAL ,
504
+ #[ cfg( feature = "internal-lints" ) ]
505
+ & utils:: internal_lints:: COLLAPSIBLE_SPAN_LINT_CALLS ,
506
+ #[ cfg( feature = "internal-lints" ) ]
507
+ & utils:: internal_lints:: COMPILER_LINT_FUNCTIONS ,
508
+ #[ cfg( feature = "internal-lints" ) ]
509
+ & utils:: internal_lints:: DEFAULT_LINT ,
510
+ #[ cfg( feature = "internal-lints" ) ]
511
+ & utils:: internal_lints:: INVALID_PATHS ,
512
+ #[ cfg( feature = "internal-lints" ) ]
513
+ & utils:: internal_lints:: LINT_WITHOUT_LINT_PASS ,
514
+ #[ cfg( feature = "internal-lints" ) ]
515
+ & utils:: internal_lints:: MATCH_TYPE_ON_DIAGNOSTIC_ITEM ,
516
+ #[ cfg( feature = "internal-lints" ) ]
517
+ & utils:: internal_lints:: OUTER_EXPN_EXPN_DATA ,
518
+ #[ cfg( feature = "internal-lints" ) ]
519
+ & utils:: internal_lints:: PRODUCE_ICE ,
502
520
& approx_const:: APPROX_CONSTANT ,
503
521
& arithmetic:: FLOAT_ARITHMETIC ,
504
522
& arithmetic:: INTEGER_ARITHMETIC ,
@@ -902,24 +920,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
902
920
& unwrap_in_result:: UNWRAP_IN_RESULT ,
903
921
& use_self:: USE_SELF ,
904
922
& useless_conversion:: USELESS_CONVERSION ,
905
- #[ cfg( feature = "internal-lints" ) ]
906
- & utils:: internal_lints:: CLIPPY_LINTS_INTERNAL ,
907
- #[ cfg( feature = "internal-lints" ) ]
908
- & utils:: internal_lints:: COLLAPSIBLE_SPAN_LINT_CALLS ,
909
- #[ cfg( feature = "internal-lints" ) ]
910
- & utils:: internal_lints:: COMPILER_LINT_FUNCTIONS ,
911
- #[ cfg( feature = "internal-lints" ) ]
912
- & utils:: internal_lints:: DEFAULT_LINT ,
913
- #[ cfg( feature = "internal-lints" ) ]
914
- & utils:: internal_lints:: INVALID_PATHS ,
915
- #[ cfg( feature = "internal-lints" ) ]
916
- & utils:: internal_lints:: LINT_WITHOUT_LINT_PASS ,
917
- #[ cfg( feature = "internal-lints" ) ]
918
- & utils:: internal_lints:: MATCH_TYPE_ON_DIAGNOSTIC_ITEM ,
919
- #[ cfg( feature = "internal-lints" ) ]
920
- & utils:: internal_lints:: OUTER_EXPN_EXPN_DATA ,
921
- #[ cfg( feature = "internal-lints" ) ]
922
- & utils:: internal_lints:: PRODUCE_ICE ,
923
923
& vec:: USELESS_VEC ,
924
924
& vec_resize_to_zero:: VEC_RESIZE_TO_ZERO ,
925
925
& verbose_file_reads:: VERBOSE_FILE_READS ,
0 commit comments