mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
Distinguish crates with identical name
This commit is contained in:
parent
a85a2c4d15
commit
435c422963
1 changed files with 1 additions and 1 deletions
|
@ -76,6 +76,6 @@ impl<'a> dot::Labeller<'a, CrateId, Edge<'a>> for DotCrateGraph {
|
|||
|
||||
fn node_id(&'a self, n: &CrateId) -> Id<'a> {
|
||||
let name = self.0[*n].display_name.as_ref().map_or("_missing_name_", |name| &*name);
|
||||
Id::new(name).unwrap()
|
||||
Id::new(format!("{}_{}", name, n.0)).unwrap()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue