Skip to content

Commit b4b8539

Browse files
isabelmubrson
authored andcommitted
Consider types that contain fixed-length-zero vectors of themselves as non-representable until rust-lang#11924 is resolved
1 parent be3bcc1 commit b4b8539

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustc/middle/ty.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -2403,8 +2403,9 @@ pub fn is_type_representable(cx: ctxt, ty: t) -> Representability {
24032403
ty_tup(ref ts) => {
24042404
find_nonrepresentable(cx, seen, ts.iter().map(|t| *t))
24052405
}
2406-
// Non-zero fixed-length vectors.
2407-
ty_vec(mt, vstore_fixed(len)) if len != 0 => {
2406+
// Fixed-length vectors.
2407+
// FIXME(#11924) Behavior undecided for zero-length vectors.
2408+
ty_vec(mt, vstore_fixed(_)) => {
24082409
type_structurally_recursive(cx, seen, mt.ty)
24092410
}
24102411

0 commit comments

Comments
 (0)