Use bound_coroutine_witnesses in old solver
This commit is contained in:
parent
8282181e42
commit
ad74788670
5 changed files with 27 additions and 81 deletions
|
@ -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())),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue