-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
CTFE: nullary function memoization munges backtraces #75390
Copy link
Copy link
Closed
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
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, ...)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This code:
produces a fairly reasonable error:
However, when I remove the dummy argument
x, I get the following set of three separate errors:All the information is still there, but it is now not clear at all that this is in fact just a single const-eval stacktrace we are seeing here.
Cc @rust-lang/wg-const-eval