You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #118 - passcod:map-entry-insert, r=Amanieu
Add RustcVacantEntry::insert_entry for rust-lang/rust#64656
See rust-lang/rust#64656.
~~This was based on v0.5.0 as that's what rustc uses; I can rebase onto master, but I'm not sure whether rustc wants v0.6.0 or if v0.6.0 is rustc-ready.~~
For context, this ultimately provides an API with this shape:
```rust
impl Entry<'a, K, V> {
fn insert(self, value: V) -> OccupiedEntry<'a, K, V> {…}
}
```
to be used when one wants to insert a value without consuming the Entry, e.g. because one wants to keep a reference to the key around. There's more at the original (defunct) PR: rust-lang/rust#60142.
0 commit comments