@@ -229,6 +229,7 @@ mod mutex_atomic;
229229mod  needless_arbitrary_self_type; 
230230mod  needless_bool; 
231231mod  needless_borrowed_ref; 
232+ mod  needless_borrows_for_generic_args; 
232233mod  needless_continue; 
233234mod  needless_else; 
234235mod  needless_for_each; 
@@ -888,7 +889,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
888889    store. register_late_pass ( move  |_| Box :: new ( wildcard_imports:: WildcardImports :: new ( warn_on_all_wildcard_imports) ) ) ; 
889890    store. register_late_pass ( |_| Box :: < redundant_pub_crate:: RedundantPubCrate > :: default ( ) ) ; 
890891    store. register_late_pass ( |_| Box :: new ( unnamed_address:: UnnamedAddress ) ) ; 
891-     store. register_late_pass ( move   |_| Box :: new ( dereference:: Dereferencing :: new ( msrv ( ) ) ) ) ; 
892+     store. register_late_pass ( |_| Box :: < dereference:: Dereferencing < ' _ > > :: default ( ) ) ; 
892893    store. register_late_pass ( |_| Box :: new ( option_if_let_else:: OptionIfLetElse ) ) ; 
893894    store. register_late_pass ( |_| Box :: new ( future_not_send:: FutureNotSend ) ) ; 
894895    let  future_size_threshold = conf. future_size_threshold ; 
@@ -1113,6 +1114,11 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11131114    store. register_late_pass ( |_| Box :: new ( missing_asserts_for_indexing:: MissingAssertsForIndexing ) ) ; 
11141115    store. register_late_pass ( |_| Box :: new ( unnecessary_map_on_constructor:: UnnecessaryMapOnConstructor ) ) ; 
11151116    store. register_late_pass ( |_| Box :: new ( ambiguous_method_calls:: AmbiguousMethodCalls ) ) ; 
1117+     store. register_late_pass ( move  |_| { 
1118+         Box :: new ( needless_borrows_for_generic_args:: NeedlessBorrowsForGenericArgs :: new ( 
1119+             msrv ( ) , 
1120+         ) ) 
1121+     } ) ; 
11161122    // add lints here, do not remove this comment, it's used in `new_lint` 
11171123} 
11181124
0 commit comments