Skip to content
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

Pretty-print attributes on tuple structs and add tests #34310

Merged
merged 1 commit into from
Jun 19, 2016

Conversation

erickt
Copy link
Contributor

@erickt erickt commented Jun 16, 2016

This adds support to the pretty printer to print attributes added to tuple struct elements. Furthermore, it adds a test that makes sure we will print attributes on all variant data types.

@rust-highfive
Copy link
Contributor

r? @nrc

(rust_highfive has picked a reviewer for you, use r? to override)

@nrc
Copy link
Member

nrc commented Jun 16, 2016

Can you make the same change to the HIR pretty printer too please?

@bors
Copy link
Collaborator

bors commented Jun 17, 2016

☔ The latest upstream changes (presumably #34315) made this pull request unmergeable. Please resolve the merge conflicts.

This adds support to the pretty printer to print attributes
added to tuple struct elements.  Furthermore, it adds a test
that makes sure we will print attributes on all variant data
types.
@erickt erickt force-pushed the tuple-struct-attrs branch from 5f41f71 to 9de2de1 Compare June 17, 2016 10:15
@erickt
Copy link
Contributor Author

erickt commented Jun 17, 2016

@nrc: done!

@nrc
Copy link
Member

nrc commented Jun 18, 2016

@bors: r+ rollup

@bors
Copy link
Collaborator

bors commented Jun 18, 2016

📌 Commit 9de2de1 has been approved by nrc

@bors
Copy link
Collaborator

bors commented Jun 18, 2016

⌛ Testing commit 9de2de1 with merge 35784cb...

bors added a commit that referenced this pull request Jun 18, 2016
Pretty-print attributes on tuple structs and add tests

This adds support to the pretty printer to print attributes added to tuple struct elements.  Furthermore, it adds a test that makes sure we will print attributes on all variant data types.
@bors bors merged commit 9de2de1 into rust-lang:master Jun 19, 2016
erickt added a commit to erickt/syntex that referenced this pull request Jun 21, 2016
This backports rust-lang/rust#34310,
which has not yet landed in a nightly yet, so we can't yet
sync with the upstream libsyntax.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants