Skip to content

Commit eb4d6d9

Browse files
committed
Add missing instantiation of generator ty in validator
1 parent 907e431 commit eb4d6d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_const_eval/src/transform/validate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
699699
return;
700700
};
701701

702-
f_ty.ty
702+
ty::EarlyBinder::bind(f_ty.ty).instantiate(self.tcx, args)
703703
} else {
704704
let Some(&f_ty) = args.as_generator().prefix_tys().get(f.index())
705705
else {

0 commit comments

Comments
 (0)