Skip to content

expand: Stop normalizing NtIdents before passing them to built-in macros#77275

Merged
bors merged 2 commits intorust-lang:masterfrom
petrochenkov:interpid
Sep 29, 2020
Merged

expand: Stop normalizing NtIdents before passing them to built-in macros#77275
bors merged 2 commits intorust-lang:masterfrom
petrochenkov:interpid

Conversation

@petrochenkov
Copy link
Copy Markdown
Contributor

Built-in macros should be able to deal with NtIdents in the input by themselves like any other parser code.

You can't imagine how bad mutable AST visitors are, especially if they are modifying tokens.
This is one step towards removing token visiting from the visitor infrastructure (#77271 also works in this direction.)

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

Labels

merged-by-bors This PR was explicitly merged by bors. 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.

7 participants