1
Fork 0

Port the compiler to the typaram foo<T> syntax.

This commit is contained in:
Erick Tryzelaar 2011-08-12 07:15:18 -07:00 committed by Graydon Hoare
parent f764f9a8cf
commit e4a0f997fb
51 changed files with 568 additions and 568 deletions

View file

@ -1420,8 +1420,8 @@ fn new_builder(llbb: BasicBlockRef) -> builder {
/* Memory-managed object interface to type handles. */
obj type_names(type_names: std::map::hashmap[TypeRef, str],
named_types: std::map::hashmap[str, TypeRef]) {
obj type_names(type_names: std::map::hashmap<TypeRef, str>,
named_types: std::map::hashmap<str, TypeRef>) {
fn associate(s: str, t: TypeRef) {
assert (!named_types.contains_key(s));
@ -1446,8 +1446,8 @@ fn mk_type_names() -> type_names {
fn eq(a: &TypeRef, b: &TypeRef) -> bool { ret a as uint == b as uint; }
let hasher: std::map::hashfn[TypeRef] = hash;
let eqer: std::map::eqfn[TypeRef] = eq;
let hasher: std::map::hashfn<TypeRef> = hash;
let eqer: std::map::eqfn<TypeRef> = eq;
let tn = std::map::mk_hashmap[TypeRef, str](hasher, eqer);
ret type_names(tn, nt);