From 2db1f864e23e38d26b6dfb1e0a00829122a6aefd Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 23 Sep 2010 17:16:34 -0700 Subject: Declare the global and upcall glues as ValueRefs in rustc's trans. --- src/comp/util/common.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/comp/util/common.rs') diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs index 9952c89b..7456a8c8 100644 --- a/src/comp/util/common.rs +++ b/src/comp/util/common.rs @@ -1,4 +1,5 @@ import std._uint; +import std._int; type pos = rec(uint line, uint col); type span = rec(str filename, pos lo, pos hi); @@ -41,6 +42,10 @@ fn new_str_hash[V]() -> std.map.hashmap[str,V] { ret std.map.mk_hashmap[str,V](hasher, eqer); } +fn istr(int i) -> str { + ret _int.to_str(i, 10u); +} + // // Local Variables: // mode: rust -- cgit v1.2.3