Remove ModData
from rustc_metadata
This avoids having to decode 2 `Lazy`s when decoding a modules exports.
This commit is contained in:
parent
fabede1851
commit
d8426ea636
4 changed files with 5 additions and 13 deletions
|
@ -145,12 +145,11 @@ impl<'a> Resolver<'a> {
|
|||
} else {
|
||||
def_key.disambiguated_data.data.get_opt_name().expect("module without name")
|
||||
};
|
||||
let expn_id = self.cstore().module_expansion_untracked(def_id, &self.session);
|
||||
|
||||
Some(self.new_module(
|
||||
parent,
|
||||
ModuleKind::Def(def_kind, def_id, name),
|
||||
expn_id,
|
||||
self.cstore().module_expansion_untracked(def_id, &self.session),
|
||||
self.cstore().get_span_untracked(def_id, &self.session),
|
||||
// FIXME: Account for `#[no_implicit_prelude]` attributes.
|
||||
parent.map_or(false, |module| module.no_implicit_prelude),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue