Skip to content

Unsquash rust-lang/rust-bindgen#1793 for personal review #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 54 commits into from

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant