rust/src/libcollections
Manish Goregaokar a91eece96b Rollup merge of #23559 - aturon:future-proof-map-index, r=Gankro
This commit removes the `IndexMut` impls on `HashMap` and `BTreeMap`, in
order to future-proof the API against the eventual inclusion of an
`IndexSet` trait.

Ideally, we would eventually be able to support:

```rust
map[owned_key] = val;
map[borrowed_key].mutating_method(arguments);
&mut map[borrowed_key];
```

but to keep the design space as unconstrained as possible, we do not
currently want to support `IndexMut`, in case some other strategy will
eventually be needed.

Code currently using mutating index notation can use `get_mut` instead.

[breaking-change]

Closes #23448

r? @Gankro
2015-03-23 04:54:26 +05:30
..
btree Future-proof indexing on maps: remove IndexMut 2015-03-20 10:46:31 -07:00
binary_heap.rs extract libcollections tests into libcollectionstest 2015-03-16 21:57:42 -05:00
bit.rs Rollup merge of #23329 - jbcrail:rm-syntax-highlight, r=sanxiyn 2015-03-17 15:20:27 +05:30
borrow.rs Remove explicit syntax highlight from docs. 2015-03-13 19:25:18 -04:00
enum_set.rs extract libcollections tests into libcollectionstest 2015-03-16 21:57:42 -05:00
fmt.rs std: Remove old_io/old_path from the prelude 2015-03-20 20:07:19 -07:00
lib.rs std: Tweak some unstable features of str 2015-03-17 18:03:03 -07:00
linked_list.rs move some tests back to libcollections 2015-03-16 21:57:42 -05:00
macros.rs Register new snapshots 2015-03-18 16:32:32 -07:00
slice.rs Register new snapshots 2015-03-18 16:32:32 -07:00
str.rs Register new snapshots 2015-03-18 16:32:32 -07:00
string.rs Register new snapshots 2015-03-18 16:32:32 -07:00
vec.rs Register new snapshots 2015-03-18 16:32:32 -07:00
vec_deque.rs Register new snapshots 2015-03-18 16:32:32 -07:00
vec_map.rs extract libcollections tests into libcollectionstest 2015-03-16 21:57:42 -05:00