@@ -284,6 +284,7 @@ pub mod replace_consts;
284284pub mod returns;
285285pub mod serde_api;
286286pub mod shadow;
287+ pub mod single_component_path_imports;
287288pub mod slow_vector_initialization;
288289pub mod strings;
289290pub mod suspicious_trait_impl;
@@ -741,6 +742,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
741742 & shadow:: SHADOW_REUSE ,
742743 & shadow:: SHADOW_SAME ,
743744 & shadow:: SHADOW_UNRELATED ,
745+ & single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ,
744746 & slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ,
745747 & strings:: STRING_ADD ,
746748 & strings:: STRING_ADD_ASSIGN ,
@@ -993,6 +995,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
993995 store. register_early_pass ( || box utils:: internal_lints:: ProduceIce ) ;
994996 store. register_late_pass ( || box let_underscore:: LetUnderscore ) ;
995997 store. register_late_pass ( || box atomic_ordering:: AtomicOrdering ) ;
998+ store. register_early_pass ( || box single_component_path_imports:: SingleComponentPathImports ) ;
996999
9971000 store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
9981001 LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1296,6 +1299,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12961299 LintId :: of( & returns:: NEEDLESS_RETURN ) ,
12971300 LintId :: of( & returns:: UNUSED_UNIT ) ,
12981301 LintId :: of( & serde_api:: SERDE_API_MISUSE ) ,
1302+ LintId :: of( & single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
12991303 LintId :: of( & slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ) ,
13001304 LintId :: of( & strings:: STRING_LIT_AS_BYTES ) ,
13011305 LintId :: of( & suspicious_trait_impl:: SUSPICIOUS_ARITHMETIC_IMPL ) ,
@@ -1431,6 +1435,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14311435 LintId :: of( & returns:: LET_AND_RETURN ) ,
14321436 LintId :: of( & returns:: NEEDLESS_RETURN ) ,
14331437 LintId :: of( & returns:: UNUSED_UNIT ) ,
1438+ LintId :: of( & single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
14341439 LintId :: of( & strings:: STRING_LIT_AS_BYTES ) ,
14351440 LintId :: of( & tabs_in_doc_comments:: TABS_IN_DOC_COMMENTS ) ,
14361441 LintId :: of( & to_digit_is_some:: TO_DIGIT_IS_SOME ) ,
0 commit comments