Skip to content

vec::any calls in ty_struct cases in ty.rs should be vec::all #6868

Closed
@bblum

Description

@bblum

For example, this is clearly wrong in type_is_pod:

2515       ty_struct(did, ref substs) => {
2516         result = vec::any(lookup_struct_fields(cx, did), |f| {
2517             let fty = ty::lookup_item_type(cx, f.id);
2518             let sty = subst(cx, substs, fty.ty);
2519             type_is_pod(cx, sty)
2520         });
2521       }

But vec::any is called in other places throughout this file and I'm not immediately sure which ones are right vs wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions