Rustdoc: Properly strip private modules
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:
parent
c15038db08
commit
ea9432ef00
@ -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