rust/tests/ui-fulldeps/internal-lints
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
..
bad_opt_access.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
bad_opt_access.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
default_hash_types.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
default_hash_types.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
diagnostics.ftl errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
diagnostics.rs Rewrite the untranslatable_diagnostic lint. 2024-03-06 14:19:01 +11:00
diagnostics.stderr Rewrite the untranslatable_diagnostic lint. 2024-03-06 14:19:01 +11:00
lint_pass_impl_without_macro.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
lint_pass_impl_without_macro.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
qualified_ty_ty_ctxt.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
qualified_ty_ty_ctxt.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
query_stability.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
query_stability.stderr add missing potential_query_instability for keys and values in hashmap 2024-01-30 12:43:10 +08:00
rustc_pass_by_value.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
rustc_pass_by_value.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
span_use_eq_ctxt.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
span_use_eq_ctxt.stderr Remove ignore-stage1 that was added when changing error count msg 2024-01-06 12:53:06 +01:00
ty_tykind_usage.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
ty_tykind_usage.stderr Add CoroutineClosure to TyKind, AggregateKind, UpvarArgs 2024-02-06 02:22:58 +00:00