@@ -91,7 +91,7 @@ struct ExistingName {
9191struct SimilarNamesLocalVisitor < ' a , ' tcx > {
9292 names : Vec < ExistingName > ,
9393 cx : & ' a EarlyContext < ' tcx > ,
94- lint : & ' a NonExpressiveNames ,
94+ lint : NonExpressiveNames ,
9595
9696 /// A stack of scopes containing the single-character bindings in each scope.
9797 single_char_names : Vec < Vec < Ident > > ,
@@ -365,7 +365,7 @@ impl EarlyLintPass for NonExpressiveNames {
365365 ..
366366 } ) = item. kind
367367 {
368- do_check ( self , cx, & item. attrs , & sig. decl , blk) ;
368+ do_check ( * self , cx, & item. attrs , & sig. decl , blk) ;
369369 }
370370 }
371371
@@ -380,12 +380,12 @@ impl EarlyLintPass for NonExpressiveNames {
380380 ..
381381 } ) = item. kind
382382 {
383- do_check ( self , cx, & item. attrs , & sig. decl , blk) ;
383+ do_check ( * self , cx, & item. attrs , & sig. decl , blk) ;
384384 }
385385 }
386386}
387387
388- fn do_check ( lint : & mut NonExpressiveNames , cx : & EarlyContext < ' _ > , attrs : & [ Attribute ] , decl : & FnDecl , blk : & Block ) {
388+ fn do_check ( lint : NonExpressiveNames , cx : & EarlyContext < ' _ > , attrs : & [ Attribute ] , decl : & FnDecl , blk : & Block ) {
389389 if !attrs. iter ( ) . any ( |attr| attr. has_name ( sym:: test) ) {
390390 let mut visitor = SimilarNamesLocalVisitor {
391391 names : Vec :: new ( ) ,
0 commit comments