Skip to content

Commit 5f47391

Browse files
committed
Downgrade untranslatable_diagnostic and diagnostic_outside_of_impl to allow
See <rust-lang#132181> for more context.
1 parent 80d0d92 commit 5f47391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_lint/src/internal.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ declare_tool_lint! {
427427
/// More details on translatable diagnostics can be found
428428
/// [here](https://rustc-dev-guide.rust-lang.org/diagnostics/translation.html).
429429
pub rustc::UNTRANSLATABLE_DIAGNOSTIC,
430-
Deny,
430+
Allow,
431431
"prevent creation of diagnostics which cannot be translated",
432432
report_in_external_macro: true
433433
}
@@ -440,7 +440,7 @@ declare_tool_lint! {
440440
/// More details on diagnostics implementations can be found
441441
/// [here](https://rustc-dev-guide.rust-lang.org/diagnostics/diagnostic-structs.html).
442442
pub rustc::DIAGNOSTIC_OUTSIDE_OF_IMPL,
443-
Deny,
443+
Allow,
444444
"prevent diagnostic creation outside of `Diagnostic`/`Subdiagnostic`/`LintDiagnostic` impls",
445445
report_in_external_macro: true
446446
}

0 commit comments

Comments
 (0)