chore: new branch with some things from the bumpalo branch

This commit is contained in:
rvcas
2023-04-11 16:02:11 -04:00
committed by Lucas
parent fc1b8738df
commit 70f12d3fc5
13 changed files with 1840 additions and 1420 deletions

View File

@@ -279,11 +279,11 @@ impl Diagnostic for Error {
None => None,
Some(hint) => {
let budget = ExBudget { mem: i64::MAX, cpu: i64::MAX, };
let left = pretty::boxed("left", &match hint.left.eval(budget).result() {
let left = pretty::boxed("left", &match hint.left.clone().eval(budget).result() {
Ok(term) => format!("{term}"),
Err(err) => format!("{err}"),
});
let right = pretty::boxed("right", &match hint.right.eval(budget).result() {
let right = pretty::boxed("right", &match hint.right.clone().eval(budget).result() {
Ok(term) => format!("{term}"),
Err(err) => format!("{err}"),
});

View File

@@ -732,7 +732,7 @@ where
scripts
.into_par_iter()
.map(|script| {
let mut eval_result = script.program.eval(initial_budget);
let mut eval_result = script.program.clone().eval(initial_budget);
EvalInfo {
success: !eval_result.failed(),