fix(tvix/eval): fix b/281 by adding Value::Catchable
This commit makes catchable errors a variant of Value. The main downside of this approach is that we lose the ability to use Rust's `?` syntax for propagating catchable errors. Change-Id: Ibe89438d8a70dcec29e016df692b5bf88a5cad13 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9289 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: Adam Joseph <adam@westernsemico.com> Tested-by: BuildkiteCI
This commit is contained in:
parent
926459ce69
commit
05f42519b5
16 changed files with 320 additions and 247 deletions
|
|
@ -48,7 +48,7 @@ use crate::vm::run_lambda;
|
|||
|
||||
// Re-export the public interface used by other crates.
|
||||
pub use crate::compiler::{compile, prepare_globals, CompilationOutput};
|
||||
pub use crate::errors::{AddContext, Error, ErrorKind, EvalResult};
|
||||
pub use crate::errors::{AddContext, CatchableErrorKind, Error, ErrorKind, EvalResult};
|
||||
pub use crate::io::{DummyIO, EvalIO, FileType};
|
||||
pub use crate::pretty_ast::pretty_print_expr;
|
||||
pub use crate::source::SourceCode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue