rust/compiler/rustc_lint/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
..
nonstandard_style
array_into_iter.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
builtin.rs Rename the ConstS::val field as kind. 2022-06-14 13:06:44 +10:00
context.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
early.rs Emit weird lint name lints after expansion 2022-05-24 17:27:34 +02:00
enum_intrinsics_non_enums.rs
expect.rs Move lint expectation checking into a separate query (RFC 2383) 2022-05-08 14:37:14 +02:00
hidden_unicode_codepoints.rs
internal.rs Rollup merge of #97948 - davidtwco:diagnostic-translation-lints, r=oli-obk 2022-06-14 10:35:31 +02:00
late.rs Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
levels.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
lib.rs lint: add diagnostic translation migration lints 2022-06-10 15:50:06 +01:00
methods.rs
non_ascii_idents.rs
non_fmt_panic.rs Make rustc_parse_format compile on stable 2022-05-03 11:26:58 +02:00
nonstandard_style.rs
noop_method_call.rs
pass_by_value.rs
passes.rs
redundant_semicolon.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
tests.rs
traits.rs
types.rs Folding revamp. 2022-06-08 09:24:03 +10:00
unused.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00