Skip to content

Add Span to ast::WhereClause #43501

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jul 30, 2017
Merged

Conversation

topecongiro
Copy link
Contributor

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

@alexcrichton alexcrichton added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 27, 2017
Copy link
Member

@nrc nrc left a 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,
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

@topecongiro topecongiro force-pushed the span-to-whereclause branch from 76634d7 to 6375b77 Compare July 28, 2017 15:43
@topecongiro
Copy link
Contributor Author

Rebased.

@estebank
Copy link
Contributor

@bors r=nrc

@bors
Copy link
Collaborator

bors commented Jul 28, 2017

📌 Commit 6375b77 has been approved by nrc

@Mark-Simulacrum
Copy link
Member

@bors rollup

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Jul 29, 2017
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
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Jul 30, 2017
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 added a commit that referenced this pull request Jul 30, 2017
Rollup of 8 pull requests

- Successful merges: #43409, #43501, #43509, #43512, #43513, #43536, #43544, #43549
- Failed merges:
@bors bors merged commit 6375b77 into rust-lang:master Jul 30, 2017
@topecongiro topecongiro deleted the span-to-whereclause branch July 30, 2017 06:09
@kennytm
Copy link
Member

kennytm commented Jul 31, 2017

@bors p=-2 (unblock bors)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants