Switch to new param kind bound syntax

And remove support for the old syntax
This commit is contained in:
Marijn Haverbeke 2012-01-05 15:35:37 +01:00
parent 1f71a0f48d
commit 60ae1590af
87 changed files with 251 additions and 252 deletions

View file

@ -492,7 +492,7 @@ fn encode_info_for_items(ecx: @encode_ctxt, ebml_w: ebml::writer,
// Path and definition ID indexing
fn create_index<copy T>(index: [entry<T>], hash_fn: fn(T) -> uint) ->
fn create_index<T: copy>(index: [entry<T>], hash_fn: fn(T) -> uint) ->
[@[entry<T>]] {
let buckets: [@mutable [entry<T>]] = [];
uint::range(0u, 256u) {|_i| buckets += [@mutable []]; };