diff options
| author | bors <bors@rust-lang.org> | 2021-06-04 13:31:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-04 13:31:51 +0000 |
| commit | 595088d602049d821bf9a217f2d79aea40715208 (patch) | |
| tree | 2b3361a54d36e5381071da8bd4a77207de2c4ec3 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 289ada5ed41fd1b9a3ffe2b694e6e73079528587 (diff) | |
| parent | 896898ed43bb776db830717755bcccc404c20277 (diff) | |
| download | rust-595088d602049d821bf9a217f2d79aea40715208.tar.gz rust-595088d602049d821bf9a217f2d79aea40715208.zip | |
Auto merge of #85788 - rylev:force-warns, r=nikomatsakis
Support for force-warns Implements https://github.com/rust-lang/rust/issues/85512. This PR adds a new command line option `force-warns` which will force the provided lints to warn even if they are allowed by some other mechanism such as `#![allow(warnings)]`. Some remaining issues: * https://github.com/rust-lang/rust/issues/85512 mentions that `force-warns` should also be capable of taking lint groups instead of individual lints. This is not implemented. * If a lint has a higher warning level than `warn`, this will cause that lint to warn instead. We probably want to allow the lint to error if it is set to a higher lint and is not allowed somewhere else. * One test is currently ignored because it's not working - when a deny-by-default lint is allowed, it does not currently warn under `force-warns`. I'm not sure why, but I wanted to get this in before the weekend. r? `@nikomatsakis`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
