Skip to content

pointer_structural_match lint will become a hard error soon #1

Open
@RalfJung

Description

@RalfJung

This crate triggers the pointer_structural_match lint:

target: SELFREF_FN,

Matching against function pointers is not reliable and will become a hard error once rust-lang/rust#124661 lands, as was decided in rust-lang/rfcs#3535. I recommend comparing with == instead (though that will be just as unreliable).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions