Add deny lint to prevent untranslatable diagnostics using static strings
This commit is contained in:
parent
a7aa20517c
commit
eeb527602a
5 changed files with 87 additions and 1 deletions
|
@ -518,6 +518,7 @@ fn register_internals(store: &mut LintStore) {
|
|||
store.register_lints(&TyTyKind::get_lints());
|
||||
store.register_late_pass(|_| Box::new(TyTyKind));
|
||||
store.register_lints(&Diagnostics::get_lints());
|
||||
store.register_early_pass(|| Box::new(Diagnostics));
|
||||
store.register_late_pass(|_| Box::new(Diagnostics));
|
||||
store.register_lints(&BadOptAccess::get_lints());
|
||||
store.register_late_pass(|_| Box::new(BadOptAccess));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue