rust/compiler
Dylan DPC d8333a7b59
Rollup merge of #97948 - davidtwco:diagnostic-translation-lints, r=oli-obk
lint: add diagnostic translation migration lints

Introduce allow-by-default lints for checking whether diagnostics are written in
`SessionDiagnostic` or `AddSubdiagnostic` impls and whether diagnostics are translatable. These lints can be denied for modules once they are fully migrated to impls and translation.

These lints are intended to be temporary - once all diagnostics have been changed then we can just change the APIs we have and that will enforce these constraints thereafter.

r? `````@oli-obk`````
2022-06-14 10:35:31 +02:00
..
rustc Rollup merge of #97385 - oli-obk:smir-tool-lib, r=pnkfelix 2022-06-14 07:47:24 +09:00
rustc_apfloat
rustc_arena
rustc_ast
rustc_ast_lowering remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
rustc_ast_passes remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
rustc_ast_pretty
rustc_attr remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
rustc_borrowck Rename the ConstS::val field as kind. 2022-06-14 13:06:44 +10:00
rustc_builtin_macros remove unnecessary to_string and String::new for tool_only_span_suggestion 2022-06-13 16:01:16 +09:00
rustc_codegen_cranelift Rename the ConstS::val field as kind. 2022-06-14 13:06:44 +10:00
rustc_codegen_gcc
rustc_codegen_llvm Rollup merge of #95243 - vladimir-ea:compiler_watch_os, r=nagisa 2022-06-14 07:47:23 +09:00
rustc_codegen_ssa Rollup merge of #97935 - nnethercote:rename-ConstS-val-as-kind, r=lcnr 2022-06-14 10:35:29 +02:00
rustc_const_eval Rename the ConstS::val field as kind. 2022-06-14 13:06:44 +10:00
rustc_data_structures
rustc_driver
rustc_error_codes Add comment for internal error codes 2022-06-12 19:52:49 -03:00
rustc_error_messages Rollup merge of #97948 - davidtwco:diagnostic-translation-lints, r=oli-obk 2022-06-14 10:35:31 +02:00
rustc_errors Rollup merge of #97948 - davidtwco:diagnostic-translation-lints, r=oli-obk 2022-06-14 10:35:31 +02:00
rustc_expand remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
rustc_feature Rollup merge of #97948 - davidtwco:diagnostic-translation-lints, r=oli-obk 2022-06-14 10:35:31 +02:00
rustc_fs_util
rustc_graphviz
rustc_hir Address comments 2022-06-11 16:38:48 -07:00
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer Rollup merge of #97935 - nnethercote:rename-ConstS-val-as-kind, r=lcnr 2022-06-14 10:35:29 +02:00
rustc_interface remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
rustc_lexer
rustc_lint Rollup merge of #97948 - davidtwco:diagnostic-translation-lints, r=oli-obk 2022-06-14 10:35:31 +02:00
rustc_lint_defs
rustc_llvm
rustc_log
rustc_macros
rustc_metadata Auto merge of #95880 - cjgillot:def-ident-span, r=petrochenkov 2022-06-11 20:08:48 +00:00
rustc_middle Rename the ConstS::val field as kind. 2022-06-14 13:06:44 +10:00
rustc_mir_build Rename the ConstS::val field as kind. 2022-06-14 13:06:44 +10:00
rustc_mir_dataflow Merge arms in borrowed locals transfer function 2022-06-12 07:27:57 +02:00
rustc_mir_transform Rename the ConstS::val field as kind. 2022-06-14 13:06:44 +10:00
rustc_monomorphize Rename the ConstS::val field as kind. 2022-06-14 13:06:44 +10:00
rustc_parse Rollup merge of #95211 - terrarier2111:improve-parser, r=compiler-errors 2022-06-14 07:47:22 +09:00
rustc_parse_format
rustc_passes Rollup merge of #97948 - davidtwco:diagnostic-translation-lints, r=oli-obk 2022-06-14 10:35:31 +02:00
rustc_plugin_impl
rustc_privacy
rustc_query_impl
rustc_query_system
rustc_resolve remove unnecessary to_string and String::new for tool_only_span_suggestion 2022-06-13 16:01:16 +09:00
rustc_save_analysis
rustc_serialize
rustc_session Rollup merge of #97948 - davidtwco:diagnostic-translation-lints, r=oli-obk 2022-06-14 10:35:31 +02:00
rustc_smir
rustc_span Rollup merge of #97948 - davidtwco:diagnostic-translation-lints, r=oli-obk 2022-06-14 10:35:31 +02:00
rustc_symbol_mangling Rename the ConstS::val field as kind. 2022-06-14 13:06:44 +10:00
rustc_target Add Apple WatchOS compile targets 2022-06-13 16:08:53 +01:00
rustc_trait_selection Rollup merge of #97935 - nnethercote:rename-ConstS-val-as-kind, r=lcnr 2022-06-14 10:35:29 +02:00
rustc_traits Rename the ConstS::val field as kind. 2022-06-14 13:06:44 +10:00
rustc_ty_utils Auto merge of #95880 - cjgillot:def-ident-span, r=petrochenkov 2022-06-11 20:08:48 +00:00
rustc_type_ir
rustc_typeck Rollup merge of #97935 - nnethercote:rename-ConstS-val-as-kind, r=lcnr 2022-06-14 10:35:29 +02:00