Skip to content

Conversation

@jonas-schievink
Copy link
Contributor

@jonas-schievink jonas-schievink commented May 11, 2021

#8806 broke the TokenMap, so none of the tokens in fn-like proc macro inputs could be related to the output (presumably this is because of the clone_for_update).

This PR instead just sets delimiter = None; after the TokenMap and Subtree are already created.

We should probably have more tests for fn-like proc macros, and consider making the behavior consistent with MBE (which require the delimiters to be present).

bors r+

@bors
Copy link
Contributor

bors bot commented May 11, 2021

@bors bors bot merged commit 9a431c2 into rust-lang:master May 11, 2021
@jonas-schievink jonas-schievink deleted the fix-fn-macro-input-again branch May 11, 2021 23:18
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.

1 participant