This commit is contained in:
Brendan Hansknecht 2023-04-07 07:57:30 -07:00
parent 2e2b687fac
commit a354860d07
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
2 changed files with 5 additions and 9 deletions

View file

@ -277,8 +277,8 @@ fn deep_copy_expr_help<C: CopyEnv>(env: &mut C, copied: &mut Vec<Variable>, expr
Float(v1, v2, str, val, bound) => Float(sub!(*v1), sub!(*v2), str.clone(), *val, *bound), Float(v1, v2, str, val, bound) => Float(sub!(*v1), sub!(*v2), str.clone(), *val, *bound),
Str(str) => Str(str.clone()), Str(str) => Str(str.clone()),
SingleQuote(v1, v2, char, bound) => SingleQuote(sub!(*v1), sub!(*v2), *char, *bound), SingleQuote(v1, v2, char, bound) => SingleQuote(sub!(*v1), sub!(*v2), *char, *bound),
IngestedFile(file_path, bytes, anno) => { IngestedFile(file_path, bytes, var) => {
IngestedFile(file_path.clone(), bytes.clone(), anno.clone()) IngestedFile(file_path.clone(), bytes.clone(), sub!(*var))
} }
List { List {
elem_var, elem_var,

View file

@ -31,13 +31,9 @@ use roc_problem::can::{RuntimeError, ShadowKind};
use roc_region::all::{Loc, Region}; use roc_region::all::{Loc, Region};
use roc_std::RocDec; use roc_std::RocDec;
use roc_target::TargetInfo; use roc_target::TargetInfo;
use roc_types::types::AliasCommon; use roc_types::subs::{
use roc_types::{ instantiate_rigids, storage_copy_var_to, Content, ExhaustiveMark, FlatType, RedundantMark,
subs::{ StorageSubs, Subs, Variable, VariableSubsSlice,
instantiate_rigids, storage_copy_var_to, Content, ExhaustiveMark, FlatType, RedundantMark,
StorageSubs, Subs, Variable, VariableSubsSlice,
},
types::Type,
}; };
use std::collections::HashMap; use std::collections::HashMap;
use ven_pretty::{BoxAllocator, DocAllocator, DocBuilder}; use ven_pretty::{BoxAllocator, DocAllocator, DocBuilder};