mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Resolve derive attributes even when shadowed
This commit is contained in:
parent
401daa5f77
commit
aa9d093488
3 changed files with 23 additions and 7 deletions
|
@ -502,6 +502,15 @@ pub(crate) fn resolve_hir_path(
|
|||
resolve_hir_path_(db, resolver, path, false)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub(crate) fn resolve_hir_path_as_macro(
|
||||
db: &dyn HirDatabase,
|
||||
resolver: &Resolver,
|
||||
path: &Path,
|
||||
) -> Option<MacroDef> {
|
||||
resolver.resolve_path_as_macro(db.upcast(), path.mod_path()).map(Into::into)
|
||||
}
|
||||
|
||||
fn resolve_hir_path_(
|
||||
db: &dyn HirDatabase,
|
||||
resolver: &Resolver,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue