diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-02-24 15:35:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-24 15:35:14 +0100 |
| commit | b87a713b9d0e94ec0d746fd22c7f869ceab0ee83 (patch) | |
| tree | eda03d6313d8cb565f1897d98f3928f460e5a585 /compiler/rustc_codegen_ssa/src | |
| parent | 3b827731d04e7d325ef31e16ed64bc88af72196b (diff) | |
| parent | 134e2b2056d3d5519dc3b294ceb1558cf7af276c (diff) | |
| download | rust-b87a713b9d0e94ec0d746fd22c7f869ceab0ee83.tar.gz rust-b87a713b9d0e94ec0d746fd22c7f869ceab0ee83.zip | |
Rollup merge of #121522 - RalfJung:insert-extract-boundscheck, r=oli-obk
check that simd_insert/extract indices are in-bounds Fixes https://github.com/rust-lang/rust/issues/77477 r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/errors.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/compiler/rustc_codegen_ssa/src/errors.rs b/compiler/rustc_codegen_ssa/src/errors.rs index e42a8bd9ed9..a7ac502b248 100644 --- a/compiler/rustc_codegen_ssa/src/errors.rs +++ b/compiler/rustc_codegen_ssa/src/errors.rs @@ -797,16 +797,8 @@ pub enum InvalidMonomorphization<'tcx> { out_ty: Ty<'tcx>, }, - #[diag(codegen_ssa_invalid_monomorphization_shuffle_index_not_constant, code = E0511)] - ShuffleIndexNotConstant { - #[primary_span] - span: Span, - name: Symbol, - arg_idx: u64, - }, - - #[diag(codegen_ssa_invalid_monomorphization_shuffle_index_out_of_bounds, code = E0511)] - ShuffleIndexOutOfBounds { + #[diag(codegen_ssa_invalid_monomorphization_simd_index_out_of_bounds, code = E0511)] + SimdIndexOutOfBounds { #[primary_span] span: Span, name: Symbol, |
