diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-02-09 14:41:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-09 14:41:50 +0100 |
| commit | 46a0448405732b09d19e4ed53606bed240f882fa (patch) | |
| tree | edc8cbb4249c3a7da6e533f3c3d9c4134eae0cbd /compiler/rustc_lint/src/internal.rs | |
| parent | 8b8adfd05d84595b448b079d76be865a3c8cb5bd (diff) | |
| parent | 0ac1195ee0f8cd6d87e654a2312b899883272ec2 (diff) | |
| download | rust-46a0448405732b09d19e4ed53606bed240f882fa.tar.gz rust-46a0448405732b09d19e4ed53606bed240f882fa.zip | |
Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davidtwco
Invert diagnostic lints. That is, change `diagnostic_outside_of_impl` and `untranslatable_diagnostic` from `allow` to `deny`, because more than half of the compiler has been converted to use translated diagnostics. This commit removes more `deny` attributes than it adds `allow` attributes, which proves that this change is warranted. r? ````@davidtwco````
Diffstat (limited to 'compiler/rustc_lint/src/internal.rs')
| -rw-r--r-- | compiler/rustc_lint/src/internal.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/internal.rs b/compiler/rustc_lint/src/internal.rs index eb2490a47d0..516df14c894 100644 --- a/compiler/rustc_lint/src/internal.rs +++ b/compiler/rustc_lint/src/internal.rs @@ -345,7 +345,7 @@ declare_tool_lint! { /// /// More details on translatable diagnostics can be found [here](https://rustc-dev-guide.rust-lang.org/diagnostics/translation.html). pub rustc::UNTRANSLATABLE_DIAGNOSTIC, - Allow, + Deny, "prevent creation of diagnostics which cannot be translated", report_in_external_macro: true } @@ -357,7 +357,7 @@ declare_tool_lint! { /// /// More details on diagnostics implementations can be found [here](https://rustc-dev-guide.rust-lang.org/diagnostics/diagnostic-structs.html). pub rustc::DIAGNOSTIC_OUTSIDE_OF_IMPL, - Allow, + Deny, "prevent creation of diagnostics outside of `IntoDiagnostic`/`AddToDiagnostic` impls", report_in_external_macro: true } |
