rust/compiler/rustc_hir_analysis/src/check
Matthias Krüger 246d989a30
Rollup merge of #109198 - compiler-errors:new-rpitit-default-body, r=spastorino
Install projection from RPITIT to default trait method opaque correctly

1. For new lowering strategy `-Zlower-impl-trait-in-trait-to-assoc-ty`, install the correct default trait method projection predicates (RPITIT -> opaque). This makes default trait body tests pass!

2. Fix two WF-checking bugs -- first, we want to make sure that we're always looking for an opaque type in `check_return_position_impl_trait_in_trait_bounds`. That's because the RPITIT projections are normalized to opaques during wfcheck. Second, fix RPITIT's param-envs by not adding the projection predicates that we install on trait methods to make default RPITITs work -- I left a comment why.

3. Also, just a small drive-by for `rustc_on_unimplemented`. Not sure if it affects any tests, but can't hurt.

r? ````@spastorino,```` based off of #109140
2023-03-17 08:42:40 +01:00
..
check.rs Rename impl_trait_in_trait_parent to impl_trait_in_trait_parent_fn 2023-03-15 12:27:16 -03:00
compare_impl_item.rs Revert "Auto merge of #107376 - aliemjay:remove-givens, r=lcnr" 2023-03-15 15:09:29 +00:00
dropck.rs diagnostics: if AssocFn has self argument, describe as method 2023-02-22 08:40:33 -07:00
intrinsic.rs MaybeUninit::assume_init_read should have noundef load metadata 2023-03-11 17:44:43 -08:00
intrinsicck.rs Use FxIndexSet instead of FxHashSet for asm_target_features query. 2023-03-01 10:19:26 +01:00
mod.rs Auto merge of #108075 - WaffleLapkin:de-arena-allocates-you-OwO, r=Nilstrieb 2023-02-17 17:42:51 +00:00
region.rs Auto merge of #106090 - WaffleLapkin:dereffffffffff, r=Nilstrieb 2023-01-20 04:52:28 +00:00
wfcheck.rs Rollup merge of #109198 - compiler-errors:new-rpitit-default-body, r=spastorino 2023-03-17 08:42:40 +01:00