mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Break up SolveEnv
This commit is contained in:
parent
15eef74a83
commit
33b1b8236a
13 changed files with 127 additions and 91 deletions
|
@ -10,10 +10,15 @@ use roc_types::{
|
|||
types::{RecordField, Uls},
|
||||
};
|
||||
|
||||
use crate::env::Env;
|
||||
use crate::env::SolveEnv;
|
||||
|
||||
// TODO: eventually, we could possibly use the arena in Env instead.
|
||||
pub(crate) fn deep_copy_var_in(env: &mut Env, rank: Rank, var: Variable, arena: &Bump) -> Variable {
|
||||
pub(crate) fn deep_copy_var_in(
|
||||
env: &mut SolveEnv,
|
||||
rank: Rank,
|
||||
var: Variable,
|
||||
arena: &Bump,
|
||||
) -> Variable {
|
||||
let mut visited = bumpalo::collections::Vec::with_capacity_in(256, arena);
|
||||
|
||||
let pool = env.pools.get_mut(rank);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue