@@ -915,7 +915,9 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
915
915
] ) ;
916
916
// end register lints, do not remove this comment, it’s used in `update_lints`
917
917
918
- store. register_late_pass ( || box await_holding_invalid:: AwaitHolding ) ;
918
+ let msrv = conf. msrv ;
919
+
920
+ store. register_late_pass ( || box await_holding_lock:: AwaitHoldingLock ) ;
919
921
store. register_late_pass ( || box serde_api:: SerdeAPI ) ;
920
922
store. register_late_pass ( || box utils:: internal_lints:: CompilerLintFunctions :: new ( ) ) ;
921
923
store. register_late_pass ( || box utils:: internal_lints:: LintWithoutLintPass :: default ( ) ) ;
@@ -950,7 +952,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
950
952
store. register_late_pass ( || box strings:: StringAdd ) ;
951
953
store. register_late_pass ( || box implicit_return:: ImplicitReturn ) ;
952
954
store. register_late_pass ( || box implicit_saturating_sub:: ImplicitSaturatingSub ) ;
953
- store. register_late_pass ( || box methods:: Methods ) ;
955
+ store. register_late_pass ( || box methods:: Methods :: new ( msrv ) ) ;
954
956
store. register_late_pass ( || box map_clone:: MapClone ) ;
955
957
store. register_late_pass ( || box map_err_ignore:: MapErrIgnore ) ;
956
958
store. register_late_pass ( || box shadow:: Shadow ) ;
@@ -964,7 +966,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
964
966
store. register_late_pass ( || box types:: Casts ) ;
965
967
let type_complexity_threshold = conf. type_complexity_threshold ;
966
968
store. register_late_pass ( move || box types:: TypeComplexity :: new ( type_complexity_threshold) ) ;
967
- store. register_late_pass ( || box matches:: Matches :: default ( ) ) ;
969
+ store. register_late_pass ( || box matches:: Matches { msrv : msrv , .. Default :: default ( ) } ) ;
968
970
store. register_late_pass ( || box minmax:: MinMaxPass ) ;
969
971
store. register_late_pass ( || box open_options:: OpenOptions ) ;
970
972
store. register_late_pass ( || box zero_div_zero:: ZeroDiv ) ;
@@ -1123,7 +1125,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1123
1125
store. register_late_pass ( || box if_let_mutex:: IfLetMutex ) ;
1124
1126
store. register_late_pass ( || box mut_mutex_lock:: MutMutexLock ) ;
1125
1127
store. register_late_pass ( || box match_on_vec_items:: MatchOnVecItems ) ;
1126
- store. register_early_pass ( || box manual_non_exhaustive:: ManualNonExhaustive ) ;
1128
+ store. register_early_pass ( || box manual_non_exhaustive:: ManualNonExhaustive :: new ( msrv ) ) ;
1127
1129
store. register_late_pass ( || box manual_async_fn:: ManualAsyncFn ) ;
1128
1130
store. register_early_pass ( || box redundant_field_names:: RedundantFieldNames ) ;
1129
1131
store. register_late_pass ( || box vec_resize_to_zero:: VecResizeToZero ) ;
@@ -1144,7 +1146,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1144
1146
store. register_late_pass ( || box manual_unwrap_or:: ManualUnwrapOr ) ;
1145
1147
store. register_late_pass ( || box float_equality_without_abs:: FloatEqualityWithoutAbs ) ;
1146
1148
store. register_late_pass ( || box async_yields_async:: AsyncYieldsAsync ) ;
1147
- store. register_late_pass ( || box manual_strip:: ManualStrip ) ;
1149
+ store. register_late_pass ( || box manual_strip:: ManualStrip :: new ( msrv ) ) ;
1148
1150
store. register_late_pass ( || box utils:: internal_lints:: MatchTypeOnDiagItem ) ;
1149
1151
let disallowed_methods = conf. disallowed_methods . iter ( ) . cloned ( ) . collect :: < FxHashSet < _ > > ( ) ;
1150
1152
store. register_late_pass ( move || box disallowed_method:: DisallowedMethod :: new ( & disallowed_methods) ) ;
0 commit comments