Skip to content

Pick up comments before where clause in traits #4213

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

Merged
merged 3 commits into from
May 31, 2020

Conversation

ayazhafiz
Copy link
Contributor

Closes #4211

@ayazhafiz ayazhafiz changed the title Use generics span end as position before "where" in traits Pick up comments before where clause in traits May 30, 2020
@@ -0,0 +1,13 @@
trait SomeTrait<T>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a case like this that's an idempotence check the file under source can be omitted.

Copy link
Member

@calebcartwright calebcartwright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

One inline comment about the file under source being unnecessary in the current state. Not a big deal, but it could either be removed or modified (for example moving the comments around to ensure they're formatted correctly when placed between the generic and where clause spans)

@ayazhafiz
Copy link
Contributor Author

Thanks for pointing that out; I had them with differing contents in a previous version and didn't clean it up. Should be fixed.

@topecongiro topecongiro merged commit 6a861fb into rust-lang:master May 31, 2020
@topecongiro
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Comment before where removed (traits only)
4 participants