mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
auto merge of #10233 : sfackler/rust/private-module, r=alexcrichton
A private module will survive the strip-private pass if it contains trait implementations, which aren't stripped until a separate pass in render.
This commit is contained in:
commit
22dfdc927b
@ -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),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user