@@ -191,6 +191,7 @@ mod copies;
191
191
mod copy_iterator;
192
192
mod dbg_macro;
193
193
mod default_trait_access;
194
+ mod dereference;
194
195
mod derive;
195
196
mod doc;
196
197
mod double_comparison;
@@ -231,6 +232,7 @@ mod inline_fn_without_body;
231
232
mod int_plus_one;
232
233
mod integer_division;
233
234
mod items_after_statements;
235
+ mod large_const_arrays;
234
236
mod large_enum_variant;
235
237
mod large_stack_arrays;
236
238
mod len_zero;
@@ -513,6 +515,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
513
515
& copy_iterator:: COPY_ITERATOR ,
514
516
& dbg_macro:: DBG_MACRO ,
515
517
& default_trait_access:: DEFAULT_TRAIT_ACCESS ,
518
+ & dereference:: EXPLICIT_DEREF_METHODS ,
516
519
& derive:: DERIVE_HASH_XOR_EQ ,
517
520
& derive:: EXPL_IMPL_CLONE_ON_COPY ,
518
521
& doc:: DOC_MARKDOWN ,
@@ -580,6 +583,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
580
583
& int_plus_one:: INT_PLUS_ONE ,
581
584
& integer_division:: INTEGER_DIVISION ,
582
585
& items_after_statements:: ITEMS_AFTER_STATEMENTS ,
586
+ & large_const_arrays:: LARGE_CONST_ARRAYS ,
583
587
& large_enum_variant:: LARGE_ENUM_VARIANT ,
584
588
& large_stack_arrays:: LARGE_STACK_ARRAYS ,
585
589
& len_zero:: LEN_WITHOUT_IS_EMPTY ,
@@ -1024,6 +1028,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1024
1028
store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
1025
1029
let array_size_threshold = conf. array_size_threshold ;
1026
1030
store. register_late_pass ( move || box large_stack_arrays:: LargeStackArrays :: new ( array_size_threshold) ) ;
1031
+ store. register_late_pass ( move || box large_const_arrays:: LargeConstArrays :: new ( array_size_threshold) ) ;
1027
1032
store. register_late_pass ( move || box floating_point_arithmetic:: FloatingPointArithmetic ) ;
1028
1033
store. register_early_pass ( || box as_conversions:: AsConversions ) ;
1029
1034
store. register_early_pass ( || box utils:: internal_lints:: ProduceIce ) ;
@@ -1039,6 +1044,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1039
1044
store. register_late_pass ( || box verbose_file_reads:: VerboseFileReads ) ;
1040
1045
store. register_late_pass ( || box redundant_pub_crate:: RedundantPubCrate :: default ( ) ) ;
1041
1046
store. register_late_pass ( || box unnamed_address:: UnnamedAddress ) ;
1047
+ store. register_late_pass ( || box dereference:: Dereferencing ) ;
1042
1048
1043
1049
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
1044
1050
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1089,6 +1095,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1089
1095
LintId :: of( & copies:: SAME_FUNCTIONS_IN_IF_CONDITION ) ,
1090
1096
LintId :: of( & copy_iterator:: COPY_ITERATOR ) ,
1091
1097
LintId :: of( & default_trait_access:: DEFAULT_TRAIT_ACCESS ) ,
1098
+ LintId :: of( & dereference:: EXPLICIT_DEREF_METHODS ) ,
1092
1099
LintId :: of( & derive:: EXPL_IMPL_CLONE_ON_COPY ) ,
1093
1100
LintId :: of( & doc:: DOC_MARKDOWN ) ,
1094
1101
LintId :: of( & doc:: MISSING_ERRORS_DOC ) ,
@@ -1221,6 +1228,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1221
1228
LintId :: of( & inherent_to_string:: INHERENT_TO_STRING_SHADOW_DISPLAY ) ,
1222
1229
LintId :: of( & inline_fn_without_body:: INLINE_FN_WITHOUT_BODY ) ,
1223
1230
LintId :: of( & int_plus_one:: INT_PLUS_ONE ) ,
1231
+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
1224
1232
LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
1225
1233
LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
1226
1234
LintId :: of( & len_zero:: LEN_ZERO ) ,
@@ -1652,6 +1660,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1652
1660
LintId :: of( & bytecount:: NAIVE_BYTECOUNT ) ,
1653
1661
LintId :: of( & entry:: MAP_ENTRY ) ,
1654
1662
LintId :: of( & escape:: BOXED_LOCAL ) ,
1663
+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
1655
1664
LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
1656
1665
LintId :: of( & loops:: MANUAL_MEMCPY ) ,
1657
1666
LintId :: of( & loops:: NEEDLESS_COLLECT ) ,
0 commit comments