about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-22 01:35:39 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-03-23 04:54:26 +0530
commita91eece96b1c945bebb01a7e906dabc2d736a131 (patch)
tree5af8af886a8181ce78161da1b4cafda7277038e3 /src/rustllvm/ExecutionEngineWrapper.cpp
parentb0aad7dd4fad8d7e2e2f877a511a637258949597 (diff)
parent5fe0bb743a0af0413f8989a70a4f926fa5c63074 (diff)
downloadrust-a91eece96b1c945bebb01a7e906dabc2d736a131.tar.gz
rust-a91eece96b1c945bebb01a7e906dabc2d736a131.zip
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
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions