Skip to content

Commit c9ae359

Browse files
committed
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
1 parent 72a180e commit c9ae359

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/librustdoc/formats/cache.rs

-2
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ impl Cache {
182182
self.primitive_locations.insert(prim, def_id);
183183
}
184184

185-
self.stack.push(krate.name.to_string());
186-
187185
krate = CacheBuilder { tcx, cache: self, empty_cache: Cache::default() }.fold_crate(krate);
188186

189187
for (trait_did, dids, impl_) in self.orphan_trait_impls.drain(..) {

0 commit comments

Comments
 (0)