diff options
| author | bors <bors@rust-lang.org> | 2023-02-27 07:00:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-02-27 07:00:27 +0000 |
| commit | 49b9cc5139dd4d11ef78dc08c1f9170de5b1ca39 (patch) | |
| tree | 26fc18407f34d44ed4dfbc51d71f9e4568ebf253 /compiler/rustc_hir_analysis/src | |
| parent | 58136ffa92c81ec9e6ac1f91773254914da2ca01 (diff) | |
| parent | ce3397503bb86aa520a100dad0a24ac31efc5179 (diff) | |
| download | rust-49b9cc5139dd4d11ef78dc08c1f9170de5b1ca39.tar.gz rust-49b9cc5139dd4d11ef78dc08c1f9170de5b1ca39.zip | |
Auto merge of #108521 - matthiaskrgr:rollup-exkviev, r=matthiaskrgr
Rollup of 9 pull requests Successful merges: - #108319 (Don't project specializable RPITIT projection) - #108364 (Unify validity checks into a single query) - #108463 (bootstrap: Update the output of the `check` descriptions) - #108477 (Make `match` arm comma suggestion more clear) - #108486 (Merge diagnostic_items duplicate diagnostics) - #108494 (Clean up JS files code a bit) - #108500 (update Miri) - #108502 (Don't trigger error for ReError when other region is empty.) - #108513 (Remove `@nagisa` from review rotation) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check/compare_impl_item.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/compare_impl_item.rs b/compiler/rustc_hir_analysis/src/check/compare_impl_item.rs index 89b4e6227bd..b0dc6b1dcac 100644 --- a/compiler/rustc_hir_analysis/src/check/compare_impl_item.rs +++ b/compiler/rustc_hir_analysis/src/check/compare_impl_item.rs @@ -648,6 +648,13 @@ pub(super) fn collect_return_position_impl_trait_in_trait_tys<'tcx>( tcx.fn_sig(trait_m.def_id).subst(tcx, trait_to_placeholder_substs), ) .fold_with(&mut collector); + + debug_assert_ne!( + collector.types.len(), + 0, + "expect >1 RPITITs in call to `collect_return_position_impl_trait_in_trait_tys`" + ); + let trait_sig = ocx.normalize(&norm_cause, param_env, unnormalized_trait_sig); trait_sig.error_reported()?; let trait_return_ty = trait_sig.output(); |
