Make mir borrowck's use of opaque types independent of the typeck query's result
This commit is contained in:
parent
d693a98f4e
commit
6d76002baf
20 changed files with 162 additions and 261 deletions
|
@ -70,6 +70,10 @@ where
|
|||
pub fn iter_mut(&mut self) -> impl Iterator<Item = (&K, &mut V)> {
|
||||
self.into_iter()
|
||||
}
|
||||
|
||||
pub fn retain(&mut self, f: impl Fn(&(K, V)) -> bool) {
|
||||
self.0.retain(f)
|
||||
}
|
||||
}
|
||||
|
||||
impl<K, V> Default for VecMap<K, V> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue