Files
rust/compiler/rustc_middle/src
Matthias Krüger efe9deace8 Rollup merge of #121382 - nnethercote:rework-untranslatable_diagnostic-lint, r=davidtwco
Rework `untranslatable_diagnostic` lint

Currently it only checks calls to functions marked with `#[rustc_lint_diagnostics]`. This PR changes it to check calls to any function with an `impl Into<{D,Subd}iagnosticMessage>` parameter. This greatly improves its coverage and doesn't rely on people remembering to add `#[rustc_lint_diagnostics]`. It also lets us add `#[rustc_lint_diagnostics]` to a number of functions that don't have an `impl Into<{D,Subd}iagnosticMessage>`, such as `Diag::span`.

r? ``@davidtwco``
2024-03-06 22:02:46 +01:00
..
2023-11-16 16:49:22 +11:00
2024-03-05 12:38:03 -05:00
2023-11-01 16:49:18 +00:00
2024-02-22 18:54:51 +01:00
2024-01-05 10:56:59 +00:00
2024-02-21 10:35:54 +11:00
2024-01-29 07:41:41 +11:00