diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-11-24 14:36:31 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-24 14:36:31 +0000 |
commit | 775bd98e5cf7918acf0dd72009ac14cf758ed0ca (patch) | |
tree | bb4e9795f9dc23d710f147faff02e9d8df596d87 /crates/ra_hir_def/src/resolver.rs | |
parent | 5cc634fa6018b60c7bac5ada2038ca341a91f410 (diff) | |
parent | 21cfa6d529babf868f897b943d67561ea752b9e5 (diff) |
Merge #2385
2385: Some docs r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src/resolver.rs')
-rw-r--r-- | crates/ra_hir_def/src/resolver.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/resolver.rs b/crates/ra_hir_def/src/resolver.rs index 4ff0a091b..7182b8a4d 100644 --- a/crates/ra_hir_def/src/resolver.rs +++ b/crates/ra_hir_def/src/resolver.rs | |||
@@ -308,7 +308,7 @@ impl Resolver { | |||
308 | 308 | ||
309 | pub fn resolve_path_as_macro(&self, db: &impl DefDatabase, path: &Path) -> Option<MacroDefId> { | 309 | pub fn resolve_path_as_macro(&self, db: &impl DefDatabase, path: &Path) -> Option<MacroDefId> { |
310 | let (item_map, module) = self.module()?; | 310 | let (item_map, module) = self.module()?; |
311 | item_map.resolve_path(db, module, path).0.get_macros() | 311 | item_map.resolve_path(db, module, path).0.take_macros() |
312 | } | 312 | } |
313 | 313 | ||
314 | pub fn process_all_names(&self, db: &impl DefDatabase, f: &mut dyn FnMut(Name, ScopeDef)) { | 314 | pub fn process_all_names(&self, db: &impl DefDatabase, f: &mut dyn FnMut(Name, ScopeDef)) { |