Skip to content

Conversation

@Anders429
Copy link
Contributor

Solution to issue #63.

proc_macro2::Ident::new() doesn't allow raw identifiers, and proc_macro2::Ident::new_raw() provided by the same crate is unstable. Therefore, the solution here is to check if the identifier begins with "r#', and if so, keep the "r#" as long as there are no added prefixes and suffixes.

In the other cases, we can use syn::ext::IdentExt::unraw() to remove the rawness of the identifier.

@Anders429
Copy link
Contributor Author

Looks like the build failure for the coverage test is related to this pull request, and is unrelated to the changes in this PR.

@Anders429
Copy link
Contributor Author

@Hoverbear Just a friendly ping. Do you have any feedback on this?

@Hoverbear
Copy link
Collaborator

@Anders429 I'm sorry, I didn't even see this! 😓

@Hoverbear Hoverbear merged commit a4222c2 into jbaublitz:master Mar 19, 2021
@Hoverbear
Copy link
Collaborator

Thank you, this is a great change. Sorry about the delays.

@Anders429
Copy link
Contributor Author

No worries, I understand :) Thanks!

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.

2 participants