diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-03-13 09:25:20 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-03-14 12:21:35 +0000 |
| commit | a316c21dc8aa1ebfb961a2c789757593fd1db9ef (patch) | |
| tree | 354a0a2932f0c72c3bce589d20eae702cc18507b /compiler/rustc_const_eval/src/errors.rs | |
| parent | 16046c77aad72d7be16253ec029b568b157d82d4 (diff) | |
| download | rust-a316c21dc8aa1ebfb961a2c789757593fd1db9ef.tar.gz rust-a316c21dc8aa1ebfb961a2c789757593fd1db9ef.zip | |
Rename some things around validation error reporting to signal that it is in fact about validation failures
Diffstat (limited to 'compiler/rustc_const_eval/src/errors.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/errors.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_const_eval/src/errors.rs b/compiler/rustc_const_eval/src/errors.rs index 46790264359..cc32640408b 100644 --- a/compiler/rustc_const_eval/src/errors.rs +++ b/compiler/rustc_const_eval/src/errors.rs @@ -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>, |
