-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Add Span to ast::WhereClause #43501
Add Span to ast::WhereClause #43501
Conversation
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.
r=me with that minor change
@@ -216,6 +216,7 @@ fn mk_generics(lifetimes: Vec<ast::LifetimeDef>, ty_params: Vec<ast::TyParam>, s | |||
where_clause: ast::WhereClause { | |||
id: ast::DUMMY_NODE_ID, | |||
predicates: Vec::new(), | |||
span: DUMMY_SP, |
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 use span
here rather than DUMMY_SP
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!
76634d7
to
6375b77
Compare
Rebased. |
@bors r=nrc |
📌 Commit 6375b77 has been approved by |
@bors rollup |
Add Span to ast::WhereClause This PR adds `Span` field to `ast::WhereClause`. The motivation here is to make rustfmt's life easier when recovering comments before and after where clause. r? @nrc
Add Span to ast::WhereClause This PR adds `Span` field to `ast::WhereClause`. The motivation here is to make rustfmt's life easier when recovering comments before and after where clause. r? @nrc
@bors p=-2 (unblock bors) |
This PR adds
Span
field toast::WhereClause
. The motivation here is to make rustfmt's life easier when recovering comments before and after where clause.r? @nrc