Skip to content

Commit 209a2a6

Browse files
committed
delegation macros are never handled in the def collector
1 parent 797e68f commit 209a2a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

compiler/rustc_resolve/src/def_collector.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,12 @@ impl<'a, 'ra, 'tcx> visit::Visitor<'a> for DefCollector<'a, 'ra, 'tcx> {
177177
self.brg_visit_item(i);
178178
return;
179179
}
180-
ItemKind::MacCall(..) | ItemKind::DelegationMac(..) => {
180+
ItemKind::MacCall(..) => {
181181
self.visit_macro_invoc(i.id);
182182
self.brg_visit_item(i);
183183
return;
184184
}
185+
ItemKind::DelegationMac(..) => unreachable!(),
185186
};
186187
let def_id =
187188
self.create_def(i.id, i.kind.ident().map(|ident| ident.name), def_kind, i.span);

0 commit comments

Comments
 (0)