Skip to content

Commit be84049

Browse files
committed
Add comment about unfulfilled_lint_expectation not being in a group (RFC 2383)
1 parent d39d609 commit be84049

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_lint/src/levels.rs

+2
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ impl<'s> LintLevelsBuilder<'s> {
357357
// can't be fulfilled. The lint message will include an explanation, that the
358358
// `unfulfilled_lint_expectations` lint can't be expected.
359359
if let Level::Expect(expect_id) = level {
360+
// The `unfulfilled_lint_expectations` lint is not part of any lint groups. Therefore. we
361+
// only need to check the slice if it contains a single lint.
360362
let is_unfulfilled_lint_expectations = match ids {
361363
[lint] => *lint == LintId::of(UNFULFILLED_LINT_EXPECTATIONS),
362364
_ => false,

0 commit comments

Comments
 (0)