Remove obsolete proc macro collection code

The new attribute-based resolution takes care of this
This commit is contained in:
Jonas Schievink 2020-09-18 16:52:24 +02:00
parent 5486b70bc0
commit 069045015c

View file

@ -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) {