1
Fork 0

Fix some TODOs

This commit is contained in:
Michael Goulet 2024-06-12 18:35:51 -04:00
parent e82db89b4d
commit a2fb2ebc17
7 changed files with 44 additions and 10 deletions

View file

@ -368,6 +368,14 @@ impl<'tcx> ty::InferCtxtLike for InferCtxt<'tcx> {
}
}
fn root_ty_var(&self, var: TyVid) -> TyVid {
self.root_var(var)
}
fn root_const_var(&self, var: ConstVid) -> ConstVid {
self.root_const_var(var)
}
fn opportunistic_resolve_ty_var(&self, vid: TyVid) -> Ty<'tcx> {
match self.probe_ty_var(vid) {
Ok(ty) => ty,