mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
merge upstream/main
This commit is contained in:
commit
cec67721e6
59 changed files with 2542 additions and 990 deletions
|
@ -8,10 +8,7 @@ use {
|
|||
layout::{CapturesNiche, Layout, LayoutCache},
|
||||
},
|
||||
roc_parse::ast::Expr,
|
||||
roc_repl_eval::{
|
||||
eval::{jit_to_ast, ToAstProblem},
|
||||
ReplAppMemory,
|
||||
},
|
||||
roc_repl_eval::{eval::jit_to_ast, ReplAppMemory},
|
||||
roc_target::TargetInfo,
|
||||
roc_types::subs::{Subs, Variable},
|
||||
std::sync::Arc,
|
||||
|
@ -36,7 +33,7 @@ pub fn get_values<'a>(
|
|||
start: *const u8,
|
||||
start_offset: usize,
|
||||
variables: &[Variable],
|
||||
) -> Result<(usize, Vec<Expr<'a>>), ToAstProblem> {
|
||||
) -> (usize, Vec<Expr<'a>>) {
|
||||
let mut result = Vec::with_capacity(variables.len());
|
||||
|
||||
let memory = ExpectMemory { start };
|
||||
|
@ -75,13 +72,13 @@ pub fn get_values<'a>(
|
|||
interns,
|
||||
layout_interner.fork(),
|
||||
target_info,
|
||||
)?
|
||||
)
|
||||
};
|
||||
|
||||
result.push(expr);
|
||||
}
|
||||
|
||||
Ok((app.offset, result))
|
||||
(app.offset, result)
|
||||
}
|
||||
|
||||
#[cfg(not(windows))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue