about summary refs log tree commit diff
path: root/src/rt/rust_builtin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_builtin.cpp')
-rw-r--r--src/rt/rust_builtin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp
index 4f512390210..eebb114f5fc 100644
--- a/src/rt/rust_builtin.cpp
+++ b/src/rt/rust_builtin.cpp
@@ -95,10 +95,10 @@ rust_env_pairs() {
         ++envc;
     }
     c = ch;
-    rust_vec *v = (rust_vec *)
-        task->kernel->malloc(vec_size<rust_vec*>(envc),
+    rust_vec_box *v = (rust_vec_box *)
+        task->kernel->malloc(vec_size<rust_vec_box*>(envc),
                        "str vec interior");
-    v->fill = v->alloc = sizeof(rust_vec*) * envc;
+    v->body.fill = v->body.alloc = sizeof(rust_vec*) * envc;
     for (size_t i = 0; i < envc; ++i) {
         size_t n = strlen(c);
         rust_str *str = make_str(task->kernel, c, n, "str");