os-rust/compiler/rustc_driver_impl/src
Nicholas Nethercote b7d58eef4b Rewrite the untranslatable_diagnostic lint.
Currently it only checks calls to functions marked with
`#[rustc_lint_diagnostics]`. This commit changes it to check calls to
any function with an `impl Into<{D,Subd}iagMessage>` parameter. This
greatly improves its coverage and doesn't rely on people remembering to
add `#[rustc_lint_diagnostics]`.

The commit also adds `#[allow(rustc::untranslatable_diagnostic)`]
attributes to places that need it that are caught by the improved lint.
These places that might be easy to convert to translatable diagnostics.

Finally, it also:
- Expands and corrects some comments.
- Does some minor formatting improvements.
- Adds missing `DecorateLint` cases to
  `tests/ui-fulldeps/internal-lints/diagnostics.rs`.
2024-03-06 14:19:01 +11:00
..
args.rs Rewrite the untranslatable_diagnostic lint. 2024-03-06 14:19:01 +11:00
lib.rs Rewrite the untranslatable_diagnostic lint. 2024-03-06 14:19:01 +11: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 Stop telling people to submit bugs for internal feature ICEs 2023-10-25 23:23:04 +02:00
signal_handler.rs Clarify arbitrary constants 2023-07-19 00:22:04 -07:00