Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/nameres/collector.rs')
| -rw-r--r-- | crates/hir-def/src/nameres/collector.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-def/src/nameres/collector.rs b/crates/hir-def/src/nameres/collector.rs index d52de5282b..219dbe519f 100644 --- a/crates/hir-def/src/nameres/collector.rs +++ b/crates/hir-def/src/nameres/collector.rs @@ -15,7 +15,7 @@ use hir_expand::{ builtin::{BuiltinDeriveExpander, find_builtin_attr, find_builtin_derive, find_builtin_macro}, mod_path::{ModPath, PathKind}, name::{AsName, Name}, - proc_macro::CustomProcMacroExpander, + proc_macro::{CustomProcMacroExpander, ProcMacros}, }; use intern::{Interned, Symbol, sym}; use itertools::izip; @@ -79,7 +79,7 @@ pub(super) fn collect_defs( } let proc_macros = if krate.is_proc_macro { - db.proc_macros_for_crate(def_map.krate) + ProcMacros::get_for_crate(db, def_map.krate) .and_then(|proc_macros| { proc_macros.list(db.syntax_context(tree_id.file_id(), krate.edition)) }) |