fix: #631 revert change in label.rs to fix error labels#645
Conversation
When a source does not contain a newline, labels are lost/ignored and replaced with the fallback `expected something else`. This reverts the change made in this commit which appears to fix this zesterer@6837537#diff-3d2dfe7e70ee2398dd0941e8f6ea855652695c3f82b7816f649668fb2d56b93dR60
|
Hmm. I am a bit suspicious of this, but I need to take another look at it at some point. Do tests continue to pass with |
Yeah me too, I'm not familiar with this part of the codebase. I had a play around with the diffs to see what would fix it for my repo and this has. Looks like the tests are failing. |
|
I seem to be encountering this issue in |
|
I replicated this issue locally with a parser and confirmed this patch fixes it. Additionally, the CI failures seem to be spurious failures caused by |
As a point of interest, do you have an example of what you think the correct behaviour is that you can turn into a test? That would be very useful for figuring out the best way to implement a fix. |
38bb88c to
02a1373
Compare
0f2b61a to
e350fc6
Compare
When a source does not contain a newline, labels are lost/ignored and replaced with the fallback
expected something else.This reverts the change made in this commit which appears to fix this 6837537#diff-3d2dfe7e70ee2398dd0941e8f6ea855652695c3f82b7816f649668fb2d56b93dR60