diff options
| author | bors <bors@rust-lang.org> | 2020-02-16 15:28:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-02-16 15:28:41 +0000 |
| commit | 5e7af4669f80e5f682141f050193ab679afdb4b1 (patch) | |
| tree | ac303ced99f72dcbc4012813b2ee55a2c5617e28 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 116dff95a37214e86f067715374a18a4de1621f0 (diff) | |
| parent | 3fc9253a5a27771c72429a738d5379c34e1cd924 (diff) | |
| download | rust-5e7af4669f80e5f682141f050193ab679afdb4b1.tar.gz rust-5e7af4669f80e5f682141f050193ab679afdb4b1.zip | |
Auto merge of #67885 - tobithiel:fix_group_lint_allow_override, r=Mark-Simulacrum
rustc_session: allow overriding lint level of individual lints from a group Fixes #58211 and fixes rust-lang/rust-clippy#4778 and fixes rust-lang/rust-clippy#4091 Instead of hard-coding the lint level preferences (from lowest to highest precedence: `lint::Allow -> lint::Warn -> lint::Deny -> lint::Forbid`), the position of the argument in the command line gets taken into account. Examples: 1. Passing `-D unused -A unused-variables` denies everything in the lint group `unused` **except** `unused-variables` which is explicitly allowed. 1. Passing `-A unused-variables -D unused` denies everything in the lint group `unused` **including** `unused-variables` since the allow is specified before the deny (and therefore overridden by the deny). This matches the behavior that is already being used when specifying `allow`/`deny` in the source code.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
