File tree 1 file changed +6
-7
lines changed
reference/src/representation
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ currently different for each architecture.
14
14
15
15
## Vector types
16
16
17
- Vector types are ` repr(simd) ` homogeneous tuple-structs containing ` N ` elements of type ` T ` :
17
+ Vector types are ` repr(simd) ` homogeneous tuple-structs containing ` N ` elements
18
+ of type ` T ` :
18
19
19
20
``` rust
20
21
#[repr(simd)]
@@ -84,10 +85,8 @@ unsafe {
84
85
85
86
[ #36 ] : https://github.com/rust-rfcs/unsafe-code-guidelines/issues/36
86
87
87
- * Should unions containing a vector type and any number of ZSTs also be vector
88
- types? For example, should ` MaybeUninit<Vector<T, N>> ` also be a vector type?
89
- This should be documented for ` unions ` in general, and the rules for vectors
90
- should follow from that. This document should, at most, mention that in the
91
- context of vectors.
92
-
93
88
* Should we require ` N ` to be a power-of-two?
89
+
90
+ * ` MaybeUninit<T> ` does not have the same ` repr ` as ` T ` , so
91
+ ` MaybeUninit<Vector<T, N>> ` are not ` repr(simd) ` , which has performance
92
+ consequences and means that ` MaybeUninit<Vector<T, N>> ` is not C-FFI safe.
You can’t perform that action at this time.
0 commit comments