Remove name field from ExternalCrate

This commit is contained in:
Joshua Nelson 2021-04-22 19:02:09 -04:00
parent 5407a69aa4
commit 3bef65ffaf
5 changed files with 12 additions and 7 deletions

View file

@ -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;
}