mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-17 02:20:16 +00:00
Use UEnv where possible
This commit is contained in:
parent
ad20a2ee41
commit
adf961ba0b
4 changed files with 23 additions and 17 deletions
|
@ -17,7 +17,7 @@ use roc_types::{
|
|||
Category, ExtImplicitOpenness, Polarity, TypeTag, Types,
|
||||
},
|
||||
};
|
||||
use roc_unify::unify::{unify, Env as UEnv, Mode, Unified};
|
||||
use roc_unify::unify::{unify, Mode, Unified};
|
||||
|
||||
use crate::{
|
||||
ability::{AbilityImplError, ObligationCache},
|
||||
|
@ -862,7 +862,7 @@ pub(crate) fn type_to_var_help(
|
|||
|
||||
let category = Category::OpaqueArg;
|
||||
match unify(
|
||||
&mut UEnv::new(env.subs),
|
||||
&mut env.uenv(),
|
||||
var,
|
||||
flex_ability,
|
||||
Mode::EQ,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue