Skip to content
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

Use Ident::new_raw to quote raw identifiers #225

Merged
merged 1 commit into from Jun 20, 2022

Conversation

mystor
Copy link
Collaborator

@mystor mystor commented Jun 20, 2022

This requires the changes in dtolnay/proc-macro2#331 which expose Ident::new_raw from proc-macro2, along with providing a fallback for earlier versions of Rust. Marking as a draft until that's ready.

Fixes #223

dtolnay added a commit to dtolnay/proc-macro2 that referenced this pull request Jun 20, 2022
This is how quote's implementation did it prior to dtolnay/quote#225.
This requires the changes in
dtolnay/proc-macro2#331 which expose
Ident::new_raw from proc-macro2, along with providing a fallback for
earlier versions of Rust.

Fixes dtolnay#223
@dtolnay dtolnay marked this pull request as ready for review June 20, 2022 01:55
@dtolnay dtolnay merged commit 1e89973 into dtolnay:master Jun 20, 2022
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.

Use Ident::new_raw when it's available
2 participants