diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-05 15:35:37 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-05 15:50:02 +0100 |
| commit | 60ae1590af034755b5cb1e1e71f2240a710299a2 (patch) | |
| tree | 605d11f071a776c0ca33dcfea0a774379b0880bb /src/comp/front | |
| parent | 1f71a0f48d18d80ff3be6970d582c5a67f976329 (diff) | |
| download | rust-60ae1590af034755b5cb1e1e71f2240a710299a2.tar.gz rust-60ae1590af034755b5cb1e1e71f2240a710299a2.zip | |
Switch to new param kind bound syntax
And remove support for the old 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 09c7ec8f12b..5ae398e238c 100644 --- a/src/comp/front/attr.rs +++ b/src/comp/front/attr.rs @@ -221,7 +221,7 @@ fn native_abi(attrs: [ast::attribute]) -> either::t<str, ast::native_abi> { }; } -fn span<copy T>(item: T) -> ast::spanned<T> { +fn span<T: copy>(item: T) -> ast::spanned<T> { ret {node: item, span: ast_util::dummy_sp()}; } diff --git a/src/comp/front/test.rs b/src/comp/front/test.rs index f8aa8bdac53..1a0cdb2c5cd 100644 --- a/src/comp/front/test.rs +++ b/src/comp/front/test.rs @@ -182,7 +182,7 @@ fn mk_test_module(cx: test_ctxt) -> @ast::item { ret @item; } -fn nospan<copy T>(t: T) -> ast::spanned<T> { +fn nospan<T: copy>(t: T) -> ast::spanned<T> { ret {node: t, span: dummy_sp()}; } |
