about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJieyou Xu <jieyouxu@outlook.com>2024-10-26 13:07:26 +0000
committerJieyou Xu <jieyouxu@outlook.com>2024-10-26 14:11:59 +0000
commit5f4739157abe8ac9ba3bbc652f6d7893d2a4d4c9 (patch)
treed70ded6d37c2e418a109e59c6d6ed8766f601ee6
parent80d0d927d5069b67cc08c0c65b48e7b6e0cdeeb5 (diff)
downloadrust-5f4739157abe8ac9ba3bbc652f6d7893d2a4d4c9.tar.gz
rust-5f4739157abe8ac9ba3bbc652f6d7893d2a4d4c9.zip
Downgrade `untranslatable_diagnostic` and `diagnostic_outside_of_impl` to `allow`
See <https://github.com/rust-lang/rust/issues/132181> for more context.
-rw-r--r--compiler/rustc_lint/src/internal.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/internal.rs b/compiler/rustc_lint/src/internal.rs
index 94cc58e4956..71f6214d880 100644
--- a/compiler/rustc_lint/src/internal.rs
+++ b/compiler/rustc_lint/src/internal.rs
@@ -427,7 +427,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,
-    Deny,
+    Allow,
     "prevent creation of diagnostics which cannot be translated",
     report_in_external_macro: true
 }
@@ -440,7 +440,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,
-    Deny,
+    Allow,
     "prevent diagnostic creation outside of `Diagnostic`/`Subdiagnostic`/`LintDiagnostic` impls",
     report_in_external_macro: true
 }