Remove name field from ExternalCrate
This commit is contained in:
parent
5407a69aa4
commit
3bef65ffaf
5 changed files with 12 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue