Skip to content

Make libsyntax::print::pp more idiomatic - #33309

Merged
bors merged 2 commits into
rust-lang:masterfrom
birkenfeld:pp
May 3, 2016
Merged

Make libsyntax::print::pp more idiomatic#33309
bors merged 2 commits into
rust-lang:masterfrom
birkenfeld:pp

Conversation

@birkenfeld

Copy link
Copy Markdown
Contributor

Minor cleanup, and using VecDeque as a ring buffer instead of a vector.

* implement Display on Token instead of custom tok_str() fn
* use expression returns
* remove redundant parens in asserts
* remove "/* bad */" comments that appear to be related to early
changes in memory management
* and a few individual idiomatic changes
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @nrc

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

@birkenfeldbirkenfeld changed the title Some changes to libsyntax::print::ppMake libsyntax::print::pp more idiomaticMay 1, 2016
@nrc

nrc commented May 1, 2016

Copy link
Copy Markdown
Member

@bors: r+

@bors

bors commented May 1, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit 4186169 has been approved by nrc

Manishearth added a commit to Manishearth/rust that referenced this pull request May 2, 2016
Make libsyntax::print::pp more idiomatic
Minor cleanup, and using VecDeque as a ring buffer instead of a vector.
bors added a commit that referenced this pull request May 2, 2016
Manishearth added a commit to Manishearth/rust that referenced this pull request May 3, 2016
Make libsyntax::print::pp more idiomatic
Minor cleanup, and using VecDeque as a ring buffer instead of a vector.
bors added a commit that referenced this pull request May 3, 2016
@bors
bors merged commit 4186169 into rust-lang:masterMay 3, 2016
@birkenfeld
birkenfeld deleted the pp branch May 3, 2016 07:15
Sign up for freeto 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

@birkenfeld@rust-highfive@nrc@bors