-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Parse error in tuple access foo.0. bar
#10492
Comments
Context: you might argue that this is incorrect style, but in my case, rust-analyzer was reporting error in auto-generated code using quote. It was generated with something like the following exampe
which prints |
I'd like to work on this if that's ok |
I think this issue is basically resolving this FIXME: https://github.com/rust-analyzer/rust-analyzer/blob/545b068a7720374a13e04db24e0bef6237822f2a/crates/parser/src/grammar/expressions.rs#L483 |
This is supported rust syntax since rust 1.46, but rust-analyzer fail to parse it in some cases:
The following code compiles fine, but rust-analizer incorrectly reports an error:
The text was updated successfully, but these errors were encountered: