]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #81556 - nikomatsakis:forbidden-lint-groups-lint, r=pnkfelix
authorMara Bos <m-ou.se@m-ou.se>
Thu, 4 Feb 2021 20:10:34 +0000 (21:10 +0100)
committerGitHub <noreply@github.com>
Thu, 4 Feb 2021 20:10:34 +0000 (21:10 +0100)
introduce future-compatibility warning for forbidden lint groups

We used to ignore `forbid(group)` scenarios completely. This changed in #78864, but that led to a number of regressions (#80988, #81218).

This PR introduces a future compatibility warning for the case where a group is forbidden but then an individual lint within that group is allowed. We now issue a FCW when we see the "allow", but permit it to take effect.

r? ``@Mark-Simulacrum``

1  2 
compiler/rustc_lint/src/context.rs
compiler/rustc_lint_defs/src/builtin.rs

Simple merge