@@ -284,6 +284,7 @@ pub mod replace_consts;
284
284
pub mod returns;
285
285
pub mod serde_api;
286
286
pub mod shadow;
287
+ pub mod single_component_path_imports;
287
288
pub mod slow_vector_initialization;
288
289
pub mod strings;
289
290
pub mod suspicious_trait_impl;
@@ -741,6 +742,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
741
742
& shadow:: SHADOW_REUSE ,
742
743
& shadow:: SHADOW_SAME ,
743
744
& shadow:: SHADOW_UNRELATED ,
745
+ & single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ,
744
746
& slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ,
745
747
& strings:: STRING_ADD ,
746
748
& strings:: STRING_ADD_ASSIGN ,
@@ -993,6 +995,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
993
995
store. register_early_pass ( || box utils:: internal_lints:: ProduceIce ) ;
994
996
store. register_late_pass ( || box let_underscore:: LetUnderscore ) ;
995
997
store. register_late_pass ( || box atomic_ordering:: AtomicOrdering ) ;
998
+ store. register_early_pass ( || box single_component_path_imports:: SingleComponentPathImports ) ;
996
999
997
1000
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
998
1001
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1296,6 +1299,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1296
1299
LintId :: of( & returns:: NEEDLESS_RETURN ) ,
1297
1300
LintId :: of( & returns:: UNUSED_UNIT ) ,
1298
1301
LintId :: of( & serde_api:: SERDE_API_MISUSE ) ,
1302
+ LintId :: of( & single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
1299
1303
LintId :: of( & slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ) ,
1300
1304
LintId :: of( & strings:: STRING_LIT_AS_BYTES ) ,
1301
1305
LintId :: of( & suspicious_trait_impl:: SUSPICIOUS_ARITHMETIC_IMPL ) ,
@@ -1431,6 +1435,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1431
1435
LintId :: of( & returns:: LET_AND_RETURN ) ,
1432
1436
LintId :: of( & returns:: NEEDLESS_RETURN ) ,
1433
1437
LintId :: of( & returns:: UNUSED_UNIT ) ,
1438
+ LintId :: of( & single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
1434
1439
LintId :: of( & strings:: STRING_LIT_AS_BYTES ) ,
1435
1440
LintId :: of( & tabs_in_doc_comments:: TABS_IN_DOC_COMMENTS ) ,
1436
1441
LintId :: of( & to_digit_is_some:: TO_DIGIT_IS_SOME ) ,
0 commit comments