@@ -234,6 +234,7 @@ pub mod let_underscore;
234
234
pub mod lifetimes;
235
235
pub mod literal_representation;
236
236
pub mod loops;
237
+ pub mod macro_use;
237
238
pub mod main_recursion;
238
239
pub mod map_clone;
239
240
pub mod map_unit_fn;
@@ -599,6 +600,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
599
600
& loops:: WHILE_IMMUTABLE_CONDITION ,
600
601
& loops:: WHILE_LET_LOOP ,
601
602
& loops:: WHILE_LET_ON_ITERATOR ,
603
+ & macro_use:: MACRO_USE_IMPORT ,
602
604
& main_recursion:: MAIN_RECURSION ,
603
605
& map_clone:: MAP_CLONE ,
604
606
& map_unit_fn:: OPTION_MAP_UNIT_FN ,
@@ -1012,6 +1014,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1012
1014
store. register_early_pass ( move || box excessive_bools:: ExcessiveBools :: new ( max_struct_bools, max_fn_params_bools) ) ;
1013
1015
store. register_early_pass ( || box option_env_unwrap:: OptionEnvUnwrap ) ;
1014
1016
store. register_late_pass ( || box wildcard_imports:: WildcardImports ) ;
1017
+ store. register_early_pass ( || box macro_use:: MacroUseImport ) ;
1015
1018
1016
1019
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
1017
1020
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1079,6 +1082,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1079
1082
LintId :: of( & literal_representation:: LARGE_DIGIT_GROUPS ) ,
1080
1083
LintId :: of( & loops:: EXPLICIT_INTO_ITER_LOOP ) ,
1081
1084
LintId :: of( & loops:: EXPLICIT_ITER_LOOP ) ,
1085
+ LintId :: of( & macro_use:: MACRO_USE_IMPORT ) ,
1082
1086
LintId :: of( & matches:: SINGLE_MATCH_ELSE ) ,
1083
1087
LintId :: of( & methods:: FILTER_MAP ) ,
1084
1088
LintId :: of( & methods:: FILTER_MAP_NEXT ) ,
0 commit comments