diff options
Diffstat (limited to 'crates/ra_ide_api/src/diagnostics.rs')
-rw-r--r-- | crates/ra_ide_api/src/diagnostics.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/diagnostics.rs b/crates/ra_ide_api/src/diagnostics.rs index 1395cede2..e03dcaa8f 100644 --- a/crates/ra_ide_api/src/diagnostics.rs +++ b/crates/ra_ide_api/src/diagnostics.rs | |||
@@ -138,6 +138,15 @@ fn check_module(acc: &mut Vec<Diagnostic>, db: &RootDatabase, module: hir::Modul | |||
138 | } | 138 | } |
139 | } | 139 | } |
140 | 140 | ||
141 | for impl_block in module.impl_blocks(db) { | ||
142 | for item in impl_block.items(db) { | ||
143 | match item { | ||
144 | hir::ImplItem::Method(f) => f.diagnostics(db, &mut diagnostics), | ||
145 | _ => (), | ||
146 | } | ||
147 | } | ||
148 | } | ||
149 | |||
141 | for d in diagnostics.into_diagnostics().iter() { | 150 | for d in diagnostics.into_diagnostics().iter() { |
142 | if let Some(d) = d.downcast_ref::<hir::diagnostics::UnresolvedModule>() { | 151 | if let Some(d) = d.downcast_ref::<hir::diagnostics::UnresolvedModule>() { |
143 | let source_root = db.file_source_root(d.file().original_file(db)); | 152 | let source_root = db.file_source_root(d.file().original_file(db)); |