Port the compiler to foo<T> decl syntax.
This commit is contained in:
parent
4c9049c50c
commit
4abc471390
20 changed files with 77 additions and 77 deletions
|
|
@ -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)};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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()};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue