diff options
| author | Jhonny Bill Mena <jhonnybillm@gmail.com> | 2022-11-06 10:09:24 -0500 |
|---|---|---|
| committer | Jhonny Bill Mena <jhonnybillm@gmail.com> | 2022-12-27 20:59:21 -0500 |
| commit | d41112a8c5f0b85649b4f0e1663edf15f7f2601e (patch) | |
| tree | 5ab1a008119a0a75d0f4d92dc5d91ca62c030cc1 /compiler/rustc_codegen_ssa/src/errors.rs | |
| parent | 78796ba637d9c8b575e977ddfc9351e4f1626319 (diff) | |
| download | rust-d41112a8c5f0b85649b4f0e1663edf15f7f2601e.tar.gz rust-d41112a8c5f0b85649b4f0e1663edf15f7f2601e.zip | |
UPDATE - migrate constant.rs to new diagnostics infrastructure
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/errors.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/errors.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/errors.rs b/compiler/rustc_codegen_ssa/src/errors.rs index 9179fe03d3f..de0a80280be 100644 --- a/compiler/rustc_codegen_ssa/src/errors.rs +++ b/compiler/rustc_codegen_ssa/src/errors.rs @@ -575,3 +575,17 @@ pub struct MetadataObjectFileWrite { pub struct InvalidWindowsSubsystem { pub subsystem: Symbol, } + +#[derive(Diagnostic)] +#[diag(codegen_ssa_erroneous_constant)] +pub struct ErroneousConstant { + #[primary_span] + pub span: Span, +} + +#[derive(Diagnostic)] +#[diag(codegen_ssa_shuffle_indices_evaluation)] +pub struct ShuffleIndicesEvaluation { + #[primary_span] + pub span: Span, +} |
