Added Expect lint level and attribute (RFC-2383)

* Also added the `LintExpectationId` which will be used in future commits
This commit is contained in:
xFrednet 2021-08-06 23:18:16 +02:00
parent c42d846add
commit 9fef3d9e0a
No known key found for this signature in database
GPG key ID: FCDCBF29AF64D601
10 changed files with 107 additions and 5 deletions

View file

@ -133,7 +133,11 @@ impl Diagnostic {
| Level::Error { .. }
| Level::FailureNote => true,
Level::Warning | Level::Note | Level::Help | Level::Allow => false,
Level::Warning
| Level::Note
| Level::Help
| Level::Allow
| Level::Expect(_) => false,
}
}