mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Use UEnv where possible
This commit is contained in:
parent
ad20a2ee41
commit
adf961ba0b
4 changed files with 23 additions and 17 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue