Stop using PolyTraitRef for closure/coroutine predicates already instantiated w placeholders

This commit is contained in:
Michael Goulet
2024-04-13 12:34:35 -04:00
parent 3a0db6c152
commit d2ec957680
5 changed files with 29 additions and 28 deletions

View File

@@ -1079,8 +1079,8 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
})
.map_err(|terr| {
SignatureMismatch(Box::new(SignatureMismatchData {
expected_trait_ref: ty::Binder::dummy(obligation_trait_ref),
found_trait_ref: ty::Binder::dummy(found_trait_ref),
expected_trait_ref: obligation_trait_ref,
found_trait_ref,
terr,
}))
})