mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Rust: Use @diagnostic_error, @diagnostic_warning rather than constants.
This commit is contained in:
@@ -49,11 +49,7 @@ class Diagnostic extends @diagnostic {
|
||||
}
|
||||
|
||||
/** A diagnostic that is error severity. */
|
||||
class ExtractionError extends Diagnostic {
|
||||
ExtractionError() { this.getSeverity() = 40 }
|
||||
}
|
||||
class ExtractionError extends Diagnostic, @diagnostic_error { }
|
||||
|
||||
/** A diagnostic that is warning severity. */
|
||||
class ExtractionWarning extends Diagnostic {
|
||||
ExtractionWarning() { this.getSeverity() = 30 }
|
||||
}
|
||||
class ExtractionWarning extends Diagnostic, @diagnostic_warning { }
|
||||
|
||||
Reference in New Issue
Block a user