Skip to content

Commit

Permalink
Fix parsing trait impl with qself in trait type
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 22, 2021
1 parent 7fad27f commit 650fcff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2455,7 +2455,7 @@ pub mod parsing {
while let Type::Group(ty) = first_ty_ref {
first_ty_ref = &ty.elem;
}
if let Type::Path(_) = first_ty_ref {
if let Type::Path(TypePath { qself: None, .. }) = first_ty_ref {
while let Type::Group(ty) = first_ty {
first_ty = *ty.elem;
}
Expand Down

0 comments on commit 650fcff

Please sign in to comment.