rust/compiler/rustc_passes/src
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
..
liveness Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
check_attr.rs Rollup merge of #97948 - davidtwco:diagnostic-translation-lints, r=oli-obk 2022-06-14 10:35:31 +02:00
check_const.rs Remove #[default..] and add #[const_trait] 2022-05-30 08:52:24 +00:00
dead.rs don't use a span_note for ignored impls 2022-06-02 11:13:31 +02:00
debugger_visualizer.rs Respond to PR comments. 2022-05-25 10:44:56 -07:00
diagnostic_items.rs remove DiagnosticItemCollector 2022-05-13 11:46:05 -04:00
entry.rs use opt_item_name to pattern match items with names 2022-05-14 11:02:14 -04:00
hir_id_validator.rs remove unnecessary methods from HirIdValidator 2022-05-13 11:46:06 -04:00
hir_stats.rs Introduce LifetimeCtxt. 2022-05-20 12:25:05 +02:00
lang_items.rs use def_span and def_kind queries instead of calling tcx.hir() methods 2022-05-06 12:11:05 -04:00
layout_test.rs remove LayoutTest 2022-05-13 11:46:05 -04:00
lib_features.rs Handle rustc_const_stable attribute in library feature collector 2022-03-31 12:34:46 -07:00
lib.rs Fully stabilize NLL 2022-06-03 17:16:41 -04:00
liveness.rs Auto merge of #96863 - SparrowLii:let, r=michaelwoerister 2022-05-18 17:48:46 +00:00
loops.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
naked_functions.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
reachable.rs Encode MIR for 'unreachable' non-generic fns 2022-06-03 17:39:10 -07:00
stability.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
upvars.rs Replace NestedVisitorMap with NestedFilter 2022-01-16 16:02:36 -06:00
weak_lang_items.rs restrict access to span only when we emit diagnostic 2022-04-09 13:53:32 -04:00