From d85938f7c876dcdaa33e58094fb2b04d274e9bb7 Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Mon, 3 Jun 2013 16:55:05 -0700 Subject: [PATCH] Make type_is_pod handle structs correctly. Closes #6868. --- src/librustc/middle/ty.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/middle/ty.rs b/src/librustc/middle/ty.rs index 7980754f67d..433c1a864dd 100644 --- a/src/librustc/middle/ty.rs +++ b/src/librustc/middle/ty.rs @@ -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)