@@ -228,6 +228,7 @@ mod mutex_atomic;
228228mod needless_arbitrary_self_type;
229229mod needless_bool;
230230mod needless_borrowed_ref;
231+ mod needless_borrows_for_generic_args;
231232mod needless_continue;
232233mod needless_else;
233234mod needless_for_each;
@@ -880,7 +881,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
880881 store. register_late_pass ( move |_| Box :: new ( wildcard_imports:: WildcardImports :: new ( warn_on_all_wildcard_imports) ) ) ;
881882 store. register_late_pass ( |_| Box :: < redundant_pub_crate:: RedundantPubCrate > :: default ( ) ) ;
882883 store. register_late_pass ( |_| Box :: new ( unnamed_address:: UnnamedAddress ) ) ;
883- store. register_late_pass ( move |_| Box :: new ( dereference:: Dereferencing :: new ( msrv ( ) ) ) ) ;
884+ store. register_late_pass ( |_| Box :: < dereference:: Dereferencing < ' _ > > :: default ( ) ) ;
884885 store. register_late_pass ( |_| Box :: new ( option_if_let_else:: OptionIfLetElse ) ) ;
885886 store. register_late_pass ( |_| Box :: new ( future_not_send:: FutureNotSend ) ) ;
886887 let future_size_threshold = conf. future_size_threshold ;
@@ -1104,6 +1105,11 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11041105 store. register_late_pass ( |_| Box :: new ( implied_bounds_in_impls:: ImpliedBoundsInImpls ) ) ;
11051106 store. register_late_pass ( |_| Box :: new ( missing_asserts_for_indexing:: MissingAssertsForIndexing ) ) ;
11061107 store. register_late_pass ( |_| Box :: new ( unnecessary_map_on_constructor:: UnnecessaryMapOnConstructor ) ) ;
1108+ store. register_late_pass ( move |_| {
1109+ Box :: new ( needless_borrows_for_generic_args:: NeedlessBorrowsForGenericArgs :: new (
1110+ msrv ( ) ,
1111+ ) )
1112+ } ) ;
11071113 // add lints here, do not remove this comment, it's used in `new_lint`
11081114}
11091115
0 commit comments