We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
You can reproduce this bug with default features by calling syn::parse_str::<syn::Expr>("q^0:");
syn::parse_str::<syn::Expr>("q^0:");
This bug does not happen with feature full as this case seems handled here https://github.com/dtolnay/syn/blob/master/src/expr.rs#L1355
full
A fix could be to remove the check for input.peek(Token![as]) at https://github.com/dtolnay/syn/blob/master/src/expr.rs#L1402 (but I am not sure if it breaks other things)
input.peek(Token![as])
The text was updated successfully, but these errors were encountered:
:
Thanks! I published a fix in 1.0.66.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
You can reproduce this bug with default features by calling
syn::parse_str::<syn::Expr>("q^0:");
This bug does not happen with feature
full
as this case seems handled here https://github.com/dtolnay/syn/blob/master/src/expr.rs#L1355A fix could be to remove the check for
input.peek(Token![as])
at https://github.com/dtolnay/syn/blob/master/src/expr.rs#L1402(but I am not sure if it breaks other things)
The text was updated successfully, but these errors were encountered: