From #5179, there’s a case where we hit an error "impossible", which doesn’t provide much context. This turns it into a parse failure, so we have #thte state of the lexer when this happens again. It also adds a comment that describes when this “impossible” case gets hit.
Test coverage
No coverage – this is to improve the diagnostics when this case gets hit again.
Loose ends
Ormolu is bad at formatting comments on conditional branches.
Overview
From #5179, there’s a case where we hit an
error "impossible"
, which doesn’t provide much context. This turns it into a parse failure, so we have #thte state of the lexer when this happens again. It also adds a comment that describes when this “impossible” case gets hit.Test coverage
No coverage – this is to improve the diagnostics when this case gets hit again.
Loose ends
Ormolu is bad at formatting comments on conditional branches.