@@ -91,7 +91,7 @@ struct ExistingName {
91
91
struct SimilarNamesLocalVisitor < ' a , ' tcx > {
92
92
names : Vec < ExistingName > ,
93
93
cx : & ' a EarlyContext < ' tcx > ,
94
- lint : & ' a NonExpressiveNames ,
94
+ lint : NonExpressiveNames ,
95
95
96
96
/// A stack of scopes containing the single-character bindings in each scope.
97
97
single_char_names : Vec < Vec < Ident > > ,
@@ -365,7 +365,7 @@ impl EarlyLintPass for NonExpressiveNames {
365
365
..
366
366
} ) = item. kind
367
367
{
368
- do_check ( self , cx, & item. attrs , & sig. decl , blk) ;
368
+ do_check ( * self , cx, & item. attrs , & sig. decl , blk) ;
369
369
}
370
370
}
371
371
@@ -380,12 +380,12 @@ impl EarlyLintPass for NonExpressiveNames {
380
380
..
381
381
} ) = item. kind
382
382
{
383
- do_check ( self , cx, & item. attrs , & sig. decl , blk) ;
383
+ do_check ( * self , cx, & item. attrs , & sig. decl , blk) ;
384
384
}
385
385
}
386
386
}
387
387
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 ) {
389
389
if !attrs. iter ( ) . any ( |attr| attr. has_name ( sym:: test) ) {
390
390
let mut visitor = SimilarNamesLocalVisitor {
391
391
names : Vec :: new ( ) ,
0 commit comments