diff options
| author | Michael Goulet <michael@errs.io> | 2023-08-22 09:00:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-22 09:00:48 -0700 |
| commit | 6c7678d3289c7ccae1f70ddcb1f7327465cbca24 (patch) | |
| tree | 54d04d1375d42605135f90977f3b12b8bdcc060b /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | d8c69dfb37241a2b750a2acbbab48d1201d00766 (diff) | |
| parent | d2744175ac1620cc094fcb842c9c60c8889ea603 (diff) | |
| download | rust-6c7678d3289c7ccae1f70ddcb1f7327465cbca24.tar.gz rust-6c7678d3289c7ccae1f70ddcb1f7327465cbca24.zip | |
Rollup merge of #114959 - mojave2:issue-113702, r=petrochenkov
fix #113702 emit a proper diagnostic message for unstable lints passed from CLI Current output: ```bash $ build/host/stage1/bin/rustc hello.rs -Wunnameable_types warning: unknown lint: `unnameable_types` | = note: the `unnameable_types` lint is unstable = note: see issue #48054 <https://github.com/rust-lang/rust/issues/48054> for more information = help: add `-Zcrate-attr="feature(type_privacy_lints)"` to the command-line options to enable = note: `#[warn(unknown_lints)]` on by default warning: 1 warning emitted ``` Previously, the feature gate diagnostic message is like below, which is the same as the message for unstable lints from the root module. ```shell = help: add `#![feature(type_privacy_lints)]` to the crate attributes to enable ``` Fixes https://github.com/rust-lang/rust/issues/113702
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
