mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
check impls as well
This commit is contained in:
parent
79df62bc74
commit
45fbab2b1a
2 changed files with 10 additions and 1 deletions
|
@ -138,6 +138,15 @@ fn check_module(acc: &mut Vec<Diagnostic>, db: &RootDatabase, module: hir::Modul
|
|||
}
|
||||
}
|
||||
|
||||
for impl_block in module.impl_blocks(db) {
|
||||
for item in impl_block.items(db) {
|
||||
match item {
|
||||
hir::ImplItem::Method(f) => f.diagnostics(db, &mut diagnostics),
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for d in diagnostics.into_diagnostics().iter() {
|
||||
if let Some(d) = d.downcast_ref::<hir::diagnostics::UnresolvedModule>() {
|
||||
let source_root = db.file_source_root(d.file().original_file(db));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue