Skip to content

Commit

Permalink
only abort after all early passes have run
Browse files Browse the repository at this point in the history
  • Loading branch information
QuietMisdreavus committed Aug 5, 2018
1 parent bef0f25 commit 323b2b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/librustdoc/core.rs
Expand Up @@ -596,6 +596,8 @@ pub fn run_core(search_paths: SearchPaths,
}
}

ctxt.sess().abort_if_errors();

(krate, ctxt.renderinfo.into_inner(), passes)
}), &sess)
})
Expand Down
2 changes: 0 additions & 2 deletions src/librustdoc/passes/collect_intra_doc_links.rs
Expand Up @@ -379,8 +379,6 @@ impl<'a, 'tcx, 'rcx, 'cstore> DocFolder for LinkCollector<'a, 'tcx, 'rcx, 'cstor
}
}

cx.sess().abort_if_errors();

if item.is_mod() && !item.attrs.inner_docs {
self.mod_ids.push(item_node_id.unwrap());
}
Expand Down

0 comments on commit 323b2b7

Please sign in to comment.