annotate stricter lifetimes on LateLintPass methods to allow them to forward to a Visitor
This commit is contained in:
parent
f7c93c07b8
commit
5e51edb0de
31 changed files with 525 additions and 420 deletions
|
@ -129,8 +129,8 @@ impl<'a> CheckAttrVisitor<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> Visitor for CheckAttrVisitor<'a> {
|
||||
fn visit_item(&mut self, item: &ast::Item) {
|
||||
impl<'a> Visitor<'a> for CheckAttrVisitor<'a> {
|
||||
fn visit_item(&mut self, item: &'a ast::Item) {
|
||||
let target = Target::from_item(item);
|
||||
for attr in &item.attrs {
|
||||
self.check_attribute(attr, target);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue