From ad747886704b256fe72aa97a35d36fb91401b610 Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Wed, 26 Feb 2025 17:31:41 +0000 Subject: Use bound_coroutine_witnesses in old solver --- .../rustc_next_trait_solver/src/solve/assembly/structural_traits.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/rustc_next_trait_solver/src') diff --git a/compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs b/compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs index 7b0996e02f0..93804b14125 100644 --- a/compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs +++ b/compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs @@ -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())), } -- cgit 1.4.1-3-g733a5