diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-23 20:25:23 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-27 15:53:08 -0700 |
| commit | ee2a11eb4f986e87df5c16850b70d612dd5e9ce9 (patch) | |
| tree | fbb45fe1a3ccbde30eb5d5e4d5c1ddafc68fc837 /src/comp/metadata | |
| parent | 69e6abf9ceffc3919363e80b246f8b7224e7f3d4 (diff) | |
| download | rust-ee2a11eb4f986e87df5c16850b70d612dd5e9ce9.tar.gz rust-ee2a11eb4f986e87df5c16850b70d612dd5e9ce9.zip | |
Convert std::uint to istrs. Issue #855
Diffstat (limited to 'src/comp/metadata')
| -rw-r--r-- | src/comp/metadata/tyencode.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/comp/metadata/tyencode.rs b/src/comp/metadata/tyencode.rs index 7b0915ba7b7..0a15b9e7346 100644 --- a/src/comp/metadata/tyencode.rs +++ b/src/comp/metadata/tyencode.rs @@ -1,5 +1,6 @@ // Type encoding +import std::istr; import std::io; import std::map::hashmap; import std::option::some; @@ -70,9 +71,9 @@ fn enc_ty(w: &io::writer, cx: &@ctxt, t: ty::t) { // I.e. it's actually an abbreviation. let s = - "#" + uint::to_str(pos, 16u) + ":" + - uint::to_str(len, 16u) + "#"; - let a = {pos: pos, len: len, s: s}; + ~"#" + uint::to_str(pos, 16u) + ~":" + + uint::to_str(len, 16u) + ~"#"; + let a = {pos: pos, len: len, s: istr::to_estr(s)}; abbrevs.insert(t, a); } ret; @@ -183,7 +184,7 @@ fn enc_sty(w: &io::writer, cx: &@ctxt, st: &ty::sty) { kind_shared. { w.write_str("ps"); } kind_pinned. { w.write_str("pp"); } } - w.write_str(uint::str(id)); + w.write_str(istr::to_estr(uint::str(id))); } ty::ty_type. { w.write_char('Y'); } ty::ty_constr(ty, cs) { |
