mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
Remove obsolete proc macro collection code
The new attribute-based resolution takes care of this
This commit is contained in:
parent
5486b70bc0
commit
069045015c
1 changed files with 0 additions and 19 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue