Remove redundant call to erase_and_anonymize_regions.

The exact same call appears earlier in this function.
This commit is contained in:
Nicholas Nethercote 2026-01-09 13:01:45 +11:00
parent 71d1b2ca7f
commit 02e0879c5d

View file

@ -222,8 +222,6 @@ fn resolve_associated_item<'tcx>(
return Err(guar);
}
let args = tcx.erase_and_anonymize_regions(args);
// We check that the impl item is compatible with the trait item
// because otherwise we may ICE in const eval due to type mismatches,
// signature incompatibilities, etc.