crate use self::StructType::*;
use rustc_ast as ast;
-use rustc_span::{self, symbol::Ident, Span, Symbol};
+use rustc_span::{self, Span, Symbol};
use rustc_hir as hir;
crate mods: Vec<Module<'hir>>,
crate id: hir::HirId,
// (item, renamed)
- crate items: Vec<(&'hir hir::Item<'hir>, Option<Ident>)>,
- crate foreigns: Vec<(&'hir hir::ForeignItem<'hir>, Option<Ident>)>,
- crate macros: Vec<Macro>,
+ crate items: Vec<(&'hir hir::Item<'hir>, Option<Symbol>)>,
+ crate foreigns: Vec<(&'hir hir::ForeignItem<'hir>, Option<Symbol>)>,
+ crate macros: Vec<(&'hir hir::MacroDef<'hir>, Option<Symbol>)>,
crate is_crate: bool,
}
crate def: &'hir hir::VariantData<'hir>,
}
-// For Macro we store the DefId instead of the NodeId, since we also create
-// these imported macro_rules (which only have a DUMMY_NODE_ID).
-crate struct Macro {
- crate name: Symbol,
- crate def_id: hir::def_id::DefId,
- crate matchers: Vec<Span>,
- crate imported_from: Option<Symbol>,
-}
-
#[derive(Debug)]
crate struct Import<'hir> {
crate name: Symbol,