Skip to content

redundant_pattern_matching: Option and Result methods stabilized as const #6067

Closed
@CDirkx

Description

@CDirkx

With rust#76135 and rust#76136 the methods is_some, is_none, is_ok and is_err will be stabilized as const. This makes them valid replacement suggestions again for Clippy within a const context, which was disabled in #5724.

The tests redundant_pattern_matching and redundant_pattern_matching_const_result thus need to be updated. I'm opening up this issue to reference in those modified tests.

Theses changes will be applied to the rustc in-tree version, as it currently blocks the stabilization of these methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions