]> git.lizzy.rs Git - rust.git/commit
Implement low-hanging fruit of collection conventions
authorAlexis Beingessner <a.beingessner@gmail.com>
Thu, 6 Nov 2014 17:24:47 +0000 (12:24 -0500)
committerAlexis Beingessner <a.beingessner@gmail.com>
Thu, 6 Nov 2014 17:25:44 +0000 (12:25 -0500)
commitcf3b2e4fe6044cce018b723de9b21c500c6eac41
treeb8ed60b532124b478db06e66677f9987bb03a2df
parent60a669a1743b845dfa349684ef057bc98ec6d840
Implement low-hanging fruit of collection conventions

* Renames/deprecates the simplest and most obvious methods
* Adds FIXME(conventions)s for outstanding work
* Marks "handled" methods as unstable

NOTE: the semantics of reserve and reserve_exact have changed!
Other methods have had their semantics changed as well, but in a
way that should obviously not typecheck if used incorrectly.

Lots of work and breakage to come, but this handles most of the core
APIs and most eggregious breakage. Future changes should *mostly* focus on
niche collections, APIs, or simply back-compat additions.

[breaking-change]
21 files changed:
src/libcollections/binary_heap.rs
src/libcollections/bit.rs
src/libcollections/btree/map.rs
src/libcollections/btree/set.rs
src/libcollections/dlist.rs
src/libcollections/enum_set.rs
src/libcollections/ring_buf.rs
src/libcollections/slice.rs
src/libcollections/str.rs
src/libcollections/string.rs
src/libcollections/tree/map.rs
src/libcollections/tree/set.rs
src/libcollections/trie/map.rs
src/libcollections/trie/set.rs
src/libcollections/vec.rs
src/libcollections/vec_map.rs
src/libstd/collections/hash/bench.rs
src/libstd/collections/hash/map.rs
src/libstd/collections/hash/set.rs
src/libstd/collections/lru_cache.rs
src/libstd/collections/mod.rs