Remove dead code stemming from the old effects desugaring
This commit is contained in:
parent
759e07f063
commit
a6bbdf0fd4
12 changed files with 4 additions and 40 deletions
|
@ -5226,12 +5226,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