diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-11-18 12:39:20 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-11-18 12:49:01 +0100 |
| commit | f6491bb42636f4c43f3cbb48fdb98ddd749e6e5d (patch) | |
| tree | c22607ada38b85ce4fadda6cf89998f6684a4964 /src/comp/metadata/encoder.rs | |
| parent | 8f8ebb550cf7e641d7dedd56e08efd4f0e15afab (diff) | |
Update stdlib, compiler, and tests to new kind system
This involved adding 'copy' to more generics than I hoped, but an experiment with making it implicit showed that that way lies madness -- unless enforced, you will not remember to mark functions that don't copy as not requiring copyable kind. Issue #1177
Diffstat (limited to 'src/comp/metadata/encoder.rs')
| -rw-r--r-- | src/comp/metadata/encoder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/metadata/encoder.rs b/src/comp/metadata/encoder.rs index bee96f53f0d..8eb0ea64e49 100644 --- a/src/comp/metadata/encoder.rs +++ b/src/comp/metadata/encoder.rs @@ -389,7 +389,7 @@ fn encode_info_for_items(ecx: @encode_ctxt, ebml_w: ebml::writer) -> // Path and definition ID indexing -fn create_index<T>(index: [entry<T>], hash_fn: fn(T) -> uint) -> +fn create_index<copy T>(index: [entry<T>], hash_fn: fn(T) -> uint) -> [@[entry<T>]] { let buckets: [@mutable [entry<T>]] = []; uint::range(0u, 256u) {|_i| buckets += [@mutable []]; }; |
