From dfcfef41df58108ee75067afaa63bbbcf43e38f8 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 28 Jun 2011 16:52:29 -0700 Subject: rustc: Rename take glue to copy glue --- src/rt/rust_upcall.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/rt/rust_upcall.cpp') diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index f6257470b29..7b1ddc4c3a4 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -453,13 +453,14 @@ copy_elements(rust_task *task, type_desc *elem_t, { char *dst = (char *)pdst, *src = (char *)psrc; + // FIXME: Copy glue doesn't work this way. // increment the refcount of each element of the vector - if (elem_t->take_glue) { - glue_fn *take_glue = elem_t->take_glue; + if (elem_t->copy_glue) { + glue_fn *copy_glue = elem_t->copy_glue; size_t elem_size = elem_t->size; const type_desc **tydescs = elem_t->first_param; for (char *p = src; p < src+n; p += elem_size) { - take_glue(NULL, task, NULL, tydescs, p); + copy_glue(NULL, task, NULL, tydescs, p); } } memmove(dst, src, n); -- cgit 1.4.1-3-g733a5