mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
lint: add comment about diag lints in group
Add a brief comment explaining why the diagnostic migration lints aren't included in the `rustc::internal` diagnostic group. Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
e33cc71a61
commit
1b8e4b9391
@ -511,6 +511,10 @@ fn register_internals(store: &mut LintStore) {
|
||||
store.register_late_pass(|| Box::new(Diagnostics));
|
||||
store.register_lints(&PassByValue::get_lints());
|
||||
store.register_late_pass(|| Box::new(PassByValue));
|
||||
// FIXME(davidtwco): deliberately do not include `UNTRANSLATABLE_DIAGNOSTIC` and
|
||||
// `DIAGNOSTIC_OUTSIDE_OF_IMPL` here because `-Wrustc::internal` is provided to every crate and
|
||||
// these lints will trigger all of the time - change this once migration to diagnostic structs
|
||||
// and translation is completed
|
||||
store.register_group(
|
||||
false,
|
||||
"rustc::internal",
|
||||
|
Loading…
Reference in New Issue
Block a user