about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-04-22 19:02:09 -0400
committerJoshua Nelson <jyn514@gmail.com>2021-04-22 19:02:09 -0400
commit3bef65ffaf3ea435fa653bd99c72b3adde93ea95 (patch)
tree9a589148bbe07e33c271952bca7e922d578c679d /src/librustdoc/html
parent5407a69aa4a816fdfd9cf6f659643f78659c1f88 (diff)
downloadrust-3bef65ffaf3ea435fa653bd99c72b3adde93ea95.tar.gz
rust-3bef65ffaf3ea435fa653bd99c72b3adde93ea95.zip
Remove `name` field from ExternalCrate
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/render/cache.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/cache.rs b/src/librustdoc/html/render/cache.rs
index 2265905dcba..b8544a0f439 100644
--- a/src/librustdoc/html/render/cache.rs
+++ b/src/librustdoc/html/render/cache.rs
@@ -31,10 +31,11 @@ crate fn extern_location(
     e: &clean::ExternalCrate,
     extern_url: Option<&str>,
     dst: &Path,
+    tcx: TyCtxt<'_>,
 ) -> ExternalLocation {
     use ExternalLocation::*;
     // See if there's documentation generated into the local directory
-    let local_location = dst.join(&*e.name.as_str());
+    let local_location = dst.join(&*e.name(tcx).as_str());
     if local_location.is_dir() {
         return Local;
     }