diff options
| author | Aaron Turon <aturon@mozilla.com> | 2015-03-20 10:22:57 -0700 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2015-03-20 10:46:31 -0700 |
| commit | 5fe0bb743a0af0413f8989a70a4f926fa5c63074 (patch) | |
| tree | 8f8b3e7df284e8246cd1c3f53bc4c7cca4c18f88 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | cbc660bd1c200e672e91bfdbb83e57e6e057314c (diff) | |
| download | rust-5fe0bb743a0af0413f8989a70a4f926fa5c63074.tar.gz rust-5fe0bb743a0af0413f8989a70a4f926fa5c63074.zip | |
Future-proof indexing on maps: remove IndexMut
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
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
