about summary refs log tree commit diff
path: root/tvix/eval/benches/eval.rs
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2022-09-02T18·51-0400
committergrfn <grfn@gws.fyi>2022-09-02T19·10+0000
commit29f8f06319ea59ed39d4e0ef566ec79b3a1387cd (patch)
treeaa779aa3414a79fd98651cb3c4afbb44d2f1efde /tvix/eval/benches/eval.rs
parentb29ab1776b09ac2aad06ebe78bee58852b3bc8b4 (diff)
fix(tvix/eval): Fix build of benchmarks r/4603
Interpret was updated to take an optional path arg in
6fe5e2d75 (feat(tvix/eval): resolve relative path literals, 2022-08-12),
but since benchmarks aren't building in CI the resulting breakage of
benchmarks was missed.

Change-Id: I8a93f1b25ae62e2d032fafc153d91977c6466712
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6284
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/benches/eval.rs')
-rw-r--r--tvix/eval/benches/eval.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/benches/eval.rs b/tvix/eval/benches/eval.rs
index a97adf02db50..a05c04f03e29 100644
--- a/tvix/eval/benches/eval.rs
+++ b/tvix/eval/benches/eval.rs
@@ -2,7 +2,7 @@ use criterion::{black_box, criterion_group, criterion_main, Criterion};
 use tvix_eval::interpret;
 
 fn eval_literals(c: &mut Criterion) {
-    c.bench_function("int", |b| b.iter(|| black_box(interpret("42"))));
+    c.bench_function("int", |b| b.iter(|| black_box(interpret("42", None))));
 }
 
 criterion_group!(benches, eval_literals);