diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-11-02 01:37:26 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-11-02 01:43:25 -0500 |
| commit | 6c1f15fa81be5f89cd7af7f7e73012967b4e673a (patch) | |
| tree | 255f70d53542ab18d9f63633b8c9f7b8f57a21a4 /compiler/rustc_codegen_llvm/src/lib.rs | |
| parent | d8ef0d7757742862116c455345120dcbfb7e74e0 (diff) | |
| download | rust-6c1f15fa81be5f89cd7af7f7e73012967b4e673a.tar.gz rust-6c1f15fa81be5f89cd7af7f7e73012967b4e673a.zip | |
Fix ICE when a future-incompat-report has its command-line level capped
Fixes #78660 With PR https://github.com/rust-lang/rust/pull/75534 merged, we now run more lint-related code for future-incompat-report, even when their final level is Allow. Some lint-related code was not expecting `Level::Allow`, and had an explicit panic. This PR explicitly tracks the lint level set on the command line before `--cap-lints` is applied. This is used to emit a more precise error note (e.g. we don't say that `-W lint-name` was specified on the command line just because a lint was capped to Warn). As a result, we can now correctly emit a note that `-A` was used if we got `Level::Allow` from the command line (before the cap is applied).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/lib.rs')
0 files changed, 0 insertions, 0 deletions
