@@ -160,7 +160,7 @@ mod assign_ops;
160160mod async_yields_async;
161161mod atomic_ordering;
162162mod attrs;
163- mod await_holding_lock ;
163+ mod await_holding_invalid ;
164164mod bit_mask;
165165mod blacklisted_name;
166166mod blocks_in_if_conditions;
@@ -509,7 +509,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
509509 & attrs:: MISMATCHED_TARGET_OS ,
510510 & attrs:: UNKNOWN_CLIPPY_LINTS ,
511511 & 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 ,
513514 & bit_mask:: BAD_BIT_MASK ,
514515 & bit_mask:: INEFFECTIVE_BIT_MASK ,
515516 & bit_mask:: VERBOSE_BIT_MASK ,
@@ -906,7 +907,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
906907 ] ) ;
907908 // end register lints, do not remove this comment, it’s used in `update_lints`
908909
909- store. register_late_pass ( || box await_holding_lock :: AwaitHoldingLock ) ;
910+ store. register_late_pass ( || box await_holding_invalid :: AwaitHolding ) ;
910911 store. register_late_pass ( || box serde_api:: SerdeAPI ) ;
911912 store. register_late_pass ( || box utils:: internal_lints:: CompilerLintFunctions :: new ( ) ) ;
912913 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:
11901191
11911192 store. register_group ( true , "clippy::pedantic" , Some ( "clippy_pedantic" ) , vec ! [
11921193 LintId :: of( & attrs:: INLINE_ALWAYS ) ,
1193- LintId :: of( & await_holding_lock:: AWAIT_HOLDING_LOCK ) ,
11941194 LintId :: of( & bit_mask:: VERBOSE_BIT_MASK ) ,
11951195 LintId :: of( & checked_conversions:: CHECKED_CONVERSIONS ) ,
11961196 LintId :: of( & copies:: MATCH_SAME_ARMS ) ,
@@ -1290,6 +1290,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12901290 LintId :: of( & attrs:: MISMATCHED_TARGET_OS ) ,
12911291 LintId :: of( & attrs:: UNKNOWN_CLIPPY_LINTS ) ,
12921292 LintId :: of( & attrs:: USELESS_ATTRIBUTE ) ,
1293+ LintId :: of( & await_holding_invalid:: AWAIT_HOLDING_LOCK ) ,
1294+ LintId :: of( & await_holding_invalid:: AWAIT_HOLDING_REFCELL_REF ) ,
12931295 LintId :: of( & bit_mask:: BAD_BIT_MASK ) ,
12941296 LintId :: of( & bit_mask:: INEFFECTIVE_BIT_MASK ) ,
12951297 LintId :: of( & blacklisted_name:: BLACKLISTED_NAME ) ,
@@ -1736,6 +1738,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
17361738 LintId :: of( & attrs:: DEPRECATED_SEMVER ) ,
17371739 LintId :: of( & attrs:: MISMATCHED_TARGET_OS ) ,
17381740 LintId :: of( & attrs:: USELESS_ATTRIBUTE ) ,
1741+ LintId :: of( & await_holding_invalid:: AWAIT_HOLDING_LOCK ) ,
1742+ LintId :: of( & await_holding_invalid:: AWAIT_HOLDING_REFCELL_REF ) ,
17391743 LintId :: of( & bit_mask:: BAD_BIT_MASK ) ,
17401744 LintId :: of( & bit_mask:: INEFFECTIVE_BIT_MASK ) ,
17411745 LintId :: of( & booleans:: LOGIC_BUG ) ,
0 commit comments