diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-09-19 16:55:01 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-09-19 17:03:01 -0700 |
| commit | cfed923600e2f7ad34241501200d595abccdeb54 (patch) | |
| tree | d382eb144026703d9abee0e6a99b87b34e9bd138 /src/rustc/lib | |
| parent | 1c39f1968c77a3d42b0fdb30a36cff4d94a17da2 (diff) | |
demode the each() method on vec and other iterables.
Diffstat (limited to 'src/rustc/lib')
| -rw-r--r-- | src/rustc/lib/llvm.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rustc/lib/llvm.rs b/src/rustc/lib/llvm.rs index 4ec6f36a8eb..b6ee29b8a1b 100644 --- a/src/rustc/lib/llvm.rs +++ b/src/rustc/lib/llvm.rs @@ -1080,7 +1080,7 @@ fn type_to_str_inner(names: type_names, outer0: ~[TypeRef], ty: TypeRef) -> let mut first: bool = true; for tys.each |t| { if first { first = false; } else { s += ~", "; } - s += type_to_str_inner(names, outer, t); + s += type_to_str_inner(names, outer, *t); } return s; } @@ -1130,7 +1130,7 @@ fn type_to_str_inner(names: type_names, outer0: ~[TypeRef], ty: TypeRef) -> let mut i: uint = 0u; for outer0.each |tout| { i += 1u; - if tout as int == ty as int { + if *tout as int == ty as int { let n: uint = vec::len::<TypeRef>(outer0) - i; return ~"*\\" + int::str(n as int); } |
