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

View file

@ -596,6 +596,8 @@ pub fn run_core(search_paths: SearchPaths,
}
}
ctxt.sess().abort_if_errors();
(krate, ctxt.renderinfo.into_inner(), passes)
}), &sess)
})

View file

@ -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());
}