From 7d15c81a3367bc538470b5f63d61498eef8efdc7 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 17 Sep 2019 22:22:40 +0300 Subject: account for impls generated by macros --- crates/ra_hir/src/resolve.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir/src/resolve.rs') diff --git a/crates/ra_hir/src/resolve.rs b/crates/ra_hir/src/resolve.rs index a23c8792a..254d1a964 100644 --- a/crates/ra_hir/src/resolve.rs +++ b/crates/ra_hir/src/resolve.rs @@ -5,7 +5,7 @@ use rustc_hash::FxHashSet; use crate::{ code_model::Crate, - db::HirDatabase, + db::{DefDatabase, HirDatabase}, expr::{ scope::{ExprScopes, ScopeId}, PatId, @@ -290,7 +290,7 @@ impl Resolver { pub(crate) fn resolve_path_as_macro( &self, - db: &impl HirDatabase, + db: &impl DefDatabase, path: &Path, ) -> Option { let (item_map, module) = self.module()?; -- cgit v1.2.3