Shrink the CrateStore dynamic interface.
This commit is contained in:
parent
a08f25a7ef
commit
3fba5a4844
9 changed files with 39 additions and 56 deletions
|
@ -128,7 +128,7 @@ impl<'a> Resolver<'a> {
|
|||
|
||||
let (name, parent) = if def_id.index == CRATE_DEF_INDEX {
|
||||
// This is the crate root
|
||||
(self.cstore().crate_name_untracked(def_id.krate), None)
|
||||
(self.cstore().crate_name(def_id.krate), None)
|
||||
} else {
|
||||
let def_key = self.cstore().def_key(def_id);
|
||||
let name = def_key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue