diff options
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 001fcd6198b..4975bbf0354 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -134,6 +134,14 @@ unsupervise() { } extern "C" CDECL void +vec_reserve_shared_actual(type_desc* ty, rust_vec_box** vp, + size_t n_elts) { + rust_task *task = rust_get_current_task(); + reserve_vec_exact_shared(task, vp, n_elts * ty->size); +} + +// This is completely misnamed. +extern "C" CDECL void vec_reserve_shared(type_desc* ty, rust_vec_box** vp, size_t n_elts) { rust_task *task = rust_get_current_task(); |
