mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Don't push the crate name onto the Cache.stack
Now that we record the crate's name in its `clean::Item`, pushing the crate name onto the `stack` causes duplicate paths. E.g., the URL generated for the path `::foo::bar::baz` would be something like ../foo/foo/bar/baz With this commit, the URL is corrected to ../foo/bar/baz
This commit is contained in:
parent
72a180e134
commit
c9ae35978c
@ -182,8 +182,6 @@ impl Cache {
|
||||
self.primitive_locations.insert(prim, def_id);
|
||||
}
|
||||
|
||||
self.stack.push(krate.name.to_string());
|
||||
|
||||
krate = CacheBuilder { tcx, cache: self, empty_cache: Cache::default() }.fold_crate(krate);
|
||||
|
||||
for (trait_did, dids, impl_) in self.orphan_trait_impls.drain(..) {
|
||||
|
Loading…
Reference in New Issue
Block a user