More precise spans for CTFE cycle errors #73283
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.
With #72879, CTFE cycle errors lost some of the precision in their span, which was deemed an acceptable consequence of code cleanup. Would be nice to fix that at some point, though.
With our current structure, getting this precision back would be non-trivial, but as a consequence of future cleanup it could become simpler: I have some plans for
Allocation
API changes, and we might make the methods inmemory.rs
associated withInterpCx
instead ofMemory
to avoid what is currently a quite annoying split.The text was updated successfully, but these errors were encountered: