about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src/profiling_support.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-06-02 20:23:37 +0000
committerbors <bors@rust-lang.org>2021-06-02 20:23:37 +0000
commitdbe459dedd33470f2cb28101157de316caaffa66 (patch)
tree633532415b22f80b45f6da0853d47451175f5b46 /compiler/rustc_query_impl/src/profiling_support.rs
parent2f601ef527a37de9fb181c5fb1a6c06d06218ed3 (diff)
parent0e71283495c88c01c6a3b8f650d88baf612aab0e (diff)
downloadrust-dbe459dedd33470f2cb28101157de316caaffa66.tar.gz
rust-dbe459dedd33470f2cb28101157de316caaffa66.zip
Auto merge of #85904 - cjgillot:one-name, r=petrochenkov
Restrict access to crate_name.

Also remove original_crate_name, which had the exact same implementation.

Part of #85153
Diffstat (limited to 'compiler/rustc_query_impl/src/profiling_support.rs')
-rw-r--r--compiler/rustc_query_impl/src/profiling_support.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_impl/src/profiling_support.rs b/compiler/rustc_query_impl/src/profiling_support.rs
index 2517793ecea..95edc1e93a5 100644
--- a/compiler/rustc_query_impl/src/profiling_support.rs
+++ b/compiler/rustc_query_impl/src/profiling_support.rs
@@ -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;