diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-02 16:50:51 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-03 15:36:57 +0100 |
| commit | e1dc40b2717c3469a52d3b8ae31b377dbd6e4d60 (patch) | |
| tree | c0d4a3941422fbbfcf80e4db53b87e854ac53b9e /src/comp/lib | |
| parent | 45b153adfeb8e9df626bb2d48d319b8320386a58 (diff) | |
| download | rust-e1dc40b2717c3469a52d3b8ae31b377dbd6e4d60.tar.gz rust-e1dc40b2717c3469a52d3b8ae31b377dbd6e4d60.zip | |
More work on translating dictionary-passing
Reached a point where simple uses of interfaces without bounds work. Issue #1227
Diffstat (limited to 'src/comp/lib')
| -rw-r--r-- | src/comp/lib/llvm.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index 25617066515..927e9879657 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -993,7 +993,8 @@ fn type_to_str_inner(names: type_names, outer0: [TypeRef], ty: TypeRef) -> } 10 { let el_ty = llvm::LLVMGetElementType(ty); - ret "[" + type_to_str_inner(names, outer, el_ty) + "]"; + ret "[" + type_to_str_inner(names, outer, el_ty) + " x " + + uint::str(llvm::LLVMGetArrayLength(ty)) + "]"; } 11 { let i: uint = 0u; |
