rustdoc: Don't abort if there's nothing to document
Instead there's no index.html file emitted because there wasn't anything to document. Closes #9828
This commit is contained in:
parent
3d693d74b8
commit
4d2a402555
@ -220,7 +220,7 @@ pub fn run(mut crate: clean::Crate, dst: Path) {
|
||||
};
|
||||
mkdir(&cx.dst);
|
||||
|
||||
match crate.module.get_ref().doc_list() {
|
||||
match crate.module.as_ref().map(|m| m.doc_list().unwrap_or(&[])) {
|
||||
Some(attrs) => {
|
||||
for attr in attrs.iter() {
|
||||
match *attr {
|
||||
|
Loading…
Reference in New Issue
Block a user