mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Move derive Env to a util module
This commit is contained in:
parent
e2179348c6
commit
44984d289c
3 changed files with 173 additions and 163 deletions
|
@ -14,9 +14,12 @@ use roc_region::all::Loc;
|
|||
use roc_types::subs::{
|
||||
copy_import_to, Content, Descriptor, Mark, OptVariable, Rank, Subs, Variable,
|
||||
};
|
||||
use util::Env;
|
||||
|
||||
mod encoding;
|
||||
|
||||
mod util;
|
||||
|
||||
pub(crate) const DERIVED_SYNTH: ModuleId = ModuleId::DERIVED_SYNTH;
|
||||
|
||||
pub fn synth_var(subs: &mut Subs, content: Content) -> Variable {
|
||||
|
@ -62,7 +65,7 @@ fn build_derived_body(
|
|||
specialization_lambda_sets,
|
||||
} = match derive_key {
|
||||
DeriveKey::ToEncoder(to_encoder_key) => {
|
||||
let mut env = encoding::Env {
|
||||
let mut env = Env {
|
||||
subs: derived_subs,
|
||||
exposed_types: exposed_by_module,
|
||||
derived_ident_ids,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue