Auto merge of #132377 - matthiaskrgr:rollup-3p1c6hs, r=matthiaskrgr
Rollup of 3 pull requests Successful merges: - #132368 (Remove `do_not_const_check` from `Iterator` methods) - #132373 (Make sure `type_param_predicates` resolves correctly for RPITIT) - #132374 (Remove dead code stemming from the old effects desugaring) r? `@ghost` `@rustbot` modify labels: rollup
This commit is contained in:
commit
75eff9a574
15 changed files with 27 additions and 116 deletions
|
@ -5222,12 +5222,6 @@ fn point_at_assoc_type_restriction<G: EmissionGuarantee>(
|
|||
let ty::ClauseKind::Projection(proj) = clause else {
|
||||
return;
|
||||
};
|
||||
// avoid ICEing since effects desugared associated types don't have names.
|
||||
// this path should only be hit for `~const` on invalid places, so they
|
||||
// will have an informative error already.
|
||||
if tcx.is_effects_desugared_assoc_ty(proj.projection_term.def_id) {
|
||||
return;
|
||||
}
|
||||
let name = tcx.item_name(proj.projection_term.def_id);
|
||||
let mut predicates = generics.predicates.iter().peekable();
|
||||
let mut prev: Option<&hir::WhereBoundPredicate<'_>> = None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue