@@ -287,6 +287,7 @@ mod repeat_once;
287
287
mod returns;
288
288
mod serde_api;
289
289
mod shadow;
290
+ mod single_char_push_str;
290
291
mod single_component_path_imports;
291
292
mod slow_vector_initialization;
292
293
mod stable_sort_primitive;
@@ -775,6 +776,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
775
776
& shadow:: SHADOW_REUSE ,
776
777
& shadow:: SHADOW_SAME ,
777
778
& shadow:: SHADOW_UNRELATED ,
779
+ & single_char_push_str:: SINGLE_CHAR_PUSH_STR ,
778
780
& single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ,
779
781
& slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ,
780
782
& stable_sort_primitive:: STABLE_SORT_PRIMITIVE ,
@@ -932,6 +934,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
932
934
store. register_late_pass ( move || box escape:: BoxedLocal { too_large_for_stack} ) ;
933
935
store. register_late_pass ( || box panic_unimplemented:: PanicUnimplemented ) ;
934
936
store. register_late_pass ( || box strings:: StringLitAsBytes ) ;
937
+ store. register_late_pass ( || box single_char_push_str:: SingleCharPushStrPass ) ;
935
938
store. register_late_pass ( || box derive:: Derive ) ;
936
939
store. register_late_pass ( || box types:: CharLitAsU8 ) ;
937
940
store. register_late_pass ( || box vec:: UselessVec ) ;
@@ -1416,6 +1419,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1416
1419
LintId :: of( & returns:: NEEDLESS_RETURN ) ,
1417
1420
LintId :: of( & returns:: UNUSED_UNIT ) ,
1418
1421
LintId :: of( & serde_api:: SERDE_API_MISUSE ) ,
1422
+ LintId :: of( & single_char_push_str:: SINGLE_CHAR_PUSH_STR ) ,
1419
1423
LintId :: of( & single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
1420
1424
LintId :: of( & slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ) ,
1421
1425
LintId :: of( & stable_sort_primitive:: STABLE_SORT_PRIMITIVE ) ,
@@ -1556,6 +1560,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1556
1560
LintId :: of( & regex:: TRIVIAL_REGEX ) ,
1557
1561
LintId :: of( & returns:: NEEDLESS_RETURN ) ,
1558
1562
LintId :: of( & returns:: UNUSED_UNIT ) ,
1563
+ LintId :: of( & single_char_push_str:: SINGLE_CHAR_PUSH_STR ) ,
1559
1564
LintId :: of( & single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
1560
1565
LintId :: of( & strings:: STRING_LIT_AS_BYTES ) ,
1561
1566
LintId :: of( & tabs_in_doc_comments:: TABS_IN_DOC_COMMENTS ) ,
0 commit comments