mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
delegation macros are never handled in the def collector
This commit is contained in:
@@ -177,11 +177,12 @@ fn visit_item(&mut self, i: &'a Item) {
|
||||
self.brg_visit_item(i);
|
||||
return;
|
||||
}
|
||||
ItemKind::MacCall(..) | ItemKind::DelegationMac(..) => {
|
||||
ItemKind::MacCall(..) => {
|
||||
self.visit_macro_invoc(i.id);
|
||||
self.brg_visit_item(i);
|
||||
return;
|
||||
}
|
||||
ItemKind::DelegationMac(..) => unreachable!(),
|
||||
};
|
||||
let def_id =
|
||||
self.create_def(i.id, i.kind.ident().map(|ident| ident.name), def_kind, i.span);
|
||||
|
||||
Reference in New Issue
Block a user