rustdoc: Filter inlining private external items

This prevents structures like RcBox from showing up in the documentation
This commit is contained in:
Alex Crichton 2014-05-29 00:26:17 -07:00
parent c2e3aa37da
commit c2564b8fd4
1 changed files with 2 additions and 1 deletions

View File

@ -259,7 +259,8 @@ fn build_module(cx: &core::DocContext, tcx: &ty::ctxt,
// FIXME: this doesn't handle reexports inside the module itself.
// Should they be handled?
csearch::each_child_of_item(&tcx.sess.cstore, did, |def, _, _| {
csearch::each_child_of_item(&tcx.sess.cstore, did, |def, _, vis| {
if vis != ast::Public { return }
match def {
decoder::DlDef(def) => {
match try_inline_def(cx, tcx, def) {