annotate stricter lifetimes on LateLintPass methods to allow them to forward to a Visitor

This commit is contained in:
Oliver Schneider
2016-12-06 11:26:52 +01:00
parent f7c93c07b8
commit 5e51edb0de
31 changed files with 525 additions and 420 deletions

View File

@@ -361,8 +361,8 @@ fn find_type_parameters(ty: &ast::Ty,
types: Vec<P<ast::Ty>>,
}
impl<'a, 'b> visit::Visitor for Visitor<'a, 'b> {
fn visit_ty(&mut self, ty: &ast::Ty) {
impl<'a, 'b> visit::Visitor<'a> for Visitor<'a, 'b> {
fn visit_ty(&mut self, ty: &'a ast::Ty) {
match ty.node {
ast::TyKind::Path(_, ref path) if !path.global => {
if let Some(segment) = path.segments.first() {