You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test overlapping_spans is deliberately trying to create a bug where two "distinct" spans that happen to overlap will be reported by the diagnostic tool, to test our ability to render them in different styles so that the end user can distinguish them.
Look, its easier if you just see the output from AST-borrowck:
The test overlapping_spans is deliberately trying to create a bug where two "distinct" spans that happen to overlap will be reported by the diagnostic tool, to test our ability to render them in different styles so that the end user can distinguish them.
Look, its easier if you just see the output from AST-borrowck:
rust/src/test/ui/codemap_tests/overlapping_spans.stderr
Lines 4 to 8 in 2e104a7
You can see on line 5 the interesting pair of spans combined by using different characters:
^^^^^--^
The problem is that NLL currently happens to not issue such a report with such overlapping spans.
The particular output from NLL right now is the following, but I do not want to categorize that choice of output as a bug in NLL at the moment.
rust/src/test/ui/codemap_tests/overlapping_spans.nll.stderr
Lines 1 to 9 in 746d63a
Thus it fails to exercise the behavior that we are interested in witnessing in this test.
Can someone come up with a test for such overlapping spans that does not rely on vagaries of the borrow checker?
The text was updated successfully, but these errors were encountered: