Track bound vars

This commit is contained in:
Jack Huey
2020-10-05 20:41:46 -04:00
parent 62a49c3bb8
commit 30187c81f6
33 changed files with 478 additions and 362 deletions

View File

@@ -510,7 +510,7 @@ impl<'tcx> TyCtxt<'tcx> {
ty::ClosureKind::FnMut => self.mk_mut_ref(self.mk_region(env_region), closure_ty),
ty::ClosureKind::FnOnce => closure_ty,
};
Some(ty::Binder::bind(env_ty))
Some(ty::Binder::bind(env_ty, self))
}
/// Returns `true` if the node pointed to by `def_id` is a `static` item.