Skip to content

Commit

Permalink
auto merge of #10233 : sfackler/rust/private-module, r=alexcrichton
Browse files Browse the repository at this point in the history
A private module will survive the strip-private pass if it contains
trait implementations, which aren't stripped until a separate pass in
render.
  • Loading branch information
bors committed Nov 2, 2013
2 parents 95b1833 + ea9432e commit 22dfdc9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/librustdoc/html/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,11 @@ impl DocFolder for Cache {
}
None
}
// Private modules may survive the strip-private pass if
// they contain impls for public types, but those will get
// stripped here
clean::Item { inner: clean::ModuleItem(ref m), _ }
if m.items.len() == 0 => None,
i => Some(i),
}
}
Expand Down

0 comments on commit 22dfdc9

Please sign in to comment.