1
Fork 0

Remove src field from ExternCrate

This commit is contained in:
Joshua Nelson 2021-04-22 18:54:48 -04:00
parent 25c15cdbe0
commit 5407a69aa4
4 changed files with 14 additions and 6 deletions

View file

@ -155,7 +155,7 @@ impl Cache {
// Cache where all our extern crates are located
// FIXME: this part is specific to HTML so it'd be nice to remove it from the common code
for &(n, ref e) in &krate.externs {
let src_root = match e.src {
let src_root = match e.src(tcx) {
FileName::Real(ref p) => match p.local_path().parent() {
Some(p) => p.to_path_buf(),
None => PathBuf::new(),