rustdoc: Use privacy visibility for pruning
This commit ends rustdoc's approximation of privacy and instead uses the result of the various compiler passes instead. Closes #9827
This commit is contained in:
@@ -582,7 +582,7 @@ impl DocFolder for Cache {
|
||||
clean::StructItem(*) | clean::EnumItem(*) |
|
||||
clean::TypedefItem(*) | clean::TraitItem(*) |
|
||||
clean::FunctionItem(*) | clean::ModuleItem(*) |
|
||||
clean::VariantItem(*) => {
|
||||
clean::ForeignFunctionItem(*) | clean::VariantItem(*) => {
|
||||
self.paths.insert(item.id, (self.stack.clone(), shortty(&item)));
|
||||
}
|
||||
_ => {}
|
||||
|
||||
Reference in New Issue
Block a user