Fix replacing supertrait aliases in ReplaceProjectionWith

This commit is contained in:
Michael Goulet
2025-04-16 19:47:56 +00:00
parent c6aad02ddb
commit 3863018d96
10 changed files with 238 additions and 68 deletions

View File

@@ -944,7 +944,7 @@ where
target_projection: ty::Binder<I, ty::ExistentialProjection<I>>| {
source_projection.item_def_id() == target_projection.item_def_id()
&& ecx
.probe(|_| ProbeKind::UpcastProjectionCompatibility)
.probe(|_| ProbeKind::ProjectionCompatibility)
.enter(|ecx| -> Result<_, NoSolution> {
ecx.enter_forall(target_projection, |ecx, target_projection| {
let source_projection =