Allow ensure
queries to return Result<(), ErrorGuaranteed>
This commit is contained in:
parent
eb99a89bd7
commit
fe8ebb1890
5 changed files with 75 additions and 9 deletions
|
@ -206,7 +206,7 @@ pub fn check_crate(tcx: TyCtxt<'_>) -> Result<(), ErrorGuaranteed> {
|
|||
}
|
||||
|
||||
tcx.sess.time("wf_checking", || {
|
||||
tcx.hir().try_par_for_each_module(|module| tcx.check_mod_type_wf(module))
|
||||
tcx.hir().try_par_for_each_module(|module| tcx.ensure().check_mod_type_wf(module))
|
||||
})?;
|
||||
|
||||
// NOTE: This is copy/pasted in librustdoc/core.rs and should be kept in sync.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue