}
fn visit_lifetime(&mut self, lifetime_ref: &'tcx hir::Lifetime) {
+ if lifetime_ref.is_elided() {
+ return;
+ }
if lifetime_ref.name == keywords::StaticLifetime.name() {
self.insert_lifetime(lifetime_ref, DefStaticRegion);
return;
self.visit_lifetime(bound);
}
}
- &hir::WherePredicate::EqPredicate(hir::WhereEqPredicate{ id,
- ref path,
- ref ty,
- .. }) => {
- self.visit_path(path, id);
- self.visit_ty(&ty);
+ &hir::WherePredicate::EqPredicate(hir::WhereEqPredicate{ref lhs_ty,
+ ref rhs_ty,
+ .. }) => {
+ self.visit_ty(lhs_ty);
+ self.visit_ty(rhs_ty);
}
}
}