Allow tool-lints to specify a feature-gate too
This commit is contained in:
parent
7f115e3cd2
commit
fd1a399c4f
2 changed files with 11 additions and 5 deletions
|
@ -440,8 +440,10 @@ impl<'s> LintLevelsBuilder<'s> {
|
|||
sp,
|
||||
reason,
|
||||
);
|
||||
for id in ids {
|
||||
self.insert_spec(*id, (level, src));
|
||||
for &id in ids {
|
||||
if self.check_gated_lint(id, attr.span) {
|
||||
self.insert_spec(id, (level, src));
|
||||
}
|
||||
}
|
||||
if let Level::Expect(expect_id) = level {
|
||||
self.lint_expectations.push((
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue