]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #100906 - ChayimFriedman2:map-index-mut, r=davidtwco
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 24 Aug 2022 16:20:13 +0000 (18:20 +0200)
committerGitHub <noreply@github.com>
Wed, 24 Aug 2022 16:20:13 +0000 (18:20 +0200)
Suggest alternatives when trying to mutate a `HashMap`/`BTreeMap` via indexing

The error can be quite confusing to newcomers.

Fixes #100873.

I'm not so sure about the message, open to wording suggestions.


Trivial merge