Move expr copying to can

This commit is contained in:
Ayaz Hafiz 2022-07-12 12:29:17 -04:00
parent 63adb901b4
commit 987ebfa9d3
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 7 additions and 5 deletions

View file

@ -1,4 +1,4 @@
use roc_can::{
use crate::{
def::Def,
expr::{AccessorData, ClosureData, Expr, Field, OpaqueWrapFunctionData, WhenBranch},
};
@ -887,10 +887,12 @@ fn deep_copy_type_vars<C: CopyEnv>(
#[cfg(test)]
mod test {
use crate::copy::{deep_copy_type_vars_into_expr, AcrossSubs};
use crate::{
copy::{deep_copy_type_vars_into_expr, AcrossSubs},
expr::Expr,
};
use super::{deep_copy_expr_across_subs, deep_copy_type_vars};
use roc_can::expr::Expr;
use roc_error_macros::internal_error;
use roc_module::{ident::TagName, symbol::Symbol};
use roc_region::all::Loc;

View file

@ -5,6 +5,7 @@ pub mod abilities;
pub mod annotation;
pub mod builtins;
pub mod constraint;
pub mod copy;
pub mod def;
pub mod effect_module;
pub mod env;

View file

@ -2393,7 +2393,7 @@ fn from_can_let<'a>(
for (_specialization_mark, (var, specialized_symbol)) in
needed_specializations
{
use crate::copy::deep_copy_type_vars_into_expr;
use roc_can::copy::deep_copy_type_vars_into_expr;
let (new_def_expr_var, specialized_expr) = deep_copy_type_vars_into_expr(
env.subs,

View file

@ -4,7 +4,6 @@
pub mod borrow;
pub mod code_gen_help;
mod copy;
pub mod inc_dec;
pub mod ir;
pub mod layout;