diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-20 14:12:50 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-03-06 14:19:01 +1100 |
| commit | 677c1d805906bcd21f0dd48d044fee9323db7e74 (patch) | |
| tree | c04b6ca5d2e8186803fb9fcd968537d7e17b1666 /tests/codegen/patchable-function-entry | |
| parent | fe9ceab35631f03cb3af853986288ab0dc9f41e7 (diff) | |
| download | rust-677c1d805906bcd21f0dd48d044fee9323db7e74.tar.gz rust-677c1d805906bcd21f0dd48d044fee9323db7e74.zip | |
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`.
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions
