Skip to content

cleanup and dedupe CTFE and Miri error reporting - #104317

Merged
bors merged 1 commit into
rust-lang:masterfrom
RalfJung:ctfe-error-reporting
Nov 16, 2022
Merged

bors merged 1 commit into
rust-lang:masterfrom
RalfJung:ctfe-error-reporting

Conversation

@RalfJung

Copy link
Copy Markdown
Member

It looks like most of the time, this error raised from const_prop_lint is just redundant -- it duplicates the error reported when evaluating the const-eval query. This lets us make ConstEvalErr private to the const_eval module which I think is a good step.

The Miri change mostly replaces a match by if let, and dedupes the "this error is impossible in Miri" checks.

r? @oli-obk
Fixes #75461

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

Labels

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.

Cleanup CTFE error reporting code & centralize promoted error reporting logic

7 participants