about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/transform
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2023-08-18 16:19:26 +0100
committerGary Guo <gary@garyguo.net>2023-08-18 16:40:10 +0100
commiteb4d6d9ff72d09eee908340d8d8726b5644ae86e (patch)
tree86015b9304cb2d052bf73d80f871f87b6a2383e1 /compiler/rustc_const_eval/src/transform
parent907e431f9318eb83dd5aaab6dee67a88a97df787 (diff)
downloadrust-eb4d6d9ff72d09eee908340d8d8726b5644ae86e.tar.gz
rust-eb4d6d9ff72d09eee908340d8d8726b5644ae86e.zip
Add missing instantiation of generator ty in validator
Diffstat (limited to 'compiler/rustc_const_eval/src/transform')
-rw-r--r--compiler/rustc_const_eval/src/transform/validate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/validate.rs b/compiler/rustc_const_eval/src/transform/validate.rs
index 50ae30711a6..783b52d0040 100644
--- a/compiler/rustc_const_eval/src/transform/validate.rs
+++ b/compiler/rustc_const_eval/src/transform/validate.rs
@@ -699,7 +699,7 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
                                 return;
                             };
 
-                            f_ty.ty
+                            ty::EarlyBinder::bind(f_ty.ty).instantiate(self.tcx, args)
                         } else {
                             let Some(&f_ty) = args.as_generator().prefix_tys().get(f.index())
                             else {