Skip to content

Conversation

errordeveloper
Copy link

No description provided.

@errordeveloper
Copy link
Author

@alexcrichton r?

@liigo
Copy link
Contributor

liigo commented Jul 31, 2014

thanks

matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this pull request Feb 11, 2024
fix: Recover from missing argument in call expressions

Previously, when parsing an argument list with a missing argument (e.g., `(a, , b)` in `foo(a, , b)`), the parser would stop upon an unexpected token (at the second comma in the example), resulting in an incorrect parse tree.

This commit improves error handling in such cases, ensuring a more accurate parse tree is built.

---

Fixes rust-lang/rust-analyzer#15683.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants