@@ -191,6 +191,7 @@ mod copies;
191191mod copy_iterator;
192192mod dbg_macro;
193193mod default_trait_access;
194+ mod dereference;
194195mod derive;
195196mod doc;
196197mod double_comparison;
@@ -231,6 +232,7 @@ mod inline_fn_without_body;
231232mod int_plus_one;
232233mod integer_division;
233234mod items_after_statements;
235+ mod large_const_arrays;
234236mod large_enum_variant;
235237mod large_stack_arrays;
236238mod len_zero;
@@ -513,6 +515,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
513515 & copy_iterator:: COPY_ITERATOR ,
514516 & dbg_macro:: DBG_MACRO ,
515517 & default_trait_access:: DEFAULT_TRAIT_ACCESS ,
518+ & dereference:: EXPLICIT_DEREF_METHODS ,
516519 & derive:: DERIVE_HASH_XOR_EQ ,
517520 & derive:: EXPL_IMPL_CLONE_ON_COPY ,
518521 & doc:: DOC_MARKDOWN ,
@@ -580,6 +583,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
580583 & int_plus_one:: INT_PLUS_ONE ,
581584 & integer_division:: INTEGER_DIVISION ,
582585 & items_after_statements:: ITEMS_AFTER_STATEMENTS ,
586+ & large_const_arrays:: LARGE_CONST_ARRAYS ,
583587 & large_enum_variant:: LARGE_ENUM_VARIANT ,
584588 & large_stack_arrays:: LARGE_STACK_ARRAYS ,
585589 & len_zero:: LEN_WITHOUT_IS_EMPTY ,
@@ -1024,6 +1028,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10241028 store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
10251029 let array_size_threshold = conf. array_size_threshold ;
10261030 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) ) ;
10271032 store. register_late_pass ( move || box floating_point_arithmetic:: FloatingPointArithmetic ) ;
10281033 store. register_early_pass ( || box as_conversions:: AsConversions ) ;
10291034 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:
10391044 store. register_late_pass ( || box verbose_file_reads:: VerboseFileReads ) ;
10401045 store. register_late_pass ( || box redundant_pub_crate:: RedundantPubCrate :: default ( ) ) ;
10411046 store. register_late_pass ( || box unnamed_address:: UnnamedAddress ) ;
1047+ store. register_late_pass ( || box dereference:: Dereferencing ) ;
10421048
10431049 store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
10441050 LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1089,6 +1095,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10891095 LintId :: of( & copies:: SAME_FUNCTIONS_IN_IF_CONDITION ) ,
10901096 LintId :: of( & copy_iterator:: COPY_ITERATOR ) ,
10911097 LintId :: of( & default_trait_access:: DEFAULT_TRAIT_ACCESS ) ,
1098+ LintId :: of( & dereference:: EXPLICIT_DEREF_METHODS ) ,
10921099 LintId :: of( & derive:: EXPL_IMPL_CLONE_ON_COPY ) ,
10931100 LintId :: of( & doc:: DOC_MARKDOWN ) ,
10941101 LintId :: of( & doc:: MISSING_ERRORS_DOC ) ,
@@ -1221,6 +1228,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12211228 LintId :: of( & inherent_to_string:: INHERENT_TO_STRING_SHADOW_DISPLAY ) ,
12221229 LintId :: of( & inline_fn_without_body:: INLINE_FN_WITHOUT_BODY ) ,
12231230 LintId :: of( & int_plus_one:: INT_PLUS_ONE ) ,
1231+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
12241232 LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
12251233 LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
12261234 LintId :: of( & len_zero:: LEN_ZERO ) ,
@@ -1652,6 +1660,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16521660 LintId :: of( & bytecount:: NAIVE_BYTECOUNT ) ,
16531661 LintId :: of( & entry:: MAP_ENTRY ) ,
16541662 LintId :: of( & escape:: BOXED_LOCAL ) ,
1663+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
16551664 LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
16561665 LintId :: of( & loops:: MANUAL_MEMCPY ) ,
16571666 LintId :: of( & loops:: NEEDLESS_COLLECT ) ,
0 commit comments