-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DiagnosticSeverity
should conform to Equatable
#2964
Comments
Synced to Apple’s issue tracker as rdar://144611943 |
I disagree that |
It doesn't conform to |
Fixes swiftlang#2964 rdar://144611943
Good point, adding there |
DiagnosticSeverity
should conform to Comparable
DiagnosticSeverity
should conform to ~~Comparable
~~ Equatable
DiagnosticSeverity
should conform to ~~Comparable
~~ Equatable
DiagnosticSeverity
should conform to Equatable
Description
DiagnosticSeverity
has a clearly-defined ranking and should conform toComparable
.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.The text was updated successfully, but these errors were encountered: