Skip to content

Commit

Permalink
Recurse into impl Trait types inside impl Trait types
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 2, 2022
1 parent e872085 commit a4c76a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lifetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ impl VisitMut for AddLifetimeToImplTrait {
if let Some(punct) = ty.bounds.pairs_mut().next().unwrap().punct_mut() {
punct.span = span;
}
visit_mut::visit_type_impl_trait_mut(self, ty);
}

fn visit_expr_mut(&mut self, _e: &mut Expr) {
Expand Down

0 comments on commit a4c76a6

Please sign in to comment.