only abort after all early passes have run

This commit is contained in:
QuietMisdreavus
2018-07-28 00:06:51 -05:00
parent bef0f2576d
commit 323b2b71ec
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -596,6 +596,8 @@ fn report_deprecated_attr(name: &str, diag: &errors::Handler) {
}
}
ctxt.sess().abort_if_errors();
(krate, ctxt.renderinfo.into_inner(), passes)
}), &sess)
})
@@ -379,8 +379,6 @@ fn fold_item(&mut self, mut item: Item) -> Option<Item> {
}
}
cx.sess().abort_if_errors();
if item.is_mod() && !item.attrs.inner_docs {
self.mod_ids.push(item_node_id.unwrap());
}