expand macro invocations in extern {} blocks

This commit is contained in:
Austin Bonander
2018-03-10 18:16:26 -08:00
parent 5ee891cfea
commit 5d74990ceb
31 changed files with 544 additions and 65 deletions

View File

@@ -2195,6 +2195,8 @@ pub enum ForeignItemKind {
Static(P<Ty>, bool),
/// A foreign type
Ty,
/// A macro invocation
Macro(Mac),
}
impl ForeignItemKind {
@@ -2203,6 +2205,7 @@ impl ForeignItemKind {
ForeignItemKind::Fn(..) => "foreign function",
ForeignItemKind::Static(..) => "foreign static item",
ForeignItemKind::Ty => "foreign type",
ForeignItemKind::Macro(..) => "macro in foreign module",
}
}
}