mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
Consider types that contain fixed-length-zero vectors of themselves as non-representable until #11924 is resolved
This commit is contained in:
parent
b46c0daa7b
commit
8d097b3bfb
@ -2403,8 +2403,9 @@ pub fn is_type_representable(cx: ctxt, ty: t) -> Representability {
|
|||||||
ty_tup(ref ts) => {
|
ty_tup(ref ts) => {
|
||||||
find_nonrepresentable(cx, seen, ts.iter().map(|t| *t))
|
find_nonrepresentable(cx, seen, ts.iter().map(|t| *t))
|
||||||
}
|
}
|
||||||
// Non-zero fixed-length vectors.
|
// Fixed-length vectors.
|
||||||
ty_vec(mt, vstore_fixed(len)) if len != 0 => {
|
// FIXME(#11924) Behavior undecided for zero-length vectors.
|
||||||
|
ty_vec(mt, vstore_fixed(_)) => {
|
||||||
type_structurally_recursive(cx, seen, mt.ty)
|
type_structurally_recursive(cx, seen, mt.ty)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user