Auto merge of #107376 - aliemjay:remove-givens, r=lcnr

remove obsolete `givens` from regionck

Fixes #106567

r? `@lcnr` (feel free to reassign)
This commit is contained in:
bors
2023-03-15 02:50:58 +00:00
14 changed files with 87 additions and 152 deletions

View File

@@ -855,10 +855,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>,