1
Fork 0

rustdoc: Don't include private paths in all.html

This commit is contained in:
Oliver Middleton 2018-04-13 14:58:43 +01:00
parent 9afed64645
commit abded6111b
2 changed files with 11 additions and 1 deletions

View file

@ -1728,7 +1728,9 @@ impl Context {
let mut dst = try_err!(File::create(&joint_dst), &joint_dst);
try_err!(dst.write_all(&buf), &joint_dst);
all.append(full_path(self, &item), &item_type);
if !self.render_redirect_pages {
all.append(full_path(self, &item), &item_type);
}
// Redirect from a sane URL using the namespace to Rustdoc's
// URL for the page.
let redir_name = format!("{}.{}.html", name, item_type.name_space());