Future-proof indexing on maps: remove IndexMut by aturon · Pull Request #23559 · rust-lang/rust

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...