mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Move incorrect case diagnostic things into their module
This commit is contained in:
parent
91def936bc
commit
69782f55de
4 changed files with 88 additions and 92 deletions
|
@ -359,7 +359,7 @@ impl ModuleDef {
|
|||
def.diagnostics(db, &mut acc);
|
||||
}
|
||||
None => {
|
||||
for diag in hir_ty::diagnostics::validate_module_item(db, module.id.krate(), id) {
|
||||
for diag in hir_ty::diagnostics::incorrect_case(db, module.id.krate(), id) {
|
||||
acc.push(diag.into())
|
||||
}
|
||||
}
|
||||
|
@ -1282,7 +1282,7 @@ impl DefWithBody {
|
|||
DefWithBody::Static(it) => it.into(),
|
||||
DefWithBody::Const(it) => it.into(),
|
||||
};
|
||||
for diag in hir_ty::diagnostics::validate_module_item(db, krate, def.into()) {
|
||||
for diag in hir_ty::diagnostics::incorrect_case(db, krate, def.into()) {
|
||||
acc.push(diag.into())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue