aboutsummaryrefslogtreecommitdiff
path: root/src/lib/dbg.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-11-09 14:15:07 -0800
committerGraydon Hoare <[email protected]>2010-11-09 14:15:07 -0800
commit89946609f2de815ea87df3b001fff0caf9efa0d5 (patch)
tree0945861dddd480b822827d77205f90584d0c2586 /src/lib/dbg.rs
parentAdd a check for binding an alias. Good thing, as we had two instances in our ... (diff)
downloadrust-89946609f2de815ea87df3b001fff0caf9efa0d5.tar.xz
rust-89946609f2de815ea87df3b001fff0caf9efa0d5.zip
Support a special const-value refcount, use it for const strings.
Diffstat (limited to 'src/lib/dbg.rs')
-rw-r--r--src/lib/dbg.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/dbg.rs b/src/lib/dbg.rs
index 6c856cf7..51a31e07 100644
--- a/src/lib/dbg.rs
+++ b/src/lib/dbg.rs
@@ -7,6 +7,9 @@
import std._vec;
+// FIXME: handle 64-bit case.
+const uint const_refcount = 0x7bad_face_u;
+
native "rust" mod rustrt {
fn debug_tydesc[T]();
fn debug_opaque[T](&T x);