mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
b7d58eef4b
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`. |
||
---|---|---|
.. | ||
bad_opt_access.rs | ||
bad_opt_access.stderr | ||
default_hash_types.rs | ||
default_hash_types.stderr | ||
diagnostics.ftl | ||
diagnostics.rs | ||
diagnostics.stderr | ||
lint_pass_impl_without_macro.rs | ||
lint_pass_impl_without_macro.stderr | ||
qualified_ty_ty_ctxt.rs | ||
qualified_ty_ty_ctxt.stderr | ||
query_stability.rs | ||
query_stability.stderr | ||
rustc_pass_by_value.rs | ||
rustc_pass_by_value.stderr | ||
span_use_eq_ctxt.rs | ||
span_use_eq_ctxt.stderr | ||
ty_tykind_usage.rs | ||
ty_tykind_usage.stderr |