Skip to content

Improve token stream pretty printing.#97340

Closed
nnethercote wants to merge 1 commit intorust-lang:masterfrom
nnethercote:improve-token-stream-pretty-printing
Closed

Improve token stream pretty printing.#97340
nnethercote wants to merge 1 commit intorust-lang:masterfrom
nnethercote:improve-token-stream-pretty-printing

Conversation

@nnethercote
Copy link
Copy Markdown
Contributor

@nnethercote nnethercote commented May 24, 2022

Specifically:

  • No space before or after ::, e.g. a::b instead of a :: b.
  • No space between ! and (, e.g. foo!() instead of foo! ().
  • No space between ! and [, e.g. #![...] instead of #! [...].
  • No space before :, e.g. a: u32 instead of a : u32.
  • No space before ;, e.g. struct A; instead of struct A ;.

r? @petrochenkov

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants