Skip to content

Commit

Permalink
Don't try to get crate root for reference only metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Feb 13, 2022
1 parent 7969fd3 commit 5f0a9f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_metadata/src/locator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ impl<'a> CrateLocator<'a> {
return None;
}
}
return Some(hash);
}

let root = metadata.get_root();
Expand Down

0 comments on commit 5f0a9f8

Please sign in to comment.