about summary refs log tree commit diff
path: root/tvix/eval/src/vm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/vm.rs')
-rw-r--r--tvix/eval/src/vm.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs
index a7b9bf3e9206..89702a090fff 100644
--- a/tvix/eval/src/vm.rs
+++ b/tvix/eval/src/vm.rs
@@ -30,8 +30,8 @@ pub struct VM<'o> {
     frames: Vec<CallFrame>,
     stack: Vec<Value>,
 
-    // Stack indices of attribute sets from which variables should be
-    // dynamically resolved (`with`).
+    /// Stack indices of attribute sets from which variables should be
+    /// dynamically resolved (`with`).
     with_stack: Vec<usize>,
 
     observer: &'o mut dyn Observer,
@@ -560,12 +560,12 @@ impl<'o> VM<'o> {
         }
     }
 
-    // Construct runtime representation of an attr path (essentially
-    // just a list of strings).
-    //
-    // The difference to the list construction operation is that this
-    // forces all elements into strings, as attribute set keys are
-    // required to be strict in Nix.
+    /// Construct runtime representation of an attr path (essentially
+    /// just a list of strings).
+    ///
+    /// The difference to the list construction operation is that this
+    /// forces all elements into strings, as attribute set keys are
+    /// required to be strict in Nix.
     fn run_attr_path(&mut self, count: usize) -> EvalResult<()> {
         debug_assert!(count > 1, "AttrPath needs at least two fragments");
         let mut path = Vec::with_capacity(count);
@@ -588,9 +588,9 @@ impl<'o> VM<'o> {
         Ok(())
     }
 
-    // Interpolate string fragments by popping the specified number of
-    // fragments of the stack, evaluating them to strings, and pushing
-    // the concatenated result string back on the stack.
+    /// Interpolate string fragments by popping the specified number of
+    /// fragments of the stack, evaluating them to strings, and pushing
+    /// the concatenated result string back on the stack.
     fn run_interpolate(&mut self, count: usize) -> EvalResult<()> {
         let mut out = String::new();