Skip to content

const-eval error: always say in which item the error occurred#142008

Merged
bors merged 1 commit intorust-lang:masterfrom
RalfJung:const-eval-error-here
Jun 9, 2025
Merged

const-eval error: always say in which item the error occurred#142008
bors merged 1 commit intorust-lang:masterfrom
RalfJung:const-eval-error-here

Conversation

@RalfJung
Copy link
Member

@RalfJung RalfJung commented Jun 4, 2025

I don't see why "is this generic" should make a difference. It may be reasonable to key this on whether the error occurs in a const fn that was invoked by a const (making it non-obvious which constant it is) vs inside the body of the const.

r? @oli-obk

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants