]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #19770: csouth3/iterator-wrapperstructs
authorAlex Crichton <alex@alexcrichton.com>
Wed, 17 Dec 2014 16:33:58 +0000 (08:33 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 17 Dec 2014 19:50:24 +0000 (11:50 -0800)
Using a type alias for iterator implementations is fragile since this exposes the implementation to users of the iterator, and any changes could break existing code.

This PR changes the iterators of `BTreeMap`, `BTreeSet`, `HashMap`, and `HashSet` to use proper new types, rather than type aliases.  However, since it is fair-game to treat a type-alias as the aliased type, this is a:

[breaking-change].

1  2 
src/libcollections/btree/map.rs
src/libstd/collections/hash/set.rs

Simple merge
Simple merge