-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)A-incr-compArea: Incremental compilationArea: Incremental compilationWG-compiler-performanceWorking group: Compiler PerformanceWorking group: Compiler Performance
Description
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 the const_eval
query to regular callers (similar to is_freeze_raw
) and having a wrapper query around it that does the validation and thus also caches the validation.
Metadata
Metadata
Assignees
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)A-incr-compArea: Incremental compilationArea: Incremental compilationWG-compiler-performanceWorking group: Compiler PerformanceWorking group: Compiler Performance