account for impls generated by macros

This commit is contained in:
Aleksey Kladov 2019-09-17 22:22:40 +03:00
parent 54379ec6f8
commit 7d15c81a33
3 changed files with 76 additions and 30 deletions

View file

@ -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<MacroDef> {
let (item_map, module) = self.module()?;