Open
Description
Right now when we encounter a ConstValue::Unevaluated
during pretty printing, we fall back to printing the constant's source code or _
if that also fails. Alternative options are:
- try to eagerly evaluate (and fall back to one of the following)
- always print
_
- print something like
{{unevaluated: {}}}
where{}
is the source code - print just
{unevaluated}
(seems useless for users, so maybe not a good idea)
Metadata
Metadata
Assignees
Labels
Area: Constant evaluation, covers all const contexts (static, const fn, ...)Area: const generics (parameters and arguments)Area: Messages for errors, warnings, and lintsCategory: An issue proposing an enhancement or a PR with one.Relevant to the compiler team, which will review and decide on the PR/issue.