Spans for errors in try operator expressions are not great #42234
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-HIR
Area: The high-level intermediate representation (HIR)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
E.g.,
the expression with unknown type is the variable use
generics
, but the error highlight covers the entire sub-expression ofexpr?
. I assume this is due to us doing something sub-optimal with the spans here in the HIR lowering.The text was updated successfully, but these errors were encountered: