mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
only abort after all early passes have run
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user