From 10fb4b2fe538df29ee9729f060db0ca74f6c28fb Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Mon, 10 May 2021 18:23:32 +0200 Subject: Restrict access to crate_name. Also remove original_crate_name, which had the exact same implementation --- compiler/rustc_query_impl/src/profiling_support.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_query_impl/src') 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; -- cgit 1.4.1-3-g733a5