Skip to content

DiagnosticSeverity should conform to Equatable #2964

@grynspan

Description

@grynspan

Description

DiagnosticSeverity has a clearly-defined ranking and should conform to Comparable.

It would make it easier for macro code to e.g. suppress its own warnings (with something like diagnostics.filter { $0.severity >= .error }) or enforce -Werror-like semantics, that sort of thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions