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-06-01 09:05:22 +0200
committerGitHub <noreply@github.com>2021-06-01 09:05:22 +0200
commit0f0f3138cb80137b9277b29118c05dbff9a8915e (patch)
tree4809ba7275fdf021453562db97dc0f0e9a5fd598 /compiler/rustc_lint/src
parentc9c1f8be3fda5b58520c579451d3f5e20736ec90 (diff)
Revert "Reduce the amount of untracked state in TyCtxt"
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 862f8374d30..c1d6a4f1de1 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.crate_name(cnum)])
+                Ok(vec![self.tcx.original_crate_name(cnum)])
             }
 
             fn path_qualified(