Add missing instantiation of generator ty in validator
This commit is contained in:
parent
907e431f93
commit
eb4d6d9ff7
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue