From 6fe59bf8776f8913aacfb00a2281c94a117b95d1 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Sun, 11 Aug 2013 13:29:14 -0400 Subject: 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. --- src/rt/rust_util.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rt/rust_util.cpp') 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 }; // -- cgit 1.4.1-3-g733a5