about summary refs log tree commit diff
path: root/src/rt/rust_task.h
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2013-05-01 10:29:47 -0400
committerNiko Matsakis <niko@alum.mit.edu>2013-05-01 10:30:54 -0400
commit4af2d90af59bb5e28e5d114d8a6004d68fad3bd5 (patch)
treec5be284688af69a2843258f71511686827bc21d1 /src/rt/rust_task.h
parent84861101eca12942b42f36f8adb18cfc74515431 (diff)
downloadrust-4af2d90af59bb5e28e5d114d8a6004d68fad3bd5.tar.gz
rust-4af2d90af59bb5e28e5d114d8a6004d68fad3bd5.zip
add an option to debug borrows (RUST_DEBUG_BORROW) so you can
find out where the offending borrow occurred. This ... still needs
some work.
Diffstat (limited to 'src/rt/rust_task.h')
-rw-r--r--src/rt/rust_task.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h
index 4aa1199cabc..dc45c0439ea 100644
--- a/src/rt/rust_task.h
+++ b/src/rt/rust_task.h
@@ -241,6 +241,11 @@ rust_task : public kernel_owned<rust_task>
     void *task_local_data;
     void (*task_local_data_cleanup)(void *data);
 
+    // Contains a ~[BorrowRecord] pointer, or NULL.
+    //
+    // Used by borrow management code in libcore/unstable/lang.rs.
+    void *borrow_list;
+
 private:
 
     // Protects state, cond, cond_name