Restrict access to crate_name.
Also remove original_crate_name, which had the exact same implementation
This commit is contained in:
parent
2f601ef527
commit
0e71283495
19 changed files with 23 additions and 30 deletions
|
@ -61,7 +61,7 @@ impl<'p, 'c, 'tcx> QueryKeyStringBuilder<'p, 'c, 'tcx> {
|
|||
|
||||
match def_key.disambiguated_data.data {
|
||||
DefPathData::CrateRoot => {
|
||||
crate_name = self.tcx.original_crate_name(def_id.krate).as_str();
|
||||
crate_name = self.tcx.crate_name(def_id.krate).as_str();
|
||||
name = &*crate_name;
|
||||
dis = "";
|
||||
end_index = 3;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue