Skip to content

Commit

Permalink
Downgrade untranslatable_diagnostic and `diagnostic_outside_of_impl…
Browse files Browse the repository at this point in the history
…` to `allow`

See <rust-lang#132181> for more context.
  • Loading branch information
jieyouxu committed Oct 26, 2024
1 parent 80d0d92 commit 5f47391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_lint/src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit 5f47391

Please sign in to comment.