Opt-in diagnostics reporting to avoid doing extra work in the new solver
This commit is contained in:
@@ -54,7 +54,7 @@ pub fn ensure_wf<'tcx>(
|
||||
pred,
|
||||
);
|
||||
let infcx = tcx.infer_ctxt().build();
|
||||
let ocx = traits::ObligationCtxt::new(&infcx);
|
||||
let ocx = traits::ObligationCtxt::new_with_diagnostics(&infcx);
|
||||
ocx.register_obligation(obligation);
|
||||
let errors = ocx.select_all_or_error();
|
||||
if !errors.is_empty() {
|
||||
|
||||
Reference in New Issue
Block a user