Skip to content

Commit c3c2cb3

Browse files
committed
Forgot repr(transparent) on LayoutRef
1 parent 8364740 commit c3c2cb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,8 @@ impl<A, D> ArrayPartsSized<A, D>
14371437
// which alter the layout / shape / strides of an array must also
14381438
// alter the offset of the pointer. This is allowed, as it does not
14391439
// cause a pointer deref.
1440-
pub struct LayoutRef<A, D>(ArrayParts<A, D, [usize]>);
1440+
#[repr(transparent)]
1441+
pub struct LayoutRef<A, D>(ArrayPartsUnsized<A, D>);
14411442

14421443
impl<A, D> LayoutRef<A, D>
14431444
{

0 commit comments

Comments
 (0)