mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
auto merge of #6924 : msullivan/rust/incoming, r=pcwalton
This commit is contained in:
commit
af418f2fd5
@ -2518,7 +2518,7 @@ pub fn type_is_pod(cx: ctxt, ty: t) -> bool {
|
||||
ty_param(_) => result = false,
|
||||
ty_opaque_closure_ptr(_) => result = true,
|
||||
ty_struct(did, ref substs) => {
|
||||
result = vec::any(lookup_struct_fields(cx, did), |f| {
|
||||
result = vec::all(lookup_struct_fields(cx, did), |f| {
|
||||
let fty = ty::lookup_item_type(cx, f.id);
|
||||
let sty = subst(cx, substs, fty.ty);
|
||||
type_is_pod(cx, sty)
|
||||
|
Loading…
Reference in New Issue
Block a user