about summary refs log tree commit diff
path: root/compiler/rustc_lint/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-05-10 18:23:32 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-05-30 19:54:04 +0200
commit10fb4b2fe538df29ee9729f060db0ca74f6c28fb (patch)
treeef42f89da0c06fceabdce688e1da49e23899ac44 /compiler/rustc_lint/src
parent5d9f96ab275af964b6c618f6a3bc3cd163b34d23 (diff)
Restrict access to crate_name.
Also remove original_crate_name, which had the exact same implementation
Diffstat (limited to 'compiler/rustc_lint/src')
-rw-r--r--compiler/rustc_lint/src/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/context.rs b/compiler/rustc_lint/src/context.rs
index c1d6a4f1de1..862f8374d30 100644
--- a/compiler/rustc_lint/src/context.rs
+++ b/compiler/rustc_lint/src/context.rs
@@ -922,7 +922,7 @@ impl<'tcx> LateContext<'tcx> {
             }
 
             fn path_crate(self, cnum: CrateNum) -> Result<Self::Path, Self::Error> {
-                Ok(vec![self.tcx.original_crate_name(cnum)])
+                Ok(vec![self.tcx.crate_name(cnum)])
             }
 
             fn path_qualified(