Feed a span into the const eval queries in case of an error #104438
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
We could do that by having an
Option<Span>
argument in the query key that we only set toSome
if we are erroring. So basically invoke it once withNone
, causing no error to be emitted, but an error to be returned, if you get back an error, invoke again withSome(span)
and now the query can error inside.Originally posted by @oli-obk in #104317 (comment)
The text was updated successfully, but these errors were encountered: