1
Fork 0

remove obsolete givens from regionck

This commit is contained in:
Ali MJ Al-Nasrawy 2023-01-27 17:22:05 +03:00
parent 8859fde21f
commit b197f1ac2e
12 changed files with 26 additions and 144 deletions

View file

@ -867,10 +867,6 @@ impl<'tcx> InferCtxt<'tcx> {
self.inner.borrow().undo_log.opaque_types_in_snapshot(&snapshot.undo_snapshot)
}
pub fn add_given(&self, sub: ty::Region<'tcx>, sup: ty::RegionVid) {
self.inner.borrow_mut().unwrap_region_constraints().add_given(sub, sup);
}
pub fn can_sub<T>(&self, param_env: ty::ParamEnv<'tcx>, a: T, b: T) -> bool
where
T: at::ToTrace<'tcx>,