improve spans for CallArgument
constraints
#135238
Labels
A-borrow-checker
Area: The borrow checker
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-imprecise-spans
Diagnostics: spans don't point to exactly the erroneous code
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
that's a quirk of
CallArgument
constraints. they get their span from theLocation
of the call terminator; since they don't store the span of the particular argument, it gets lost in diagnostics. that said, it does look like we have the spans of each argument inTypeChecker::check_call_inputs
, so they could store that.Originally posted by @dianne in #133858 (comment)
The text was updated successfully, but these errors were encountered: