Skip to content

Commit

Permalink
Add comment about unfulfilled_lint_expectation not being in a group…
Browse files Browse the repository at this point in the history
… (RFC 2383)
  • Loading branch information
xFrednet committed Mar 9, 2022
1 parent d39d609 commit be84049
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_lint/src/levels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ impl<'s> LintLevelsBuilder<'s> {
// can't be fulfilled. The lint message will include an explanation, that the
// `unfulfilled_lint_expectations` lint can't be expected.
if let Level::Expect(expect_id) = level {
// The `unfulfilled_lint_expectations` lint is not part of any lint groups. Therefore. we
// only need to check the slice if it contains a single lint.
let is_unfulfilled_lint_expectations = match ids {
[lint] => *lint == LintId::of(UNFULFILLED_LINT_EXPECTATIONS),
_ => false,
Expand Down

0 comments on commit be84049

Please sign in to comment.