Constant validation is not cached #53561
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-incr-comp
Area: Incremental compilation
WG-compiler-performance
Working group: Compiler Performance
Constant validation is not part of the query that evaluates constants, because it would cause cycle errors in case a static directly or transitively contained a pointer back to itself.
One possible solution is to wrap another query around the
const_eval
query, not exposing theconst_eval
query to regular callers (similar tois_freeze_raw
) and having a wrapper query around it that does the validation and thus also caches the validation.The text was updated successfully, but these errors were encountered: