Canonicalize effect vars in new solver
This commit is contained in:
parent
ae9465fee3
commit
280f058560
4 changed files with 47 additions and 2 deletions
|
@ -1335,6 +1335,10 @@ impl<'tcx> InferCtxt<'tcx> {
|
|||
self.inner.borrow_mut().const_unification_table().find(var)
|
||||
}
|
||||
|
||||
pub fn root_effect_var(&self, var: ty::EffectVid<'tcx>) -> ty::EffectVid<'tcx> {
|
||||
self.inner.borrow_mut().effect_unification_table().find(var)
|
||||
}
|
||||
|
||||
/// Resolves an int var to a rigid int type, if it was constrained to one,
|
||||
/// or else the root int var in the unification table.
|
||||
pub fn opportunistic_resolve_int_var(&self, vid: ty::IntVid) -> Ty<'tcx> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue