Use UEnv where possible

This commit is contained in:
Ayaz Hafiz 2023-06-22 14:12:05 -05:00
parent ad20a2ee41
commit adf961ba0b
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 23 additions and 17 deletions

View file

@ -2,6 +2,7 @@ use bumpalo::Bump;
use roc_can::{constraint::Constraints, module::ExposedByModule};
use roc_derive::SharedDerivedModule;
use roc_types::subs::{Content, Descriptor, Mark, OptVariable, Rank, Subs, Variable};
use roc_unify::unify::Env as UEnv;
use crate::Pools;
@ -72,4 +73,9 @@ impl<'a> Env<'a> {
var
}
/// Retrieves an environment for unification.
pub fn uenv<'r>(&'r mut self) -> UEnv<'r> {
UEnv::new(self.subs)
}
}