diff options
author | Aleksey Kladov <[email protected]> | 2019-06-08 18:42:02 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-06-08 18:42:02 +0100 |
commit | caefa6982bc57195687de11137997f1d62d791fe (patch) | |
tree | 4cdbfe1ae67d0eae6ba85b19cf40126898f43ac5 /crates/ra_hir/src/source_binder.rs | |
parent | 780e1a365b10027c4bd4adcc939ab32da1d91492 (diff) |
remove some hacks from nameresolution for macros
Diffstat (limited to 'crates/ra_hir/src/source_binder.rs')
-rw-r--r-- | crates/ra_hir/src/source_binder.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs index 63ec59314..876ebe0e3 100644 --- a/crates/ra_hir/src/source_binder.rs +++ b/crates/ra_hir/src/source_binder.rs | |||
@@ -267,9 +267,8 @@ impl SourceAnalyzer { | |||
267 | db: &impl HirDatabase, | 267 | db: &impl HirDatabase, |
268 | macro_call: &ast::MacroCall, | 268 | macro_call: &ast::MacroCall, |
269 | ) -> Option<MacroDef> { | 269 | ) -> Option<MacroDef> { |
270 | let id = | 270 | let path = macro_call.path().and_then(Path::from_ast)?; |
271 | self.resolver.resolve_macro_call(db, macro_call.path().and_then(Path::from_ast))?; | 271 | self.resolver.resolve_path_as_macro(db, &path) |
272 | Some(MacroDef { id }) | ||
273 | } | 272 | } |
274 | 273 | ||
275 | pub fn resolve_hir_path( | 274 | pub fn resolve_hir_path( |