@@ -247,6 +247,8 @@ mod literal_representation;
247
247
mod loops;
248
248
mod macro_use;
249
249
mod main_recursion;
250
+ mod manual_async_fn;
251
+ mod manual_non_exhaustive;
250
252
mod map_clone;
251
253
mod map_unit_fn;
252
254
mod match_on_vec_items;
@@ -628,6 +630,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
628
630
& loops:: WHILE_LET_ON_ITERATOR ,
629
631
& macro_use:: MACRO_USE_IMPORTS ,
630
632
& main_recursion:: MAIN_RECURSION ,
633
+ & manual_async_fn:: MANUAL_ASYNC_FN ,
634
+ & manual_non_exhaustive:: MANUAL_NON_EXHAUSTIVE ,
631
635
& map_clone:: MAP_CLONE ,
632
636
& map_unit_fn:: OPTION_MAP_UNIT_FN ,
633
637
& map_unit_fn:: RESULT_MAP_UNIT_FN ,
@@ -1054,7 +1058,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1054
1058
let max_struct_bools = conf. max_struct_bools ;
1055
1059
store. register_early_pass ( move || box excessive_bools:: ExcessiveBools :: new ( max_struct_bools, max_fn_params_bools) ) ;
1056
1060
store. register_early_pass ( || box option_env_unwrap:: OptionEnvUnwrap ) ;
1057
- store. register_late_pass ( || box wildcard_imports:: WildcardImports ) ;
1061
+ let warn_on_all_wildcard_imports = conf. warn_on_all_wildcard_imports ;
1062
+ store. register_late_pass ( move || box wildcard_imports:: WildcardImports :: new ( warn_on_all_wildcard_imports) ) ;
1058
1063
store. register_early_pass ( || box macro_use:: MacroUseImports ) ;
1059
1064
store. register_late_pass ( || box verbose_file_reads:: VerboseFileReads ) ;
1060
1065
store. register_late_pass ( || box redundant_pub_crate:: RedundantPubCrate :: default ( ) ) ;
@@ -1064,6 +1069,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1064
1069
store. register_late_pass ( || box utils:: internal_lints:: CollapsibleCalls ) ;
1065
1070
store. register_late_pass ( || box if_let_mutex:: IfLetMutex ) ;
1066
1071
store. register_late_pass ( || box match_on_vec_items:: MatchOnVecItems ) ;
1072
+ store. register_early_pass ( || box manual_non_exhaustive:: ManualNonExhaustive ) ;
1073
+ store. register_late_pass ( || box manual_async_fn:: ManualAsyncFn ) ;
1067
1074
1068
1075
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
1069
1076
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1138,6 +1145,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1138
1145
LintId :: of( & loops:: EXPLICIT_INTO_ITER_LOOP ) ,
1139
1146
LintId :: of( & loops:: EXPLICIT_ITER_LOOP ) ,
1140
1147
LintId :: of( & macro_use:: MACRO_USE_IMPORTS ) ,
1148
+ LintId :: of( & match_on_vec_items:: MATCH_ON_VEC_ITEMS ) ,
1141
1149
LintId :: of( & matches:: MATCH_BOOL ) ,
1142
1150
LintId :: of( & matches:: SINGLE_MATCH_ELSE ) ,
1143
1151
LintId :: of( & methods:: FILTER_MAP ) ,
@@ -1280,10 +1288,11 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1280
1288
LintId :: of( & loops:: WHILE_LET_LOOP ) ,
1281
1289
LintId :: of( & loops:: WHILE_LET_ON_ITERATOR ) ,
1282
1290
LintId :: of( & main_recursion:: MAIN_RECURSION ) ,
1291
+ LintId :: of( & manual_async_fn:: MANUAL_ASYNC_FN ) ,
1292
+ LintId :: of( & manual_non_exhaustive:: MANUAL_NON_EXHAUSTIVE ) ,
1283
1293
LintId :: of( & map_clone:: MAP_CLONE ) ,
1284
1294
LintId :: of( & map_unit_fn:: OPTION_MAP_UNIT_FN ) ,
1285
1295
LintId :: of( & map_unit_fn:: RESULT_MAP_UNIT_FN ) ,
1286
- LintId :: of( & match_on_vec_items:: MATCH_ON_VEC_ITEMS ) ,
1287
1296
LintId :: of( & matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
1288
1297
LintId :: of( & matches:: MATCH_AS_REF ) ,
1289
1298
LintId :: of( & matches:: MATCH_OVERLAPPING_ARM ) ,
@@ -1474,6 +1483,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1474
1483
LintId :: of( & loops:: NEEDLESS_RANGE_LOOP ) ,
1475
1484
LintId :: of( & loops:: WHILE_LET_ON_ITERATOR ) ,
1476
1485
LintId :: of( & main_recursion:: MAIN_RECURSION ) ,
1486
+ LintId :: of( & manual_async_fn:: MANUAL_ASYNC_FN ) ,
1487
+ LintId :: of( & manual_non_exhaustive:: MANUAL_NON_EXHAUSTIVE ) ,
1477
1488
LintId :: of( & map_clone:: MAP_CLONE ) ,
1478
1489
LintId :: of( & matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
1479
1490
LintId :: of( & matches:: MATCH_OVERLAPPING_ARM ) ,
@@ -1647,7 +1658,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1647
1658
LintId :: of( & loops:: NEVER_LOOP ) ,
1648
1659
LintId :: of( & loops:: REVERSE_RANGE_LOOP ) ,
1649
1660
LintId :: of( & loops:: WHILE_IMMUTABLE_CONDITION ) ,
1650
- LintId :: of( & match_on_vec_items:: MATCH_ON_VEC_ITEMS ) ,
1651
1661
LintId :: of( & mem_discriminant:: MEM_DISCRIMINANT_NON_ENUM ) ,
1652
1662
LintId :: of( & mem_replace:: MEM_REPLACE_WITH_UNINIT ) ,
1653
1663
LintId :: of( & methods:: CLONE_DOUBLE_REF ) ,
0 commit comments