diff options
| author | Michael Goulet <michael@errs.io> | 2024-11-27 21:27:37 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-12-02 22:51:18 +0000 |
| commit | 398fd901d5f8afa982eeb0f9318d9d0e4e791f44 (patch) | |
| tree | c5e61541e52b9d517b382b85e14d3a441db6993e /compiler/rustc_hir_analysis | |
| parent | abfa5c1dca4c549f0e196a872579434ff23a24bb (diff) | |
| download | rust-398fd901d5f8afa982eeb0f9318d9d0e4e791f44.tar.gz rust-398fd901d5f8afa982eeb0f9318d9d0e4e791f44.zip | |
Assert that obligations are empty before deeply normalizing
Diffstat (limited to 'compiler/rustc_hir_analysis')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check/wfcheck.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/wfcheck.rs b/compiler/rustc_hir_analysis/src/check/wfcheck.rs index 8fa797db246..68045403932 100644 --- a/compiler/rustc_hir_analysis/src/check/wfcheck.rs +++ b/compiler/rustc_hir_analysis/src/check/wfcheck.rs @@ -116,13 +116,12 @@ where } f(&mut wfcx)?; - let assumed_wf_types = wfcx.ocx.assumed_wf_types_and_report_errors(param_env, body_def_id)?; - let errors = wfcx.select_all_or_error(); if !errors.is_empty() { return Err(infcx.err_ctxt().report_fulfillment_errors(errors)); } + let assumed_wf_types = wfcx.ocx.assumed_wf_types_and_report_errors(param_env, body_def_id)?; debug!(?assumed_wf_types); let infcx_compat = infcx.fork(); |
