-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Correctly parse higher-ranked trait bounds #191
Comments
@matklad do we have a place to track current language support? If there are other unsupported syntax constructs maybe we should create a tracking issue where we can list all of them. |
Fixing parser usually takes approximately the the same amount of work as logging the issue, the hard part is figuring out what's wrong. Hopefully, grammar working group will produce a comprehensive test suite. Though, just logging a "parser error" issue with the code in question is helpful! |
To rephrase this a bit, the core issue is that we need to have a comprehensive test suite. I suggest just waiting for it to appear, and in meanwhile just fix bugs as we see them. If no test-suite appears, we could make one using IntelliJ's parser. |
Another way to test would be to parse well-known big Rust crates and see if the parser produces any errors. In theory, no errors should appear, right? Or do we want to test more than "the parser didn't produce any errors"? |
Yep, that would also be a good step! |
I wonder if we could reuse some of the code from crater itself. I imagine it's made in a way that would allow us to use a custom process on each crate, rather than being limited to cargo check and test |
The function below:
Produces a bunch of errors:
As you can see in the following AST:
The text was updated successfully, but these errors were encountered: