From 4abc471390d897e97e07eafcb723a8dcb59c520f Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Fri, 12 Aug 2011 06:36:51 -0700 Subject: Port the compiler to foo decl syntax. --- src/comp/syntax/ext/simplext.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comp/syntax/ext') diff --git a/src/comp/syntax/ext/simplext.rs b/src/comp/syntax/ext/simplext.rs index aae2404f57b..462f9d7ce0c 100644 --- a/src/comp/syntax/ext/simplext.rs +++ b/src/comp/syntax/ext/simplext.rs @@ -43,7 +43,7 @@ fn path_to_ident(pth: &path) -> option::t { type clause = {params: binders, body: @expr}; /* logically, an arb_depth should contain only one kind of matchable */ -tag arb_depth[T] { leaf(T); seq(@[arb_depth], span); } +tag arb_depth { leaf(T); seq(@[arb_depth], span); } tag matchable { @@ -121,7 +121,7 @@ fn elts_to_ell(cx: &ext_ctxt, elts: &[@expr]) } } -fn option_flatten_map[T, U](f: &fn(&T) -> option::t, v: &[T]) -> +fn option_flatten_map(f: &fn(&T) -> option::t, v: &[T]) -> option::t<[U]> { let res = ~[]; for elem: T in v { -- cgit 1.4.1-3-g733a5