Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/nameres/attr_resolution.rs')
| -rw-r--r-- | crates/hir-def/src/nameres/attr_resolution.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-def/src/nameres/attr_resolution.rs b/crates/hir-def/src/nameres/attr_resolution.rs index 7820c6fcbe..03473e3c61 100644 --- a/crates/hir-def/src/nameres/attr_resolution.rs +++ b/crates/hir-def/src/nameres/attr_resolution.rs @@ -5,6 +5,7 @@ use hir_expand::{ MacroCallId, MacroCallKind, MacroDefId, attrs::{Attr, AttrId, AttrInput}, inert_attr_macro::find_builtin_attr_idx, + mod_path::{ModPath, PathKind}, }; use span::SyntaxContext; use syntax::ast; @@ -15,7 +16,6 @@ use crate::{ db::DefDatabase, item_scope::BuiltinShadowMode, nameres::{LocalDefMap, path_resolution::ResolveMode}, - path::{self, ModPath, PathKind}, }; use super::{DefMap, MacroSubNs}; @@ -139,7 +139,7 @@ pub(super) fn derive_macro_as_call_id( derive_pos: u32, call_site: SyntaxContext, krate: Crate, - resolver: impl Fn(&path::ModPath) -> Option<(MacroId, MacroDefId)>, + resolver: impl Fn(&ModPath) -> Option<(MacroId, MacroDefId)>, derive_macro_id: MacroCallId, ) -> Result<(MacroId, MacroDefId, MacroCallId), UnresolvedMacro> { let (macro_id, def_id) = resolver(&item_attr.path) |