1
Fork 0

Use bound_coroutine_witnesses in old solver

This commit is contained in:
Michael Goulet 2025-02-26 17:31:41 +00:00
parent 8282181e42
commit ad74788670
5 changed files with 27 additions and 81 deletions

View file

@ -74,7 +74,7 @@ where
ty::CoroutineWitness(def_id, args) => Ok(ecx
.cx()
.bound_coroutine_hidden_types(def_id)
.coroutine_hidden_types(def_id)
.instantiate(cx, args)
.map_bound(|tys| tys.to_vec())),
@ -240,7 +240,7 @@ where
// impl Copy/Clone for CoroutineWitness where T: Copy/Clone forall T in coroutine_hidden_types
ty::CoroutineWitness(def_id, args) => Ok(ecx
.cx()
.bound_coroutine_hidden_types(def_id)
.coroutine_hidden_types(def_id)
.instantiate(ecx.cx(), args)
.map_bound(|tys| tys.to_vec())),
}