about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-03-03T23·49+0300
committertazjin <tazjin@tvl.su>2023-03-13T20·30+0000
commitc7007767336b5c7cc29b1fd10cd62132c99941e6 (patch)
tree65e8506c6d331ea70e7bb2986d12f5e3b3add813
parent939cebd0f17b8e8ec6a4664f9f7e0a5e1c6e3957 (diff)
refactor(tvix/eval): VM struct no longer needs to be public r/5980
Change-Id: I93b485ddd280cc15fcbaecf4aed5fcd22e28a8a8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8212
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
-rw-r--r--tvix/eval/src/lib.rs2
-rw-r--r--tvix/eval/src/vm/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tvix/eval/src/lib.rs b/tvix/eval/src/lib.rs
index adf38b4bc4..c6bef65c72 100644
--- a/tvix/eval/src/lib.rs
+++ b/tvix/eval/src/lib.rs
@@ -52,7 +52,7 @@ pub use crate::errors::{AddContext, Error, ErrorKind, EvalResult};
 pub use crate::io::{DummyIO, EvalIO, FileType};
 pub use crate::pretty_ast::pretty_print_expr;
 pub use crate::source::SourceCode;
-pub use crate::vm::{generators, VM};
+pub use crate::vm::generators;
 pub use crate::warnings::{EvalWarning, WarningKind};
 pub use builtin_macros;
 
diff --git a/tvix/eval/src/vm/mod.rs b/tvix/eval/src/vm/mod.rs
index 78dc566ae7..c3894472fd 100644
--- a/tvix/eval/src/vm/mod.rs
+++ b/tvix/eval/src/vm/mod.rs
@@ -146,7 +146,7 @@ impl Frame {
     }
 }
 
-pub struct VM<'o> {
+struct VM<'o> {
     /// VM's frame stack, representing the execution contexts the VM is working
     /// through. Elements are usually pushed when functions are called, or
     /// thunks are being forced.