Push wrapped layout interners through

This commit is contained in:
Ayaz Hafiz 2023-01-03 10:51:33 -06:00
parent 947158b17e
commit b60d5c0251
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
7 changed files with 86 additions and 40 deletions

View file

@ -1,17 +1,15 @@
//! Supports evaluating `expect` and printing contextual information when they fail.
#[cfg(not(windows))]
use {
roc_intern::GlobalInterner,
roc_module::symbol::Interns,
roc_mono::{
ir::ProcLayout,
layout::{Layout, LayoutCache, Niche},
layout::{GlobalLayoutInterner, LayoutCache, Niche},
},
roc_parse::ast::Expr,
roc_repl_eval::{eval::jit_to_ast, ReplAppMemory},
roc_target::TargetInfo,
roc_types::subs::{Subs, Variable},
std::sync::Arc,
};
#[cfg(not(windows))]
@ -29,7 +27,7 @@ pub fn get_values<'a>(
arena: &'a bumpalo::Bump,
subs: &Subs,
interns: &'a Interns,
layout_interner: &Arc<GlobalInterner<'a, Layout<'a>>>,
layout_interner: &GlobalLayoutInterner<'a>,
start: *const u8,
start_offset: usize,
number_of_lookups: usize,