rust/compiler/rustc_driver_impl/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
..
args.rs Rewrite the untranslatable_diagnostic lint. 2024-03-06 14:19:01 +11:00
lib.rs Rollup merge of #121382 - nnethercote:rework-untranslatable_diagnostic-lint, r=davidtwco 2024-03-06 22:02:46 +01:00
pretty.rs Rename all ParseSess variables/fields/lifetimes as psess. 2024-03-05 08:11:45 +11:00
print.rs Fix ICE on --print=... i/o errors 2023-04-25 08:17:18 -07:00
session_diagnostics.rs Don't suggest update nightly if using internal features 2024-02-27 12:40:02 +00:00
signal_handler.rs Clarify arbitrary constants 2023-07-19 00:22:04 -07:00