Skip to content

Commit

Permalink
Add missing instantiation of generator ty in validator
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Aug 18, 2023
1 parent 907e431 commit eb4d6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_const_eval/src/transform/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit eb4d6d9

Please sign in to comment.