-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
ra_syntax: errors on a type cast + comparison #595
Comments
The relevant code in |
@DJMcNab missing link to linsyntax source? |
Oops. I'm on mobile so can't link now, but it's a line about creating a Snapshot and reloading it on syntax errors in the parsed trait bound |
I think that logic exists solely for the purpose of better error message. it should be possible to parse this without lookahead. See rust-lang/rust#42578 and the state of the code before that PR for how this should be done. We'll add backtracking later, of course, but for the start it's better to keep things simple. |
Specifically, the following is still error in rustc:
|
This is working now, so issue can be closed. |
The text was updated successfully, but these errors were encountered: