1
Fork 0

Rename some things around validation error reporting to signal that it is in fact about validation failures

This commit is contained in:
Oli Scherer 2024-03-13 09:25:20 +00:00
parent 16046c77aa
commit a316c21dc8
3 changed files with 15 additions and 13 deletions

View file

@ -412,11 +412,11 @@ pub struct NullaryIntrinsicError {
}
#[derive(Diagnostic)]
#[diag(const_eval_undefined_behavior, code = E0080)]
pub struct UndefinedBehavior {
#[diag(const_eval_validation_failure, code = E0080)]
pub struct ValidationFailure {
#[primary_span]
pub span: Span,
#[note(const_eval_undefined_behavior_note)]
#[note(const_eval_validation_failure_note)]
pub ub_note: Option<()>,
#[subdiagnostic]
pub frames: Vec<FrameNote>,