mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Move expr copying to can
This commit is contained in:
parent
63adb901b4
commit
987ebfa9d3
4 changed files with 7 additions and 5 deletions
|
@ -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;
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
pub mod borrow;
|
||||
pub mod code_gen_help;
|
||||
mod copy;
|
||||
pub mod inc_dec;
|
||||
pub mod ir;
|
||||
pub mod layout;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue