about summary refs log tree commit diff
path: root/compiler/rustc_transmute/src/layout/tree.rs
diff options
context:
space:
mode:
authorCaleb Zulawski <caleb.zulawski@gmail.com>2025-09-16 02:23:24 -0400
committerCaleb Zulawski <caleb.zulawski@gmail.com>2025-09-23 20:47:34 -0400
commitf5c6c9542ecfab74e654f9b7f1150d486560ae43 (patch)
tree2453dd1ffbee52a2687dbde5fcdc535dd37613f8 /compiler/rustc_transmute/src/layout/tree.rs
parent9d82de19dfae60e55c291f5f28e28cfc2c1b9630 (diff)
downloadrust-f5c6c9542ecfab74e654f9b7f1150d486560ae43.tar.gz
rust-f5c6c9542ecfab74e654f9b7f1150d486560ae43.zip
Add an attribute to check the number of lanes in a SIMD vector after monomorphization
Unify zero-length and oversized SIMD errors
Diffstat (limited to 'compiler/rustc_transmute/src/layout/tree.rs')
-rw-r--r--compiler/rustc_transmute/src/layout/tree.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_transmute/src/layout/tree.rs b/compiler/rustc_transmute/src/layout/tree.rs
index d7ea26a2ab1..a02e8ecf613 100644
--- a/compiler/rustc_transmute/src/layout/tree.rs
+++ b/compiler/rustc_transmute/src/layout/tree.rs
@@ -279,6 +279,7 @@ pub(crate) mod rustc {
                 LayoutError::Unknown(..)
                 | LayoutError::ReferencesError(..)
                 | LayoutError::TooGeneric(..)
+                | LayoutError::InvalidSimd { .. }
                 | LayoutError::NormalizationFailure(..) => Self::UnknownLayout,
                 LayoutError::SizeOverflow(..) => Self::SizeOverflow,
                 LayoutError::Cycle(err) => Self::TypeError(*err),