Skip to content

Move jointness censoring to proc_macro#76285

Merged
bors merged 2 commits intorust-lang:masterfrom
matklad:censor-spacing
Sep 5, 2020
Merged

Move jointness censoring to proc_macro#76285
bors merged 2 commits intorust-lang:masterfrom
matklad:censor-spacing

Conversation

@matklad
Copy link
Copy Markdown
Contributor

@matklad matklad commented Sep 3, 2020

Proc-macro API currently exposes jointness in Punct tokens. That is,
+ in +one is non joint.

Our lexer produces jointness info for all tokens, so we need to censor
it somewhere

Previously we did this in a lexer, but it makes more sense to do this
in a proc-macro server.

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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants