Opt-in diagnostics reporting to avoid doing extra work in the new solver
This commit is contained in:
parent
54b2b7d460
commit
eb0a70a557
31 changed files with 200 additions and 107 deletions
|
@ -1608,7 +1608,7 @@ fn check_field_tys_sized<'tcx>(
|
|||
let infcx = tcx.infer_ctxt().ignoring_regions().build();
|
||||
let param_env = tcx.param_env(def_id);
|
||||
|
||||
let ocx = ObligationCtxt::new(&infcx);
|
||||
let ocx = ObligationCtxt::new_with_diagnostics(&infcx);
|
||||
for field_ty in &coroutine_layout.field_tys {
|
||||
ocx.register_bound(
|
||||
ObligationCause::new(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue