use rustc_hir as hir;
crate struct Module<'hir> {
- crate name: Option<Symbol>,
+ crate name: Symbol,
crate where_outer: Span,
crate where_inner: Span,
crate mods: Vec<Module<'hir>>,
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,
}
impl Module<'hir> {
- crate fn new(name: Option<Symbol>) -> Module<'hir> {
+ crate fn new(name: Symbol) -> Module<'hir> {
Module {
name,
id: hir::CRATE_HIR_ID,
items: Vec::new(),
foreigns: Vec::new(),
macros: Vec::new(),
- is_crate: false,
}
}
}