1
Fork 0

Remove dead code stemming from the old effects desugaring

This commit is contained in:
León Orell Valerian Liehr 2024-10-30 23:52:10 +01:00
parent 759e07f063
commit a6bbdf0fd4
No known key found for this signature in database
GPG key ID: D17A07215F68E713
12 changed files with 4 additions and 40 deletions

View file

@ -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;