Consider changing Span::unknown()
and various instances of Span { start: 0, end: 0 }
to something else
#7308
Labels
enhancement
New feature or request
Related problem
No response
Describe the solution you'd like
In a recent PR of mine, I was told not to use
Span { start: 0, end: 0 }
orSpan::unknown()
because when displayed in errors, they show garbage arrows pointing to arbitrary code.However, these are still used in various places in the code, so I'm opening an issue for having them replaced with something else.
"Something else" because I don't have enough familiarity with the codebase to say what this would be. A better
Span
variant whose error arrows are explicitly not printed, perhaps?Describe alternatives you've considered
No response
Additional context and details
No response
The text was updated successfully, but these errors were encountered: