Skip to content

Delay interning errors to after validation#122684

Merged
bors merged 6 commits into
rust-lang:masterfrom
oli-obk:delay_interning_errors_to_after_validaiton
Apr 18, 2024
Merged

Delay interning errors to after validation#122684
bors merged 6 commits into
rust-lang:masterfrom
oli-obk:delay_interning_errors_to_after_validaiton

Conversation

@oli-obk
Copy link
Copy Markdown
Contributor

@oli-obk oli-obk commented Mar 18, 2024

fixes #122398
fixes #122548

This improves diagnostics since validation errors are usually more helpful compared with interning errors that just make broad statements about the entire constant

r? @RalfJung

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.

ICE: None, compiler/rustc_const_eval/src/interpret/validity.rs const-eval: perform validation before interning

6 participants