-
Notifications
You must be signed in to change notification settings - Fork 907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/comments inside trait generics gets duplicated #5446
Fix/comments inside trait generics gets duplicated #5446
Conversation
tests/target/issue-5358.rs
Outdated
@@ -0,0 +1,4 @@ | |||
// Test /* comment */ inside trait generics gets duplicated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this read Test /* comment */ inside trait generics does not get duplicated
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! I'll fix it un a few minutes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your first contribution 🎉
4e23b41
to
a17dfb2
Compare
a17dfb2
to
2ce5697
Compare
Fixes #5358
comment_hi
is equals to thegeneric.span.lo
if there actually are any generic parameters, otherwise it will kept the value previously defined.