{"push_id":609734404,"size":2,"distinct_size":0,"ref":"refs/heads/auto","head":"c6a0865325c98ae5cb9a5fbb487d411c242e5ef0","before":"80d8538bec0d7954e1446f27b9c48dbc89afbc45","commits":[{"sha":"5fe0bb743a0af0413f8989a70a4f926fa5c63074","author":{"email":"9df59a69f337cdc0a275d7c2f347281b851067f9@mozilla.com","name":"Aaron Turon"},"message":"Future-proof indexing on maps: remove IndexMut\n\nThis commit removes the `IndexMut` impls on `HashMap` and `BTreeMap`, in\norder to future-proof the API against the eventual inclusion of an\n`IndexSet` trait.\n\nIdeally, we would eventually be able to support:\n\n```rust\nmap[owned_key] = val;\nmap[borrowed_key].mutating_method(arguments);\n&mut map[borrowed_key];\n```\n\nbut to keep the design space as unconstrained as possible, we do not\ncurrently want to support `IndexMut`, in case some other strategy will\neventually be needed.\n\nCode currently using mutating index notation can use `get_mut` instead.\n\n[breaking-change]\n\nCloses #23448","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/5fe0bb743a0af0413f8989a70a4f926fa5c63074"},{"sha":"c6a0865325c98ae5cb9a5fbb487d411c242e5ef0","author":{"email":"3a2c29237f73c7cf88424b80e427b1884f346b35@rust-lang.org","name":"bors"},"message":"Auto merge of #23559 - aturon:future-proof-map-index, r=Gankro\n\nThis commit removes the `IndexMut` impls on `HashMap` and `BTreeMap`, in\r\norder to future-proof the API against the eventual inclusion of an\r\n`IndexSet` trait.\r\n\r\nIdeally, we would eventually be able to support:\r\n\r\n```rust\r\nmap[owned_key] = val;\r\nmap[borrowed_key].mutating_method(arguments);\r\n&mut map[borrowed_key];\r\n```\r\n\r\nbut to keep the design space as unconstrained as possible, we do not\r\ncurrently want to support `IndexMut`, in case some other strategy will\r\neventually be needed.\r\n\r\nCode currently using mutating index notation can use `get_mut` instead.\r\n\r\n[breaking-change]\r\n\r\nCloses #23448\r\n\r\nr? @Gankro","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/c6a0865325c98ae5cb9a5fbb487d411c242e5ef0"}]}