Cleanup CTFE error reporting code & centralize promoted error reporting logic #75461
Labels
A-const-eval
Area: Constant evaluation (MIR interpretation)
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
CTFE error reporting code is quite complex, and some of the logic is repeated in many places -- e.g. the fact that we do not report hard errors for evaluation failures in promoteds. We should try to centralize that logic (and with rust-lang/const-eval#53 we can hopefully get rid of some of it eventually).
Cases I know of:
librustc_mir::const_eval
.librustc_mir::const_eval::error
.Cc @rust-lang/wg-const-eval
The text was updated successfully, but these errors were encountered: