about summary refs log tree commit diff
path: root/src/rt/rust_util.cpp
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2013-08-11 13:29:14 -0400
committerNiko Matsakis <niko@alum.mit.edu>2013-08-11 13:59:45 -0400
commit6fe59bf8776f8913aacfb00a2281c94a117b95d1 (patch)
treec149a22cd433599e96bd44250533351826888525 /src/rt/rust_util.cpp
parent3aefb9649d15c16acef4eb465b06b598b3a1f179 (diff)
downloadrust-6fe59bf8776f8913aacfb00a2281c94a117b95d1.tar.gz
rust-6fe59bf8776f8913aacfb00a2281c94a117b95d1.zip
Add a field `borrow_offset` to the type descriptor indicating
what amount a T* pointer must be adjusted to reach the contents
of the box. For `~T` types, this requires knowing the type `T`,
which is not known in the case of objects.
Diffstat (limited to 'src/rt/rust_util.cpp')
-rw-r--r--src/rt/rust_util.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rt/rust_util.cpp b/src/rt/rust_util.cpp
index 4a15830e529..28c69af427a 100644
--- a/src/rt/rust_util.cpp
+++ b/src/rt/rust_util.cpp
@@ -21,6 +21,7 @@ struct type_desc str_body_tydesc = {
     NULL, // drop_glue
     NULL, // free_glue
     NULL, // visit_glue
+    0, // borrow_offset
 };
 
 //