@@ -160,7 +160,7 @@ mod assign_ops;
160
160
mod async_yields_async;
161
161
mod atomic_ordering;
162
162
mod attrs;
163
- mod await_holding_lock ;
163
+ mod await_holding_invalid ;
164
164
mod bit_mask;
165
165
mod blacklisted_name;
166
166
mod blocks_in_if_conditions;
@@ -509,7 +509,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
509
509
& attrs:: MISMATCHED_TARGET_OS ,
510
510
& attrs:: UNKNOWN_CLIPPY_LINTS ,
511
511
& attrs:: USELESS_ATTRIBUTE ,
512
- & await_holding_lock:: AWAIT_HOLDING_LOCK ,
512
+ & await_holding_invalid:: AWAIT_HOLDING_LOCK ,
513
+ & await_holding_invalid:: AWAIT_HOLDING_REFCELL_REF ,
513
514
& bit_mask:: BAD_BIT_MASK ,
514
515
& bit_mask:: INEFFECTIVE_BIT_MASK ,
515
516
& bit_mask:: VERBOSE_BIT_MASK ,
@@ -906,7 +907,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
906
907
] ) ;
907
908
// end register lints, do not remove this comment, it’s used in `update_lints`
908
909
909
- store. register_late_pass ( || box await_holding_lock :: AwaitHoldingLock ) ;
910
+ store. register_late_pass ( || box await_holding_invalid :: AwaitHolding ) ;
910
911
store. register_late_pass ( || box serde_api:: SerdeAPI ) ;
911
912
store. register_late_pass ( || box utils:: internal_lints:: CompilerLintFunctions :: new ( ) ) ;
912
913
store. register_late_pass ( || box utils:: internal_lints:: LintWithoutLintPass :: default ( ) ) ;
@@ -1190,7 +1191,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1190
1191
1191
1192
store. register_group ( true , "clippy::pedantic" , Some ( "clippy_pedantic" ) , vec ! [
1192
1193
LintId :: of( & attrs:: INLINE_ALWAYS ) ,
1193
- LintId :: of( & await_holding_lock:: AWAIT_HOLDING_LOCK ) ,
1194
1194
LintId :: of( & bit_mask:: VERBOSE_BIT_MASK ) ,
1195
1195
LintId :: of( & checked_conversions:: CHECKED_CONVERSIONS ) ,
1196
1196
LintId :: of( & copies:: MATCH_SAME_ARMS ) ,
@@ -1290,6 +1290,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1290
1290
LintId :: of( & attrs:: MISMATCHED_TARGET_OS ) ,
1291
1291
LintId :: of( & attrs:: UNKNOWN_CLIPPY_LINTS ) ,
1292
1292
LintId :: of( & attrs:: USELESS_ATTRIBUTE ) ,
1293
+ LintId :: of( & await_holding_invalid:: AWAIT_HOLDING_LOCK ) ,
1294
+ LintId :: of( & await_holding_invalid:: AWAIT_HOLDING_REFCELL_REF ) ,
1293
1295
LintId :: of( & bit_mask:: BAD_BIT_MASK ) ,
1294
1296
LintId :: of( & bit_mask:: INEFFECTIVE_BIT_MASK ) ,
1295
1297
LintId :: of( & blacklisted_name:: BLACKLISTED_NAME ) ,
@@ -1736,6 +1738,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1736
1738
LintId :: of( & attrs:: DEPRECATED_SEMVER ) ,
1737
1739
LintId :: of( & attrs:: MISMATCHED_TARGET_OS ) ,
1738
1740
LintId :: of( & attrs:: USELESS_ATTRIBUTE ) ,
1741
+ LintId :: of( & await_holding_invalid:: AWAIT_HOLDING_LOCK ) ,
1742
+ LintId :: of( & await_holding_invalid:: AWAIT_HOLDING_REFCELL_REF ) ,
1739
1743
LintId :: of( & bit_mask:: BAD_BIT_MASK ) ,
1740
1744
LintId :: of( & bit_mask:: INEFFECTIVE_BIT_MASK ) ,
1741
1745
LintId :: of( & booleans:: LOGIC_BUG ) ,
0 commit comments