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

No parse_ident? #71

Closed
Arnavion opened this issue Dec 22, 2016 · 1 comment
Closed

No parse_ident? #71

Arnavion opened this issue Dec 22, 2016 · 1 comment

Comments

@Arnavion
Copy link
Contributor

Unless I'm missing something, there's no function to parse a &str as an Ident with validation, like the other parse_* family of functions.

My proc macro constructs Idents from user-supplied strings, so it would be nice to fail early instead of letting the non-ident bubble up all the way to the final TokenStream and fail with a non-descriptive LexError.

@dtolnay
Copy link
Owner

dtolnay commented Dec 22, 2016

I added syn::parse_ident in 0.10.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants