diff options
| author | David Wood <david.wood@huawei.com> | 2022-06-10 15:50:06 +0100 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2022-06-10 15:50:06 +0100 |
| commit | 5ba81faba632883ee69be0d216959a5ef3bba030 (patch) | |
| tree | 8d0940ffb1e0dc97e79a692625e16e617a8ff555 /compiler/rustc_span | |
| parent | 52ee2a2738c957ca6fd54e97b4e090a266ba96ba (diff) | |
| download | rust-5ba81faba632883ee69be0d216959a5ef3bba030.tar.gz rust-5ba81faba632883ee69be0d216959a5ef3bba030.zip | |
lint: add diagnostic translation migration lints
Introduce allow-by-default lints for checking whether diagnostics are written in `SessionDiagnostic`/`AddSubdiagnostic` impls and whether diagnostics are translatable. These lints can be denied for modules once they are fully migrated to impls and translation. Signed-off-by: David Wood <david.wood@huawei.com>
Diffstat (limited to 'compiler/rustc_span')
| -rw-r--r-- | compiler/rustc_span/src/symbol.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs index 7b0fa65e808..6547ec493c8 100644 --- a/compiler/rustc_span/src/symbol.rs +++ b/compiler/rustc_span/src/symbol.rs @@ -125,6 +125,7 @@ symbols! { Symbols { AcqRel, Acquire, + AddSubdiagnostic, Alignment, Any, Arc, @@ -169,6 +170,7 @@ symbols! { Decoder, Default, Deref, + DiagnosticMessage, DirBuilder, Display, DoubleEndedIterator, @@ -253,11 +255,13 @@ symbols! { RustcEncodable, Send, SeqCst, + SessionDiagnostic, SliceIndex, Some, String, StructuralEq, StructuralPartialEq, + SubdiagnosticMessage, Sync, Target, ToOwned, @@ -1205,6 +1209,7 @@ symbols! { rustc_layout_scalar_valid_range_end, rustc_layout_scalar_valid_range_start, rustc_legacy_const_generics, + rustc_lint_diagnostics, rustc_lint_query_instability, rustc_macro_transparency, rustc_main, |
