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
potentially incorrect conflict; suggest inline? #728
Comments
I think this conflict is correct, with inlining being a good fix. Digging through the error messages, I found good ones like:
That points at the problem being that Method and Field are ambiguous. After a Flags, if we see a Type, we don't know whether or not to insert a This is essentially exactly the situation described in this test. So I think the real issue here is if there is error message improvement possible.
I'd love to look into this and submit a PR if someone could point me in the right direction to get started.
Is it that they aren't triggering, or that they're lost in the noise? |
I have experienced multiple conflicts recently that seemed to be artificial. Adding an inline, as suggested, did the trick each time, but I'm still clueless as to why there was conflict to begin with. One of the most recent one is that I split a rule |
This grammar that I was playing with gets a ton of errors. They all go away if you uncomment the
#[inline]
onGenerics
; but I am not convinced that should be required for the grammar to be LR(1). We should investigate if this is a bug in the lane-table algorithm or legit; if legit, there really ought to be a way to suggest#[inline]
as a way to resolve the problem.Also, the error messages here are a mix of "good and bad", it'd be nice to investigate why the nice errors aren't triggering.
The text was updated successfully, but these errors were encountered: