From f9fbd86f52cf597b85359ade1ca60b8d6ebf7286 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Thu, 6 Oct 2011 12:26:12 +0200 Subject: Parse and typecheck by-value and by-ref arg specs Add sprinkle && throughout the compiler to make it typecheck again. Issue #1008 --- src/comp/lib/llvm.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comp/lib') diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index 83f5f4d8ef6..c47f75135d7 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -909,9 +909,9 @@ obj type_names(type_names: std::map::hashmap, fn mk_type_names() -> type_names { let nt = std::map::new_str_hash::(); - fn hash(t: TypeRef) -> uint { ret t as uint; } + fn hash(&&t: TypeRef) -> uint { ret t as uint; } - fn eq(a: TypeRef, b: TypeRef) -> bool { ret a as uint == b as uint; } + fn eq(&&a: TypeRef, &&b: TypeRef) -> bool { ret a as uint == b as uint; } let hasher: std::map::hashfn = hash; let eqer: std::map::eqfn = eq; -- cgit 1.4.1-3-g733a5