1743: Support `#[macro_use]` on `extern crate` r=matklad a=uHOOCCOOHu

Unfortunately, #1688 is still an issue. My guess is wrong :(

Co-authored-by: uHOOCCOOHu <hooccooh1896@gmail.com>
This commit is contained in:
bors[bot]
2019-09-05 09:04:02 +00:00
committed by GitHub
7 changed files with 119 additions and 12 deletions

View File

@@ -934,6 +934,7 @@ impl AstNode for ExternCrateItem {
&self.syntax
}
}
impl ast::AttrsOwner for ExternCrateItem {}
impl ExternCrateItem {
pub fn name_ref(&self) -> Option<NameRef> {
AstChildren::new(&self.syntax).next()