Skip to content

Commit af418f2

Browse files
committed
auto merge of #6924 : msullivan/rust/incoming, r=pcwalton
2 parents 13aa188 + d85938f commit af418f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2518,7 +2518,7 @@ pub fn type_is_pod(cx: ctxt, ty: t) -> bool {
25182518
ty_param(_) => result = false,
25192519
ty_opaque_closure_ptr(_) => result = true,
25202520
ty_struct(did, ref substs) => {
2521-
result = vec::any(lookup_struct_fields(cx, did), |f| {
2521+
result = vec::all(lookup_struct_fields(cx, did), |f| {
25222522
let fty = ty::lookup_item_type(cx, f.id);
25232523
let sty = subst(cx, substs, fty.ty);
25242524
type_is_pod(cx, sty)

0 commit comments

Comments
 (0)