diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2013-08-11 13:29:14 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2013-08-11 13:59:45 -0400 |
| commit | 6fe59bf8776f8913aacfb00a2281c94a117b95d1 (patch) | |
| tree | c149a22cd433599e96bd44250533351826888525 /src/librustc/back | |
| parent | 3aefb9649d15c16acef4eb465b06b598b3a1f179 (diff) | |
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/librustc/back')
| -rw-r--r-- | src/librustc/back/abi.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc/back/abi.rs b/src/librustc/back/abi.rs index 05b6e90c682..dae0ceed22d 100644 --- a/src/librustc/back/abi.rs +++ b/src/librustc/back/abi.rs @@ -46,7 +46,8 @@ pub static tydesc_field_take_glue: uint = 2u; pub static tydesc_field_drop_glue: uint = 3u; pub static tydesc_field_free_glue: uint = 4u; pub static tydesc_field_visit_glue: uint = 5u; -pub static n_tydesc_fields: uint = 6u; +pub static tydesc_field_borrow_offset: uint = 6u; +pub static n_tydesc_fields: uint = 7u; // The two halves of a closure: code and environment. pub static fn_field_code: uint = 0u; |
