You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Unless I'm missing something, there's no function to parse a
&str
as anIdent
with validation, like the otherparse_*
family of functions.My proc macro constructs
Ident
s 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 finalTokenStream
and fail with a non-descriptiveLexError
.The text was updated successfully, but these errors were encountered: