mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
account for impls generated by macros
This commit is contained in:
parent
54379ec6f8
commit
7d15c81a33
3 changed files with 76 additions and 30 deletions
|
@ -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()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue