aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r--crates/hir_def/src/nameres/collector.rs19
1 files changed, 0 insertions, 19 deletions
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<'_> {
260 self.record_resolved_import(directive) 260 self.record_resolved_import(directive)
261 } 261 }
262 self.unresolved_imports = unresolved_imports; 262 self.unresolved_imports = unresolved_imports;
263
264 // Record proc-macros
265 self.collect_proc_macro();
266 }
267
268 fn collect_proc_macro(&mut self) {
269 let proc_macros = std::mem::take(&mut self.proc_macros);
270 for (name, expander) in proc_macros {
271 let krate = self.def_map.krate;
272
273 let macro_id = MacroDefId {
274 ast_id: None,
275 krate: Some(krate),
276 kind: MacroDefKind::ProcMacro(expander),
277 local_inner: false,
278 };
279
280 self.define_proc_macro(name.clone(), macro_id);
281 }
282 } 263 }
283 264
284 fn resolve_proc_macro(&mut self, name: &Name) { 265 fn resolve_proc_macro(&mut self, name: &Name) {