1
Fork 0

Shrink the CrateStore dynamic interface.

This commit is contained in:
Camille GILLOT 2021-07-12 21:20:16 +02:00
parent a08f25a7ef
commit 3fba5a4844
9 changed files with 39 additions and 56 deletions

View file

@ -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