Skip to content

Conversation

@kulp
Copy link
Owner

@kulp kulp commented Apr 17, 2025

This never-to-be-merged PR shows the pre-squash version of what became rust-lang#1793.

The tip of this PR is identical (except for a comment change) to rust-lang@d2e0407.

kulp added 30 commits June 20, 2020 11:17
A macro expansion could contain a string constant, which might not be UTF-8. Also, using `&[u8]` for the expansion keeps the new API closer to the precedent set by `str_macro`.
If we cannot reproduce the original whitespace anyway, then we should let the callee decide what to do with the tokens, rather than smashing them together in a "safe" way.
Also switch to an explicit version check in `parse_macro`
@kulp kulp closed this Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants