Port the compiler to foo<T> decl syntax.

This commit is contained in:
Erick Tryzelaar 2011-08-12 06:36:51 -07:00 committed by Graydon Hoare
parent 4c9049c50c
commit 4abc471390
20 changed files with 77 additions and 77 deletions

View file

@ -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)};
}

View file

@ -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()};
}