Consider changing the way unevaluated constants are printed #61581
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-const-generics
Area: const generics (parameters and arguments)
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
cc #60742 (comment)
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:_
{{unevaluated: {}}}
where{}
is the source code{unevaluated}
(seems useless for users, so maybe not a good idea)The text was updated successfully, but these errors were encountered: