Convert std::int to istrs. Issue #855

This commit is contained in:
Brian Anderson
2011-08-23 21:17:20 -07:00
parent ee2a11eb4f
commit 53be480d20
20 changed files with 92 additions and 51 deletions

View File

@@ -1,5 +1,6 @@
import std::vec;
import std::str;
import std::istr;
import std::str::rustrt::sbuf;
import llvm::ModuleRef;
@@ -976,7 +977,8 @@ fn type_to_str_inner(names: type_names, outer0: &[TypeRef], ty: TypeRef) ->
7 {
ret "i" + std::int::str(llvm::LLVMGetIntTypeWidth(ty) as int);
ret "i" + istr::to_estr(std::int::str(
llvm::LLVMGetIntTypeWidth(ty) as int));
}
@@ -1020,7 +1022,7 @@ fn type_to_str_inner(names: type_names, outer0: &[TypeRef], ty: TypeRef) ->
i += 1u;
if tout as int == ty as int {
let n: uint = vec::len::<TypeRef>(outer0) - i;
ret "*\\" + std::int::str(n as int);
ret "*\\" + istr::to_estr(std::int::str(n as int));
}
}
ret "*" +