@@ -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;
@@ -600,6 +601,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
600
601
& loops:: WHILE_IMMUTABLE_CONDITION ,
601
602
& loops:: WHILE_LET_LOOP ,
602
603
& loops:: WHILE_LET_ON_ITERATOR ,
604
+ & macro_use:: MACRO_USE_IMPORTS ,
603
605
& main_recursion:: MAIN_RECURSION ,
604
606
& map_clone:: MAP_CLONE ,
605
607
& map_unit_fn:: OPTION_MAP_UNIT_FN ,
@@ -1015,6 +1017,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1015
1017
store. register_early_pass ( || box option_env_unwrap:: OptionEnvUnwrap ) ;
1016
1018
store. register_late_pass ( || box wildcard_imports:: WildcardImports ) ;
1017
1019
store. register_late_pass ( || box option_if_let_else:: OptionIfLetElse ) ;
1020
+ store. register_early_pass ( || box macro_use:: MacroUseImports ) ;
1018
1021
1019
1022
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
1020
1023
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1082,6 +1085,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1082
1085
LintId :: of( & literal_representation:: LARGE_DIGIT_GROUPS ) ,
1083
1086
LintId :: of( & loops:: EXPLICIT_INTO_ITER_LOOP ) ,
1084
1087
LintId :: of( & loops:: EXPLICIT_ITER_LOOP ) ,
1088
+ LintId :: of( & macro_use:: MACRO_USE_IMPORTS ) ,
1085
1089
LintId :: of( & matches:: SINGLE_MATCH_ELSE ) ,
1086
1090
LintId :: of( & methods:: FILTER_MAP ) ,
1087
1091
LintId :: of( & methods:: FILTER_MAP_NEXT ) ,
0 commit comments