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

Strip pretty-printed invisible delimiters for type names #155

Closed
ascjones opened this issue May 16, 2022 · 0 comments · Fixed by #156
Closed

Strip pretty-printed invisible delimiters for type names #155

ascjones opened this issue May 16, 2022 · 0 comments · Fixed by #156

Comments

@ascjones
Copy link
Contributor

ascjones commented May 16, 2022

See rust-lang/rust#97076 and rust-lang/rust#96682.

This can happen where TypeInfo is derived for a type generated by a ty expression in a declarative macro. This is parsed as a syn::Type::Group, which is then pretty-printed with the invisible delimiters "/*»*/" and "/*«*/".

These should be stripped, possibly in clean_type_string, but maybe there is a cleaner way to do it.

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 a pull request may close this issue.

1 participant