diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2011-08-12 06:36:51 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-08-16 15:05:56 -0700 |
| commit | 4abc471390d897e97e07eafcb723a8dcb59c520f (patch) | |
| tree | ddd4e2cd31c18e1f786ed9b240b1dfe2cd947e46 /src/comp/syntax/ext | |
| parent | 4c9049c50c5c32f556eaefbcc50209ef8ee353d0 (diff) | |
| download | rust-4abc471390d897e97e07eafcb723a8dcb59c520f.tar.gz rust-4abc471390d897e97e07eafcb723a8dcb59c520f.zip | |
Port the compiler to foo<T> decl syntax.
Diffstat (limited to 'src/comp/syntax/ext')
| -rw-r--r-- | src/comp/syntax/ext/simplext.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<ident> { 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<T>], span); } +tag arb_depth<T> { leaf(T); seq(@[arb_depth<T>], 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<U>, v: &[T]) -> +fn option_flatten_map<T, U>(f: &fn(&T) -> option::t<U>, v: &[T]) -> option::t<[U]> { let res = ~[]; for elem: T in v { |
