rust/compiler/rustc_ast_lowering/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
..
asm.rs Rewrite the untranslatable_diagnostic lint. 2024-03-06 14:19:01 +11:00
block.rs No need to take ImplTraitContext by ref 2024-02-07 19:30:32 +00:00
delegation.rs Refactor LoweringContext::get_delegation_sig_id. 2024-02-27 16:09:20 +11:00
errors.rs Rename SubdiagnosticMessageOp as SubdiagMessageOp. 2024-03-05 12:14:49 +11:00
expr.rs Rewrite the untranslatable_diagnostic lint. 2024-03-06 14:19:01 +11:00
format.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
index.rs hir: Add some FIXMEs for future work 2024-02-07 09:59:15 +03:00
item.rs AST: Refactor type alias where clauses 2024-02-29 17:18:40 +01:00
lib.rs Rewrite the untranslatable_diagnostic lint. 2024-03-06 14:19:01 +11:00
lifetime_collector.rs Reduce exposure of some things. 2023-11-28 14:32:40 +11:00
pat.rs Add ErrorGuaranteed to ast::ExprKind::Err 2024-02-25 22:24:31 +01:00
path.rs No need to take ImplTraitContext by ref 2024-02-07 19:30:32 +00:00