Skip to content

Commit 7b9388b

Browse files
committed
Explain that the tool is responsible for unknown tool_lints
1 parent d4ff949 commit 7b9388b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/librustc/lint/levels.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,10 @@ impl<'a> LintLevelsBuilder<'a> {
273273
specs.insert(*id, (level, src));
274274
}
275275
}
276-
//FIXME: if Tool(None) is returned than the lint either does not exist in
277-
//the lint tool or the code doesn't get compiled with the lint tool and
278-
//therefore the lint cannot exist.
276+
// If Tool(None) is returned, then either the lint does not exist in the
277+
// tool or the code was not compiled with the tool and therefore the lint
278+
// was never added to the `LintStore`. To detect this is the responsibility
279+
// of the lint tool.
279280
}
280281

281282
_ if !self.warn_about_weird_lints => {}

0 commit comments

Comments
 (0)