@@ -255,6 +255,7 @@ mod modulo_arithmetic;
255255mod multiple_crate_versions;
256256mod mut_key;
257257mod mut_mut;
258+ mod mut_mutex_lock;
258259mod mut_reference;
259260mod mutable_debug_assertion;
260261mod mutex_atomic;
@@ -744,6 +745,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
744745 & multiple_crate_versions:: MULTIPLE_CRATE_VERSIONS ,
745746 & mut_key:: MUTABLE_KEY_TYPE ,
746747 & mut_mut:: MUT_MUT ,
748+ & mut_mutex_lock:: MUT_MUTEX_LOCK ,
747749 & mut_reference:: UNNECESSARY_MUT_PASSED ,
748750 & mutable_debug_assertion:: DEBUG_ASSERT_WITH_MUT_CALL ,
749751 & mutex_atomic:: MUTEX_ATOMIC ,
@@ -1112,6 +1114,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11121114 store. register_late_pass ( || box future_not_send:: FutureNotSend ) ;
11131115 store. register_late_pass ( || box utils:: internal_lints:: CollapsibleCalls ) ;
11141116 store. register_late_pass ( || box if_let_mutex:: IfLetMutex ) ;
1117+ store. register_late_pass ( || box mut_mutex_lock:: MutMutexLock ) ;
11151118 store. register_late_pass ( || box match_on_vec_items:: MatchOnVecItems ) ;
11161119 store. register_early_pass ( || box manual_non_exhaustive:: ManualNonExhaustive ) ;
11171120 store. register_late_pass ( || box manual_async_fn:: ManualAsyncFn ) ;
@@ -1446,6 +1449,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14461449 LintId :: of( & misc_early:: UNNEEDED_WILDCARD_PATTERN ) ,
14471450 LintId :: of( & misc_early:: ZERO_PREFIXED_LITERAL ) ,
14481451 LintId :: of( & mut_key:: MUTABLE_KEY_TYPE ) ,
1452+ LintId :: of( & mut_mutex_lock:: MUT_MUTEX_LOCK ) ,
14491453 LintId :: of( & mut_reference:: UNNECESSARY_MUT_PASSED ) ,
14501454 LintId :: of( & mutex_atomic:: MUTEX_ATOMIC ) ,
14511455 LintId :: of( & needless_arbitrary_self_type:: NEEDLESS_ARBITRARY_SELF_TYPE ) ,
@@ -1780,6 +1784,9 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
17801784 LintId :: of( & misc:: FLOAT_CMP ) ,
17811785 LintId :: of( & misc:: MODULO_ONE ) ,
17821786 LintId :: of( & mut_key:: MUTABLE_KEY_TYPE ) ,
1787+ LintId :: of( & mut_mutex_lock:: MUT_MUTEX_LOCK ) ,
1788+ LintId :: of( & non_copy_const:: BORROW_INTERIOR_MUTABLE_CONST ) ,
1789+ LintId :: of( & non_copy_const:: DECLARE_INTERIOR_MUTABLE_CONST ) ,
17831790 LintId :: of( & open_options:: NONSENSICAL_OPEN_OPTIONS ) ,
17841791 LintId :: of( & option_env_unwrap:: OPTION_ENV_UNWRAP ) ,
17851792 LintId :: of( & ptr:: MUT_FROM_REF ) ,
0 commit comments