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/front | |
| parent | 4c9049c50c5c32f556eaefbcc50209ef8ee353d0 (diff) | |
| download | rust-4abc471390d897e97e07eafcb723a8dcb59c520f.tar.gz rust-4abc471390d897e97e07eafcb723a8dcb59c520f.zip | |
Port the compiler to foo<T> decl syntax.
Diffstat (limited to 'src/comp/front')
| -rw-r--r-- | src/comp/front/attr.rs | 2 | ||||
| -rw-r--r-- | src/comp/front/test.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/front/attr.rs b/src/comp/front/attr.rs index 6474dfc1b77..6e6b0095400 100644 --- a/src/comp/front/attr.rs +++ b/src/comp/front/attr.rs @@ -189,7 +189,7 @@ fn require_unique_names(sess: &session::session, } } -fn span[T](item: &T) -> ast::spanned<T> { +fn span<T>(item: &T) -> ast::spanned<T> { ret {node: item, span: ast::mk_sp(0u, 0u)}; } diff --git a/src/comp/front/test.rs b/src/comp/front/test.rs index 0ad041e5edd..86944452662 100644 --- a/src/comp/front/test.rs +++ b/src/comp/front/test.rs @@ -167,7 +167,7 @@ fn mk_test_module(cx: &test_ctxt) -> @ast::item { ret @item; } -fn nospan[T](t: &T) -> ast::spanned<T> { +fn nospan<T>(t: &T) -> ast::spanned<T> { ret {node: t, span: ast::dummy_sp()}; } |
