We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
unfulfilled_lint_expectation
1 parent d39d609 commit be84049Copy full SHA for be84049
compiler/rustc_lint/src/levels.rs
@@ -357,6 +357,8 @@ impl<'s> LintLevelsBuilder<'s> {
357
// can't be fulfilled. The lint message will include an explanation, that the
358
// `unfulfilled_lint_expectations` lint can't be expected.
359
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.
362
let is_unfulfilled_lint_expectations = match ids {
363
[lint] => *lint == LintId::of(UNFULFILLED_LINT_EXPECTATIONS),
364
_ => false,
0 commit comments