From 069045015c4b400754632c505f6ef19e32f9a4db Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Fri, 18 Sep 2020 16:52:24 +0200 Subject: Remove obsolete proc macro collection code The new attribute-based resolution takes care of this --- crates/hir_def/src/nameres/collector.rs | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'crates/hir_def') diff --git a/crates/hir_def/src/nameres/collector.rs b/crates/hir_def/src/nameres/collector.rs index 42c0f0536..28ef49488 100644 --- a/crates/hir_def/src/nameres/collector.rs +++ b/crates/hir_def/src/nameres/collector.rs @@ -260,25 +260,6 @@ impl DefCollector<'_> { self.record_resolved_import(directive) } self.unresolved_imports = unresolved_imports; - - // Record proc-macros - self.collect_proc_macro(); - } - - fn collect_proc_macro(&mut self) { - let proc_macros = std::mem::take(&mut self.proc_macros); - for (name, expander) in proc_macros { - let krate = self.def_map.krate; - - let macro_id = MacroDefId { - ast_id: None, - krate: Some(krate), - kind: MacroDefKind::ProcMacro(expander), - local_inner: false, - }; - - self.define_proc_macro(name.clone(), macro_id); - } } fn resolve_proc_macro(&mut self, name: &Name) { -- cgit v1.2.3