Skip to content

Commit d85938f

Browse files
committed
Make type_is_pod handle structs correctly. Closes #6868.
1 parent 13aa188 commit d85938f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/ty.rs

+1-1
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)