diff options
| author | bors <bors@rust-lang.org> | 2020-11-29 09:28:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-11-29 09:28:09 +0000 |
| commit | 760430e6fdd70cdb09b5b6d696905c0ee0ea27c8 (patch) | |
| tree | 3807c43e5e80fb6daf02630212578b400258495a /library/std/src/sys/unix/stack_overflow.rs | |
| parent | 3cbb56f80b2fbf5a3b405212665918dbffc44d39 (diff) | |
| parent | 354c7d0ab800f70e995383d498fc1fc420baa209 (diff) | |
| download | rust-760430e6fdd70cdb09b5b6d696905c0ee0ea27c8.tar.gz rust-760430e6fdd70cdb09b5b6d696905c0ee0ea27c8.zip | |
Auto merge of #78863 - KodrAus:feat/simd-array, r=oli-obk
Support repr(simd) on ADTs containing a single array field This is a squash and rebase of `@gnzlbg's` #63531 I've never actually written code in the compiler before so just fumbled my way around until it would build 😅 I imagine there'll be some work we need to do in `rustc_codegen_cranelift` too for this now, but might need some input from `@bjorn3` to know what that is. cc `@rust-lang/project-portable-simd` ----- This PR allows using `#[repr(simd)]` on ADTs containing a single array field: ```rust #[repr(simd)] struct S0([f32; 4]); #[repr(simd)] struct S1<const N: usize>([f32; N]); #[repr(simd)] struct S2<T, const N: usize>([T; N]); ``` This should allow experimenting with portable packed SIMD abstractions on nightly that make use of const generics.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
