diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_hir/src/nameres.rs | 2 | ||||
-rw-r--r-- | crates/ra_ide_api/src/diagnostics.rs | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/crates/ra_hir/src/nameres.rs b/crates/ra_hir/src/nameres.rs index 56ed872d5..cdf502368 100644 --- a/crates/ra_hir/src/nameres.rs +++ b/crates/ra_hir/src/nameres.rs | |||
@@ -192,7 +192,7 @@ impl CrateDefMap { | |||
192 | CrateDefMap { | 192 | CrateDefMap { |
193 | krate, | 193 | krate, |
194 | edition, | 194 | edition, |
195 | extern_prelude: FxHashMap::default(), | 195 | xextern_prelude: FxHashMap::default(), |
196 | prelude: None, | 196 | prelude: None, |
197 | root, | 197 | root, |
198 | modules, | 198 | modules, |
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)); |