-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] add IndexAssign trait #25628
[RFC] add IndexAssign trait #25628
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
RFC at rust-lang/rfcs#1129 |
/me gasps Nice! r? @nikomatsakis, @nrc, and/or @pnkfelix |
cc @aturon |
🌞 |
☔ The latest upstream changes (presumably #25609) made this pull request unmergeable. Please resolve the merge conflicts. |
87db6f1
to
04128bd
Compare
☔ The latest upstream changes (presumably #26411) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #26575) made this pull request unmergeable. Please resolve the merge conflicts. |
(not closing this one since it looks like its RFC is getting into FCP soon) |
c21b1e1
to
0767d42
Compare
☔ The latest upstream changes (presumably #28602) made this pull request unmergeable. Please resolve the merge conflicts. |
I'm going to close this for now while we sit on the RFC, but this should always be here for posterity at least! |
Do not merge until its RFC has been approved
Introduce an unstable
IndexAssign
trait that lets users overload thea[b] = c
expression.Restore
IndexMut
implementations on HashMap/BTreeMap and also make them implement theIndexAssign
trait, all these operations are now supported:RFC: rust-lang/rfcs#1129
cc @sfackler @gankro @nikomatsakis @aturon